Issues creating livehttp stream.

About encoding, codec settings, muxers and filter usage
kdh
Cone that earned his stripes
Cone that earned his stripes
Posts: 224
Joined: 16 Jun 2009 22:38

Issues creating livehttp stream.

Postby kdh » 18 Mar 2014 16:49

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?

kdh
Cone that earned his stripes
Cone that earned his stripes
Posts: 224
Joined: 16 Jun 2009 22:38

Re: Issues creating livehttp stream.

Postby kdh » 20 Mar 2014 04:50

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?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Issues creating livehttp stream.

Postby Jean-Baptiste Kempf » 22 Apr 2014 14:09

You need to set the vcodec to reencode the video
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 10 guests