[FFmpeg-user] FFMPEG 3.2.2 - "could not find codec parameters"

Caio Cesar Moreira profissional at gmail.com
Sun Dec 18 13:59:38 EET 2016


Hi,

I'm trying to dump video frames from a TS file but for some reason ffmpeg
is failing.

Command used: ffmpeg -i playlist.m3u8 -vcodec -r 1 "output_%04d.png"
-loglevel 99

m3u8 content:

#EXTM3U

#EXT-X-VERSION:3

#EXT-X-TARGETDURATION:5

#EXT-X-MEDIA-SEQUENCE:160983

#EXT-X-PROGRAM-DATE-TIME:2016-12-17 13:08:01+00:00

#EXT-X-KEY:METHOD=AES-128,URI="key.bin"

#EXTINF:5.0000,

myfile.ts

#EXT-X-ENDLIST

myfile.ts and key.bin are in the same folder as the m3u8 file.

==============
OUTPUT:
==============

ffmpeg version 3.2.2 Copyright (c) 2000-2016 the FFmpeg developers

  built with llvm-gcc 4.2.1 (LLVM build 2336.11.00)

  configuration: --prefix=/Volumes/Ramdisk/sw --enable-gpl
--enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx
--disable-decoder=libvpx --enable-libmp3lame --enable-libtheora
--enable-libvorbis --enable-libx264 --enable-avfilter
--enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters
--enable-libgsm --enable-libvidstab --enable-libx265 --disable-doc
--arch=x86_64 --enable-runtime-cpudetect

  libavutil      55. 34.100 / 55. 34.100

  libavcodec     57. 64.101 / 57. 64.101

  libavformat    57. 56.100 / 57. 56.100

  libavdevice    57.  1.100 / 57.  1.100

  libavfilter     6. 65.100 /  6. 65.100

  libswscale      4.  2.100 /  4.  2.100

  libswresample   2.  3.100 /  2.  3.100

  libpostproc    54.  1.100 / 54.  1.100

Splitting the commandline.

Reading option '-i' ... matched as input url with argument 'playlist.m3u8'.

Reading option '-vcodec' ... matched as option 'vcodec' (force video codec
('copy' to copy stream)) with argument '-r'.

Reading option '1' ... matched as output url.

Reading option 'output_%04d.png' ... matched as output url.

Reading option '-loglevel' ... matched as option 'loglevel' (set logging
level) with argument '99'.

Finished splitting the commandline.

Parsing a group of options: global .

Applying option loglevel (set logging level) with argument 99.

Successfully parsed a group of options.

Parsing a group of options: input url playlist.m3u8.

Successfully parsed a group of options.

Opening an input file: playlist.m3u8.

[file @ 0x7fd5f850daa0] Setting default whitelist 'file,crypto'

Probing hls,applehttp score:100 size:245

[hls,applehttp @ 0x7fd5f9002600] Format hls,applehttp probed with size=2048
and score=100

[hls,applehttp @ 0x7fd5f9002600] new_program: id=0x0000

[hls,applehttp @ 0x7fd5f9002600] HLS request for url
'globo-sp1_2564-1481980676-18500029200.ts', offset 0, playlist 0

[AVIOContext @ 0x7fd5f850e1a0] Statistics: 16 bytes read, 0 seeks

Probing mp3 score:1 size:2048

Probing mpeg score:25 size:2048

Probing mpegts score:50 size:2048

Format mpegts probed with size=2048 and score=50

score: 44, dvhs_score: -1, fec_score: -3

[mpegts @ 0x7fd5f900c200] Filter: pid=0x11 type=1

[mpegts @ 0x7fd5f900c200] Filter: pid=0x0 type=1

[AVIOContext @ 0x7fd5f850e1c0] Statistics: 1733924 bytes read, 0 seeks

[mpegts @ 0x7fd5f900c200] tuning done

[hls,applehttp @ 0x7fd5f9002600] Before avformat_find_stream_info() pos:
245 bytes read:245 seeks:0 nb_streams:0

[hls,applehttp @ 0x7fd5f9002600] No longer receiving playlist 0

[hls,applehttp @ 0x7fd5f9002600] format: start_time: -9223372036854.775
duration: 5.000 bitrate=0 kb/s

[hls,applehttp @ 0x7fd5f9002600] After avformat_find_stream_info() pos: 245
bytes read:245 seeks:0 frames:0

playlist.m3u8: could not find codec parameters

[AVIOContext @ 0x7fd5f850db20] Statistics: 245 bytes read, 0 seeks

==============

On a Macbook Pro: Darwin 15.6.0 Darwin Kernel Version 15.6.0: Thu Sep  1
15:01:16 PDT 2016; root:xnu-3248.60.11~2/RELEASE_X86_64 x86_64
I tried an older version of FFMPEG (3.1.5) and I get another error message
for the same command line, which is: Output file #0 does not contain any
stream.

Any idea of what's going on?
Thanks in advance!
Caio


More information about the ffmpeg-user mailing list