IP Camera to Youtube & WebTorrent

Like i said on the previous page. It took me a while to get to this point. A stable connection from which i can pull different sub streams of.

My first attempt was using FFMpeg and GStreamer and pushing it to Youtube. Both worked well, but had some stability issues. Alternatively I could have used the FFMpeg/GStreamer API for Python and adding a watchdog function for stream monitoring.

FFMpeg example

ffmpeg -rtsp_transport tcp -i "rtsp://user:password@ip-address-camera:554/cam/realmonitor?channel=1&subtype=0" -framerate 30 -vcodec libx264 -preset fast -maxrate 6M -bufsize 12M -g 60 -c:a aac -b:a 128k -ar 44100 -f flv rtmp://a.rtmp.youtube.com/live2/your-youtube-private-key

GStreamer example

gst-launch-1.0 -v rtspsrc location=rtsp://user@password@ip-address-camera:554/cam/realmonitor?channel=1&subtype=0 ! decodebin ! x264enc ! mp4mux ! queue ! flvmux streamable=true name=mux ! rtmpsink location="rtmp://a.rtmp.youtube.com/live2/your-youtube-private-key
Pages: 1 2 3 4