Page 1 of 1

ffmpeg-ss: error with a flac uncompressed file

Posted: Fri Jan 11, 2019 6:01 pm
by rdsu
Hi,

I'm using ffmpeg-4.1-win64-static, and an album where all files are FLAC Uncompressed.

When I try to execute the following command, I get error only on the second song:

ffmpeg -loglevel repeat+level+verbose -ss 15 -i "02 - Sad But True.flac" out.flac 2> log.txt

Code: Select all

[info] ffmpeg version 4.1 Copyright (c) 2000-2018 the FFmpeg developers
[info]   built with gcc 8.2.1 (GCC) 20181017
[info]   configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
[info]   libavutil      56. 22.100 / 56. 22.100
[info]   libavcodec     58. 35.100 / 58. 35.100
[info]   libavformat    58. 20.100 / 58. 20.100
[info]   libavdevice    58.  5.100 / 58.  5.100
[info]   libavfilter     7. 40.101 /  7. 40.101
[info]   libswscale      5.  3.100 /  5.  3.100
[info]   libswresample   3.  3.100 /  3.  3.100
[info]   libpostproc    55.  3.100 / 55.  3.100
[info] Input #0, flac, from '02 - Sad But True.flac':
[info]   Metadata:
[info]     ALBUM           : Metallica (Studio Master 24bit/96kHz)
[info]     album_artist    : Metallica
[info]     ARTIST          : Metallica
[info]     GENRE           : Pop/Rock
[info]     HDTRACKS        : www.hdtracks.com
[info]     TITLE           : Sad But True
[info]     DATE            : 1991
[info]     track           : 02
[info]     TRACKTOTAL      : 12
[info]   Duration: 00:05:24.71, start: 0.000000, bitrate: 4610 kb/s
[info]     Stream #0:0: Audio: flac, 96000 Hz, stereo, s32 (24 bit)
[info]     Stream #0:1: Video: mjpeg, 1 reference frame, yuvj420p(pc, bt470bg/unknown/unknown, center), 500x500 [SAR 600:600 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
[info]     Metadata:
[info]       comment         : Cover (front)
[info] Stream mapping:
[info]   Stream #0:1 -> #0:0 (mjpeg (native) -> png (native))
[info]   Stream #0:0 -> #0:1 (flac (native) -> flac (native))
[info] Press [q] to stop, [?] for help
[graph 0 input from stream 0:1 @ 00000229aeadc300] [verbose] w:500 h:500 pixfmt:yuvj420p tb:1/90000 fr:90000/1 sar:600/600 sws_param:flags=2
[auto_scaler_0 @ 00000229ae741ec0] [verbose] w:iw h:ih flags:'bicubic' interl:0
[format @ 00000229aeaf62c0] [verbose] auto-inserting filter 'auto_scaler_0' between the filter 'Parsed_null_0' and the filter 'format'
[swscaler @ 00000229aeaf8b00] [warning] deprecated pixel format used, make sure you did set range correctly
[auto_scaler_0 @ 00000229ae741ec0] [verbose] w:500 h:500 fmt:yuvj420p sar:600/600 -> w:500 h:500 fmt:rgb24 sar:1/1 flags:0x4
[flac @ 00000229ae681fc0] [warning] Frame rate very high for a muxer not efficiently supporting it.
Please consider specifying a lower framerate, a different muxer or -vsync 2
[flac @ 00000229ae6d4940] [error] blocksize 16384 > 4608
[flac @ 00000229ae6d4940] [error] decode_frame() failed
[error] Error while decoding stream #0:0: Invalid data found when processing input
[graph_1_in_0_0 @ 00000229ae741fc0] [verbose] tb:1/49920 samplefmt:s32 samplerate:49920 chlayout:0x4
[info] Output #0, flac, to 'out.flac':
[info]   Metadata:
[info]     ALBUM           : Metallica (Studio Master 24bit/96kHz)
[info]     album_artist    : Metallica
[info]     ARTIST          : Metallica
[info]     GENRE           : Pop/Rock
[info]     HDTRACKS        : www.hdtracks.com
[info]     TITLE           : Sad But True
[info]     DATE            : 1991
[info]     track           : 02
[info]     TRACKTOTAL      : 12
[info]     encoder         : Lavf58.20.100
[info]     Stream #0:0: Video: png, 1 reference frame, rgb24(center), 500x500 [SAR 1:1 DAR 1:1], q=2-31, 200 kb/s, 90k fps, 90k tbn, 90k tbc
[info]     Metadata:
[info]       comment         : Cover (front)
[info]       encoder         : Lavc58.35.100 png
[info]     Stream #0:1: Audio: flac, 49920 Hz, mono, s32 (24 bit), 128 kb/s
[info]     Metadata:
[info]       encoder         : Lavc58.35.100 flac
[verbose] No more output streams to write to, finishing.
[flac @ 00000229ae681fc0] [warning] No packets were sent for some of the attached pictures.
[info] frame=    0 fps=0.0 q=0.0 Lsize=       8kB time=00:00:00.00 bitrate=N/A speed=   0x    
[info] video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[verbose] Input file #0 (02 - Sad But True.flac):
[verbose]   Input stream #0:0 (audio): 1 packets read (13296 bytes); 0 frames decoded (0 samples); 
[verbose]   Input stream #0:1 (video): 1 packets read (9605 bytes); 1 frames decoded; 
[verbose]   Total: 2 packets (22901 bytes) demuxed
[verbose] Output file #0 (out.flac):
[verbose]   Output stream #0:0 (video): 0 frames encoded; 0 packets muxed (0 bytes); 
[verbose]   Output stream #0:1 (audio): 0 frames encoded (0 samples); 1 packets muxed (0 bytes); 
[verbose]   Total: 1 packets (0 bytes) muxed
[AVIOContext @ 00000229ae6d2440] [verbose] Statistics: 0 seeks, 1 writeouts
[AVIOContext @ 00000229ae6838c0] [verbose] Statistics: 577507 bytes read, 7 seeks
You can download the file here: https://cp.sync.com/dl/21868a960/f2ieac ... d-mxwi2fn8

I don't know if this is an issue with FFmpeg.

Thanks

Re: ffmpeg-ss: error with a flac uncompressed file

Posted: Thu Jan 31, 2019 1:47 pm
by rdsu
FFmpeg developer already confirmed this as an important issue:
https://trac.ffmpeg.org/ticket/7684