unosquare / ffmediaelement

FFME: The Advanced WPF MediaElement (based on FFmpeg)
https://unosquare.github.io/ffmediaelement/
Other
1.17k stars 238 forks source link

HLS streams stop playing after a period of time #572

Open awilcockson opened 3 years ago

awilcockson commented 3 years ago

HLS streams stop playing after a period of time

When playing HLS streams, after a period of time the stream will stop playing, however no error is raised and the buffered packet count continues to rise. This is issue is not present in ffplay running side by side with our application and the FFME sample player, both of which will stop playing at the same point in time. This tends to indicated to me that this is FFME issue as opposed to ffmpeg.

Issue Categories

Version Information

Steps to Reproduce

  1. Start playing this stream https://a.jsrdn.com/broadcast/9e63a1b236/+0000/high/c.m3u8
  2. Wait ...
  3. At some point you will see the buffer run down towards zero packets and playback will stop (last frame will be displayed).
  4. Sometime after the buffered packet will start to increase, and never stop increasing.

Expected Results

zhang178007 commented 2 years ago

我的问题是rtsp流,但是出现了同样的现象,调试发现在 if (decoderBlocks.IsFull && position < rangeHalf) break; 全部返回了

zhang178007 commented 2 years ago

我增加了一个判断就解决了 if (!Container.IsNetworkStream) if (decoderBlocks.IsFull && position < rangeHalf) break;

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.