Opened 3 years ago

Last modified 14 months ago

#4078 open enhancement

Specify audio bitrate per-channel

Reported by: Haravikk Owned by:
Priority: wish Component: ffmpeg
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

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"

Change History (3)

comment:1 Changed 3 years ago by cehoyos

  • Priority changed from normal to wish
  • Status changed from new to open
  • Version changed from unspecified to git-master

comment:2 Changed 3 years ago by elmarikon

That is a very good idea.
I would love to have this feature!

comment:3 Changed 14 months ago by SystemDisc

This would help immensely with batch encoding.

Note: See TracTickets for help on using tickets.