[FFmpeg-trac] #4078(ffmpeg:open): Specify audio bitrate per-channel

FFmpeg trac at avcodec.org
Mon Apr 15 20:21:58 EEST 2024


#4078: Specify audio bitrate per-channel
-------------------------------------+----------------------------------
             Reporter:  Haravikk     |                    Owner:  (none)
                 Type:  enhancement  |                   Status:  open
             Priority:  wish         |                Component:  ffmpeg
              Version:  git-master   |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+----------------------------------
Comment (by Cameron):

 I was having this issue today. Would be great to support this basic
 feature.

 The default for libopus uses this behavior to set the default bitrate:

 https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/refs/heads/master:/libavcodec/libopusenc.c#l382

 For example libopus could re-purpose the 'global-quality' that is
 currently unused:
 https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/refs/heads/master:/libavcodec/libopusenc.c#l118

 Either-way, having a 'base_bit_rate' would be wonderful for making life
 more simple.

 Another example, but not so great, is `opusenc`, it allows you to over-
 specify the quality, as the number channels change, it will still encode
 at max quality...

 `opusenc --bitrate 2048` sets the maximum quality... but it will max out
 at around ~255 /channel internally...
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/4078#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list