You are not logged in.

#1 2021-05-10 05:57:09

sfmth
Member
Registered: 2021-04-26
Posts: 20

My screen recorder alias

Here's my screen recorder alias for my system on arch.
Looking for suggestions and criticism smile

#!/bin/bash
alias screenrec="ffmpeg -f pulse -ac 2 -i $(pactl list short sources | grep output | awk '{print $1}') -video_size 1920x1080 -framerate 30 -thread_queue_size 199 -hwaccel cuda -f x11grab -i :0.0 -c:v libx264 -crf 24 -preset ultrafast  ~/$(date | tr ' ' '-').mp4"
#1080p30fps
#alsa output grab
#x11 grab
#cuda decode acceleration

It takes about 450mb ram and 90% CPU

Last edited by sfmth (2021-05-10 06:01:58)

Offline

Board footer

Powered by FluxBB