[Cin] Sox and mplex

Andrew Randrianasulu randrianasulu at gmail.com
Sun Jan 21 02:40:08 CET 2024


Canonical way to use mplex with lpcm sound seems to involve sox

https://marc.info/?l=mjpeg-users&m=112004582102258&w=2

====

1. sox NAME.wav -t raw -x -s -w -c2 -r48000 NAME.lpcm
2. mplex -S 0 -f 8 -V -o NAME.mpg NAME.lpcm NAME.m2v

===

I also found at mjpeg-users list this utility that makes wavs  into lpcm

http://dvd-audio.sourceforge.net/wav2lpcm.tar.gz

only 48/96 khz, 16/24bits stereo wavs are supported

Also, this little table suggest there IS dynamic range bit in lpcm header

https://dvd.sourceforge.net/dvdinfo/lpcm.html

dynamic_range X 3 X High 3 bits of byte.
dynamic_range Y 5 Y Lower 5 bits of byte

linear gain = 2^(4-(X+(Y/30)))

in dB gain = 24.082 - 6.0206 X - 0.2007 Y


Also, according to this post 24-bit lpcm worked around mjpegtools-1.8.0
release:

https://marc.info/?l=mjpeg-users&m=112912922124144&w=2

all this quite theoretical at this point, not tried it yet.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20240121/47e1956a/attachment.htm>


More information about the Cin mailing list