Youtube live stream

edited January 2019 in Feature Requests

Octoprint got a plugin where you can enter your Youtube data and direct stream to it. 

Would be nice to have the Feature here like this, as Part of the webcam tab 

If I give to much input, please tell me, got a Voron v2.1 running and want to use rep server instead octoprint, which  is well supported through OSS.... 


  • I never streamed to youtube, so my question - what is the advantage? I mean with port forwarding you can already watch webcam from anywhere. And second question - do you know if youtube accepts mjpg as input? As I said I never did any youtube streaming so no experience here.
  • some advantages of streaming to youtube.
    your stream can handle many thousands of viewers.
    recordings can be played back by same users.
    we dont have to expose any inbound ports on our private network to the internet.
    and for me personally some advertising opportunities for my personal business/interests.

    Now the hard part is, youtube needs a rtmp stream with these specs ->
    I haven't figured out a way to do this with out a second box doing the transcoding and would love to hear how others have done it.
  • We only have a mjpg stream, so this would require converting it into H.264 format which is time intensive. Knowing how long ffmpeg takes to convert jpgs to a video I do not think that the pi especially the small ones can do that. Also we would need s solution working on all 7 supported platforms. Only solution I could think of is if webcams can provide the stream natively, but I'm not sure this is a common function. At least my only show mjpg and yuyv images as possible responses if I remember correctly.
  • I have found a Work around on this using Security Software Called Blue IRS if you decide you want to set it up I can show you how to configure the Security Software :)

  • I solved it this way:

    ffmpeg -i "http://<my local webcam>/videostream.cgi?user=&rate=0" -f lavfi -i anullsrc -vf yadif,format=yuv420p -c:v libx264 -crf 18 -bf 2 -acodec libmp3lame -ar 44100 -b:a 128k -use_editlist 0 -movflags +faststart -f flv rtmp://

Sign In or Register to comment.