title
Products            Buy            Support Forum            Professional            About            Codec Central
 

issue with flac uncompressed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rdsu

    • May 2012
    • 6

    issue with flac uncompressed

    Hi,

    I've my music library converted to FLAC Uncompressed, and I have an issue using FFmpeg with at least one file.

    With this file as FLAC Uncompressed, I get two flac errors:

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

    [flac @ 000001640a2b4a40] [error] blocksize 16384 > 4608
    [flac @ 000001640a2b4a40] [error] decode_frame() failed
    [error] Error while decoding stream *0:0: Invalid data found when processing input

    Code:
    [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.uncompressed.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 @ 000001640a324e00] [verbose] w:500 h:500 pixfmt:yuvj420p tb:1/90000 fr:90000/1 sar:600/600 sws_param:flags=2
    [auto_scaler_0 @ 000001640a6bfe00] [verbose] w:iw h:ih flags:'bicubic' interl:0
    [format @ 000001640a6bf9c0] [verbose] auto-inserting filter 'auto_scaler_0' between the filter 'Parsed_null_0' and the filter 'format'
    [swscaler @ 000001640a6d76c0] [warning] deprecated pixel format used, make sure you did set range correctly
    [auto_scaler_0 @ 000001640a6bfe00] [verbose] w:500 h:500 fmt:yuvj420p sar:600/600 -> w:500 h:500 fmt:rgb24 sar:1/1 flags:0x4
    [flac @ 000001640a2620c0] [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 @ 000001640a2b4a40] [error] blocksize 16384 > 4608
    [flac @ 000001640a2b4a40] [error] decode_frame() failed
    [error] Error while decoding stream *0:0: Invalid data found when processing input
    [graph_1_in_0_0 @ 000001640a32db00] [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 @ 000001640a2620c0] [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.uncompressed.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 @ 000001640a2b2540] [verbose] Statistics: 0 seeks, 1 writeouts
    [AVIOContext @ 000001640a2639c0] [verbose] Statistics: 577507 bytes read, 7 seeks
    With this file as FLAC level 0, it works fine:
    ffmpeg -loglevel repeat+level+verbose -ss 15 -i "02 - Sad But True.level0.flac" out.flac 2> log.txt
    Code:
    [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.level0.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: 3434 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 @ 000001c8853dc300] [verbose] w:500 h:500 pixfmt:yuvj420p tb:1/90000 fr:90000/1 sar:600/600 sws_param:flags=2
    [auto_scaler_0 @ 000001c8853eee80] [verbose] w:iw h:ih flags:'bicubic' interl:0
    [format @ 000001c8853eebc0] [verbose] auto-inserting filter 'auto_scaler_0' between the filter 'Parsed_null_0' and the filter 'format'
    [swscaler @ 000001c885f03b00] [warning] deprecated pixel format used, make sure you did set range correctly
    [auto_scaler_0 @ 000001c8853eee80] [verbose] w:500 h:500 fmt:yuvj420p sar:600/600 -> w:500 h:500 fmt:rgb24 sar:1/1 flags:0x4
    [flac @ 000001c885322080] [warning] Frame rate very high for a muxer not efficiently supporting it.
    Please consider specifying a lower framerate, a different muxer or -vsync 2
    [graph_1_in_0_0 @ 000001c885f019c0] [verbose] tb:1/96000 samplefmt:s32 samplerate:96000 chlayout:0x3
    [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, 96000 Hz, stereo, s32 (24 bit), 128 kb/s
    [info]     Metadata:
    [info]       encoder         : Lavc58.35.100 flac
    [info] frame=    0 fps=0.0 q=0.0 size=       0kB time=00:01:23.28 bitrate=   0.0kbits/s speed= 166x    
    [info] frame=    0 fps=0.0 q=0.0 size=       0kB time=00:02:50.32 bitrate=   0.0kbits/s speed= 170x    
    [info] frame=    0 fps=0.0 q=0.0 size=       0kB time=00:04:17.87 bitrate=   0.0kbits/s speed= 172x    
    [verbose] No more output streams to write to, finishing.
    [flac @ 000001c885322080] [warning] No packets were sent for some of the attached pictures.
    [info] frame=    0 fps=0.0 q=0.0 Lsize=  117467kB time=00:05:09.70 bitrate=3107.1kbits/s speed= 166x    
    [info] video:0kB audio:117458kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.007065%
    [verbose] Input file *0 (02 - Sad But True.level0.flac):
    [verbose]   Input stream *0:0 (audio): 6453 packets read (133107743 bytes); 6453 frames decoded (29734064 samples); 
    [verbose]   Input stream *0:1 (video): 1 packets read (9605 bytes); 1 frames decoded; 
    [verbose]   Total: 6454 packets (133117348 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): 3630 frames encoded (29731760 samples); 3631 packets muxed (120277417 bytes); 
    [verbose]   Total: 3631 packets (120277417 bytes) muxed
    [AVIOContext @ 000001c885372540] [verbose] Statistics: 2 seeks, 460 writeouts
    [AVIOContext @ 000001c885323980] [verbose] Statistics: 134303203 bytes read, 12 seeks
    Where you have both files, and a flac uncompressed file that works fine:


    I would like to know if this is an issue of dBpoweramp convertion to FLAC Uncompressed, with this specific file, or something else...?

    Thanks
  • Spoon
    Administrator
    • Apr 2002
    • 44511

    #2
    Re: issue with flac uncompressed

    dBpoweramp uses the official FLAC libraries to convert, even uncompressed. FFMPEG wrote their own flac decoding code (they do not use the official flac libraries to decode), hence the possible incompatibility.
    Spoon
    www.dbpoweramp.com

    Comment

    • rdsu

      • May 2012
      • 6

      #3
      Re: issue with flac uncompressed

      You don't think that is necessary to analyze this file?

      I will try to get some support from FFmpeg about this issue.

      Thanks

      Comment

      • Spoon
        Administrator
        • Apr 2002
        • 44511

        #4
        Re: issue with flac uncompressed

        If you can convert the file with dBpoweramp to Wave, then any program using the standard flac libraries (which is pretty much every audio program, except ffmpeg) will be able read the file.
        Spoon
        www.dbpoweramp.com

        Comment

        • rdsu

          • May 2012
          • 6

          #5
          Re: issue with flac uncompressed

          FFmpeg can read that file, but not when the seek option (-ss) is used.

          If I can get some support from FFmpeg, I will let you know the result...

          Comment

          • rdsu

            • May 2012
            • 6

            #6
            Re: issue with flac uncompressed

            FFmpeg developer confirmed the issue: https://trac.ffmpeg.org/ticket/7684

            Comment

            Working...

            ]]>