MLD/wav-diff fails for test with dly_error_profile_11.dat
Encoder and decoder executables come from the BASOP repo:
- Encoder (float): d18cbee3417bc331630e6dcf214908deacdc8167
- Decoder: 20241023_Ittiam_Decoder_Release_subjective_Testing ( 074e9116eb4a6380f0fbc82b20bbfd7473c565ed)
When testing with dly_error_profile_11.dat, the wav-diff tools returns an error for the MLD comparison using tracefiles. The following error message is produced, which leads to a ValueError in the pytest when trying to extract the MLD score:
$ scripts/tools/Linux/wav-diff --print-ctest-measurement out_ref.wav out_dut.wav --ref-jbm-trace out_ref.trace --cut-jbm-trace out_dut.trace
wav files differ
ref: out_ref.wav
cut: out_dut.wav
thread 'main' panicked at src/wav_diff.rs:175:13:
tsm trace is 7680192 samples shorter than ref wav!
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
To reproduce
IVAS_cod_ref -stereo 48000 48 ltv48_STEREO.wav tmp.bs
networkSimulator_g192 scripts/dly_error_profiles/dly_error_profile_11.dat tmp.bs tmp.netsim tmp.tracefile 2 0
IVAS_dec_ref -Tracefile out_ref.trace -VOIP STEREO 48 tmp.netsim out_ref.wav
IVAS_dec -Tracefile out_dut.trace -VOIP STEREO 48 tmp.netsim out_dut.wav
scripts/tools/Linux/wav-diff --print-ctest-measurement out_ref.wav out_dut.wav --ref-jbm-trace out_ref.trace --cut-jbm-trace out_dut.trace