Opened 10 years ago

Closed 9 years ago

Last modified 9 years ago

#3814 closed defect (needs_more_info)

Apple HTTP / HLS audio stream sometimes glitches or stops playing altogether

Reported by: iceman12c Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: hls m3u8
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
With http://radio_ckis-lh.akamaihd.net/i/TOR925_1@176956/master.m3u8, and running ffplay, in about 50% of the runs it glitches (seems to be because it doesn't properly detect the embedded mjpeg stream #0:1). In other instances, it properly detects the mjpeg stream but the audio queue runs down to 0 and audio stops playing.

Happens on both 2.3 release and master.

How to reproduce:

GLITCH INSTANCE (notice no mjpeg #0:1 stream):

$ ./ffplay "http://radio_ckis-lh.akamaihd.net/i/TOR925_1@176956/master.m3u8"
ffplay version N-65064-gd554d00 Copyright (c) 2003-2014 the FFmpeg developers
  built on Jul 28 2014 09:51:23 with Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
  configuration: 
  libavutil      52. 92.101 / 52. 92.101
  libavcodec     55. 71.100 / 55. 71.100
  libavformat    55. 49.100 / 55. 49.100
  libavdevice    55. 13.102 / 55. 13.102
  libavfilter     4. 11.102 /  4. 11.102
  libswscale      2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100
[hls,applehttp @ 0x7fa73901ee00] Estimating duration from bitrate, this may be inaccurate
Input #0, hls,applehttp, from 'http://radio_ckis-lh.akamaihd.net/i/TOR925_1@176956/master.m3u8':
  Duration: 00:00:00.03, start: 16048.711433, bitrate: 88 kb/s
  Program 0 
    Metadata:
      variant_bitrate : 48000
    Stream #0:0: Audio: aac, 44100 Hz, stereo, fltp, 40 kb/s
    Metadata:
      variant_bitrate : 48000
  Program 1 
    Metadata:
      variant_bitrate : 48000
    Stream #0:1: Audio: aac, 44100 Hz, stereo, fltp, 47 kb/s
    Metadata:
      variant_bitrate : 48000
[hls,applehttp @ 0x7fa73901ee00] No longer receiving playlist 0
16052.44 M-A:  0.000 fd=   0 aq=    2KB vq=    0KB sq=    0B f=0/0 

====

STOPS PLAYING INSTANCE (notice mjpeg detected but aq size is much higher than previous instance and eventually runs down to 0):

$ ./ffplay "http://radio_ckis-lh.akamaihd.net/i/TOR925_1@176956/master.m3u8"
ffplay version N-65064-gd554d00 Copyright (c) 2003-2014 the FFmpeg developers
  built on Jul 28 2014 09:51:23 with Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
  configuration: 
  libavutil      52. 92.101 / 52. 92.101
  libavcodec     55. 71.100 / 55. 71.100
  libavformat    55. 49.100 / 55. 49.100
  libavdevice    55. 13.102 / 55. 13.102
  libavfilter     4. 11.102 /  4. 11.102
  libswscale      2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100
[hls,applehttp @ 0x7f89b8814400] Estimating duration from bitrate, this may be inaccurate
Input #0, hls,applehttp, from 'http://radio_ckis-lh.akamaihd.net/i/TOR925_1@176956/master.m3u8':
  Duration: 00:00:00.02, start: 16098.704433, bitrate: 106 kb/s
  Program 0 
    Metadata:
      variant_bitrate : 48000
    Stream #0:0: Audio: aac, 44100 Hz, stereo, fltp, 47 kb/s
    Metadata:
      variant_bitrate : 48000
    Stream #0:1: Video: mjpeg, yuvj420p(pc, bt470bg), 25x25 [SAR 1:1 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      variant_bitrate : 48000
  Program 1 
    Metadata:
      variant_bitrate : 48000
    Stream #0:2: Audio: aac, 44100 Hz, stereo, fltp, 59 kb/s
    Metadata:
      variant_bitrate : 48000
    Stream #0:3: Video: mjpeg, yuvj420p(pc, bt470bg), 25x25 [SAR 1:1 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      variant_bitrate : 48000
[hls,applehttp @ 0x7f89b8814400] No longer receiving playlist 1
[swscaler @ 0x7f89ba044a00] deprecated pixel format used, make sure you did set range correctly
16107.53 A-V:    nan fd=   0 aq=  176KB vq=    0KB sq=    0B f=0/0   


Change History (3)

comment:1 by iceman12c, 10 years ago

Also wanted to mention that this stream plays fine in Apple's QuickTime.

comment:2 by compn, 9 years ago

Resolution: needs_more_info
Status: newclosed

http url 403 now. closing bug.

comment:3 by Carl Eugen Hoyos, 9 years ago

Keywords: hls added; Apple HTTP HLS removed
Note: See TracTickets for help on using tickets.