[Cin] sox to lpcm

Andrew Randrianasulu randrianasulu at gmail.com
Sun Jan 21 10:49:00 CET 2024


command line:

sox  /dev/shm/dvd_20240120-153459/dvd.wav -V -t raw -x
/dev/shm/dvd_20240120-153459/dvd-1.lpcm

I set output file to different name so I can compare pcm directly
produced by cingg and sox-converted version.

detailed output:

sox  /dev/shm/dvd_20240120-153459/dvd.wav -V -t raw -x
/dev/shm/dvd_20240120-153459/dvd-1.lpcm
sox:      SoX v14.4.2
sox INFO formats: detected file format type `wav'

Input File     : '/dev/shm/dvd_20240120-153459/dvd.wav'
Channels       : 2
Sample Rate    : 48000
Precision      : 24-bit
Duration       : 00:01:00.00 = 2880000 samples ~ 4500 CDDA sectors
File Size      : 17.3M
Bit Rate       : 2.30M
Sample Encoding: 24-bit Signed Integer PCM
Endian Type    : little
Reverse Nibbles: no
Reverse Bits   : no

sox INFO sox: Overwriting `/dev/shm/dvd_20240120-153459/dvd-1.lpcm'
sox INFO formats: `/dev/shm/dvd_20240120-153459/dvd-1.lpcm':
overriding machine byte-order

Output File    : '/dev/shm/dvd_20240120-153459/dvd-1.lpcm' (raw)
Channels       : 2
Sample Rate    : 48000
Precision      : 24-bit
Duration       : 00:01:00.00 = 2880000 samples ~ 4500 CDDA sectors
Sample Encoding: 24-bit Signed Integer PCM
Endian Type    : big
Reverse Nibbles: no
Reverse Bits   : no
Comment        : 'Processed by SoX'

sox INFO sox: effects chain: input        48000Hz  2 channels
sox INFO sox: effects chain: output       48000Hz  2 channels

=====

so, modern sox (-w/-s options were deprecated and replaced by others -
thankfully we do not need them if input file autodetected) can process
wav files into lpcm suitable for mplex

So, guide is much simpler in sense in cingg you just change audio to
wav/24 bits, then run sox, and change mplex line to one including -L
freq:channels:bits specification. May be you can even prepare text
patch and apply it to dvd.sh ?

 Oh, and in case of 24-bit audio at 48 khz you definitely want to
lower your video bitrate ...


More information about the Cin mailing list