[FFmpeg-trac] #11138(undetermined:new): FFmpeg audio dither creates unwanted DC offset

FFmpeg trac at avcodec.org
Tue Aug 13 15:53:32 EEST 2024


#11138: FFmpeg audio dither creates unwanted DC offset
-------------------------------------+-------------------------------------
             Reporter:  mstgrv       |                    Owner:  (none)
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  7.0          |               Resolution:
             Keywords:  audio        |               Blocked By:
  dithering                          |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by mstgrv):

 A similar bug existed in Reaper, which was fixed in 2021
 [https://forum.cockos.com/showpost.php?p=2425940&postcount=25]

 The developer clarified what the issue was and how it was fixed
 [https://forum.cockos.com/showpost.php?p=2801990&postcount=33]


 {{{
 The bug (fixed in v6.27) was using floor() instead of rounding when
 reducing floating point samples to the desired bit depth. For example if
 you have a variable in [-1,1] with mean=0, floor(x) will have a mean of
 -0.5, but floor(x+0.5) will have a mean of 0.
 }}}

 Perhaps this could be the fix for the issue in FFmpeg?
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/11138#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list