I've seen this asked several times but none of the answers have solved my problem so I'm hoping someone can help.
Basically, I'm trying to stream live video to a webpage using HTML5. I can set up VLC manually by selecting the video source, selecting the HTTP protocol and the Theora + Vorbis (OGG) profile and it streams perfectly to a simple HTLM5 page:
Code: Select all
<html>
<head>
</head>
<body>
<video width="480" height="320" autoplay muted>
<source src="http://home-vwlowen.no-ip.org:81/" type="video/ogg">
</video>
</body>
</html>
However, I'm trying to set it up through a batch file so that it can start up automatically if/when the server crashes. The 'Generated stream output string' from the manual setup is:
:sout=#transcode{vcodec=theo,vb=100,scale=1,acodec=vorb,ab=128,channels=2,samplerate=44100}:duplicate{dst=http{mux=ogg,dst=:81/},
dst=display} :sout-keep
The full command line batch file is:
Code: Select all
"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" dshow:// :dshow-vdev="Osprey-100 Video Device 1" :dshow-adev=none:live-
caching=300:sout=#transcode{vcodec=theo,vb=100,scale=1,acodec=vorb,ab=128,channels=2,samplerate=44100}:duplicate{dst=http
{mux=ogg,dst=:81/},dst=display} :sout-keep
Any suggestions would be appreciated,
Thanks,
John.