[FFmpeg-devel] [PATCH] FFPlay on a HLS stream skips audio from time to time.

Adrian Cruceru adrian.cruceru at adswizz.com
Wed Jun 1 15:24:38 CEST 2016


Hi,

Patch is attached,

Quick notes:
- Playing HLS streams - FFPlay stalls a bit before each segment download
- Stalls accumulate and FFPlay falls behind
- We get log warning and segment skip.

Fix:
- Just make sure HLS is marked as a real time stream.

---
  ffplay.c | 1 +
  1 file changed, 1 insertion(+)

diff --git a/ffplay.c b/ffplay.c
index 11c5091..ed001cc 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -2801,6 +2801,7 @@ static int is_realtime(AVFormatContext *s)
      if(   !strcmp(s->iformat->name, "rtp")
         || !strcmp(s->iformat->name, "rtsp")
         || !strcmp(s->iformat->name, "sdp")
+       || !strcmp(s->iformat->name, "hls,applehttp")
      )
          return 1;

-- 
2.7.4

Thank you,
Adrian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-FFPlay-on-a-HLS-stream-skips-audio-from-time-to-time.patch
Type: text/x-patch
Size: 1547 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160601/4509e12a/attachment.bin>


More information about the ffmpeg-devel mailing list