Opened 9 months ago

Last modified 8 weeks ago

#6112 open defect

ffmpeg not responding, stuck at converting flac to wav file

Reported by: odefta Owned by:
Priority: important Component: avcodec
Version: git-master Keywords: flac deadlock regression
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description (last modified by cehoyos)

I am trying to convert a flac to a wav file.
Unfortunately the ffmpeg is getting stuck in the conversion process.
I have tried with multiple ffmpeg versions (including the last one) and the same issue occurs.

I have attached the source flac file (AFN8429768236582_01_11_FLAC.flac)

How to reproduce:

% ffmpeg.exe -i AFN8429768236582_01_11_FLAC.flac -y -ar 44100 -ac 2 -sample_fmt s16 AFN8429768236582_01_11_wav.wav

ffmpeg version N-67063-g282c935 Copyright (c) 2000-2014 the FFmpeg developers
  built on Oct 20 2014 22:01:37 with gcc 4.9.1 (GCC)

Below if the output with the debug log level:

ffmpeg.exe -v 9 -loglevel 99 -i AFN8429768236582_01_11_FLAC.flac -y -ar 44100 -ac 2 -sample_fmt s16 AFN8429768236582_01_11_wav.wav

ffmpeg version N-67063-g282c935 Copyright (c) 2000-2014 the FFmpeg developers
  built on Oct 20 2014 22:01:37 with gcc 4.9.1 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-
libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --e
nable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libw
ebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      54. 10.100 / 54. 10.100
  libavcodec     56.  8.102 / 56.  8.102
  libavformat    56.  9.101 / 56.  9.101
  libavdevice    56.  1.100 / 56.  1.100
  libavfilter     5.  2.100 /  5.  2.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with argument '9'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '99'.
Reading option '-i' ... matched as input file with argument 'AFN8429768236582_01_11_FLAC.flac'.
Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
Reading option '-ar' ... matched as option 'ar' (set audio sampling rate (in Hz)) with argument '44100'.
Reading option '-ac' ... matched as option 'ac' (set number of audio channels) with argument '2'.
Reading option '-sample_fmt' ... matched as option 'sample_fmt' (set sample format) with argument 's16'.
Reading option 'AFN8429768236582_01_11_wav.wav' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument 9.
Applying option y (overwrite output files) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input file AFN8429768236582_01_11_FLAC.flac.
Successfully parsed a group of options.
Opening an input file: AFN8429768236582_01_11_FLAC.flac.
[flac @ 04485720] Format flac probed with size=2048 and score=50
[flac @ 04485720] Before avformat_find_stream_info() pos: 8288 bytes read:32768 seeks:0
[flac @ 0446fc60] sample/frame number mismatch in adjacent frames
    Last message repeated 14 times
[flac @ 04485720] All info found
[flac @ 04485720] After avformat_find_stream_info() pos: 73728 bytes read:98304 seeks:0 frames:1
Input #0, flac, from 'AFN8429768236582_01_11_FLAC.flac':
  Metadata:
    ENCODER         : Lavf55.12.100
  Duration: 00:01:54.81, start: 0.000000, bitrate: 830 kb/s
    Stream #0:0, 1, 1/44100: Audio: flac, 44100 Hz, stereo, s16
Successfully opened the file.
Parsing a group of options: output file AFN8429768236582_01_11_wav.wav.
Applying option ar (set audio sampling rate (in Hz)) with argument 44100.
Applying option ac (set number of audio channels) with argument 2.
Applying option sample_fmt (set sample format) with argument s16.
Successfully parsed a group of options.
Opening an output file: AFN8429768236582_01_11_wav.wav.
Successfully opened the file.
detected 8 logical cores
[graph 0 input from stream 0:0 @ 0446e820] Setting 'time_base' to value '1/44100'
[graph 0 input from stream 0:0 @ 0446e820] Setting 'sample_rate' to value '44100'
[graph 0 input from stream 0:0 @ 0446e820] Setting 'sample_fmt' to value 's16'
[graph 0 input from stream 0:0 @ 0446e820] Setting 'channel_layout' to value '0x3'
[graph 0 input from stream 0:0 @ 0446e820] tb:1/44100 samplefmt:s16 samplerate:44100 chlayout:0x3
[audio format for output stream 0:0 @ 0446ed80] Setting 'sample_fmts' to value 's16'
[audio format for output stream 0:0 @ 0446ed80] Setting 'sample_rates' to value '44100'
[audio format for output stream 0:0 @ 0446ed80] Setting 'channel_layouts' to value '0x3'
[AVFilterGraph @ 02b3fe80] query_formats: 4 queried, 9 merged, 0 already done, 0 delayed
Output #0, wav, to 'AFN8429768236582_01_11_wav.wav':
  Metadata:
    ISFT            : Lavf56.9.101
    Stream #0:0, 0, 1/44100: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s
    Metadata:
      encoder         : Lavc56.8.102 pcm_s16le
Stream mapping:
  Stream #0:0 -> #0:0 (flac (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
[NULL @ 0446fc60] sample/frame number mismatch in adjacent frames
    Last message repeated 187 times
[NULL @ 0446fc60] sample/frame number mismatch in adjacent frames
    Last message repeated 171 times
[NULL @ 0446fc60] sample/frame number mismatch in adjacent frames
    Last message repeated 157 times
[NULL @ 0446fc60] sample/frame number mismatch in adjacent frames
    Last message repeated 157 times
[NULL @ 0446fc60] sample/frame number mismatch in adjacent frames
    Last message repeated 169 times
[NULL @ 0446fc60] sample/frame number mismatch in adjacent frames
    Last message repeated 7 times
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample/frame number mismatch in adjacent frames
[NULL @ 0446fc60] crc check failed from offset 70650 (frame 436) to 74071 (frame 243)
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample/frame number mismatch in adjacent frames
[NULL @ 0446fc60] crc check failed from offset 61719 (frame 435) to 74071 (frame 243)
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample/frame number mismatch in adjacent frames
[NULL @ 0446fc60] crc check failed from offset 52626 (frame 434) to 74071 (frame 243)
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample/frame number mismatch in adjacent frames
[NULL @ 0446fc60] crc check failed from offset 62483 (frame 436) to 83256 (frame 244)
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample/frame number mismatch in adjacent frames
[NULL @ 0446fc60] crc check failed from offset 53552 (frame 435) to 83256 (frame 244)
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample/frame number mismatch in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample/frame number mismatch in adjacent frames
[NULL @ 0446fc60] crc check failed from offset 53909 (frame 436) to 91005 (frame 245)
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample/frame number mismatch in adjacent frames
    Last message repeated 1 times
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample/frame number mismatch in adjacent frames
    Last message repeated 1 times
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample/frame number mismatch in adjacent frames
    Last message repeated 1 times
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample/frame number mismatch in adjacent frames
    Last message repeated 1 times
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample/frame number mismatch in adjacent frames
    Last message repeated 1 times
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample/frame number mismatch in adjacent frames
    Last message repeated 1 times

Thanks!
Ovidiu

Attachments (1)

AFN8429768236582_01_11_FLAC_cut.flac (1.9 MB) - added by cehoyos 6 months ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 9 months ago by odefta

The flac file was too big to attach (it has ~11 MB), but you can download it from here:
https://medjava.ro/owncloud/index.php/s/DBH2xtmwS9McsgO

Thank you!

comment:2 Changed 9 months ago by cehoyos

  • Component changed from ffmpeg to avcodec
  • Description modified (diff)
  • Keywords flac deadlock regression added
  • Reproduced by developer set
  • Status changed from new to open

Do you know how exactly the file was created?

ffmpeg version N-67063-g282c935 Copyright (c) 2000-2014 the FFmpeg developers

For future tickets: Please remember to test current FFmpeg git head before reporting an issue.

Regression since fc736a99eae194c85fe344a4db895c1cd3493d45, related to ticket #2552.

comment:3 Changed 9 months ago by odefta

I have tried also with the latest windows binary from this url: https://ffmpeg.zeranoe.com/builds/win64/static/ffmpeg-20170130-cba4f0e-win64-static.zip

Regarding the source flac file, I don't have much information about it.

Thanks
Ovidiu

Last edited 9 months ago by odefta (previous) (diff)

comment:4 Changed 6 months ago by odefta

Updated link (the previous one does not work anymore):
https://nocloud.ro/index.php/s/DBH2xtmwS9McsgO

Last edited 6 months ago by odefta (previous) (diff)

Changed 6 months ago by cehoyos

comment:5 Changed 6 months ago by cehoyos

Smaller sample attached, original sample in http://samples.ffmpeg.org/ffmpeg-bugs/trac/ticket6112/

comment:6 Changed 5 months ago by odefta

Any updates on this issue?

Regards
Ovidiu

comment:7 Changed 8 weeks ago by cehoyos

Another sample is attached to ticket #6618.

Note: See TracTickets for help on using tickets.