useful_scripts/screc/screenrecord.sh

13 lines
497 B
Bash
Raw Normal View History

2023-03-24 14:40:17 -03:00
#!/bin/bash
inres="1920x1080"
fps="30"
bitrate="6000k"
[ ! -z "${1}" ] && filename="${1}" || read -p 'type in filename >' filename && [ -z "$filename" ] && filename="test"
2023-03-24 14:40:17 -03:00
ffmpeg -threads:0 3 -threads:1 1 \
-f x11grab -probesize 42M -video_size $inres -framerate $fps -thread_queue_size 4096 -i :0.0 \
-f alsa -probesize 80M -channels 2 -sample_rate 48000 -thread_queue_size 16384 -i loopout \
-c:v libx264 -b:v $bitrate \
2023-03-24 14:40:17 -03:00
-c:a aac -af asetpts=N/SR/TB /tmp/$filename.mp4
#-allow_skip_frames true