There are tutorials out there on how to stream to youtube using ffmpeg, and I have that part of the code done. However, I do not know how to stream the desktop in ffmpeg. The tutorials online only show usage of web cams. Anyway, What software do I use to capture the screen and stream using ffmpeg. Can I do this natively in ffmpeg. If so, how?

what I have so far is

 ffmpeg -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -f h264 -i pipe:0 -c:v copy -c:a aac -ab 128k -g 40 -strict experimental -f flv -r 30 rtmp://a.rtmp.youtube.com/live2/$1

where the $1 is a command line param.

  • 1
    Which OS? ffmpeg has grabber devices for Win, Mac, OSX
    – Gyan
    Jul 4, 2018 at 14:43
  • linux, arm linux. Im trying to run it on my Raspberry pi. Jul 4, 2018 at 15:10
  • You should edit your question and provide the necessary information required to answer your question
    – Ramhound
    Jul 4, 2018 at 20:40


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.