Streaming Mp4 With Vlc To Html Browser
I have problems streaming my webcam picture (without sound) to a html page. I'm using the latest (v2.0.2 vlc for windows) for streaming, here's the command line: 'c:\Program Files
Solution 1:
You can't transmit mp4 over http protocol using VLC
Follow this link to see the Output method / muxer matrix http://www.videolan.org/streaming-features.html
However you can try to transcode to ogg.
Try this:
"c:\Program Files (x86)\VideoLAN\VLC\vlc.exe" \
-I dummy dshow:// --dshow-vdev="Logitech QuickCam Chat" \
--dshow-adev=none --dshow-caching=0 \
--sout=#transcode{vcodec=theo,vb=1024,channels=1,ab=128,samplerate=44100,width=320}:http{dst=:8080/webcam.ogg}
and in your html video tag:
<source src="http://127.0.0.1:8080/webcam.ogg"/>
Solution 2:
try adding the type of video (type="video/mp4"):
<video width="320" height="240" controls="controls">
<source src="movie.mp4" type="video/mp4" />
<source src="movie.ogg" type="video/ogg" />
Your browser does not support the video tag.
</video>
Solution 3:
you're telling VLC to stream in TS format mux=ts
this is your problem, you need to mux in mp4
Solution 4:
For live streaming you should use following
<video id="video" src="http://localhost:8181/stream" type="video/ogg; codecs=theora" autoplay="autoplay"/>
More at Here's a link!
Please note: Video type "ogg" only!
Post a Comment for "Streaming Mp4 With Vlc To Html Browser"