Resources useful for FFMPEG and RTMP:
https://github.com/arut/nginx-rtmp-module/wiki/Installing-on-Ubuntu-usi…
https://github.com/arut/nginx-rtmp-module/wiki/Examples
https://sonnati.wordpress.com/2011/08/30/ffmpeg-%E2%80%93-the-swiss-arm…
examples:
$ ffmpeg -f x11grab -r 15 -s 1920x1200 -i :0.0+0,0 -c:v libx264 -preset faster -pix_fmt yuv420p -f flv rtmp://localhost/live/test
$ ffmpeg -f x11grab -r 30 -s 1920x1200 -i :0.0+0,0 -vcodec rawvideo -pix_fmt yuv420p -threads 2 -f v4l2 /dev/video0
note the latter example would require v4l2loopback:
https://www.reddit.com/r/discordapp/comments/6x1q6b/guide_how_to_screen…
can also install module via apt-get:
$ sudo apt-get install v4l2loopback-dkms v4l2loopback-source v4l2loopback-utils
- Log in to post comments