aes67-daemon/wavplay_am824/test/create_test_files.sh
James Cowdery 28c9f85228
Initial commit
These test files contain -10dBFS 1kHz tone on the left channel and 100Hz tone on the right channel. Various formats are available to verify wav header processing. The '.ac3.wav' can be used to verify that the -am824 switch can create compliant AM824/SMPTE 2110-31 stream with Dolby Digital (AC-3) content. This was created with a professional Dolby Digital encoder (not available) and SMPTE 337 wrapping tool (available at Dolby's github repository).
2020-07-30 13:27:43 -07:00

10 lines
706 B
Bash

#!/bin/bash
sox -V -r 48000 -n -b 16 -c 2 48k_2ch_16_tones.wav synth 30 sin 1000 sin 100 vol -10dB
sox -V -r 48000 -n -b 24 -c 2 48k_2ch_24_tones.wav synth 30 sin 1000 sin 100 vol -10dB
sox -V -r 44100 -n -b 16 -c 2 44k1_2ch_16_tones.wav synth 30 sin 1000 sin 100 vol -10dB
sox -V -r 48000 -n -b 32 -e floating-point -c 2 48k_2ch_float_tones.wav synth 30 sin 1000 sin 100 vol -10dB
ddp_encoder -a7 -i48k_2ch_24_tones.wav -md1 -dn31 -+d640 -o48k_2ch_24_tones.ac3
# The change from 24bit to 16bit below is not a typo. As a result of the encoding process the bitstream is 16bit
# although the encoded audio was in 24bit format
smpte -i48k_2ch_24_tones.ac3 -o48k_2ch_16_tones.ac3.wav
rm -f 48k_2ch_24_tones.ac3