PDA

View Full Version : AVI-DTS to DVD-DTS


marnix88
23rd September 2004, 01:33
Hello

For the past couple of weeks I've been messing around with DVD ripping and with encoding AVI's to DVD.
The problem is that I've ripped my Planet of the Apes DVD to an AVI with DTS audio and I'm trying to encode it back to DVD to see if I will lose a lot of quality. It video works fine, but the DTS audio doesn't work on the DVD, because it's not compatible. There simply is no sound when I play it with my standalone DVD player and PowerDVD doesn't recognize the audio. I found out that for AC3 audio I can use AC3Machine to transcode the audio and then it's DVD compatible, but what do I use for DTS audio ?

I did a search for 'DTS' in this section and read quite a few threads, but none of them seem to help. I experimented with dtsdec, but I get a 174mb wav file that doesn't work, while the original DTS file is almost 600mb.

I also experimented with this (http://forum.doom9.org/showthread.php?s=&threadid=74017&highlight=dts) guide without changing the samplerate. I even tried to do a DTS to DTS transcode with the programs from the guide and by changing a few options, but it just won't work. I either get an audio file that's very small and doesn't work, error messages or I get a 600mb DTS file that screeches. The DTS FAQ isn't answering my question either.

I've probably missed something, but it all starts to get a bit confusing now, so it would be nice if someone could point me into the right direction.

Thank you.

Matthew
23rd September 2004, 07:45
I've never deal with DTS before but I'll have a bit of a stab under the assumption that DTS is treated similarly to AC3.

How are you extracting the audio? nandub's "save wav" for example adds a 58 byte wave header which should be removed. VirtualDubMod's streamlist,demux feature should demux audio without any artificial header.

One possibility is that the original DVD had an audio delay. In the case of a negative audio delay this would lead to the first frame being a partial frame which needs to be removed before authoring. In the case of a positive audio delay, the audio file will have junk data (such as 0s) at the top which needs to be removed. If there is a delay then VirtualDubMod's demux will still output a file with data that needs to be removed, it just won't have a wave header.

Now in the case of AC3 you can just use besplit/bespliced to remove this junk. "delaycut" seems to support DTS but I've only used it for AC3. Perhaps give that a go. Other than that, try a hex editor, bearing in mind that DTS is CBR so every frame will be the same length in bytes (in the case of AC3 this is 4 x bitrate). Once you get familiar with the beginning-of-frame-marker it should be quite easy to delete junk/partial frames at the start.

marnix88
23rd September 2004, 14:31
Delaycut works!

I extracted the audio with VirtualDub_AC3. and renamed it from .wav to .dts.
Then I used the command line delaycut.exe -start 50 <input>.dts
Only now I need to find out if 5 or 10 ms is sufficient as well instead of 50ms.

Thank you very much Matthew :)

Matthew
23rd September 2004, 14:37
Doesn't delaycut just have a fixing option?

Anyway, even if you specify 0 at the start point, delaycut will almost certainly cut from the first good frame :)

marnix88
23rd September 2004, 15:04
Yes, 0 works as well.

Thanks again :)