<div dir="auto">Canonical way to use mplex with lpcm sound seems to involve sox<div dir="auto"><br></div><div dir="auto"><a href="https://marc.info/?l=mjpeg-users&m=112004582102258&w=2" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://marc.info/?l=mjpeg-users&m=112004582102258&w=2</a><br></div><div dir="auto"><br></div><div dir="auto">====</div><div dir="auto"><pre>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</pre></div><div dir="auto">===</div><div dir="auto"><br></div><div dir="auto">I also found at mjpeg-users list this utility that makes wavs into lpcm</div><div dir="auto"><br></div><div dir="auto"><a href="http://dvd-audio.sourceforge.net/wav2lpcm.tar.gz" rel="noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">http://dvd-audio.sourceforge.net/wav2lpcm.tar.gz</a><br></div><div dir="auto"><br></div><div dir="auto">only 48/96 khz, 16/24bits stereo wavs are supported</div><div dir="auto"><br></div><div dir="auto">Also, this little table suggest there IS dynamic range bit in lpcm header</div><div dir="auto"><br></div><div dir="auto"><a href="https://dvd.sourceforge.net/dvdinfo/lpcm.html" rel="noreferrer noreferrer" target="_blank">https://dvd.sourceforge.net/dvdinfo/lpcm.html</a><br></div><div dir="auto"><br></div><div dir="auto"><div dir="auto">dynamic_range X<span style="white-space:pre-wrap"> </span>3<span style="white-space:pre-wrap"> </span>X<span style="white-space:pre-wrap"> </span>High 3 bits of byte.</div><div dir="auto">dynamic_range Y<span style="white-space:pre-wrap"> </span>5<span style="white-space:pre-wrap"> </span>Y<span style="white-space:pre-wrap"> </span>Lower 5 bits of byte</div><div dir="auto"> <span style="white-space:pre-wrap"> </span> <span style="white-space:pre-wrap"> </span> <span style="white-space:pre-wrap"> </span> <span style="white-space:pre-wrap"> </span></div><div dir="auto">linear gain = 2^(4-(X+(Y/30)))</div><div dir="auto"> <span style="white-space:pre-wrap"> </span> <span style="white-space:pre-wrap"> </span> <span style="white-space:pre-wrap"> </span> <span style="white-space:pre-wrap"> </span></div><div dir="auto">in dB gain = 24.082 - 6.0206 X - 0.2007 Y</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">Also, according to this post 24-bit lpcm worked around mjpegtools-1.8.0 release:</div><div dir="auto"><br></div><div dir="auto"><a href="https://marc.info/?l=mjpeg-users&m=112912922124144&w=2">https://marc.info/?l=mjpeg-users&m=112912922124144&w=2</a><br></div><div dir="auto"><br></div><div dir="auto">all this quite theoretical at this point, not tried it yet.</div><div dir="auto"></div></div></div>