Better support for source audio with 96 kHz and 192 kHz sample rates
Why would you like to see this added:
Source audio with 96 kHz and 192 kHz sample rates are common in LPCM sources on both DVD and Blu Ray. Handbrake does not support LPCM passthrough, and lossless quality is important to me. The 24-bit FLAC encoder is capable of handling input at this resolution (other encoders may not) but Handbrake will not encode audio with a sample rate in excess of 48 kHz, per hb_audio_rates[] array in Handbrake/libhb/common.c
The (simplified) current behavior of Handbrake is to silently downsample these tracks to the closest sample rate that does not exceed the input sample rate, per hb_audio_samplerate_find_closest() in Handbrake/libhb/common.c
Sample logs, using a DVD source with a 24-bit, two channel, 96 kHZ LPCM audio track (24*2*96000 = 4608000):
Code: Select all
Correct identification of input track at scan time:
[11:22:25] scan: audio 0xa0bd: LPCM, rate=96000Hz, bitrate=4608000 English (LPCM) (2.0 ch)
And at decode time:
[11:22:27] * audio track 1
[11:22:27] + decoder: English (LPCM) (2.0 ch) (track 1, id 0xa0bd)
[11:22:27] + bitrate: 4608 kbps, samplerate: 96000 Hz
[11:22:27] + mixdown: Stereo
But encode step is using a lower sample rate:
[11:22:27] + encoder: FLAC 24-bit (libavcodec)
[11:22:27] + samplerate: 48000 Hz
[11:22:27] + compression level: 5.00
Code: Select all
{ { "96", 96000, }, NULL, 1, },
{ { "192", 192000, }, NULL, 1, },
1.0.3 and nightlies as needed
What operating system and version and you currently running (e.g. OSX 10.11, Windows 7, Ubuntu 14):
Both OSX 10.12 and Windows 10