[FFmpeg-devel] HLS problem

aviad rozenhek aviadr1
Wed Dec 8 11:07:13 CET 2010


On Sun, Dec 5, 2010 at 13:40, Martin Storsj? <martin at martin.st> wrote:

> On Sun, 5 Dec 2010, aviad rozenhek wrote:
>
> > I have an HLS stream sample, which is validated as working properly on a
> > [mac] quicktime player [only the mac players supports HLS]
> > however it doesnt play correctly in ffplay, and outputs some weird
> errors.
>
> In which way doesn't it play correctly in ffplay? It seems to play just
> fine to me, except that the server feeds data too slowly to be played back
> properly here. With QuickTime Player, it seems to buffer much more data
> before starting to play it. If I pause it in ffplay and allow it to buffer
> up a bit more data before continuing, it plays just fine. I do get the
> same errors, though.
>
> Also, the stream is weird. It lacks the #EXT-X-ENDLIST tag, indicating
> that it is a non-live, finished stream, so both libavformat's code and
> QuickTime Player start near the end of the clip, and try to reload it
> regularly to find new segments, even if no new segments show up.
>
> // Martin
>

you are probably correct that the playback problems i'm seeing are due to
buffering issues, but still the slew of aac decoding error logs is
worrisome. do you think its a bug in the aac encoder, missing data, or
what?!?
my tests show that the aac error logs still happen when I let ffplay buffer
for a long time before playing.

the stream is generated by envivio encoder. and I have a *live* sample as
well,
here is an ffplay session's log with the worrisome AAC logs

>ffplay http://71.170.161.23:8080/downloads/ch3/03.m3u8
FFplay version SVN-r25862, Copyright (c) 2003-2010 the FFmpeg developers
  built on Dec  3 2010 04:07:09 with gcc 4.4.2
  configuration: --enable-gpl --enable-version3 --enable-libgsm
--enable-pthread
s --enable-libvorbis --enable-libtheora --enable-libspeex
--enable-libmp3lame --
enable-libopenjpeg --enable-libschroedinger --enable-libopencore_amrwb
--enable-
libopencore_amrnb --enable-libvpx --disable-decoder=libvpx --arch=x86
--enable-r
untime-cpudetect --enable-libxvid --enable-libx264 --extra-libs='-lx264
-lpthrea
d' --enable-librtmp --extra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm'
--target-o
s=mingw32 --enable-avisynth --cross-prefix=i686-mingw32- --cc='ccache
i686-mingw
32-gcc' --enable-memalign-hack
  libavutil     50.33. 0 / 50.33. 0
  libavcore      0.14. 0 /  0.14. 0
  libavcodec    52.97. 2 / 52.97. 2
  libavformat   52.87. 1 / 52.87. 1
  libavdevice   52. 2. 2 / 52. 2. 2
  libavfilter    1.67. 0 /  1.67. 0
  libswscale     0.12. 0 /  0.12. 0
[applehttp @ 030ec990] Receiving 1 variant streams
*[aac @ 030f6f90] channel element 0.0 is not allocated*
[applehttp @ 030ec990] Estimating duration from bitrate, this may be
inaccurate
Input #0, applehttp, from 'http://71.170.161.23:8080/downloads/ch3/03.m3u8':
  Duration: N/A, start: 51986.243167, bitrate: N/A
    Stream #0.0: Video: h264, yuv420p, 480x480 [PAR 16:9 DAR 16:9], 23.98
tbr, 9
0k tbn, 180k tbc
    Stream #0.1: Audio: aac, 48000 Hz, stereo, s16
*[aac @ 030f6f90] channel element 0.0 is not allocated*
*[aac @ 030f6f90] Input buffer exhausted before END element found   f=0/0*
*51[aac @ 030f6f90] channel element 3.4 is not allocated 0B f=0/0*
51998.79 A-V: -0.0skipping 2 segments ahead, expired from playlists
*[aac @ 030f6f90] Input buffer exhausted before END element found*
*[aac @ 030f6f90] channel element 2.12 is not allocated*
*[aac @ 030f6f90] Input buffer exhausted before END element found*
*[aac @ 030f6f90] channel element 0.0 is not allocated*
skipping 2 segments ahead, expired from playlistssq=    0B f=0/0
*[aac @ 030f6f90] Input buffer exhausted before END element found*
*[aac @ 030f6f90] Sample rate index in program config element does not match
the*
*sample rate index configured by the container.*
*[aac @ 030f6f90] Input buffer exhausted before END element found*
*[aac @ 030f6f90] Reserved bit set.*
*[aac @ 030f6f90] Input buffer exhausted before END element found*
*[aac @ 030f6f90] channel element 0.0 is not allocated*
52039.88 A-V:  0.017 s:0.0 aq=   22KB vq=  254KB sq=    0B f=0/0
    Last message repeated 1 times

>ffplay http://71.170.161.23:8080/downloads/ch3/01.m3u8
FFplay version SVN-r25862, Copyright (c) 2003-2010 the FFmpeg developers
  built on Dec  3 2010 04:07:09 with gcc 4.4.2
  configuration: --enable-gpl --enable-version3 --enable-libgsm
--enable-pthread
s --enable-libvorbis --enable-libtheora --enable-libspeex
--enable-libmp3lame --
enable-libopenjpeg --enable-libschroedinger --enable-libopencore_amrwb
--enable-
libopencore_amrnb --enable-libvpx --disable-decoder=libvpx --arch=x86
--enable-r
untime-cpudetect --enable-libxvid --enable-libx264 --extra-libs='-lx264
-lpthrea
d' --enable-librtmp --extra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm'
--target-o
s=mingw32 --enable-avisynth --cross-prefix=i686-mingw32- --cc='ccache
i686-mingw
32-gcc' --enable-memalign-hack
  libavutil     50.33. 0 / 50.33. 0
  libavcore      0.14. 0 /  0.14. 0
  libavcodec    52.97. 2 / 52.97. 2
  libavformat   52.87. 1 / 52.87. 1
  libavdevice   52. 2. 2 / 52. 2. 2
  libavfilter    1.67. 0 /  1.67. 0
  libswscale     0.12. 0 /  0.12. 0
[applehttp @ 0312c990] Receiving 1 variant streams
[aac @ 03136f90] Input buffer exhausted before END element found
[applehttp @ 0312c990] Estimating duration from bitrate, this may be
inaccurate
Input #0, applehttp, from 'http://71.170.161.23:8080/downloads/ch3/01.m3u8':
  Duration: N/A, start: 52091.245833, bitrate: N/A
    Stream #0.0: Video: h264, yuv420p, 480x320 [PAR 32:27 DAR 16:9], 23.98
tbr,
90k tbn, 180k tbc
    Stream #0.1: Audio: aac, 48000 Hz, stereo, s16
*[aac @ 03136f90] Input buffer exhausted before END element found*
    Last message repeated 1 times63KB vq=  164KB sq=    0B f=0/0   f=0/0
*[aac @ 03136f90] channel element 0.0 is not allocated*
*5[aac @ 03136f90] Input buffer exhausted before END element found*
*[aac @ 03136f90] channel element 3.13 is not allocated  0B f=0/0*
*[aac @ 03136f90] Input buffer exhausted before END element found*
*[aac @ 03136f90] channel element 2.9 is not allocated*
*[aac @ 03136f90] Input buffer exhausted before END element found*
    Last message repeated 2 times51KB vq=   92KB sq=    0B f=0/0
*[aac @ 03136f90] channel element 0.8 is not allocated*
*[aac @ 03136f90] Input buffer exhausted before END element found*
*[aac @ 03136f90] Sample rate index in program config element does not match
the*
*sample rate index configured by the container.*
*[aac @ 03136f90] Input buffer exhausted before END element found*
52127.09 A-V:  0.016 s:1.2 aq=   72KB vq=  152KB sq=    0B f=0/0

-- 
Aviad Rozenhek



More information about the ffmpeg-devel mailing list