#4078(ffmpeg:new): Specify audio bitrate per-channel
#4078: Specify audio bitrate per-channel ----------------------------------+--------------------------------------- Reporter: Haravikk | Type: enhancement Status: new | Priority: normal Component: ffmpeg | Version: unspecified Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | ----------------------------------+--------------------------------------- Fairly self-explanatory, but currently we can specify audio bit-rate for the entire stream, but this requires us to calculate the total bitrate from the number of input channels ourselves. This is fine for single files, but for batch-encoding a mixture of stereo and surround-sound content it's not as ideal, or even for encoding a file that contains multiple audio-streams. To accommodate these use-cases I'd like to request an alternative syntax for specifying audio channels with a per-channel bit-rate so that I can instead just specify say 64k per channel for AAC, with ffmpeg automatically using a total of 128k for stereo or 384k for 5.1 etc. I'm not sure what the best way to do this would be. I suppose one option would be to have a new parameter -bc for "bits per channel", so I could specify something like ffmpeg -i "$INFILE" -acodec aac -bc:a 64k "$OUTFILE" An alternative would be allowing some kind of suffix to the -b option such as: ffmpeg -i "$INFILE" -acodec aac -b:a 64k/c "$OUTFILE" -- Ticket URL: <https://trac.ffmpeg.org/ticket/4078> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#4078: Specify audio bitrate per-channel -------------------------------------+---------------------------------- Reporter: Haravikk | Owner: Type: enhancement | Status: open Priority: wish | Component: ffmpeg Version: git-master | Resolution: Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+---------------------------------- Changes (by cehoyos): * priority: normal => wish * status: new => open * version: unspecified => git-master -- Ticket URL: <https://trac.ffmpeg.org/ticket/4078#comment:1> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#4078: Specify audio bitrate per-channel -------------------------------------+---------------------------------- Reporter: Haravikk | Owner: 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 elmarikon): That is a very good idea. I would love to have this feature! -- Ticket URL: <https://trac.ffmpeg.org/ticket/4078#comment:2> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#4078: Specify audio bitrate per-channel -------------------------------------+---------------------------------- Reporter: Haravikk | Owner: 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 SystemDisc): This would help immensely with batch encoding. -- Ticket URL: <https://trac.ffmpeg.org/ticket/4078#comment:3> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#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/... 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/... 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
participants (1)
-
FFmpeg