[FFmpeg-trac] #8585(undetermined:new): Silence/volume problem when converting ATRAC files

FFmpeg trac at avcodec.org
Tue Mar 31 21:56:15 EEST 2020


#8585: Silence/volume problem when converting ATRAC files
-------------------------------------+-------------------------------------
             Reporter:  lukpac       |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  git-master   |               Resolution:
             Keywords:  atrac        |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by lukpac):

 I just uploaded 6 files:

 Hero full clip.aea
 Hero split clip 1.aea
 Hero split clip 2.aea
 Hero full clip.wav
 Hero split clip 1.wav
 Hero split clip 2.wav

 Hero full clip.aea is a 44 second clip that I recorded from CD to MD
 (SP/ATRAC1). After copying the file from MD, I added a track marker to
 split the track, and then copied the resulting 2 tracks for comparison.
 From what I can see looking in a text editor, the audio data in the "full
 clip" file is identical to that in the two "split clip" files, and
 converting them to WAV indicates they are identical as well, except for
 the beginning of Hero split clip 2.aea, which exhibits a 230 sample fade-
 up.

 Hopefully that helps identify the issue. If ATRAC3plus files would also be
 helpful, please let me know.

 Below is the conversion information for the 3 files.

 Hero full clip.wav
 C:\Program Files\ffmpeg-20200324-e5d25d1-win64-static\bin>ffmpeg -v 9
 -loglevel 99 -i "F:\ffmpeg_test\Hero full clip.aea" "F:\ffmpeg_test\Hero
 full clip.wav"
 ffmpeg version git-2020-03-24-e5d25d1 Copyright (c) 2000-2020 the FFmpeg
 developers
   built with gcc 9.2.1 (GCC) 20200122
   configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-
 fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-
 libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame
 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
 --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr
 --enable-libsrt --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-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-
 d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
 --enable-libopenmpt --enable-amf
   libavutil      56. 42.101 / 56. 42.101
   libavcodec     58. 76.100 / 58. 76.100
   libavformat    58. 42.100 / 58. 42.100
   libavdevice    58.  9.103 / 58.  9.103
   libavfilter     7. 77.100 /  7. 77.100
   libswscale      5.  6.101 /  5.  6.101
   libswresample   3.  6.100 /  3.  6.100
   libpostproc    55.  6.100 / 55.  6.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 url with argument
 'F:\ffmpeg_test\Hero full clip.aea'.
 Reading option 'F:\ffmpeg_test\Hero full clip.wav' ... matched as output
 url.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option v (set logging level) with argument 9.
 Successfully parsed a group of options.
 Parsing a group of options: input url F:\ffmpeg_test\Hero full clip.aea.
 Successfully parsed a group of options.
 Opening an input file: F:\ffmpeg_test\Hero full clip.aea.
 [NULL @ 000001c1d67cac40] Opening 'F:\ffmpeg_test\Hero full clip.aea' for
 reading
 [file @ 000001c1d67cbdc0] Setting default whitelist 'file,crypto,data'
 [aea @ 000001c1d67cac40] Format aea detected only with low score of 1,
 misdetection possible!
 [aea @ 000001c1d67cac40] Before avformat_find_stream_info() pos: 2048
 bytes read:1048576 seeks:0 nb_streams:1
 [aea @ 000001c1d67cac40] All info found
 [aea @ 000001c1d67cac40] Estimating duration from bitrate, this may be
 inaccurate
 [aea @ 000001c1d67cac40] stream 0: start_time: -102481911520608.625
 duration: 44.537
 [aea @ 000001c1d67cac40] format: start_time: -9223372036854.775 duration:
 44.537 (estimate from bit rate) bitrate=292 kb/s
 [aea @ 000001c1d67cac40] After avformat_find_stream_info() pos: 23248
 bytes read:1048576 seeks:0 frames:50
 Input #0, aea, from 'F:\ffmpeg_test\Hero full clip.aea':
   Duration: 00:00:44.54, bitrate: 292 kb/s
     Stream #0:0, 50, 1/90000: Audio: atrac1, 44100 Hz, stereo, fltp, 292
 kb/s
 Successfully opened the file.
 Parsing a group of options: output url F:\ffmpeg_test\Hero full clip.wav.
 Successfully parsed a group of options.
 Opening an output file: F:\ffmpeg_test\Hero full clip.wav.
 [file @ 000001c1d67d2d00] Setting default whitelist 'file,crypto,data'
 Successfully opened the file.
 Stream mapping:
   Stream #0:0 -> #0:0 (atrac1 (native) -> pcm_s16le (native))
 Press [q] to stop, [?] for help
 cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless
 if it occurs once at the start per stream)
 detected 8 logical cores
 [graph_0_in_0_0 @ 000001c1d68e6040] Setting 'time_base' to value '1/44100'
 [graph_0_in_0_0 @ 000001c1d68e6040] Setting 'sample_rate' to value '44100'
 [graph_0_in_0_0 @ 000001c1d68e6040] Setting 'sample_fmt' to value 'fltp'
 [graph_0_in_0_0 @ 000001c1d68e6040] Setting 'channel_layout' to value
 '0x3'
 [graph_0_in_0_0 @ 000001c1d68e6040] tb:1/44100 samplefmt:fltp
 samplerate:44100 chlayout:0x3
 [format_out_0_0 @ 000001c1d68e7e00] Setting 'sample_fmts' to value 's16'
 [format_out_0_0 @ 000001c1d68e7e00] auto-inserting filter
 'auto_resampler_0' between the filter 'Parsed_anull_0' and the filter
 'format_out_0_0'
 [AVFilterGraph @ 000001c1d689e240] query_formats: 4 queried, 6 merged, 3
 already done, 0 delayed
 [auto_resampler_0 @ 000001c1d68e9400] [SWR @ 000001c1d68e9640] Using fltp
 internally between filters
 [auto_resampler_0 @ 000001c1d68e9400] ch:2 chl:stereo fmt:fltp r:44100Hz
 -> ch:2 chl:stereo fmt:s16 r:44100Hz
 Output #0, wav, to 'F:\ffmpeg_test\Hero full clip.wav':
   Metadata:
     ISFT            : Lavf58.42.100
     Stream #0:0, 0, 1/44100: Audio: pcm_s16le ([1][0][0][0] / 0x0001),
 44100 Hz, stereo, s16, 1411 kb/s
     Metadata:
       encoder         : Lavc58.76.100 pcm_s16le
 F:\ffmpeg_test\Hero full clip.aea: I/O error
 [out_0_0 @ 000001c1d68e7bc0] EOF on sink link out_0_0:default.
 No more output streams to write to, finishing.
 size=    7668kB time=00:00:44.51 bitrate=1411.2kbits/s speed= 570x
 video:0kB audio:7668kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 0.000993%
 Input file #0 (F:\ffmpeg_test\Hero full clip.aea):
   Input stream #0:0 (audio): 3834 packets read (1625616 bytes); 3834
 frames decoded (1963008 samples);
   Total: 3834 packets (1625616 bytes) demuxed
 Output file #0 (F:\ffmpeg_test\Hero full clip.wav):
   Output stream #0:0 (audio): 3834 frames encoded (1963008 samples); 3834
 packets muxed (7852032 bytes);
   Total: 3834 packets (7852032 bytes) muxed
 3834 frames successfully decoded, 0 decoding errors
 [AVIOContext @ 000001c1d67d2e00] Statistics: 4 seeks, 32 writeouts
 [AVIOContext @ 000001c1d67d4040] Statistics: 1627664 bytes read, 0 seeks


 Hero split clip 1.wav
 C:\Program Files\ffmpeg-20200324-e5d25d1-win64-static\bin>ffmpeg -v 9
 -loglevel 99 -i "F:\ffmpeg_test\Hero split clip 1.aea"
 "F:\ffmpeg_test\Hero split clip 1.wav"
 ffmpeg version git-2020-03-24-e5d25d1 Copyright (c) 2000-2020 the FFmpeg
 developers
   built with gcc 9.2.1 (GCC) 20200122
   configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-
 fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-
 libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame
 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
 --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr
 --enable-libsrt --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-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-
 d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
 --enable-libopenmpt --enable-amf
   libavutil      56. 42.101 / 56. 42.101
   libavcodec     58. 76.100 / 58. 76.100
   libavformat    58. 42.100 / 58. 42.100
   libavdevice    58.  9.103 / 58.  9.103
   libavfilter     7. 77.100 /  7. 77.100
   libswscale      5.  6.101 /  5.  6.101
   libswresample   3.  6.100 /  3.  6.100
   libpostproc    55.  6.100 / 55.  6.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 url with argument
 'F:\ffmpeg_test\Hero split clip 1.aea'.
 Reading option 'F:\ffmpeg_test\Hero split clip 1.wav' ... matched as
 output url.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option v (set logging level) with argument 9.
 Successfully parsed a group of options.
 Parsing a group of options: input url F:\ffmpeg_test\Hero split clip
 1.aea.
 Successfully parsed a group of options.
 Opening an input file: F:\ffmpeg_test\Hero split clip 1.aea.
 [NULL @ 0000017c5e6aac40] Opening 'F:\ffmpeg_test\Hero split clip 1.aea'
 for reading
 [file @ 0000017c5e6abdc0] Setting default whitelist 'file,crypto,data'
 [aea @ 0000017c5e6aac40] Format aea detected only with low score of 1,
 misdetection possible!
 [aea @ 0000017c5e6aac40] Before avformat_find_stream_info() pos: 2048
 bytes read:1048576 seeks:0 nb_streams:1
 [aea @ 0000017c5e6aac40] All info found
 [aea @ 0000017c5e6aac40] Estimating duration from bitrate, this may be
 inaccurate
 [aea @ 0000017c5e6aac40] stream 0: start_time: -102481911520608.625
 duration: 32.410
 [aea @ 0000017c5e6aac40] format: start_time: -9223372036854.775 duration:
 32.410 (estimate from bit rate) bitrate=292 kb/s
 [aea @ 0000017c5e6aac40] After avformat_find_stream_info() pos: 23248
 bytes read:1048576 seeks:0 frames:50
 Input #0, aea, from 'F:\ffmpeg_test\Hero split clip 1.aea':
   Duration: 00:00:32.41, bitrate: 292 kb/s
     Stream #0:0, 50, 1/90000: Audio: atrac1, 44100 Hz, stereo, fltp, 292
 kb/s
 Successfully opened the file.
 Parsing a group of options: output url F:\ffmpeg_test\Hero split clip
 1.wav.
 Successfully parsed a group of options.
 Opening an output file: F:\ffmpeg_test\Hero split clip 1.wav.
 [file @ 0000017c5e6b2d00] Setting default whitelist 'file,crypto,data'
 Successfully opened the file.
 Stream mapping:
   Stream #0:0 -> #0:0 (atrac1 (native) -> pcm_s16le (native))
 Press [q] to stop, [?] for help
 cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless
 if it occurs once at the start per stream)
 detected 8 logical cores
 [graph_0_in_0_0 @ 0000017c5e7c6140] Setting 'time_base' to value '1/44100'
 [graph_0_in_0_0 @ 0000017c5e7c6140] Setting 'sample_rate' to value '44100'
 [graph_0_in_0_0 @ 0000017c5e7c6140] Setting 'sample_fmt' to value 'fltp'
 [graph_0_in_0_0 @ 0000017c5e7c6140] Setting 'channel_layout' to value
 '0x3'
 [graph_0_in_0_0 @ 0000017c5e7c6140] tb:1/44100 samplefmt:fltp
 samplerate:44100 chlayout:0x3
 [format_out_0_0 @ 0000017c5e7c7ec0] Setting 'sample_fmts' to value 's16'
 [format_out_0_0 @ 0000017c5e7c7ec0] auto-inserting filter
 'auto_resampler_0' between the filter 'Parsed_anull_0' and the filter
 'format_out_0_0'
 [AVFilterGraph @ 0000017c5e77e4c0] query_formats: 4 queried, 6 merged, 3
 already done, 0 delayed
 [auto_resampler_0 @ 0000017c5e7c9500] [SWR @ 0000017c5e7c9700] Using fltp
 internally between filters
 [auto_resampler_0 @ 0000017c5e7c9500] ch:2 chl:stereo fmt:fltp r:44100Hz
 -> ch:2 chl:stereo fmt:s16 r:44100Hz
 Output #0, wav, to 'F:\ffmpeg_test\Hero split clip 1.wav':
   Metadata:
     ISFT            : Lavf58.42.100
     Stream #0:0, 0, 1/44100: Audio: pcm_s16le ([1][0][0][0] / 0x0001),
 44100 Hz, stereo, s16, 1411 kb/s
     Metadata:
       encoder         : Lavc58.76.100 pcm_s16le
 F:\ffmpeg_test\Hero split clip 1.aea: I/O error
 [out_0_0 @ 0000017c5e7c7c80] EOF on sink link out_0_0:default.
 No more output streams to write to, finishing.
 size=    5580kB time=00:00:32.39 bitrate=1411.2kbits/s speed= 415x
 video:0kB audio:5580kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 0.001365%
 Input file #0 (F:\ffmpeg_test\Hero split clip 1.aea):
   Input stream #0:0 (audio): 2790 packets read (1182960 bytes); 2790
 frames decoded (1428480 samples);
   Total: 2790 packets (1182960 bytes) demuxed
 Output file #0 (F:\ffmpeg_test\Hero split clip 1.wav):
   Output stream #0:0 (audio): 2790 frames encoded (1428480 samples); 2790
 packets muxed (5713920 bytes);
   Total: 2790 packets (5713920 bytes) muxed
 2790 frames successfully decoded, 0 decoding errors
 [AVIOContext @ 0000017c5e6b2e00] Statistics: 4 seeks, 24 writeouts
 [AVIOContext @ 0000017c5e6b4040] Statistics: 1185008 bytes read, 0 seeks


 Hero split clip 2.wav
 C:\Program Files\ffmpeg-20200324-e5d25d1-win64-static\bin>ffmpeg -v 9
 -loglevel 99 -i "F:\ffmpeg_test\Hero split clip 2.aea"
 "F:\ffmpeg_test\Hero split clip 2.wav"
 ffmpeg version git-2020-03-24-e5d25d1 Copyright (c) 2000-2020 the FFmpeg
 developers
   built with gcc 9.2.1 (GCC) 20200122
   configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-
 fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-
 libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame
 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
 --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr
 --enable-libsrt --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-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-
 d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
 --enable-libopenmpt --enable-amf
   libavutil      56. 42.101 / 56. 42.101
   libavcodec     58. 76.100 / 58. 76.100
   libavformat    58. 42.100 / 58. 42.100
   libavdevice    58.  9.103 / 58.  9.103
   libavfilter     7. 77.100 /  7. 77.100
   libswscale      5.  6.101 /  5.  6.101
   libswresample   3.  6.100 /  3.  6.100
   libpostproc    55.  6.100 / 55.  6.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 url with argument
 'F:\ffmpeg_test\Hero split clip 2.aea'.
 Reading option 'F:\ffmpeg_test\Hero split clip 2.wav' ... matched as
 output url.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option v (set logging level) with argument 9.
 Successfully parsed a group of options.
 Parsing a group of options: input url F:\ffmpeg_test\Hero split clip
 2.aea.
 Successfully parsed a group of options.
 Opening an input file: F:\ffmpeg_test\Hero split clip 2.aea.
 [NULL @ 00000274d9d7ac40] Opening 'F:\ffmpeg_test\Hero split clip 2.aea'
 for reading
 [file @ 00000274d9d7bdc0] Setting default whitelist 'file,crypto,data'
 [aea @ 00000274d9d7ac40] Format aea detected only with low score of 1,
 misdetection possible!
 [aea @ 00000274d9d7ac40] Before avformat_find_stream_info() pos: 2048
 bytes read:444704 seeks:0 nb_streams:1
 [aea @ 00000274d9d7ac40] All info found
 [aea @ 00000274d9d7ac40] Estimating duration from bitrate, this may be
 inaccurate
 [aea @ 00000274d9d7ac40] stream 0: start_time: -102481911520608.625
 duration: 12.128
 [aea @ 00000274d9d7ac40] format: start_time: -9223372036854.775 duration:
 12.128 (estimate from bit rate) bitrate=293 kb/s
 [aea @ 00000274d9d7ac40] After avformat_find_stream_info() pos: 23248
 bytes read:444704 seeks:0 frames:50
 Input #0, aea, from 'F:\ffmpeg_test\Hero split clip 2.aea':
   Duration: 00:00:12.13, bitrate: 293 kb/s
     Stream #0:0, 50, 1/90000: Audio: atrac1, 44100 Hz, stereo, fltp, 292
 kb/s
 Successfully opened the file.
 Parsing a group of options: output url F:\ffmpeg_test\Hero split clip
 2.wav.
 Successfully parsed a group of options.
 Opening an output file: F:\ffmpeg_test\Hero split clip 2.wav.
 [file @ 00000274d9d82d00] Setting default whitelist 'file,crypto,data'
 Successfully opened the file.
 Stream mapping:
   Stream #0:0 -> #0:0 (atrac1 (native) -> pcm_s16le (native))
 Press [q] to stop, [?] for help
 cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless
 if it occurs once at the start per stream)
 detected 8 logical cores
 [graph_0_in_0_0 @ 00000274da236140] Setting 'time_base' to value '1/44100'
 [graph_0_in_0_0 @ 00000274da236140] Setting 'sample_rate' to value '44100'
 [graph_0_in_0_0 @ 00000274da236140] Setting 'sample_fmt' to value 'fltp'
 [graph_0_in_0_0 @ 00000274da236140] Setting 'channel_layout' to value
 '0x3'
 [graph_0_in_0_0 @ 00000274da236140] tb:1/44100 samplefmt:fltp
 samplerate:44100 chlayout:0x3
 [format_out_0_0 @ 00000274da237ec0] Setting 'sample_fmts' to value 's16'
 [format_out_0_0 @ 00000274da237ec0] auto-inserting filter
 'auto_resampler_0' between the filter 'Parsed_anull_0' and the filter
 'format_out_0_0'
 [AVFilterGraph @ 00000274da1edd00] query_formats: 4 queried, 6 merged, 3
 already done, 0 delayed
 [auto_resampler_0 @ 00000274da239500] [SWR @ 00000274da239700] Using fltp
 internally between filters
 [auto_resampler_0 @ 00000274da239500] ch:2 chl:stereo fmt:fltp r:44100Hz
 -> ch:2 chl:stereo fmt:s16 r:44100Hz
 Output #0, wav, to 'F:\ffmpeg_test\Hero split clip 2.wav':
   Metadata:
     ISFT            : Lavf58.42.100
     Stream #0:0, 0, 1/44100: Audio: pcm_s16le ([1][0][0][0] / 0x0001),
 44100 Hz, stereo, s16, 1411 kb/s
     Metadata:
       encoder         : Lavc58.76.100 pcm_s16le
 F:\ffmpeg_test\Hero split clip 2.aea: I/O error
 [out_0_0 @ 00000274da237c80] EOF on sink link out_0_0:default.
 No more output streams to write to, finishing.
 size=    2088kB time=00:00:12.12 bitrate=1411.3kbits/s speed= 259x
 video:0kB audio:2088kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 0.003648%
 Input file #0 (F:\ffmpeg_test\Hero split clip 2.aea):
   Input stream #0:0 (audio): 1044 packets read (442656 bytes); 1044 frames
 decoded (534528 samples);
   Total: 1044 packets (442656 bytes) demuxed
 Output file #0 (F:\ffmpeg_test\Hero split clip 2.wav):
   Output stream #0:0 (audio): 1044 frames encoded (534528 samples); 1044
 packets muxed (2138112 bytes);
   Total: 1044 packets (2138112 bytes) muxed
 1044 frames successfully decoded, 0 decoding errors
 [AVIOContext @ 00000274d9d82e00] Statistics: 4 seeks, 11 writeouts
 [AVIOContext @ 00000274d9d84040] Statistics: 444704 bytes read, 0 seeks

--
Ticket URL: <https://trac.ffmpeg.org/ticket/8585#comment:8>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list