_______________________________________________ KLUG mailing list KL...@eecs.utk.edu http://www.KnoxLUG.org
It's no problem. All I did was butcher the work of others. :)
I honestly didn't realize youtube supported live streaming either until I started this project and kept trying to find a way to enable streaming of live video. It turn out that it is a PITA unless you basically have a purpose built system or software to fill in the gaps. YouTube just happened to be the path of least resistance since our web guy is still trying to figure out live streaming on the Adobe Media Server and it provided support for pretty much all platforms out of the gate.
I pulled the code to make the script from this article from stackoverflow.com: http://stackoverflow.com/questions/7708715/check-if-program-is-running-with-bash-shell-script
The command I used to take an RTSP video input with no audio, insert silent audio, and transmit it via RTMP to youtube was also butchered from other examples I found and it is the following command:
avconv -f rtsp -i rtsp://%URL_TO_CAMERA_STREAM% -f s16le -ar 44100 -ac 2 -i /dev/zero -shortest -c:v copy -c:a aac -f flv -strict experimental rtmp://%PATH_TO_YOUTUBE_FEED%
I am using Linux Mint 16 MATE and it has an FFMPEG package you can load from a repository right through the software manager that works beautifully. My testing was done running it on a VM on my desktop and now I set it up within a virtual infrastructure and it does nothing more than send the feed up to youtube.
Yes, I also realize the % is a windows variable designation instead of the typical $ for linux. I just though enclosing the fields that I sterilized in % would stand out a bit more.
-Bret
The new "official" stream is back live instead of running from my test account. You can see it on our site at the URL:
http://www.etch.com/ways_to_give/expansion_project.aspx
or the Youtube direct link: https://www.youtube.com/watch?v=ddGmgIRaX0I