Log in

View Full Version : DTS in AVI muxing


Kadmium
29th December 2002, 11:30
Since I haven't seen it in any news or seen anyone talking about it, I assumed no-one knew it was available so I thought I'd announce it: thanks to the latest version of AVI-Mux GUI, it's now possible to mux DTS audio in an AVI file. w00t w00t.

This is not a full solution yet, as there is no DTSfromAVI filter, and AC3fromAVI does not support DTS (well, to the best of my understanding, it sort of does, but your decoder filter will try to decode it as AC3). So, you can't really play it back yet (a demuxed DTS file will still play in PowerDVD or WinDVD though, it's still intact and not a trick). I just thought everyone who's really wanted this (I know I have) would want to know that it's nearly within reach, we just need a filter.

There's a thread on the developer's forum asking for one, if anyone's interested: http://forum.doom9.org/showthread.php?s=&postid=230993 . Also, if you'd like to learn more about DTS, you'd do well to read http://webapp.etsi.org/action\PU/20020827/ts_102114v010101p.pdf .

Thank you all for your attention.

gabest
5th January 2003, 01:36
Oh, I wanted to open a new thread here in the audio section, but as it seem Kadmium has already done it long ago ;)

So, the needed filters to test this are here:
http://download.vobsub.edensrising.com/test.rar

Howto:

(0. run regsvr32.exe on *.ax)
1. demux audio to *.dts with dvd2avi
2. in graphedit create the following graph:
file source async (*.avi) -> avi splitter -> avi mux -> file writer (*.avi)
dtssource (*.dts) ----------------------------^
3. configure avi mux (set interleave to full) and run the graph till it complets.
4. test the output in some player

Note: the only decoder I could find so far to properly decode dts was the latest iviaudio.ax, but there might be others too...

alexnoe
8th January 2003, 19:41
AVI-Mux GUI seems to have a strange issue at the moment with DTS...

hopefully fixed: a bitrate indicator of 768 kBit means 754.50 in reality. That's clearly said in the specs file, but I missed it :(
Now, muxing it with AVI-Mux GUI should result in a proper file.

tiki4
11th January 2003, 14:30
Hi guys,

it's chistmas again. Actually I produced my first AVI with DTS sound that can be played on my computer. I demuxed the DTS soundtrack from U-571 with DVD2AVI (1.77.3), then encoded the video with avs2avi to DivX5, then I used AviMux 1.11 to create the AVI file (fits on three CDs). Well, I wasn't too much interested in such a thing before as I usually just keep the 5.1 AC3 streams and I don't have an external decoder, just an Audigy and an 5.1 speaker setup.

But now the funny part. The file doesn't play in Windows Media Player, but my WinDVD 4 plus plays the file without any problems, even with the right aspect ratio (this wasn't possible in WinDVD 3, I think). Well, I don't have WinDVD 4.5 so I didn't expect that.

Anyhow it's a feature that was requested permanently in this forum and now it is finally possible, unfortunately I don't have a DVD burner. I just wanted to say thank you in the end for implementing such a great thing in such a short time. Please keep up the great work.

Regards,

tiki4

Chibi Jasmin
11th January 2003, 15:08
To play it in Media Player you can try the dtssource.ax filter from gabest. Still in test stage, look into the development forum for this.

tiki4
11th January 2003, 15:29
Hi Chibi Jasmin,

well, I tried this with Graphedit: Demuxed .dts stream (created by DVD2AVI), connected to dtssource.ax -> iviaudio.ax (tried my 4.0 and the 4.5 of gabest) -> render pin...

The graph plays, but I can't hear a thing.

My setup: Win2K SP3, SB Audigy, 5.1 speakers by Creative, DirectX 8.1b, latest Audigy drivers.

Sorry, but for me it doesn't seem to work.

tiki4

MaTTeR
11th January 2003, 15:34
Originally posted by tiki4
The graph plays, but I can't hear a thing. That's about as far as I've made it too though I haven't spent much time playing with it yet.

Chibi Jasmin
11th January 2003, 15:57
Originally posted by tiki4
Hi Chibi Jasmin,

well, I tried this with Graphedit: Demuxed .dts stream (created by DVD2AVI), connected to dtssource.ax -> iviaudio.ax (tried my 4.0 and the 4.5 of gabest) -> render pin...

The graph plays, but I can't hear a thing.

My setup: Win2K SP3, SB Audigy, 5.1 speakers by Creative, DirectX 8.1b, latest Audigy drivers.

Sorry, but for me it doesn't seem to work.

tiki4

Well, all I did was register dtssource.ax (regsvr32 dtssource.ax) and open the *.dts in ZoomPlayer...it connected automatically with iviaudio and ReClock (or Default DirectSound).

and did you have gabest's latest version? It's in an archive called test.rar...


Only problem was, the length shown/timeline was too short...I have been using a DTS-Stream converted from a DTS-wav from a DTS-CD with BeSplit. (44.1 KHz 1411.2 kbps)

In the development forum, they say DVD2avi actually cuts the first 3 bytes or something like that, not sure...maybe read there or try demuxing with another tool...

gabest
11th January 2003, 16:19
Meanwhile I figured out what those three bytes were, they just tell the starting offset of the sync header of the next ac3/dts frame within a PES packet.

tiki4: If you can, please upload a small sample of your dts file. I'm sending you my ftp address in a pm.

Chibi Jasmin
12th January 2003, 14:38
So what does this mean? Does it hurt to omit these 3 bytes or not?
In other words, is the DVD2AVI demuxed dts-stream valid or not? And how about the DTS-Streams demuxed by DVD Decrypter etc.?

tiki4
12th January 2003, 16:28
@gabest:

Thanks gabest, I will upload the file tomorrow. Sorry, I don't have it here, it's from the DVD U-571 PAL. Can I use VirtualDub's HexEdit to cut the file? I'm not sure how to cut a DTS file with the tools I have.

By the way, I tried to decode the file to something like multichannel WAV in Graphedit. I connected the iviaudio.ax with the WAV Dest and then with the file writer. Is this the right way to do? All I got was a file the wasn't accepted by BeSweet. Also it may be that BeSweet doesn't accept multichannel WAV as input. Well, I don't know.

That's how far I got till now.

tiki4

P.S.: @Chibi Jasmin: I have the version dated 5th of January from an archive called test.rar.

Chibi Jasmin
12th January 2003, 17:14
Yeah, i used the same version...

tiki4
12th January 2003, 17:22
Update to the above:

It seems BeSweet 1.5b11 doesn't accept multichannel WAV, so I will try later on again to encode with BeSweet 1.4.

tiki4

gabest
13th January 2003, 00:03
Originally posted by Chibi Jasmin
So what does this mean? Does it hurt to omit these 3 bytes or not?
In other words, is the DVD2AVI demuxed dts-stream valid or not? And how about the DTS-Streams demuxed by DVD Decrypter etc.? It is a valid file, those 3 bytes are not part of the dts data. No idea about dvddecrypter, I don't have any dvd with dts sound.

tiki4:

You don't have to cut the file, just abort the upload after a while.

ookzDVD
13th January 2003, 05:02
I use .dts file demuxed from the DVD-decrypter without problem. :)

tiki4
13th January 2003, 09:23
@gabest:

Sorry,

you have to wait a day longer. Someone died in my family yesterday. I got lots of other things to do this day. I'll upload tomorrow. Thanks for the hint with the splitting.

Cheers,

tiki4

Wilbert
13th January 2003, 13:21
Sorry for a newbie question: Is it possible to demux dts with vstrip? I guess for AC3 you need to check demux, AC3 header (or don't you need that) and select the AC3 track, but I don't see "DTS header" anywhere?