streaming audio (mp3) to html5 issue

About encoding, codec settings, muxers and filter usage
joelu
New Cone
New Cone
Posts: 4
Joined: 27 Apr 2016 07:15

streaming audio (mp3) to html5 issue

Postby joelu » 27 Apr 2016 07:29

my audio streaming works fine when using http (ogg/vobris) to desktop browsers, what i want is to make it compatible to ios safari browser, which I believe it does not take ogg format

so what i've done is to change it to http (mp3) streaming in VLC, however, it makes both ios and desktop browser unplayable

here's the command that I've tried:
:sout=#transcode{vcodec=none,acodec=mp3,ab=64,channels=2,samplerate=44100}:http{mux=ts,dst=:8080/} :sout-all :sout-keep

here's the html5 code
<audio controls="controls" loop="loop" id="livePlayer" >
<source src="http://216.18.21.102:8080">
</audio>

Am I doing something wrong? or is there any way to stream audio from vlc to ios safari?

tks in advance

joelu
New Cone
New Cone
Posts: 4
Joined: 27 Apr 2016 07:15

Re: streaming audio (mp3) to html5 issue

Postby joelu » 28 Apr 2016 06:21

anyway, i found a solution by myself
step #1: install icecast, add a relay
step #2: open vlc, tools>preferrence>show setting all>streaming out>audio out>shoutcast check mp3 checkbox
step #3 open vlc, add icecast, choose audio-mp3

now you can play the stream in ios safari


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 4 guests