can't stream to webpage
Posted: 29 Jan 2021 07:05
Alright guys I'm feeling pretty dumb... I can get VLC to stream to other VLC players but I can't get it to play in a web page no matter how many different ways I do it.
VLC stream settings;
:sout=#transcode{vcodec=h264,acodec=mpga,ab=128,channels=2,samplerate=44100,scodec=none}:http{mux=ffmpeg{mux=flv},dst=:8080/} :no-sout-all :sout-keep
html code attempted;
first attempt;
<video controls>
<source src="http://localhost:8080" type="video/mp4">
</video>
second attempt;
<video id="video" src="http://localhost:8080/stream" type="video/mp4" autoplay="autoplay"/>
third attempt;
vlc;
:sout=#transcode{vcodec=theo,vb=800,acodec=vorb,ab=128,channels=2,samplerate=44100,scodec=none}:http{mux=ogg,dst=:8080/} :no-sout-all :sout-keep
html;
<video width="700" src="http://127.0.0.1:8080" autoplay type="video/ogg; codecs=theora"></video>
Every one of these results in a media container in the web page that spins for a moment when you click play and then the play button grays out..... I'm not sure what the solution here is. Hoping somebody can assist....
Thank you in advance!
VLC stream settings;
:sout=#transcode{vcodec=h264,acodec=mpga,ab=128,channels=2,samplerate=44100,scodec=none}:http{mux=ffmpeg{mux=flv},dst=:8080/} :no-sout-all :sout-keep
html code attempted;
first attempt;
<video controls>
<source src="http://localhost:8080" type="video/mp4">
</video>
second attempt;
<video id="video" src="http://localhost:8080/stream" type="video/mp4" autoplay="autoplay"/>
third attempt;
vlc;
:sout=#transcode{vcodec=theo,vb=800,acodec=vorb,ab=128,channels=2,samplerate=44100,scodec=none}:http{mux=ogg,dst=:8080/} :no-sout-all :sout-keep
html;
<video width="700" src="http://127.0.0.1:8080" autoplay type="video/ogg; codecs=theora"></video>
Every one of these results in a media container in the web page that spins for a moment when you click play and then the play button grays out..... I'm not sure what the solution here is. Hoping somebody can assist....
Thank you in advance!