Thursday, April 10, 2014

Streaming a Geovision IP Camera to Youtube with avconv

Just a very quick note on the command line I have used after much googling to send my camera stream from a Geovision GV-BL2410 to YouTube Live. The secret was forcing a silent audio stream, which was the step I had previously missed (all on one line):
avconv -v quiet -rtsp_transport tcp -i rtsp://[RTSPIP:RTSPPORT]/CH001.sdp -b:a 128k -f s16le -ar 44100 -ac 2 -i /dev/zero -codec:v copy -codec:a aac -f flv -strict experimental "[YOUTUBEURL]/[YOUTUBESTREAM]"
Obviously replace RTSPIP, RTSPPORT, YOUTUBEURL and YOUTUBESTREAM with your specific values. The YOUTUBEURL will be the one that starts "rtmp://..."