#5482: g721 (g726): fix audiable artefacts
------------------------------------+-----------------------------------
             Reporter:  ami_stuff   |                    Owner:  (none)
                 Type:  defect      |                   Status:  open
             Priority:  normal      |                Component:  avcodec
              Version:  git-master  |               Resolution:
             Keywords:  g726        |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+-----------------------------------
Comment (by ami_stuff):

 this also decodes into terrible quality:

 {{{
 ./ffmpeg -i sin8k.wav -acodec g726  -y g726.wav
 ffmpeg version N-112362-g4c422de1db Copyright (c) 2000-2023 the FFmpeg
 developers
   built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)
   configuration:
   libavutil      58. 27.100 / 58. 27.100
   libavcodec     60. 30.101 / 60. 30.101
   libavformat    60. 15.100 / 60. 15.100
   libavdevice    60.  2.101 / 60.  2.101
   libavfilter     9. 11.100 /  9. 11.100
   libswscale      7.  4.100 /  7.  4.100
   libswresample   4. 11.100 /  4. 11.100
 [aist#0:0/pcm_s16le @ 0x555b18bafb80] Guessed Channel Layout: mono
 Input #0, wav, from 'sin8k.wav':
   Metadata:
     encoder         : Lavf60.15.100
   Duration: 00:00:30.00, bitrate: 128 kb/s
   Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 8000 Hz, 1
 channels, s16, 128 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (pcm_s16le (native) -> adpcm_g726 (g726))
 Press [q] to stop, [?] for help
 Output #0, wav, to 'g726.wav':
   Metadata:
     ISFT            : Lavf60.15.100
   Stream #0:0: Audio: adpcm_g726 (E[0][0][0] / 0x0045), 8000 Hz, mono,
 s16, 32 kb/s
     Metadata:
       encoder         : Lavc60.30.101 g726
 [out#0/wav @ 0x555b18baf980] video:0kB audio:117kB subtitle:0kB other
 streams:0kB global headers:0kB muxing overhead: 0.076667%
 size=     117kB time=00:00:29.95 bitrate=  32.1kbits/s speed=1.75e+03x
 }}}

 {{{
 ./ffmpeg -i g726.wav -y out.wav
 ffmpeg version N-112362-g4c422de1db Copyright (c) 2000-2023 the FFmpeg
 developers
   built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)
   configuration:
   libavutil      58. 27.100 / 58. 27.100
   libavcodec     60. 30.101 / 60. 30.101
   libavformat    60. 15.100 / 60. 15.100
   libavdevice    60.  2.101 / 60.  2.101
   libavfilter     9. 11.100 /  9. 11.100
   libswscale      7.  4.100 /  7.  4.100
   libswresample   4. 11.100 /  4. 11.100
 Input #0, wav, from 'g726.wav':
   Metadata:
     encoder         : Lavf60.15.100
   Duration: 00:00:30.00, bitrate: 32 kb/s
   Stream #0:0: Audio: adpcm_g726 (E[0][0][0] / 0x0045), 8000 Hz, mono,
 s16, 32 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (adpcm_g726 (g726) -> pcm_s16le (native))
 Press [q] to stop, [?] for help
 Output #0, wav, to 'out.wav':
   Metadata:
     ISFT            : Lavf60.15.100
   Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 8000 Hz, mono,
 s16, 128 kb/s
     Metadata:
       encoder         : Lavc60.30.101 pcm_s16le
 [out#0/wav @ 0x55a97e71dac0] video:0kB audio:469kB subtitle:0kB other
 streams:0kB global headers:0kB muxing overhead: 0.016250%
 size=     469kB time=00:00:29.69 bitrate= 129.3kbits/s speed= 986x
 }}}

 the problem does not happen with "-acodec g722"
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/5482#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to