Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stream to YouTube #684

Open
davidtraver opened this issue Apr 7, 2023 · 2 comments
Open

Stream to YouTube #684

davidtraver opened this issue Apr 7, 2023 · 2 comments

Comments

@davidtraver
Copy link

davidtraver commented Apr 7, 2023

I use the RPi_Cam_Web_Interface to view a remote bird-box camera over wifi using a version 2 pi camera and a Raspberry Pi Zero W.

I want to capture the stream on my desktop (Linux) and stream it live to my YouTube account or a web page. Is there a way to do this using an encoder or some other method?

@roberttidey
Copy link
Collaborator

I haven't done this myself but my understanding is you need an x264 stream to feed into Youtube live. This software uses a mjpeg stream for its preview and you can access this stream direct via a url (e.g. http:///cam_pic_new.php?)

You would then need to transcode this to x264 which I think can be done with something like ffmpeg. This is fairly processor intensive so you would need a decent raspberry model if doing this on that platform.

@davidtraver
Copy link
Author

davidtraver commented Apr 8, 2023

ropberrtttidy

Thank you. I am doing the decoding on my desktop connecting to the pi zero via wifi. Based on your suggestion,

First, I selected MPEG stream under the System menu.

Second, on my desktop I transcoded the MPEG stream as follows:

ffmpeg -i http://192.168.1.229/cam_pic_new.php -crf 27 -preset veryfast -y output.h264

Third, I can view the transcoded stream on my laptop with:

ffplay output.h264

My next question is whether I have the best stream available.

Your response was a big help. Many thanks.

(edited to update code)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants