Livehttp stream to iPhone, short freezes between segments

About encoding, codec settings, muxers and filter usage
salam
New Cone
New Cone
Posts: 5
Joined: 02 Apr 2007 19:06

Livehttp stream to iPhone, short freezes between segments

Postby salam » 09 Apr 2013 21:21

I've setup streaming of live TV into iPhone this way:

Code: Select all

vlc ".$chan[0]." -I dummy --sout='#transcode{width=480,height=320,fps=25,vcodec=h264,vb=256,venc=x264{aud,profile=baseline,level=30,keyint=30,ref=1},acodec=mp3,ab=96}:std{access=livehttp{seglen=5,delsegs=true,numsegs=5,index=/var/tmp/tv/tv.m3u8,index-url=http://tv.********/mystream-########.ts},mux=ts{use-key-frames},dst=/var/tmp/tv/mystream-########.ts}'
Where $chan[0] contains a multicast IP. The stream itself works, but it is very choppy between the segments. Here I use 5sec segment length, so every 5 seconds, it goes down(like freezes) for about 0,5 seconds (making very annoying sound of course). Then the stream continues for another 5 seconds until this repeats. I've tried to extend to 10 seconds, but that does not solve the problem. Speed of internet connection is not a problem from server or iPhone side.

What I've noticed is that playlist is updated after a whole segment is done (so no item for segment2 until segment3 begins to process). So I should always be one segment ahead. I think I have something incorrectly configured, but was not able to figure out what it is.

Did i miss some parameter?

linpoyu0415
New Cone
New Cone
Posts: 8
Joined: 02 Apr 2013 04:46
VLC version: 2.0.5
Operating System: Windows
Location: Hsichu, Taiwan

Re: Livehttp stream to iPhone, short freezes between segment

Postby linpoyu0415 » 10 Apr 2013 03:19

I also experienced this problem. It seems the index file(.m3u8) being locked during the streaming.
I found a error message from command line log below,

Code: Select all

access_output_livehttp access out error: Error moving LiveHttp index file
If I don't use client to play the stream, there is no this kind of error message.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 11 guests