Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- INRES="1366x768"
- OUTRES="1366x768"
- FPS="22"
- QUAL="medium"
- SOUNDSOURCE="alsa_output.pci-0000_00_1b.0.analog-stereo.monitor" #pactl list sources | grep Name
- ffmpeg \
- -f x11grab -s $INRES -r "$FPS" -i :0.0 \
- -f alsa -ac 1 -f pulse \
- -i $SOUNDSOURCE \
- -vcodec libx264 -s $OUTRES -preset $QUAL \
- -acodec libmp3lame -ac 1 -ar 44100 \
- -b:v 450k -b:a 64k -minrate 500k -bufsize 500k -maxrate 500k \
- -f flv -g 44 "rtmp...output..."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement