Steven M. Schultz wrote:
>       Yes, something like 
> 
>       sox input.wav sox.raw
> 
>       might do the trick - but check the manpage first ;)

I should also add (for completeness) that 16-bit audio requires
byte-swapping when converting from WAV to a raw format.

mplex also requires LPCM audio streams to have the ".lpcm" extension, so
you need to manually specify the output filetype "-t raw" to sox.

So a suitable sox command (for 16-bit only) is:

sox input.wav -x -t raw output.lpcm

If your input file isn't 48KHz or 96KHz, you can resample using, for
example:

sox input.wav -r 48000 -x -t raw output.lpcm resample

Dave.


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to