Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#9072 closed defect (invalid)

Flac header parse error

Reported by: cgbug Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: flac
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Sample file:
https://www.sendspace.com/file/58v4t1

Plays correctly with VLC.

ffmpeg version N-100618-gdb738f51de-gca21cb1e36+2 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 10.2.0 (Rev6, Built by MSYS2 project)
  configuration:  --cc='ccache gcc' --cxx='ccache g++' --disable-autodetect --enable-amf --enable-bzlib --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-iconv --enable-lzma --enable-nvenc --enable-zlib --enable-sdl2 --enable-ffnvcodec --enable-nvdec --enable-cuda-llvm --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libdav1d --enable-libaom --disable-debug --enable-fontconfig --enable-libass --enable-libbluray --enable-libfreetype --enable-libmfx --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libwebp --enable-libxml2 --enable-libzimg --enable-libshine --enable-gpl --enable-avisynth --enable-libxvid --enable-libopenmpt --enable-version3 --enable-librav1e --enable-libsrt --enable-libgsm --enable-libvmaf --enable-libsvtav1 --enable-librtmp --enable-mbedtls --extra-cflags=-DLIBTWOLAME_STATIC --extra-libs=-lstdc++ --extra-cflags=-DLIBXML_STATIC --extra-libs=-liconv --disable-w32threads
  libavutil      56. 63.100 / 56. 63.100
  libavcodec     58.116.100 / 58.116.100
  libavformat    58. 65.101 / 58. 65.101
  libavdevice    58. 11.103 / 58. 11.103
  libavfilter     7. 95.100 /  7. 95.100
  libswscale      5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc    55.  8.100 / 55.  8.100
[flac @ 0000000000374d40] invalid sync code
[flac @ 0000000000374d40] invalid frame header
[flac @ 0000000000374d40] decode_frame() failed
Input #0, flac, from 'header_parse_error.flac':
  Metadata:
    DISCTOTAL       : 1
    TRACKTOTAL      : 4
    TITLE           : ラブソング
    ARTIST          : テレサ・ワーグナー(CV:石見舞菜香)
    ALBUM           : ラブソング
    GENRE           : Anime
    album_artist    : テレサ・ワーグナー(CV:石見舞菜香)
    disc            : 1
    DATE            : 2018
    track           : 1
  Duration: 00:05:19.29, start: -0.092880, bitrate: 1073 kb/s
    Stream #0:0: Audio: flac, 44100 Hz, stereo, s16
    Stream #0:1: Video: png, rgb24(pc), 1080x1080, 90k tbr, 90k tbn, 90k tbc (attached pic)
    Metadata:
      comment         : Cover (front)

Change History (10)

comment:1 by Balling, 3 years ago

Status: newopen

And it plays in ffplay too, what is your point?

comment:2 by Carl Eugen Hoyos, 3 years ago

Keywords: flac added
Resolution: worksforme
Status: openclosed

comment:3 by Balling, 3 years ago

He just did not like the warnings, I suppose.

in reply to:  2 comment:4 by Balling, 3 years ago

Last edited 3 years ago by Balling (previous) (diff)

comment:5 by cgbug, 3 years ago

Playback failed with LAV Filters. I will contact its dev about the issue.

Can you confirm if the "decode_frame() failed" error is due to corrupt data? I was concerned there possibly might be a bug when parsing the first frame.

comment:6 by cgbug, 3 years ago

Resolution: worksforme
Status: closedreopened

Sorry for re-opening this. But I think the errors shown in the log might be due to a bug in the coverart parsing causing it to look in wrong position for first frame.

comment:7 by Carl Eugen Hoyos, 3 years ago

What do you mean with I think?
Which application can deal with the file you provided?

comment:8 by Elon Musk, 3 years ago

Resolution: invalid
Status: reopenedclosed

File is not supported at all with reference flac implementation.
File is 100% invalid.

comment:9 by cgbug, 3 years ago

For example Audacity has not issue opening it (with libflac) and shows no errors in its log.

There have been other bugs in FFmpeg in the past with parsing coverart/id3/metadata. So I am just trying to be helpful with identifying potential bugs, as this looked similar in my eyes. Not wanting to be annoying.

in reply to:  8 comment:10 by Carl Eugen Hoyos, 3 years ago

Replying to richardpl:

File is not supported at all with reference flac implementation.

I get bit-identical output with the reference decoder and FFmpeg.

Note: See TracTickets for help on using tickets.