Skip to content

Commit

Permalink
Fix playback of some streams using unusually long segment.
Browse files Browse the repository at this point in the history
Al Jazeera live stream use 18s segment, it could cause the startup buffer to be exhausted before we start looking for new one. Allowing seek on live stream to allow seeking on non-completed myth transcode has added a quite severe delay as FFmpeg first tries to estimate the length of the stream by looking into the last segment. This means that for playback to start, we must retrieve the first two segments, followed by the last two.
Need to find a way to 1- make the StreamWorker seek operation lockless and 2-Find a way on how to determine when a stream is really live and one that isn't (like mythtv one).

This fix introduce some kind of regression, you can only seek within the size of the file as determined at startup.
  • Loading branch information
jyavenard committed May 20, 2012
1 parent e341868 commit db8ecbd
Show file tree
Hide file tree
Showing 2 changed files with 188 additions and 121 deletions.

0 comments on commit db8ecbd

Please sign in to comment.