Log in

View Full Version : DTS, Dolby True HD, and DTS-HD PS3 streaming it can be done..


jamos
29th January 2009, 01:56
Bluray video with lossless audio streaming (well in the case of just plain DTS non hd, lossy, but no worse than DTS) used to be impossible with the PS3 as it only likes AC3/AAC/LPCM as a audio stream well do not let that stop you..

You just have to use eac3to.exe to demux the True-HD, DTS-HD or other audio format to .pcm format.
Example using 3rd stream of filename.m2ts eac3to filename.m2ts 3: filename.pcm
Then use pcm2tsmu.exe with the command Pcm2Tsmu.exe filename.pcm filename2.pcm
to convert the audio into something that TSMUXER can handle. (substituting filename with actual names of the files)

Then Mux the Video with the filename2.pcm audio file in TSMUXER into a m2ts file.

Use TVersity or some other media sharing software to stream the m2ts file to your PS3.

This method should work for any input source audio that eac3to.exe understands.

Vola...bluray video with lossless audio streaming to your PS3...Enjoy

more info on how to convert using eac3to.exe here by Rica
http://forum.doom9.org/showthread.php?t=141125

idbirch2
29th January 2009, 10:01
You have to be careful with the pcm2tsmu switches, the bitdepth of your resulting PCM file is not always 16-bit. In fact, most of the ones I have done are 24 (which is the default, meaning no -i switch required).

And don't forget the AVCHD method which supports all the formats natively so no decompressing necessary (except TrueHD which is just waiting on a big fix in TSMuxer).

deank
29th January 2009, 10:44
I don't know what I'm doing wrong. I have this sample video (11 seconds):

How can I reencode TrueHD track with eac3to?

eac3to always returns "The format of the source file could not be detected."

General
ID : 0
Complete name : \__TEST\S_C.m2ts
Format : BDAV
Format/Info : BluRay Video
File size : 57.2 MiB
Duration : 12s 60ms
Overall bit rate : 39.8 Mbps
Maximum Overall bit rate : 48.0 Mbps

Video
ID : 4113 (0x1011)
Menu ID : 1 (0x1)
Format : VC-1
Format profile : AP@L3
Duration : 12s 41ms
Bit rate : 36.7 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16/9
Frame rate : 23.976 fps
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.739

Audio #1
ID : 4352 (0x1100)
Menu ID : 1 (0x1)
Format : AC-3
Format/Info : Audio Coding 3
Duration : 12s 60ms
Bit rate mode : Constant
Bit rate : 640 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Surround: L R, LFE
Sampling rate : 48.0 KHz
Video delay : -661ms

Audio #2
ID : 4353 (0x1101)
Menu ID : 1 (0x1)
Format : AC-3
Format/Info : Audio Coding 3
Format profile : Dolby Digital
Duration : 12s 60ms
Bit rate mode : Constant
Bit rate : 192 Kbps
Channel(s) : 2 channels
Channel positions : L R
Sampling rate : 48.0 KHz
Video delay : -149ms

Audio #3
ID : 4354 (0x1102)
Menu ID : 1 (0x1)
Format : AC-3
Format/Info : Audio Coding 3
Format profile : TrueHD
Duration : 12s 60ms
Bit rate mode : Variable
Bit rate : 640 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Surround: L R, LFE
Sampling rate : 48.0 KHz
Video delay : -692ms

Text #1
ID : 4608 (0x1200)
Menu ID : 1 (0x1)
Format : PGS
Video delay : 3s 211ms

Text #2
ID : 4609 (0x1201)
Menu ID : 1 (0x1)
Format : PGS
Video delay : 3s 86ms

Text #3
ID : 4610 (0x1202)
Menu ID : 1 (0x1)
Format : PGS
Video delay : 2s 669ms

idbirch2
29th January 2009, 12:43
What output do you get if you run:

eac3to "X:\Path to m2ts file.m2ts"?

deank
29th January 2009, 13:04
A red line with the text I wrote above.

This is the sample that rica posted here (http://forum.doom9.org/showthread.php?p=1232720#post1232720).

http://multiavchd.deanbg.com/eac3to-err.jpg

idbirch2
29th January 2009, 13:14
Oh right, I didn't realise that. I would have to say that he hasn't cut it properly then. You could re-post the sample in the eac3to thread and I'm sure madshi would take a look but most likely, you need to find a new sample.

deank
29th January 2009, 13:21
It is my only sample with TrueHD.

Anyway... I added option in multiAVCHD for truehd/dts ma encoding to ac3. multiAVCHD will first try with eac3to and if it fails, it will use tsmuxer to demux the audio (without downmixing) and then try to encode again with eac3to.

asarian
29th January 2009, 14:27
You have to be careful with the pcm2tsmu switches, the bitdepth of your resulting PCM file is not always 16-bit. In fact, most of the ones I have done are 24 (which is the default, meaning no -i switch required).

Eac3to will tell you what the final bit-depth was, either 16 or 24 (could be 32, too, theroretically; though I don't believe such tracks are around yet). So, indeed, don't just blindly set "-i 16", but watch for what eac3to tells you it is.

N.B. There are conditions when eac3to actually fails to report back the final but-depth. In that case, just run:

eac3to file.pcm (your created pcm file)

And then eac3to will report the bit-depth, after all.

Also, you have to be careful with the pcm2tsmu switches, because there's also channel-info to be considered. So, do something like:

Pcm2tsmu file.pcm -i 16 -c 6

For 5.1 audio, or "-c 8" for 7.1, etc.

jamos
29th January 2009, 20:04
You have to be careful with the pcm2tsmu switches, the bitdepth of your resulting PCM file is not always 16-bit. In fact, most of the ones I have done are 24 (which is the default, meaning no -i switch required).

Sorry that -16 switch was from someone elses post. eac3to will tell you what the bitdeph is when it demuxes so you should only use the -16 switch when source is 16 bit.

And don't forget the AVCHD method which supports all the formats natively so no decompressing necessary (except TrueHD which is just waiting on a big fix in TSMuxer).

You cannot stream AVCHD.

jamos
29th January 2009, 20:07
Eac3to will tell you what the final bit-depth was, either 16 or 24 (could be 32, too, theroretically; though I don't believe such tracks are around yet). So, indeed, don't just blindly set "-i 16", but watch for what eac3to tells you it is.

N.B. There are conditions when eac3to actually fails to report back the final but-depth. In that case, just run:

eac3to file.pcm (your created pcm file)

And then eac3to will report the bit-depth, after all.

Also, you have to be careful with the pcm2tsmu switches, because there's also channel-info to be considered. So, do something like:

Pcm2tsmu file.pcm -i 16 -c 6

For 5.1 audio, or "-c 8" for 7.1, etc.

Thanks for the extra info on pcm2tsmu

jamos
29th January 2009, 20:16
I don't know what I'm doing wrong. I have this sample video (11 seconds):

How can I reencode TrueHD track with eac3to?

eac3to always returns "The format of the source file could not be detected."


I would think
eac3to "S_C.m2ts" 4: "S_C.pcm"
would work since the truehd is the 4th stream (3rd audio stream).

idbirch2
29th January 2009, 20:34
You cannot stream AVCHD.I never said you could.
I would think
eac3to "S_C.m2ts" 4: "S_C.pcm"
would work since the truehd is the 4th stream (3rd audio stream).It's already been established that eac3to cannot detect the file type for Dean's .m2ts file as it errors out even when no options/parameters are specified.

jamos
29th January 2009, 20:52
The True-HD file is corrupt I confirmed trying it. If you need a true hd sample I will see if i can get you one.

deank
29th January 2009, 21:24
Yes, I'd like to have some TrueHD, DTS-MA/HRA samples so I can clear the bugs in multiAVCHD.

Thanks in advance.

~bT~
30th January 2009, 04:01
^ here you go: http://www.mediafire.com/?sharekey=39dde50f7954a9bed2db6fb9a8902bda

dts_ma sample.

Poseidon79
30th January 2009, 04:31
I'm using the HdBrStreamExtractor GUI for eac3to and I don't see an audio option for PCM... is WAV the same? I see THD (which I assume is "TrueHD"), AC3, FLAC, AAC, WAV, WAVS, RAW, W64, RF64, and AGM. Which one do I need for the TrueHD PCM stream for my PS3? From the eac3to thread:

Decoded audio data can be stored as / encoded to:
(1) RAW, (L)PCM
(2) WAV (PCM only), W64, RF64, AGM
(3) WAVs (multiple mono WAV files, PCM only)
(4) AC3
(5) DTS
(6) AAC
(7) FLAC

When I load the .WAV file into tsmuxer the output codec is LPCM... the L is for Linear... so what does this mean ultimately?

deank
30th January 2009, 09:04
^ here you go: dts_ma sample.

Thanks.

tebasuna51
30th January 2009, 13:38
PCM (Pulse Code Modulation) isn't a strict format but is used to mean uncompressed audio samples.

WAV is a container, and can contain PCM with a strict format in channel order and endian style (little-endian = low byte first). Have a header to define the contained data.

W64 and RF64 are exact than WAV but with headers to support more than 4GB of data (a limit for WAV).

RAW contain the same data than WAV (bytes and channel order) but without header.

(L)PCM is like RAW but with different bytes (big-endian) and channel order (LFE at end).

AC3, DTS and AAC are lossy compressed audio data formats.

THD and FLAC are lossless compressed audio data.

I'm using the HdBrStreamExtractor GUI for eac3to and I don't see an audio option for PCM... is WAV the same?
WAV can contain PCM audio data in a specified order.

Which one do I need for the TrueHD PCM stream for my PS3?
What is TrueHD PCM? Don't exist that.
There are problems to mux THD and play in PS3, maybe you want convert THD to uncompressed data PCM?

When I load the .WAV file into tsmuxer the output codec is LPCM... the L is for Linear... so what does this mean ultimately?
Simple, the uncompressed audio data (PCM) is stored internally with the LPCM order. Don't worry about that.

But if the WAV file is >4GB (remember the WAV limit) you need a workaround to load the PCM data in tsmuxer.
Tsmuxer don't accept W64 or RF64 containers or LPCM raw data, need a special format with data in lpcm order but with headers. Read the Pcm2Tsmu thread,

Poseidon79
31st January 2009, 21:57
This is the perfect step by step guide to use for a n00b like me and everyone else. I've tested 2 movies and it's exactly what I want. An m2ts file with HD video and HD PCM audio 5.1 to stream to my PS3 with TVersity.

http://forums.afterdawn.com/thread_view.cfm/704460#4286006

idbirch2
31st January 2009, 22:24
As the guide stipulates though, no good for VC-1 video.

Poseidon79
31st January 2009, 23:47
The title of this thread is streaming to the PS3 which can't handle VC-1 right?

Poseidon79
31st January 2009, 23:53
Edit... duplicate.

zeropc
1st February 2009, 02:20
The title of this thread is streaming to the PS3 which can't handle VC-1 right?

the title of this thread says that there is a solution to stream hd audio ;)

you can't stream the following audio and videocodecs...

vc1
dts (any kind)
dolby true-hd

the best non streaming solution to play everything besides using a bd-r is avchd.

asarian
1st February 2009, 07:44
the title of this thread says that there is a solution to stream hd audio ;)

you can't stream the following audio and videocodecs...

vc1

Actually, you can stream VC-1 with the PS3, but only in WMV with 2.0 audio.

Converting all HD audio to LPCM is clearly the way to go, if you're streaming.

jamos
1st February 2009, 18:10
The title of this thread is streaming to the PS3 which can't handle VC-1 right?

not in a m2ts structure, you would have to reencode to AVC with megui.

Poseidon79
2nd February 2009, 00:39
As the guide says... Demux the audio only file with tsremuxer.... Use eac3to to convert HD Audio stream to PCM in combination with Pcm2Tsmu13 to make it tsremuxer friendly. Then use tsremuxer to combine the video stream only and the PCM audio stream into a m2ts file and you end up with High Def Video AND Audio. In order to actually get the HD audio from the PS3 to the receiver it MUST be through the HDMI cable. Optical can't do HD audio. I've backed up 6 movies so far today and they all look and sound amazing streaming through TVersity.

jamos
11th March 2009, 22:45
Update: if you have a 7.1 receiver and using DTS-HD 7.1 sources converted to LPCM 7.1 there is a bug in tsmuxer that swaps the center channel with the right front channel

to work around this do the following when you extract the pcm audio from the DTS-HD source remap the channels so that channel 2 and channel 1 are swapped. Then proceed as normal. Vola your center will now play using your center speaker...:D

For DTS-HD support with eac3to you need to install arcsofts totalmedia theater dts sonic decoder..think you do not have to register it for it to work.

ex:
eac3to app.dts app.pcm -0,2,1,3,4,5,6,7
pcm2tsmu app.pcm output.pcm -c 8
then use tsmuxer with your video and use output.pcm as your audio..vola 7.1 lpcm streaming..

asarian
11th March 2009, 23:50
Update: if you have a 7.1 receiver and using DTS-HD 7.1 sources converted to LPCM 7.1 there is a bug in tsmuxer that swaps the center channel with the left front channel

to work around this do the following when you extract the pcm audio from the DTS-HD source remap the channels so that channel 2 and channel 1 are swapped. Then proceed as normal. Vola your center will now play using your center speaker...:D

For DTS-HD support with eac3to you need to install arcsofts totalmedia theater dts sonic decoder..think you do not have to register it for it to work.

ex:
eac3to app.dts app.pcm -0,2,1,3,4,5,6,7
pcm2tsmu app.pcm output.pcm -c 8
then use tsmuxer with your video and use output.pcm as your audio..vola 7.1 lpcm streaming..

Is tsMuxeR 1.8.8 also affected by this? Or just the newest version? Anyway, good thing I just use LPCM 5.1 (only have the 5.1 speaker set).

jamos
12th March 2009, 03:24
Is tsMuxeR 1.8.8 also affected by this? Or just the newest version? Anyway, good thing I just use LPCM 5.1 (only have the 5.1 speaker set).

All versions of TSmuxer are affected and if your streaming ac3 5.1 then leave it alone as ac3 can be streamed fine as is and LPCM 5.1 works fine as is.

btw the latest version is 1.8.24 not 1.8.8 (I know the version numbers are confusing).:scared:

tebasuna51
12th March 2009, 03:48
Update: if you have a 7.1 receiver and using DTS-HD 7.1 sources converted to LPCM 7.1 there is a bug in tsmuxer that swaps the center channel with the left front channel
...
eac3to app.dts app.pcm -0,2,1,3,4,5,6,7


To swap center channel with the left front channel you need -2,1,0,3,4,5,6,7

To swap center channel with the Right front channel you need -0,2,1,3,4,5,6,7

BTW I test ArcSoft, eac3to and TsMuxer and I can't reproduce your problem.

Please, can you test in your audio system this test file than work fine for me?

8Test_p.7z (http://www.sendspace.com/file/yzyiap)

Edit: forget the video, is for a 5.1 test

jamos
12th March 2009, 18:17
To swap center channel with the left front channel you need -2,1,0,3,4,5,6,7

To swap center channel with the Right front channel you need -0,2,1,3,4,5,6,7

BTW I test ArcSoft, eac3to and TsMuxer and I can't reproduce your problem.

Please, can you test in your audio system this test file than work fine for me?

8Test_p.7z (http://www.sendspace.com/file/yzyiap)

Edit: forget the video, is for a 5.1 test

I am sorry I meant the Right Front channel is swapped with the center channel. This only happens with 7.1 receivers (may be a streaming issue??) streaming to ps3 with 7.1 LPCM source.

Is the sample you have there a 7.1 lpcm source?

rica
12th March 2009, 18:37
I would have to say that he hasn't cut it properly then.

True.

Guys you should use a hex-editor or head.exe for cutting m2ts.

tebasuna51
12th March 2009, 19:15
Is the sample you have there a 7.1 lpcm source?

But you listen properly the sample?.

The initial audio was a wav make by me with a previous test channel.

But I convert the wav to lpcm with eac3to, after with pcm2tsmu and after muxed with TsMuxer.

Also I try with arcsoft and a DTS-MA 7.1 sample with a clear center channel.

Answer to my question or don't recommend useless remapping.

jamos
13th March 2009, 00:04
But you listen properly the sample?.

The initial audio was a wav make by me with a previous test channel.

But I convert the wav to lpcm with eac3to, after with pcm2tsmu and after muxed with TsMuxer.

Also I try with arcsoft and a DTS-MA 7.1 sample with a clear center channel.

Answer to my question or don't recommend useless remapping.

ok not understanding all you said here. but remapping is the only way to get this to work and for me this is definatly not useless.

First thank you for the file.

Front Left is playing through Front Left speaker
Front Right is playing through center speaker
Center is playing through Front Right speaker
LFE is playing through Side Left speaker
Side Left is playing though Side Right speaker
Side Right is playing through Back Left speaker
Back Left is playing through Back Right speaker
Back Right is playing through LFE speaker

I then did a sound test with my amp all channels are configured fine and plays fine with DTS-HD 7.1 and lpcm 7.1 from bluray disks.

Next I will try not streaming but using a usb thumbdrive to play the file to see if it is tversity.

And it is not useless remapping if you having issues like this with 7.1 lpcm..like I said unless you have a 7.1 LPCM capable amp you really cannot test this.

usb drive did same thing as channels playing out of wrong speakers.

Does anyone else have a ps3 connected with a 7.1 amp to test this also?

could be my amp I am guessing but very wierd...

tebasuna51
13th March 2009, 03:03
Front Left is playing through Front Left speaker
Front Right is playing through center speaker
Center is playing through Front Right speaker
LFE is playing through Side Left speaker
Side Left is playing though Side Right speaker
Side Right is playing through Back Left speaker
Back Left is playing through Back Right speaker
Back Right is playing through LFE speaker
Yes, you have a problem.

I then did a sound test with my amp all channels are configured fine and plays fine with DTS-HD 7.1 and lpcm 7.1 from bluray disks.
Using PS3 as player?

And it is not useless remapping if you having issues like this with 7.1 lpcm..like I said unless you have a 7.1 LPCM capable amp you really cannot test this.
I have PS3 but only 5.1 receivers. Sorry I can't test PS3 -> HDMI -> 7.1 receiver.

My test are in PC with analogic output.

jamos
13th March 2009, 04:30
Yes, you have a problem.


Using PS3 as player?


I have PS3 but only 5.1 receivers. Sorry I can't test PS3 -> HDMI -> 7.1 receiver.

My test are in PC with analogic output.

is the channel order that your made your wav FL,FR,C,LFE,BL,BR,SL,SR ?

thanks for any help trying to remap this. ps3 plays 7.1 lpcm files fine through bluray but am wondering if it cannot play m2ts files properly with 7.1 lpcm or prolly a firmware issue with my ps3 i am guessing.

jamos
13th March 2009, 05:36
got your file playing on the correct channels using

eac3to.exe test.m2ts 2: test2.wav -0,2,1,3,6,4,5,7

I will try this out on one of my files to see if it fixes it. BTW using wav with new version of TSmuxer I do not need to use PCM2TSMU so maybe you can finally get rid of supporting it!

I did take your file and converted it to 6 channels and it plays fine with no remapping, so I am thinking this is a TSmuxer bug with 8 channel wav/pcm files or a ps3 glitch with 8 channel lpcm playback. either way I have a good workaround.

thanks for all the help:thanks:

jamos
13th March 2009, 12:24
hmm large wav files cause tsmuxer to crash randomly when muxing. so we still need to use pcm.

jamos
13th March 2009, 19:00
Ok remapping channels as shown above doesnt work with wav because tsmuxer blows up when handling big wav files. PCM does not work with the same remapping channels as it is in a different order when demuxed from dts. so I will have to play with settings to see what remapping is needed for pcm files. AFAIK it is tsmuxer messing with the channel order and nothing to do with my ps3 or reciever, as trying to import the wav file from the m2ts sample you posted Scenarist complains that the order is incorrect..
ie it is not FL,FR,FC,LFE,BL,BR,SL,SR

tebasuna51
13th March 2009, 23:56
Ok remapping channels as shown above doesnt work with wav because tsmuxer blows up when handling big wav files. PCM does not work with the same remapping channels as it is in a different order when demuxed from dts. so I will have to play with settings to see what remapping is needed for pcm files. AFAIK it is tsmuxer messing with the channel order and nothing to do with my ps3 or reciever, as trying to import the wav file from the m2ts sample you posted Scenarist complains that the order is incorrect..
ie it is not FL,FR,FC,LFE,BL,BR,SL,SR

Use always eac3to to demux the wav file from the .m2ts

Using TsMuxer_1.8.28(b) to demux my sample the output file is 4 bytes long than source (datalength isn't a multiple of BlockAlign and for this can be rejected by authoring programs), and the Back channels are changed with Side channels.

If Scenarist reject the file demuxed with eac3to then is a Scenarist problem, because the file is perfect with all header fields correct.

jamos
14th March 2009, 04:51
Use always eac3to to demux the wav file from the .m2ts

If Scenarist reject the file demuxed with eac3to then is a Scenarist problem, because the file is perfect with all header fields correct.

Thanks I do use eac3to to demux to wav. Scenarist is always been very accurate and picky on what it accepts. not sure why it tells me the order is wrong with demuxed eac3to DTS-HD 7.1 sources to .wav files, strange. is there any tool out there that tells you the order of the channels in a wav or pcm file?

Like I said above Scenarist is saying the header does not match the actual channels in the demuxed wav file which is strange.

thanks..

ps can you link the .wav file that you have, before you muxed it in that m2ts file? I would like to try it with scenarist.

jamos
14th March 2009, 08:08
Ok got some more info from a sample 8 channel wav file.

it seems that tsmuxer expects 8 channel wav files in this order to mux properly:
LF,C,RF,SL,SR,BL,BR,LFE

so to remap a wav extracted with eac3to I use:
-0,2,1,6,7,4,5,3

I will test pcm next...but need to know the order that pcm is remapped nativly from eac3to.

tebasuna51
14th March 2009, 23:09
Ok got some more info from a sample 8 channel wav file.

it seems that tsmuxer expects 8 channel wav files in this order to mux properly:
LF,C,RF,SL,SR,BL,BR,LFE

Nope a wav file can't have this order, the order is:
FL,FR,FC,LF,BL,BR,SL,SR

My sample file have this order and play fine in my system.

You don't need my wav sample, just use eac3to to extract the wav.

jamos
14th March 2009, 23:19
Nope a wav file can't have this order, the order is:
FL,FR,FC,LF,BL,BR,SL,SR

My sample file have this order and play fine in my system.

You don't need my wav sample, just use eac3to to extract the wav.



already contacted smlabs they confirmed that TSmuxer is not working correctly with muxing 8 channel wavs and pcm.

jamos
16th March 2009, 05:34
ok here is my status on lpcm 7.1 using streaming and m2ts files.

Wav files are messed up with tsmuxer, they have wierd output with sound if your using a wav file larger than 4 gig. (channel switches randomly on playback after about a hour)..so no go there.

PCM 7.1 works with remapping the channels using eac3to with
-0,2,1,6,5,3,7,4 then pcm2tsmu (thanks to tebasuna51 for providing me with a clean 7.1 m2ts sample to test channel mapping). I think tsmuxer folks are working on it but not sure as they do not speak english very well and communications is limited. so for now the remapping works well for me.

jamos
11th April 2009, 18:37
This is the perfect step by step guide to use for a n00b like me and everyone else. I've tested 2 movies and it's exactly what I want. An m2ts file with HD video and HD PCM audio 5.1 to stream to my PS3 with TVersity.

http://forums.afterdawn.com/thread_view.cfm/704460#4286006

his guide is a bit wrong. mainly you have to convert the pcm file using pcm2tsmu.exe before you can use it in tsmuxer.

drpaulng
12th April 2009, 16:21
jamos,

Does PS3 reject playing videos with lossless audio in .m2ts, .ts? Or tsmuxer does not mux lossless audio at all?

jamos
12th April 2009, 16:28
jamos,

Does PS3 reject playing videos with lossless audio in .m2ts, .ts? Or tsmuxer does not mux lossless audio at all?
PS3 will not play any hd audio from files (ie true-hd, DTS-HD) but will play up to 7.1 LPCM audio. If you use eac3to to extract the (true-hd, dts-hd) HD audio correctly and converted to LPCM audio you will get the same quality as the original lossless formats but the file size increases.

tsmuxer muxes all lossless audio without issues now.

deank
12th April 2009, 16:46
PS3 will play HD audio if in BD or AVCHD, but not directly from XMB.