Error with live HTTP Flash stream
Posted: 09 Sep 2010 23:52
I am converting an RTSP stream from a camera to a live HTTP flash stream using the following command (VLC 1.0.6 on Fedora 12):
cvlc rtsp://<source IP address:port>/<stream_name> --sout='#transcode{vcodec=FLV1,acodec=mp3,vb=300,deinterlace,fps=25,samplerate=44100,ab=32}:std{access=http,mux=ffmpeg{mux=flv},dst=<machine's_IP_addr:port>/stream.flv}'
When I run the command it works sometimes and I can see the video stream in a flash player, however other times it fails with the error below. There is no pattern on when it works or fails!
main mux error: cannot add a new stream (unsupported while muxing to this format). You can try increasing sout-mux-caching value
stream_out_transcode stream out error: cannot add this stream
Instead of Flash if I convert it into a HTTP stream using command below, it works consistently.
cvlc rtsp://<source IP address:port>/<stream_name> --sout='#duplicate{dst=std{access=http,mux=ts,dst=<machine's_IP_addr:port>}}'
Any pointers/advice will be much appreciated.
Thanks!
cvlc rtsp://<source IP address:port>/<stream_name> --sout='#transcode{vcodec=FLV1,acodec=mp3,vb=300,deinterlace,fps=25,samplerate=44100,ab=32}:std{access=http,mux=ffmpeg{mux=flv},dst=<machine's_IP_addr:port>/stream.flv}'
When I run the command it works sometimes and I can see the video stream in a flash player, however other times it fails with the error below. There is no pattern on when it works or fails!
main mux error: cannot add a new stream (unsupported while muxing to this format). You can try increasing sout-mux-caching value
stream_out_transcode stream out error: cannot add this stream
Instead of Flash if I convert it into a HTTP stream using command below, it works consistently.
cvlc rtsp://<source IP address:port>/<stream_name> --sout='#duplicate{dst=std{access=http,mux=ts,dst=<machine's_IP_addr:port>}}'
Any pointers/advice will be much appreciated.
Thanks!