Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#983 closed defect (fixed)

No video in applehttp stream

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

Description

$ ffplay http://wow01.105.net/live/virgin1/playlist.m3u8 -codec libx264
ffplay version 0.9.1, Copyright (c) 2003-2012 the FFmpeg developers

built on Jan 23 2012 08:27:29 with gcc 4.6.2
configuration: --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libdirac --disable-decoder=libdirac --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/i386-linux-gnu --disable-vda --enable-avconv --enable-libdc1394 --disable-altivec --disable-armv5te --disable-armv6 --disable-vis --shlibdir=/usr/lib/i386-linux-gnu
libavutil 51. 32. 0 / 51. 32. 0
libavcodec 53. 42. 4 / 53. 42. 4
libavformat 53. 24. 2 / 53. 24. 2
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 53. 0 / 2. 53. 0
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0

[applehttp @ 0x958f740] max_analyze_duration 5000000 reached at 5013333
[applehttp @ 0x958f740] Estimating duration from bitrate, this may be inaccurate
Input #0, applehttp, from 'http://wow01.105.net/live/virgin1/playlist.m3u8':

Duration: N/A, bitrate: N/A

Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), 90k tbr, 90k tbn, 180k tbc
Metadata:

variant_bitrate : 1122866

Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 0 channels, s16
Metadata:

variant_bitrate : 1122866

Stream #0:2: Audio: aac, 48000 Hz, stereo, s16
Metadata:

variant_bitrate : 64000

[buffersink @ 0xb3300840] auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter 'out'
Impossible to convert between the formats supported by the filter 'src' and the filter 'auto-inserted scale 0'
[aac @ 0x95b5440] channel element 1.0 is not allocated
[aac @ 0x95b5440] channel element 2.4 is not allocated

Change History (6)

comment:1 by Carl Eugen Hoyos, 12 years ago

Component: FFplayundetermined
Keywords: applehttp added
Status: newopen
Version: git-master

Audio works fine afaict, is there an application that shows video for the link?

comment:2 by Giuseppe, 12 years ago

@cehoyos: mplayer shows video for the link

comment:3 by Carl Eugen Hoyos, 12 years ago

Keywords: h264 added
Reproduced by developer: set
Summary: FFplay: Impossible to convert between the formats supported by the filter 'src' and the filter 'auto-inserted scale 0'No video in applehttp stream

Correct (MPlayer is using FFmpeg's applehttp code to display the video).

$ ffmpeg -i http://wow01.105.net/live/virgin1/playlist.m3u8 -an out.avi
ffmpeg version N-37587-g787528b Copyright (c) 2000-2012 the FFmpeg developers
  built on Feb  7 2012 00:36:14 with gcc 4.5.3
  configuration: --cc='/usr/local/gcc-4.5.3/bin/gcc -m32'
  libavutil      51. 38.100 / 51. 38.100
  libavcodec     54.  1.100 / 54.  1.100
  libavformat    54.  0.100 / 54.  0.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 62.100 /  2. 62.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
[applehttp @ 0x8dd6aa0] max_analyze_duration 5000000 reached at 5013333
[applehttp @ 0x8dd6aa0] decoding for stream 0 failed
[applehttp @ 0x8dd6aa0] Could not find codec parameters (Video: h264 ([27][0][0][0] / 0x001B))
[applehttp @ 0x8dd6aa0] decoding for stream 1 failed
[applehttp @ 0x8dd6aa0] Could not find codec parameters (Audio: aac ([15][0][0][0] / 0x000F), 0 channels, s16)
[applehttp @ 0x8dd6aa0] Estimating duration from bitrate, this may be inaccurate
Input #0, applehttp, from 'http://wow01.105.net/live/virgin1/playlist.m3u8':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), 90k tbr, 90k tbn, 180k tbc
    Metadata:
      variant_bitrate : 1085212
    Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 0 channels, s16
    Metadata:
      variant_bitrate : 1085212
    Stream #0:2: Audio: aac, 48000 Hz, stereo, s16
    Metadata:
      variant_bitrate : 64000
Output #0, avi, to 'out.avi':
Output file #0 does not contain any stream

comment:4 by reimar, 12 years ago

That URL is (kind of?) a playlist:
EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1059736
http://wow01.105.net/live/virgin1/playlist.m3u8?wowzasessionid=1622745554
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=64000
http://wow01.105.net/live/virgin1/playlist.m3u8?wowzaaudioonly&wowzasessionid=1622745554

Both using the first one or using hls+http:// with the original URL results in output with video.

The issue seems to be that FFmpeg tries to get multiple variants at the same time, and the server does not like that at all.
Sent a patch/hack to the list.

comment:5 by Michael Niedermayer, 12 years ago

Resolution: fixed
Status: openclosed

comment:6 by Carl Eugen Hoyos, 12 years ago

Keywords: hls added; applehttp removed
Note: See TracTickets for help on using tickets.