Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > (HD) DVD, Blu-ray & (S)VCD > (HD) DVD & Blu-ray authoring

Reply
 
Thread Tools Search this Thread Display Modes
Old 4th June 2008, 17:39   #1  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Pcm2Tsmu v1.3

Pcm2Tsmu is a little utility to convert lpcm files to a format accepted by TsMuxer (lpcm data in blocks with little headers).

Work with pcm data 48/96/192 KHz, 16 or 24 bitdepth, 1 to 8 channels.


Pcm2Tsmu v1.3


Code:
Usage:
 Pcm2Tsmu <input.pcm> [output.pcm] [-i #] [-c #] [-s #]

Where:
 <input.pcm>  must be a lpcm up to 8 channels, int 16/24 bits, 48/96/192 KHz.
              To use STDIN use - as input filename

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

 [-i #]          BitsPerSample Integer. Default 24. 20 not tested.

 [-c #]          NumChannels. Default 6.

 [-s #]          Samplerate. Default 48000.

Examples:

Pcm2Tsmu stereo16bits.pcm -i 16 -c 2

eac3to MA_7.1.dts stdout.pcm -libav | Pcm2Tsmu - output5.1.pcm

(eac3to -libav only can decode DTS MA-7.1 to 5.1 and always 24 bits, defaults)

If you have ArcSoft decoder

eac3to MA_7.1.dts stdout.pcm | Pcm2Tsmu - output7.1.pcm -c 8

EDIT: This workaround is needed only when wav file (similar uncompressed audio data but with header) go over 4 GB.

Last edited by tebasuna51; 3rd December 2008 at 11:43. Reason: New version and link
tebasuna51 is offline   Reply With Quote
Old 4th June 2008, 20:34   #2  |  Link
EPiPH0NE
b4k3d
 
Join Date: Sep 2007
Posts: 310
Awesome. Keep up the great work and thanks for making a separate thread
EPiPH0NE is offline   Reply With Quote
Old 14th July 2008, 02:43   #3  |  Link
markrb
Old fart
 
markrb's Avatar
 
Join Date: Oct 2001
Posts: 3,589
Is the file available anywhere else as I am getting a "file not available" error message?

Thanks,
Mark
__________________
Oh no Mr. Bill!
markrb is offline   Reply With Quote
Old 14th July 2008, 13:18   #4  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Quote:
Originally Posted by markrb View Post
Is the file available anywhere else as I am getting a "file not available" error message?
Try now, new link added.
tebasuna51 is offline   Reply With Quote
Old 12th September 2008, 16:36   #5  |  Link
3dhunter
Registered User
 
Join Date: Oct 2006
Posts: 3
Would you please add 96KHz support?
3dhunter is offline   Reply With Quote
Old 13th September 2008, 20:44   #6  |  Link
jly
Registered User
 
Join Date: Aug 2008
Posts: 1
thanks for your release!
jly is offline   Reply With Quote
Old 14th September 2008, 13:43   #7  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Quote:
Originally Posted by 3dhunter View Post
Would you please add 96KHz support?
New version Pcm2Tsmu v1.3 with support for 96 and 192 KHz.

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.
tebasuna51 is offline   Reply With Quote
Old 14th September 2008, 17:03   #8  |  Link
sehgal.v7
Registered User
 
Join Date: Jul 2008
Posts: 93
Thanx Tebasuna for the update!!
sehgal.v7 is offline   Reply With Quote
Old 14th September 2008, 20:57   #9  |  Link
rica
Registered User
 
Join Date: Mar 2008
Posts: 2,021
rica is offline   Reply With Quote
Old 15th September 2008, 12:42   #10  |  Link
fbd
Registered User
 
Join Date: Nov 2004
Location: FRANCE
Posts: 37

Franck
fbd is offline   Reply With Quote
Old 17th September 2008, 10:38   #11  |  Link
CGJ
Registered User
 
Join Date: Mar 2008
Posts: 7
Thanks
CGJ is offline   Reply With Quote
Old 21st September 2008, 01:33   #12  |  Link
Jeff Flowerday
Registered User
 
Join Date: Aug 2008
Location: Calgary, AB
Posts: 150
I'm having an issue with pcm audio created from a TrueHD track. The pcm soundtrack is playing back as white noise. I've included a 1 minute clip of the source, all the extracted files, the file created by pcm2tsmu and the final product remuxed via tsmuxer.

http://www.flowerdayconsulting.com/M...NoiseIssue.zip

Last edited by Jeff Flowerday; 21st September 2008 at 01:57.
Jeff Flowerday is offline   Reply With Quote
Old 21st September 2008, 02:41   #13  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Quote:
Originally Posted by Jeff Flowerday View Post
Downloading 439 MB ...
tebasuna51 is offline   Reply With Quote
Old 21st September 2008, 02:55   #14  |  Link
Jeff Flowerday
Registered User
 
Join Date: Aug 2008
Location: Calgary, AB
Posts: 150
Smaller clip this one is only 127MB.

http://www.flowerdayconsulting.com/m...whitenoise.zip

Last edited by Jeff Flowerday; 21st September 2008 at 02:59.
Jeff Flowerday is offline   Reply With Quote
Old 21st September 2008, 09:47   #15  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Quote:
Originally Posted by Jeff Flowerday View Post
Smaller clip this one is only 127MB.

http://www.flowerdayconsulting.com/m...whitenoise.zip
No problem, I need sleep also...

Here is the problem:
Code:
eac3to v2.63
command line: eac3to SourceHDDVD.m2ts 2: z.pcm
---------------------------------------------------------
M2TS, 1 video track, 1 audio track, 0:01:00
1: VC-1, 1080p24 /1.001 (16:9) with pulldown flags
2: TrueHD, 5.1 channels, 48khz, dialnorm: -27dB
[a02] Extracting audio track number 2...
[a02] Removing TrueHD dialog normalization...
[a02] Decoding with libav/ffmpeg...
[a02] Swapping endian...
[a02] Remapping channels...
[a02] Creating file "z.24bit.pcm"...
[a02] This audio track has a constant bit depth of 16 bits.
[a02] The zero bytes were successfully removed.
Video track 1 contains 1454 frames.
eac3to processing took 6 seconds.
Done.
Then using Pcm2Tsmu correctly:

PcmTsmu z.pcm -i 16

We obtain a correct z_tsm.pcm 16 bits (default is 24), 6 chan (default), 48 KHz (default)

Often is enough put the log files to see the problem.
tebasuna51 is offline   Reply With Quote
Old 21st September 2008, 17:49   #16  |  Link
Jeff Flowerday
Registered User
 
Join Date: Aug 2008
Location: Calgary, AB
Posts: 150
Quote:
Originally Posted by tebasuna51 View Post
No problem, I need sleep also...

Here is the problem:
Code:
eac3to v2.63
command line: eac3to SourceHDDVD.m2ts 2: z.pcm
---------------------------------------------------------
M2TS, 1 video track, 1 audio track, 0:01:00
1: VC-1, 1080p24 /1.001 (16:9) with pulldown flags
2: TrueHD, 5.1 channels, 48khz, dialnorm: -27dB
[a02] Extracting audio track number 2...
[a02] Removing TrueHD dialog normalization...
[a02] Decoding with libav/ffmpeg...
[a02] Swapping endian...
[a02] Remapping channels...
[a02] Creating file "z.24bit.pcm"...
[a02] This audio track has a constant bit depth of 16 bits.
[a02] The zero bytes were successfully removed.
Video track 1 contains 1454 frames.
eac3to processing took 6 seconds.
Done.
Then using Pcm2Tsmu correctly:

PcmTsmu z.pcm -i 16

We obtain a correct z_tsm.pcm 16 bits (default is 24), 6 chan (default), 48 KHz (default)

Often is enough put the log files to see the problem.
Sorry, when you said log files I didn't realize the output log from eac3to. This should also solve my "The Invasion" problem which has a constant bit rate of 16.

Thanks!
Jeff Flowerday is offline   Reply With Quote
Old 24th September 2008, 20:44   #17  |  Link
Jeff Flowerday
Registered User
 
Join Date: Aug 2008
Location: Calgary, AB
Posts: 150
What do I do for command line options on this one?

[a04] Creating file "m:\output.24bit.pcm"...
[v02] Creating file "m:\output.vc1"...
[a04] Creating file "m:\output.ac3"...
[a04] Bit depth analyzation: max 24 bits, average 19 bits, most common 16 bits.
[a04] Bit depth analyzation: max 24 bits, average 19 bits, most common 16 bits.

I assume 24 bit?
Jeff Flowerday is offline   Reply With Quote
Old 24th September 2008, 22:21   #18  |  Link
EPiPH0NE
b4k3d
 
Join Date: Sep 2007
Posts: 310
Quote:
Originally Posted by Jeff Flowerday View Post

I assume 24 bit?

Yeah, 24 should be fine. The newer eac3to builds report more in depth analysis and as long as it doesn't say it's a 16 bit constant you don't need to use the 'i 16' switch.
EPiPH0NE is offline   Reply With Quote
Old 23rd October 2008, 18:35   #19  |  Link
Jeff Flowerday
Registered User
 
Join Date: Aug 2008
Location: Calgary, AB
Posts: 150
20 bit:

I was converting the 20 bit DTS-MA audio Ghost Rider to pcm. eac3to indicated a constant bit rate of 20.

pcm2tsmu ran fine with -i 20

tsmuxer doesn't recognize the results. I see it's untested, here is a 25 second clip to use for testing.

http://www.flowerdayconsulting.com/Misc/clip.zip
Jeff Flowerday is offline   Reply With Quote
Old 24th October 2008, 03:39   #20  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Quote:
Originally Posted by Jeff Flowerday View Post
20 bit:

I was converting the 20 bit DTS-MA audio Ghost Rider to pcm. eac3to indicated a constant bit rate of 20.

pcm2tsmu ran fine with -i 20

tsmuxer doesn't recognize the results. I see it's untested, here is a 25 second clip to use for testing.

http://www.flowerdayconsulting.com/Misc/clip.zip
DTS-MA 20 bit?

with your clip:
Code:
eac3to v2.69
command line: "D:\eac3to.exe" "D:\clip.m2ts" 2: z.pcm
------------------------------------------------------------------------------
M2TS, 1 video track, 1 audio track
1: h264/AVC, 1080p24 /1.001 (16:9)
2: TrueHD/AC3, 5.1 channels, 48khz
[a02] Extracting audio track number 2...
[a02] Extracting TrueHD stream...
[a02] Decoding with libav/ffmpeg...
[a02] Swapping endian...
[a02] Remapping channels...
[a02] This audio track contains more than 16 bits of information.
[a02] Creating file "z.24bit.pcm"...
[a02] This doesn't seem to be a valid PES packet.
Aborted at file position 88342528.
BTW try with -i 24

Last edited by tebasuna51; 24th October 2008 at 03:41.
tebasuna51 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 16:04.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.