Joined: 17 Mar 2014
|Posted: Wed Mar 19, 2014 6:33 am Post subject: Stream drop on next video in playlist
I'm having trouble to make stream not to drop client when next video file is loaded from playlist.
I have icecast server 2.4-beta5, ezstream which stream video from play list:
<metadata_format>@s@: @a@ - @t@</metadata_format>
<!-- Do not allow the server to advertise the stream on a public YP directory: -->
<decode>ffmpeg -loglevel panic -re -i @T@ -r 24 -b:v 850k -crf 10 -qmin 4 -qmax 50 -maxrate 1500k -vf scale=-1:360 -c:v libvpx -g 5 -avoid_negative_ts 1 -c:a libvorbis -ac 2 -ar 48000 -b:a 48k -metadata title="@t@" -f webm -</decode>
This is streamed well in Iceast server and there is no sign of drop on Icecast admin. For example right now test.webm mount is:
|stream_start: Sun, 16 Mar 2014 16:08:55 +0000
so there is no drop.
Now this stream is displayed in browser with HTML5 video tag. This work well, just sometimes after couple of seconds it stop for about 20-30 seconds but continue to buffer and then stream resume. This must be browser issue so I will deal with this another time.
But the real problem for me is that when video is changed stream just drop and never resumed with next video. If page is reloaded stream continue with next video indeed.
Also I can't make Icecast to respect metadata from ezsream. It is just ignored. May be this is part of problem?
So what I'm doing wrong?
P.S. ezstream is patched to support WEBM. It's not official patch but just 2-3 rows to add WEBM. Is someone is interested I can post patch here.