Page 1 of 1

dshow + MJPEG + HTTP streaming from analog camera

Posted: 02 Aug 2011 19:44
by TheSteelRat
Hi.
I want to stream the video from my video capture card to the MJPEG format with help of HTTP. The main feature that this stream will be browsable by Firefox or Google Chrome.
I use such command line:

Code: Select all

vlc dshow:// --no-audio :dshow-vdev="Pinnacle Systems 500-USB Device" :dshow-caching=0 :dshow-size=352x288 --sout-mux-caching=0 :sout=#transcode{vcodec=MJPG,vb=300,fps=5,width=352,height=288}:duplicate{dst=std{access=http{mime=multipart/x-mixed-replace;boundary=--7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=localhost:8081/video.mjpg}} --qt-start-minimized --http-caching=0
But I have big delay (about 1 minute).
I tried to disable mime type:

Code: Select all

vlc dshow:// --no-audio :dshow-vdev="Pinnacle Systems 500-USB Device" :dshow-caching=0 :dshow-size=352x288 --sout-mux-caching=0 :sout=#transcode{vcodec=MJPG,vb=300,fps=5,width=352,height=288}:duplicate{dst=std{access=http,mux=mpjpeg,dst=localhost:8081/video.mjpg}} --qt-start-minimized --http-caching=0
And the delay is 3 seconds now and the stream is not browsable by browsers.

Why there is such big delay??? Do you have any ideas?

Re: dshow + MJPEG + HTTP streaming from analog camera

Posted: 02 Aug 2011 23:45
by Jean-Baptiste Kempf
Possibly a bug then...

Re: dshow + MJPEG + HTTP streaming from analog camera

Posted: 03 Aug 2011 13:39
by VLC_help
Low FPS video isn't something that VLC handles very well.