Created
June 24, 2020 22:12
-
-
Save igorrendulic/6d0cebadfbb9b22436cf76ca03ace472 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# (tested on Ubuntu 18.04 Desktop) | |
# Stream your own desktop to RTMP | |
ffmpeg -f x11grab -s 1920x1200 -framerate 15 -i :0.0 -c:v libx264 -preset fast -pix_fmt yuv420p -s 1280x800 -threads 0 -f flv "rtmp://127.0.0.1/live/mystreamkey" | |
# Broadcasting Examples | |
ffmpeg -f dshow -i video="Virtual-Camera" -preset ultrafast -vcodec libx264 -tune zerolatency -b 900k -f mpegts udp://127.0.0.1:1234 | |
ffmpeg -f dshow -i video="screen-capture-recorder":audio="Stereo Mix (IDT High Definition" \ | |
-vcodec libx264 -preset ultrafast -tune zerolatency -r 10 -async 1 -acodec libmp3lame -ab 24k -ar 22050 -bsf:v h264_mp4toannexb \ | |
-maxrate 750k -bufsize 3000k -f mpegts udp://127.0.0.1:48550 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment