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://..."

4 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. Peter, I have a GV-VD2540 that I would like to stream to YouTube. Where are you running the avconv command line? I do not see anywhere in the camera config to enter a command.

    ReplyDelete
    Replies
    1. You have to have an external relay "server" - my current hardware is a Raspberry Pi 3. The command above, which I have modified since, does no trans-coding and so does not burden the CPU.

      The changes I have made are to enable the silent audio stream on the camera and not inject a silent track as above - that was causing CPU issues as the Raspberry Pi was trying to encode audio on the fly.

      Please see my recent update at http://www.wonderland.org/2016/05/updated-streaming-geovision-ip-cam-to.html

      Delete