Page 1 of 1

Issues creating livehttp stream.

Posted: 18 Mar 2014 16:49
by kdh
I followed this:

https://wiki.videolan.org/Documentation ... he_iPhone/

But I seem to missing something.

I'm actually using this as my main example:

Code: Select all

vlc -I dummy --mms-caching 0 http://www.nasa.gov/55644main_NASATV_Windows.asx vlc://quit --sout='#transcode{acodec=mp3,ab=96}:duplicate{dst=std{access=livehttp{seglen=10,delsegs=true,numsegs=5,index=/var/www/streaming/mystream.m3u8,index-url=http://mydomain.com/streaming/mystream-########.mp3},mux=raw,dst=/var/www/streaming/mystream-########.mp3},select=audio}'
I tried using VLC 2.1.0 and VLC 2.1.2 with the same result.

I have verified that the user I'm running VLC as can write to the filesystem.

I am able to connect to my shoutcast stream, but it does not create the m3u8 or segmented files until after I ctrl-c out of VLC. What am I missing?

Re: Issues creating livehttp stream.

Posted: 20 Mar 2014 04:50
by kdh
Got a little bit further.. I am able to now create the segments and actually stream audio from a shoutcast server only via this command:

Code: Select all

./vlc http://www.myshoutcastserver.com:8000 --sout '#standard{access=livehttp{seglen=5,splitanywhere=true,delsegs=true,numsegs=5,index=/var/www/vhosts/myshoutcastserver.com/httpdocs/stream/mystream.m3u8,index-url=http://myshoutcastserver.com/stream/mystream-#.mp3},mux=raw,dst=/var/www/vhosts/myshoutcastserver.com/httpdocs/stream/mystream-#.mp3},select=audio}'
I can connect to http://www.myshoutcastserver.com:8000/s ... tream.m3u8 and listen to music only on my iphone.

But if I try to add any kind of transcoding option.. something like this:

Code: Select all

./vlc http://www.myshoutcastserver.com:8000 --sout '#transcode{acodec=mp3, ab=128, channels=2, samplerate=44100}:std{access=livehttp{seglen=5,splitanywhere=true,delsegs=true,numsegs=5,index=/var/www/vhosts/myshoutcastserver.com/httpdocs/stream/mystream.m3u8,index-url=http://myshoutcastserver.com/stream/mystream-#.mp3},mux=raw,dst=/var/www/vhosts/myshoutcastserver.com/httpdocs/stream/mystream-#.mp3},select=audio}'
VLC connects to the port, and then just sits there not creating the segmented files.

any ideas?

Re: Issues creating livehttp stream.

Posted: 22 Apr 2014 14:09
by Jean-Baptiste Kempf
You need to set the vcodec to reencode the video