Opened 4 years ago

Closed 4 years ago

#1919 closed defect (invalid)

audio file is treated as video

Reported by: henry Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords: flac
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
user lastest ffmpeg to check a FLAC audio file , and it detected file include five video streams , actually they are cover graphs .
and usually , ffmpeg will convert first video stream , this may cause real video stream(if list in posterior, like #0:3,#0:4..etc.) can't be converted.
How to reproduce:

% ffmpeg  -i  diatonis_trajectories_08_the-secret-universe_4424_6-chan.flac
ffmpeg version
built on ... built on Sep 29 2012 16:12:43 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4)
  configuration: --prefix=/usr/local/ffmpeg-1.0 --enable-postproc --
enable-avfilter --enable-libopencore-amrnb --enable-libopencore-amrwb -
-enable-version3 --enable-libmp3lame --disable-shared --enable-libx264 
--enable-pthreads --enable-libfaac --enable-nonfree --enable-gpl --
enable-libgsm --enable-libnut --enable-libspeex --enable-libtheora --
enable-libvorbis --enable-libopenjpeg --enable-libxvid --enable-bzlib -
-enable-libschroedinger --enable-zlib --enable-libvpx --enable-libxavs 
--extra-cflags=-I/usr/local/enctools/include --extra-ldflags=-L/usr/local/enctools/lib
  libavutil      51. 73.101 / 51. 73.101
  libavcodec     54. 59.100 / 54. 59.100
  libavformat    54. 29.104 / 54. 29.104
  libavdevice    54.  2.101 / 54.  2.101
  libavfilter     3. 17.100 /  3. 17.100
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[flac @ 0x1e37240] Stream #0: not enough frames to estimate rate; consider increasing probesize
[flac @ 0x1e37240] Stream #1: not enough frames to estimate rate; consider increasing probesize
[flac @ 0x1e37240] Stream #2: not enough frames to estimate rate; consider increasing probesize
[flac @ 0x1e37240] Stream #3: not enough frames to estimate rate; consider increasing probesize
[flac @ 0x1e37240] Stream #4: not enough frames to estimate rate; consider increasing probesize
[flac @ 0x1e37240] Stream #5: not enough frames to estimate rate; consider increasing probesize
[flac @ 0x1e37240] Could not find codec parameters for stream 4 (Video: mjpeg, 1509x1234): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[flac @ 0x1e37240] Could not find codec parameters for stream 5 (Video: mjpeg, 720x480): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, flac, from 'diatonis_trajectories_08_the-secret-universe_4424_6-chan.flac':
  Metadata:
    ALBUM           : Trajectories
    ALBUM ARTIST    : Diatonis
    ARTIST          : Diatonis
    COMMENT         : ©2003-2011 Stuart White
    COMPOSER        : Stuart White
    DATE            : 2003
    disc            : 1
    GENRE           : Ambient
    PERFORMER       : Stuart White
    TITLE           : The Secret Universe
    TOTALDISCS      : 1
    TOTALTRACKS     : 8
    track           : 8
    WAVEFORMATEXTENSIBLE_CHANNEL_MASK: 0x003F
  Duration: 00:06:47.54, bitrate: 3003 kb/s
    Stream #0:0: Audio: flac, 44100 Hz, 5.1(side), s32
    Stream #0:1: Video: mjpeg, yuvj444p, 1458x1494 [SAR 300:300 DAR 81:83], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      comment         : Cover (front)
    Stream #0:2: Video: mjpeg, yuvj444p, 1000x780 [SAR 300:300 DAR 50:39], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      comment         : Cover (back)
    Stream #0:3: Video: mjpeg, yuvj444p, 1476x1475 [SAR 300:300 DAR 1476:1475], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      comment         : Media (e.g. label side of CD)
    Stream #0:4: Video: mjpeg, 1509x1234, 90k tbr, 90k tbn, 90k tbc
    Metadata:
      comment         : Artist/performer
    Stream #0:5: Video: mjpeg, 720x480, 90k tbr, 90k tbn, 90k tbc
    Metadata:
      comment         : Other file icon
At least one output file must be specified

but other version of ffmpeg no such issue(cover graph didn't be detected/listed):

ffmpeg  -i  diatonis_trajectories_08_the-secret-universe_4424_6-chan.flac ffmpeg version 0.8.7, Copyright (c) 2000-2011 the FFmpeg developers
  built on Jan 16 2012 15:16:29 with gcc 4.4.5 20101112 (Red Hat 4.4.5-2)
  configuration: --prefix=/usr/local/enctools --enable-postproc --
enable-avfilter --enable-libopencore-amrnb --enable-libopencore-amrwb -
-enable-version3 --enable-libmp3lame --disable-shared --enable-libx264 
--enable-pthreads --enable-libfaac --enable-nonfree --enable-gpl --
enable-libgsm --enable-libnut --enable-libspeex --enable-libtheora --
enable-libvorbis --enable-libopenjpeg --enable-libxvid --enable-bzlib -
-enable-libschroedinger --enable-zlib --enable-small --disable-network 
--disable-debug --extra-cflags=-I/usr/local/enctools/include --extra-
ldflags=-L/usr/local/enctools/lib
  libavutil    51.  9. 1 / 51.  9. 1
  libavcodec   53.  8. 0 / 53.  8. 0
  libavformat  53.  5. 0 / 53.  5. 0
  libavdevice  53.  1. 1 / 53.  1. 1
  libavfilter   2. 23. 0 /  2. 23. 0
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  51.  2. 0 / 51.  2. 0
[flac @ 0x175f400] max_analyze_duration 5000000 reached at 5015510
Input #0, flac, from 'diatonis_trajectories_08_the-secret-universe_4424_6-chan.flac':
  Metadata:
    ALBUM           : Trajectories
    ALBUM ARTIST    : Diatonis
    ARTIST          : Diatonis
    COMMENT         : ©2003-2011 Stuart White
    COMPOSER        : Stuart White
    DATE            : 2003
    disc            : 1
    GENRE           : Ambient
    PERFORMER       : Stuart White
    TITLE           : The Secret Universe
    TOTALDISCS      : 1
    TOTALTRACKS     : 8
    track           : 8
    WAVEFORMATEXTENSIBLE_CHANNEL_MASK: 0x003F
  Duration: 00:06:47.54, bitrate: 3003 kb/s
    Stream #0.0: Audio: flac, 44100 Hz, 5.1, s32
At least one output file must be specified

Change History (7)

comment:1 in reply to: ↑ description Changed 4 years ago by cehoyos

  • Component changed from FFmpeg to undetermined
  • Keywords flac added; audio video cover removed

Replying to henry:

ffmpeg will convert first video stream , this may cause real video stream(if list in posterior, like #0:3,#0:4..etc.) can't be converted.

Please add a command line (together with complete, uncut console output) that allows to actually reproduce this problem (that a real video stream can't be converted).
I hope you agree that the fact that ffmpeg detects the cover art (that is what you command line shows) is not a bug by itself.

And please do not remove the version information from ffmpeg output.

Version 0, edited 4 years ago by cehoyos (next)

comment:2 Changed 4 years ago by cehoyos

  • Version changed from 1.0 to unspecified

comment:3 Changed 4 years ago by henry

oh , sorry, below are complete console output:

ffmpeg  -i  diatonis_trajectories_08_the-secret-universe_4424_6-chan.flac
ffmpeg version 1.0 Copyright (c) 2000-2012 the FFmpeg developers
  built on Sep 29 2012 16:12:43 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4)
  configuration: --prefix=/usr/local/ffmpeg-1.0 --enable-postproc --enable-avfilter --
enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-libmp3lame --
disable-shared --enable-libx264 --enable-pthreads --enable-libfaac --enable-nonfree --
enable-gpl --enable-libgsm --enable-libnut --enable-libspeex --enable-libtheora --enable-
libvorbis --enable-libopenjpeg --enable-libxvid --enable-bzlib --enable-libschroedinger --
enable-zlib --enable-libvpx --enable-libxavs --extra-cflags=-I/usr/local/enctools/include --
extra-ldflags=-L/usr/local/enctools/lib
  libavutil      51. 73.101 / 51. 73.101
  libavcodec     54. 59.100 / 54. 59.100
  libavformat    54. 29.104 / 54. 29.104
  libavdevice    54.  2.101 / 54.  2.101
  libavfilter     3. 17.100 /  3. 17.100
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[flac @ 0x1e37240] Stream #0: not enough frames to estimate rate; consider increasing probesize
[flac @ 0x1e37240] Stream #1: not enough frames to estimate rate; consider increasing probesize
[flac @ 0x1e37240] Stream #2: not enough frames to estimate rate; consider increasing probesize
[flac @ 0x1e37240] Stream #3: not enough frames to estimate rate; consider increasing probesize
[flac @ 0x1e37240] Stream #4: not enough frames to estimate rate; consider increasing probesize
[flac @ 0x1e37240] Stream #5: not enough frames to estimate rate; consider increasing probesize
[flac @ 0x1e37240] Could not find codec parameters for stream 4 (Video: mjpeg, 1509x1234): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[flac @ 0x1e37240] Could not find codec parameters for stream 5 (Video: mjpeg, 720x480): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, flac, from 'diatonis_trajectories_08_the-secret-universe_4424_6-chan.flac':
  Metadata:
    ALBUM           : Trajectories
    ALBUM ARTIST    : Diatonis
    ARTIST          : Diatonis
    COMMENT         : ©2003-2011 Stuart White
    COMPOSER        : Stuart White
    DATE            : 2003
    disc            : 1
    GENRE           : Ambient
    PERFORMER       : Stuart White
    TITLE           : The Secret Universe
    TOTALDISCS      : 1
    TOTALTRACKS     : 8
    track           : 8
    WAVEFORMATEXTENSIBLE_CHANNEL_MASK: 0x003F
  Duration: 00:06:47.54, bitrate: 3003 kb/s
    Stream #0:0: Audio: flac, 44100 Hz, 5.1(side), s32
    Stream #0:1: Video: mjpeg, yuvj444p, 1458x1494 [SAR 300:300 DAR 81:83], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      comment         : Cover (front)
    Stream #0:2: Video: mjpeg, yuvj444p, 1000x780 [SAR 300:300 DAR 50:39], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      comment         : Cover (back)
    Stream #0:3: Video: mjpeg, yuvj444p, 1476x1475 [SAR 300:300 DAR 1476:1475], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      comment         : Media (e.g. label side of CD)
    Stream #0:4: Video: mjpeg, 1509x1234, 90k tbr, 90k tbn, 90k tbc
    Metadata:
      comment         : Artist/performer
    Stream #0:5: Video: mjpeg, 720x480, 90k tbr, 90k tbn, 90k tbc
    Metadata:
      comment         : Other file icon
At least one output file must be specified

comment:4 follow-up: Changed 4 years ago by henry

I hope you agree that the fact that ffmpeg detects the cover art (that is what your command line shows) is not a bug by itself.

IC , that means we need detect if video stream is cover art or real video stream before covnerting in ffmpeg 1.0 ?

comment:5 in reply to: ↑ 4 Changed 4 years ago by cehoyos

Replying to henry:

I hope you agree that the fact that ffmpeg detects the cover art (that is what your command line shows) is not a bug by itself.

IC , that means we need detect if video stream is cover art or real video stream before covnerting in ffmpeg 1.0 ?

It may be sufficient if you can post a command line that works fine with an older version of ffmpeg but fails (or produces unexpected output) with current ffmpeg.

So far, you have posted a command line - "ffmpeg -i diatonis_trajectories_08_the-secret-universe_4424_6-chan.flac' - that shows no cover art for ffmpeg 0.8, but shows cover art for ffmpeg 1.0. Assuming that there is cover art stored in your input file, I don't think this is sufficient explanation for a bug in ffmpeg 1.0, or don't you agree? (One could even argue that your command line implicates that there is a bug in ffmpeg 0.8 and that the fix should be backported, but patches that do not fix a regression and do not fix a security issue are normally not backported.)

comment:6 follow-up: Changed 4 years ago by henry

yes , maybe this is not a bug for ffmpeg 1.0.
seems no cover art in video file , only for audio media file.
and how to identify if a video stream is cover art or real video stream ?

comment:7 in reply to: ↑ 6 Changed 4 years ago by cehoyos

  • Resolution set to invalid
  • Status changed from new to closed

Replying to henry:

yes , maybe this is not a bug for ffmpeg 1.0.

Then I will close this ticket.

seems no cover art in video file , only for audio media file.

I may misunderstand this sentence, but I believe ticket #1714 describes a sample with "cover art in video file": http://samples.ffmpeg.org/ffmpeg-bugs/trac/ticket1714/

and how to identify if a video stream is cover art or real video stream ?

I am not sure I understand this question. As said, if there is a command line that either fails or produces unexpected output because cover art is found in a media file, please post that command line (preferable with complete, uncut console output), just like it was done for ticket #1714.

Note: See TracTickets for help on using tickets.