mkvtoolnix/tests/test-571bluray_pcm_odd_number_of_channels.rb
Moritz Bunkus 2cac968f95 MPEG TS: remove alignment bytes for Blu-ray PCM audio with odd channel count
On Blu-rays PCM audio with an odd number of channels will still contain
empty bytes for an extra alignment channel (e.g. with 3 channels at 24
bits/sample the source actually contains 3+1channels * 24bits/channel /
8bits/byte = 4 * 3bytes = 12 bytes.

That extra "channel" is located after all the others and only contains 0
bytes.

mkvmerge will now simply remove these extra bytes. Otherwise players see
and use more data than the timestamps and track parameters imply causing
both noise artifacts as well as slowed playback.
2016-10-12 20:43:53 +02:00

6 lines
211 B
Ruby
Executable File

#!/usr/bin/ruby -w
# T_571bluray_pcm_odd_number_of_channels
describe "mkvmerge / Blu-ray PCM with odd number of channels"
test_merge "data/pcm/bluray_pcm_1_channel.m2ts", :args => "--disable-lacing -D -S -a 1"