Opened 6 years ago

Closed 2 months ago

#6977 closed defect (fixed)

Flash video stream not detected

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

Description

Latest ffmpeg yields error for some flv files:

[flv @ 0x55992fe78ac0] Missing AMF_END_OF_OBJECT in AMF_DATA_TYPE_MIXEDARRAY, found 0
[flv @ 0x55992fe78ac0] Packet mismatch -603979776 220 5497
[flv @ 0x55992fe78ac0] Could not find codec parameters for stream 0 (Audio: mp3, 22050 Hz, stereo, s16p, 64 kb/s): unspecified frame size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
...
[aac @ 0x558e4fadeda0] Trying to remove 1024 samples, but the queue is empty
[mp4 @ 0x558e4fadd440] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[mp4 @ 0x558e4fadd440] Encoder did not produce proper pts, making some up.
[aac @ 0x558e4fadeda0] Trying to remove 1024 samples, but the queue is empty

Increasing 'analyzeduration' and 'probesize' won't help. Output file has no video stream.
Older versions (2.6.x) work as expected, so I assume this is regression bug.
Also I can fix flv file metadata with yamdi, after that everything works fine:

yamdi -i bad.flv -o good.flv

How to reproduce:

ffmpeg -i bad.flv output.mp4
ffmpeg version N-89872-g2e96f52780 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 6.3.0 (Debian 6.3.0-18) 20170516

Attachments (3)

AMF_END_OF_OBJECT_trim.flv (2.4 MB ) - added by Alexander 6 years ago.
Missing_AMF_END_OF_OBJECT_cut.flv (2.4 MB ) - added by Carl Eugen Hoyos 6 years ago.
sample_cut.flv (2.4 MB ) - added by Carl Eugen Hoyos 6 years ago.

Change History (7)

by Alexander, 6 years ago

Attachment: AMF_END_OF_OBJECT_trim.flv added

comment:1 by Carl Eugen Hoyos, 6 years ago

Component: undeterminedavformat
Keywords: regression added
Priority: normalimportant
Reproduced by developer: set
Status: newopen
Summary: Missing AMF_END_OF_OBJECT in AMF_DATA_TYPE_MIXEDARRAY for some FLV filesFlash video stream not detected

For future tickets: Please remember to always provide the command line you tested together with the complete, uncut console output.
Regression since cbbd906be6150be38dfc14b6bc67dcac8da8aea4, related to tickets #4867, #4903, #5648 and #6149.

$ ffmpeg -i AMF_END_OF_OBJECT_trim.flv
ffmpeg version N-89873-g9b1ec24 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 6.3.0 (GCC)
  configuration: --enable-gpl
  libavutil      56.  7.100 / 56.  7.100
  libavcodec     58.  9.100 / 58.  9.100
  libavformat    58.  5.100 / 58.  5.100
  libavdevice    58.  0.101 / 58.  0.101
  libavfilter     7. 11.101 /  7. 11.101
  libswscale      5.  0.101 /  5.  0.101
  libswresample   3.  0.101 /  3.  0.101
  libpostproc    55.  0.100 / 55.  0.100
[flv @ 0x3dc5340] Missing AMF_END_OF_OBJECT in AMF_DATA_TYPE_MIXEDARRAY, found 0
[flv @ 0x3dc5340] Packet mismatch -603979776 220 5497
[flv @ 0x3dc5340] Could not find codec parameters for stream 0 (Audio: mp3, 22050 Hz, stereo, s16p, 64 kb/s): unspecified frame size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, flv, from 'AMF_END_OF_OBJECT_trim.flv':
  Metadata:
    creator         : ВКадре.ру
    title           : Последние минуты жизни!!!(страшно)
    author          : Константин <<[Ё]пТ[э]>> Белов
    created_at      : 19 декабря 2007
    metadatacreator : Yet Another Metadata Injector for FLV - Version 1.2-OA-modified
    hasKeyframes    : true
    hasVideo        : true
    hasAudio        : true
    hasMetadata     : true
    canSeekToEnd    : true
    datasize        : 7913959
    videosize       : 6221963
    audiosize       : 1650496
    lasttimestamp   : 195
    lastkeyframetimestamp: 194
    lastkeyframelocation: 7904870
  Duration: 00:03:15.08, start: 0.000000, bitrate: 104 kb/s
    Stream #0:0: Audio: mp3, 22050 Hz, stereo, s16p, 64 kb/s
At least one output file must be specified

comment:2 by ConcludingPrague, 6 years ago

Just click "Download": https://anonfile.com/T31bGfe7b5/Missing_AMF_END_OF_OBJECT.flv

Same with fresh build from ffmpeg.zeranoe.com

>ffplay.exe Missing_AMF_END_OF_OBJECT.flv

ffplay version N-91189-gea0010bf9c Copyright (c) 2003-2018 the FFmpeg developers
  built with gcc 7.3.0 (GCC)
  configuration: --disable-static --enable-shared --enable-gpl --enable-version3 [...]
  libavutil      56. 18.102 / 56. 18.102
  libavcodec     58. 19.104 / 58. 19.104
  libavformat    58. 17.100 / 58. 17.100
  libavdevice    58.  4.100 / 58.  4.100
  libavfilter     7. 24.100 /  7. 24.100
  libswscale      5.  2.100 /  5.  2.100
  libswresample   3.  2.100 /  3.  2.100
  libpostproc    55.  2.100 / 55.  2.100
[flv @ 0000000000409300] Missing AMF_END_OF_OBJECT in AMF_DATA_TYPE_MIXEDARRAY, found 0
[flv @ 0000000000409300] Packet mismatch 0 218 218
V:\Missing_AMF_END_OF_OBJECT.flv: could not find codec parameters

by Carl Eugen Hoyos, 6 years ago

by Carl Eugen Hoyos, 6 years ago

Attachment: sample_cut.flv added

comment:3 by Carl Eugen Hoyos, 6 years ago

Additional sample by Christian Schnellrieder attached:
http://ffmpeg.org/pipermail/ffmpeg-user/2018-August/040964.html

comment:4 by Marth64, 2 months ago

Resolution: fixed
Status: openclosed

Closing due to inactivity >5 years, also user reported the issue was fixed: https://ffmpeg.org//pipermail/ffmpeg-user/2018-August/040975.html

Note: See TracTickets for help on using tickets.