2008-09-14 Pcm2Tsmu v1.3.0.0
+ Tested 96 and 192 KHz. Seems work until 6 chan, 24 bits, 192 KHz.
  8 chan 192 KHz (16 or 24 bits) are rejected by tsMuxer.

2008-06-04 Pcm2Tsmu v1.2.0.0
+ Tested channels 1 to 8, 16-24 bits, only 48 KHz

2008-05-18 Pcm2Tsmu v1.1.0.0
+ Maybe now work better the STDIN

2008-05-13 Pcm2Tsmu v1.0.0.0
###############################################################
 Pcm2Tsmu v1.0.0.0: Fix pcm for TsMuxer format. (Tebasuna 2008)
###############################################################
Usage:
 Pcm2Tsmu <input.pcm> [output.pcm] [-i #] [-c #] [-s #]

Where:
 <input.pcm>  must be a lpcm up to 8 channels, int 16-20-24 bits.

 [output.pcm] If not present, input.pcm is used suffixed with: _tsm

 [-i #]          BitsPerSample Integer. Default 24. Valid 16, (20 ?), 24.

 [-c #]          NumChannels. Default 6. Valid and tested 1 to 8.

 [-s #]          SampleRate. Default 48000 Hz. Valid 48000 (96000, 192000 pending).

Note: To use STDIN use - as input filename (now output.pcm is necessary).

Purpose
=======
- Add little header to pcm data in order to be accepted by TsMuxer.

- Can be used standalone, without parameters if match the defaults. Example:

Pcm2Tsmu input.pcm
Pcm2Tsmu input.pcm output.pcm -i 16 -c 2

- And can be used with eac3to (or other with stdout output). Example:

eac3to input51.dts stdout.pcm | Pcm2Tsmu - output.pcm
