Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#4867 closed defect (fixed)

Current git master fails to parse some flv files

Reported by: Timo R. Owned by:
Priority: important Component: avformat
Version: git-master Keywords: flv regression
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no


This seems to affect primarily all flv files creates by OBS(, but as it works fine with 2.8 and earlier versions, it's a regression in ffmpeg.

How to reproduce:

% ./ffprobe ~/Downloads/test.flv 
ffprobe version N-75430-g0cfdaf4 Copyright (c) 2007-2015 the FFmpeg developers
  built with gcc 4.9.3 (Gentoo 4.9.3 p1.1, pie-0.6.2)
  libavutil      55.  2.100 / 55.  2.100
  libavcodec     57.  3.100 / 57.  3.100
  libavformat    57.  2.100 / 57.  2.100
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6.  5.100 /  6.  5.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.100 /  2.  0.100
[flv @ 0x223eba0] Packet mismatch 347 344
[flv @ 0x223eba0] Could not find codec parameters for stream 0 (Video: none, none, 30720 kb/s): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[flv @ 0x223eba0] Could not find codec parameters for stream 1 (Audio: none, 0 channels, 327 kb/s): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
/home/timo/Downloads/test.flv: End of file

Increasing analyzeduation/probesize does not make any difference.

Sample is attached, and i'm going through a bisect right now, will report back when done.

Attachments (1)

test.flv (154.9 KB ) - added by Timo R. 9 years ago.

Download all attachments as: .zip

Change History (5)

by Timo R., 9 years ago

Attachment: test.flv added

comment:2 by Michael Niedermayer, 9 years ago

Resolution: fixed
Status: newclosed

Workaround added in e3cf978cdda91df923e3e5d1f1e66133dbbe6218.
Can you (or someone else) please inform the encoder/muxer authors about this so they can check that their muxer is generating valid files

comment:3 by Carl Eugen Hoyos, 9 years ago

Component: undeterminedavformat
Keywords: flv added
Priority: normalimportant

comment:4 by r1ch, 9 years ago

I'm one of the developers of Open Broadcaster Software. I took a look into our FLV output code and it does seem like we've been writing the wrong tag length when generating FLV files. This will be fixed in our next release. Thanks for bringing this to our attention!

Note: See TracTickets for help on using tickets.