Page 1 of 1

Restream TO YouTube via cvlc

Posted: 24 Mar 2020 06:48
by SpikeLightfoot
I've been pounding away at this for too long with no success, so I'd be grateful if an expert can chime in with pointers to a solution.

Goal: restream a local webcam to my YouTube channel for rebroadcast
Source: webcam hosted on a Raspberry Pi by the RPi-Cam-Web-Interface[url]https://elinux.org/RPi-Cam-Web-Interface[/url]
Method: cvlc command that looks something like this

Code: Select all

cvlc http://localhost/cam_pic_new.php --sout '#trancode{?????}:std{?????,dst=rtmp://a.rtmp.youtube.com/live2/<mystreamID>}"
Ideally the cvlc process would be hosted on the RPi itself, but first I'd just like to get it to work on any local computer. I can work with the RPi later.

Question: Given the encoder settings YouTube wants to receive ([url]https://support.google.com/youtube/answer/2853702?hl=en[/url]) how is the cvlc command properly structured? I find tons of inaccurate or outdated examples on the web, and none of them have worked for me. The documentation is way too deep for me; I'm just looking for an example I can tweak.