Opened 4 years ago

Closed 4 years ago

#10072 closed defect (fixed)

apac decoder sometimes is not lossless

Reported by: ami_stuff Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

there is one difference in the output at the end of the file

33_2.wav - input file used in apac to encode 33_2.APC

33_2.APC - encoded apac file

33_2_out_from_apac.WAV - decoded output in apac from 33_3.APC

the output from

./ffmpeg -i 33_2.wav -f s16le -y 33_2.raw

and

./ffmpeg -i 33_2_out_from_apac.WAV -f s16le -y 33_2_out_from_apac.raw

is the same

./ffmpeg  -i 33_2.APC -y -f s16le 33_2_ff_apc.raw
ffmpeg version N-109101-g822da7a317 Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
  configuration: --enable-libopenjpeg
  libavutil      57. 42.100 / 57. 42.100
  libavcodec     59. 52.102 / 59. 52.102
  libavformat    59. 34.101 / 59. 34.101
  libavdevice    59.  8.101 / 59.  8.101
  libavfilter     8. 50.100 /  8. 50.100
  libswscale      6.  8.112 /  6.  8.112
  libswresample   4.  9.100 /  4.  9.100
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, apac, from '33_2.APC':
  Duration: N/A, bitrate: N/A
  Stream #0:0: Audio: apac, 33333 Hz, 2 channels, s16p
Stream mapping:
  Stream #0:0 -> #0:0 (apac (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
Output #0, s16le, to '33_2_ff_apc.raw':
  Metadata:
    encoder         : Lavf59.34.101
  Stream #0:0: Audio: pcm_s16le, 33333 Hz, stereo, s16, 1066 kb/s
    Metadata:
      encoder         : Lavc59.52.102 pcm_s16le
size=    1302kB time=00:00:09.99 bitrate=1066.7kbits/s speed= 193x    
video:0kB audio:1302kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%
./ffmpeg  -i 33_2.wav -y -f s16le 33_2.raw
ffmpeg version N-109101-g822da7a317 Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
  configuration: --enable-libopenjpeg
  libavutil      57. 42.100 / 57. 42.100
  libavcodec     59. 52.102 / 59. 52.102
  libavformat    59. 34.101 / 59. 34.101
  libavdevice    59.  8.101 / 59.  8.101
  libavfilter     8. 50.100 /  8. 50.100
  libswscale      6.  8.112 /  6.  8.112
  libswresample   4.  9.100 /  4.  9.100
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, wav, from '33_2.wav':
  Metadata:
    encoder         : Lavf57.83.100
  Duration: 00:00:10.00, bitrate: 1066 kb/s
  Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 33333 Hz, 2 channels, s16, 1066 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_s16le (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
Output #0, s16le, to '33_2.raw':
  Metadata:
    encoder         : Lavf59.34.101
  Stream #0:0: Audio: pcm_s16le, 33333 Hz, stereo, s16, 1066 kb/s
    Metadata:
      encoder         : Lavc59.52.102 pcm_s16le
size=    1302kB time=00:00:09.98 bitrate=1068.4kbits/s speed= 709x    
video:0kB audio:1302kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%

Attachments (3)

33_2.APC (960.4 KB ) - added by ami_stuff 4 years ago.
33_2.wav (1.3 MB ) - added by ami_stuff 4 years ago.
33_2_out_from_apac.WAV (1.3 MB ) - added by ami_stuff 4 years ago.

Change History (4)

by ami_stuff, 4 years ago

Attachment: 33_2.APC added

by ami_stuff, 4 years ago

Attachment: 33_2.wav added

by ami_stuff, 4 years ago

Attachment: 33_2_out_from_apac.WAV added

comment:1 by Elon Musk, 4 years ago

Resolution: fixed
Status: newclosed

Do Test more after fix gets into your build.

Note: See TracTickets for help on using tickets.