You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Expansion of the "Audio defaults" capabilities #1911
if I drop a source with 5.1 bitrate 1520 everything works as expected, but if I drop a source 5.1 bitrate 224 Handbrake is not preventing me to produce a higher bitrate output as per preferences. So I think the bitrate specified should be treated as "a maximum of" rather than an absolute.
As per above if my preference I have 5.1 bitrate 320 and I drop a stereo source on Handbrake, this will assume I want stereo at bitrate 320. I appreciate there are a bunch of cases arising from source type + wanted output but perhaps we could an extension of the Audio Defaults to encompass multiple cases the user can specify him/her self? Like:
source 5.1 bitrate > 320 -> aac 5.1 bitrate 320
source 5.1 bitrate < 320 = passthrough
source Stereo bitrate >192 = aac Stereo bitrate 192
source Stereo bitrate < 192 = passthrough
and so on
This is a complicated senario to cover correctly. I'll give some examples.
Your source is AAC 5.1 and you are transcoding to AC3 5.1. You may intentionally want a higher bitrate because AAC is a more efficient codec than AC3.
Your source is AAC 5.1 that was encoded with a top notch encoder like Apple's AAC encoder and you are transcoding to AAC 5.1 using a an encoderr that isn't as good (like ffmpeg's). You may want to use a higher bitrate to preserve the original quality of the better encoder.
I agree that this needs to be improved, but the rules for how to do this need to be thought out carefully. The default after loading a new source could possibly do something like what you describe (but possibly with some fudge factor added to prevent quality loss when using less efficient encoders and to account for the natural loss that occurs due to multi-generation encoding). But it should not prohibit the user from changing to higher bitrates if that's what they prefer.
Some users are going to want it to honor the bit rate they chose no matter what the source bitrate is because their use case is not sensitive to output file size and may require very strict codec parameters. So this should be an option somewhere.
We've also discussed switching to (or having as an alternative) a per channel bitrate so if your preset asks for 5.1 320 bps and your source is stereo, you don't end up with stereo 320 bps output.
Automatically reverting to passthru would also have to be optional. There are cases where the source was encoded in such a way that the users player can't play it, and simply re-encoding with the same codec using a different encoder "fixes" it for them. So you have to allow trancoding same codec to same bitrate if the user specifically asks for this.
Activity
jstebbins commentedon Feb 17, 2019
This is a complicated senario to cover correctly. I'll give some examples.
I agree that this needs to be improved, but the rules for how to do this need to be thought out carefully. The default after loading a new source could possibly do something like what you describe (but possibly with some fudge factor added to prevent quality loss when using less efficient encoders and to account for the natural loss that occurs due to multi-generation encoding). But it should not prohibit the user from changing to higher bitrates if that's what they prefer.
Some users are going to want it to honor the bit rate they chose no matter what the source bitrate is because their use case is not sensitive to output file size and may require very strict codec parameters. So this should be an option somewhere.
We've also discussed switching to (or having as an alternative) a per channel bitrate so if your preset asks for 5.1 320 bps and your source is stereo, you don't end up with stereo 320 bps output.
Automatically reverting to passthru would also have to be optional. There are cases where the source was encoded in such a way that the users player can't play it, and simply re-encoding with the same codec using a different encoder "fixes" it for them. So you have to allow trancoding same codec to same bitrate if the user specifically asks for this.
sr55 commentedon May 10, 2019
Linked above, suggestion to support bitrate per channel rather than global bitrate.
sr55 commentedon May 10, 2019
Closing in favour of the newer #2084