Log in

View Full Version : Decode DTS files with Unspecified or Open Bitrate


Pages : [1] 2

xastlin
2nd June 2003, 21:37
Greatings,

I am trying to consolidate my collection of DTS CD's onto DVD's due to my player having difficulty playing DTS CD's without problems.

Both Wav2dts and besplit will create a dts file from a dtswav file that will play in PowerDVD using the dtssource.ax filter just fine.

The resulting dts file however will not import into Maestro complaining about invalid file type or sampling rate. The sampling rate is set to 48Khz by ssrc.

If I use azidts and split the file into 6 mono wav files and then reencode using Surcode DVD Pro I will get a valid dts stream, however azidts or graphedit will fail on dtssource.ax with a dts stream that has an open bitrate (or typically anything other than 1411 Kbps). I have tried using hypercube to no success, graphedit with the dtswavsource.ax filter also does not work.

I have also used the DTSparser and it does not help unfortunately

Has anyone had success in spliting these open bitrate dts files or found a method to allow the dts file created by besplit or wav2dts to be imported into Maestro without errors?

Here is a logfile of the process I am using.

D:\DTS>rem - Convert DTSWAV to DTS

D:\DTS>d:\besweet\besplit -core( -input d:\DTS\source\track02.wav -output d:\dts\02.dts -type dtswav -fix ) -ota( -fs 44100 )
BeSplit v0.9b4 by DSPguru.
--------------------------

[00:00:00:000] +------- BeSplit -----
[00:00:00:000] | Input : d:\DTS\source\track02.wav
[00:00:00:000] | Source Sample-Rate: 44.1KHz
[00:00:00:000] | Channels Count: 5.1, Bitrate: Not specified
[00:00:00:000] | Output : d:\dts\02.dts
[00:00:00:000] +---------------------
[00:05:56:426] | Writing d:\dts\02.dts
[00:05:56:426] +---------------------
[00:05:56:426] Operation Completed !
[00:00:06:000] <-- Process Duration


Visit BeSplit's Webpage at :
http://BeSplit.doom9.org/

D:\DTS>rem - Convert DTS to 6 seperate Wav files - For DTS

D:\DTS>d:\besweet\azidts -core( -input d:\DTS\02.dts -output d:\DTS\02 -6ch ) -ota( -fs 44100 ) -ssrc( --rate 48000 )

Thanks in advance,

Xastlin

DSPguru
2nd June 2003, 22:29
please post a problematic sample (~3mb) and mention its source (encoded with surcode dvd/encoded with surcode cd/ripped from dts-cd and fixed with BeSplit/etc'..)

xastlin
2nd June 2003, 22:50
I don't have the ability to post attachments.

Maybe I am missing something?

Thanks,

Xastlin

DSPguru
2nd June 2003, 23:24
it seems to be a minor bug in the source filters. if you want, i can add a switch to BeSplit that overrides the bitrate information with whatever you want..

DSPguru
2nd June 2003, 23:32
BeSplit.exe (http://BeSweet.notrace.dk/BeSplitv0.9b5.zip) -core( -input .. -output .. -logfile .. -type dts -b 768 )



if you don't know the bitrate value (in above example 768), run BeSplit once and see the actual avg. bitrate value it finds. then, use this value to fix the stream.

xastlin
2nd June 2003, 23:32
That may work. :p

Would azidts work with a specified bitrate that would be generated by besplit?

Thank you for helping with this.

Xastlin

DSPguru
2nd June 2003, 23:35
my tests shows it does the trick. please try and post all your logfiles :D

xastlin
3rd June 2003, 00:01
OK, Here goes,

I converted the file from DTSWAV to DTS with the following:

besplit -core( -input 02.wav -output 02.dts -logfile d:\dts\besplit.log -type dtswav )

[00:00:00:000] +------- BeSplit -----
[00:00:00:000] | Input : 02.wav
[00:00:00:000] | Source Sample-Rate: 44.1KHz
[00:00:00:000] | Channels Count: 5.1, Bitrate: Not specified
[00:00:00:000] | Output : 02.dts
[00:00:00:000] +---------------------
[00:05:56:426] | Writing 02.dts
[00:05:56:426] +---------------------

[00:05:56:426] Actual Avg. Bitrate : 1411kbps[00:05:56:426] Operation Completed !
[00:00:05:000] <-- Process Duration

Then I run the following command to find the avg Bitrate:

besplit -core( -input 02.dts -output 02N.dts -logfile d:\dts\besplit2.log -type dts )

[00:00:00:000] +------- BeSplit -----
[00:00:00:000] | Input : 02.dts
[00:00:00:000] | Source Sample-Rate: 44.1KHz
[00:00:00:000] | Channels Count: 5.1, Bitrate: Not specified
[00:00:00:000] | Output : 02N.dts
[00:00:00:000] +---------------------
[00:00:00:046] Stream error : Sync found after 3583 bytes <--- I get several hundred of these
[00:02:58:213] | Writing 02N.dts
[00:02:58:213] +---------------------

[00:02:58:213] Actual Avg. Bitrate : 2469kbps[00:02:58:213] Operation Completed !
[00:00:11:000] <-- Process Duration

Regardless if I punch in the Avg Bitrate from the DTSWAV conversion (1411) or dts (2469) the resulting file is about half the size and twice as fast respectfully.

The log is the same if I specify a bitrate.

I also tried 3584 which is the frame size listed by DTSParser.

I haven't messed with the sample rate (44100 to 48000) in my testing.

If you desire I can post the entire logfile but that would be huge.

Thanks,

Xastlin

DSPguru
3rd June 2003, 00:04
1. fix dtswav into dts with v0.9b4
2. use v0.9b5 on the fixed dts together with "-b 1411"
3. try your luck and post your logfiles

xastlin
3rd June 2003, 00:11
Still the same problem :(

BeSplit v0.9b4 by DSPguru.
--------------------------

Logging start : 06/02/03 , 19:09:22.

d:\besweet\besplit\besplit -core( -input 02.wav -output 02.dts -logfile d:\dts\besplit.log -type dtswav )

[00:00:00:000] +------- BeSplit -----
[00:00:00:000] | Input : 02.wav
[00:00:00:000] | Source Sample-Rate: 44.1KHz
[00:00:00:000] | Channels Count: 5.1, Bitrate: Not specified
[00:00:00:000] | Output : 02.dts
[00:00:00:000] +---------------------
[00:05:56:426] | Writing 02.dts
[00:05:56:426] +---------------------
[00:05:56:426] Operation Completed !
[00:00:06:000] <-- Process Duration
Logging ends : 06/02/03 , 19:09:28.

BeSplit v0.9b5 by DSPguru.
--------------------------

Logging start : 06/02/03 , 19:09:33.

besplit -core( -input 02.dts -output 02N.dts -logfile d:\dts\besplit2.log -type dts -b 1411 )

[00:00:00:000] +------- BeSplit -----
[00:00:00:000] | Input : 02.dts
[00:00:00:000] | Source Sample-Rate: 44.1KHz
[00:00:00:000] | Channels Count: 5.1, Bitrate: 1411.2kbps
[00:00:00:000] | Output : 02N.dts
[00:00:00:000] +---------------------
[00:00:00:046] Stream error : Sync found after 3583 bytes
[00:02:58:213] Stream error : Sync found after 3583 bytes
[00:02:58:213] | Writing 02N.dts
[00:02:58:213] +---------------------

[00:02:58:213] Actual Avg. Bitrate : 2469kbps[00:02:58:213] Operation Completed !
[00:00:13:000] <-- Process Duration
Logging ends : 06/02/03 , 19:09:46.

DSPguru
3rd June 2003, 00:29
i had removed the -b switch.
all those issues are probably relevant only for dtswav, so i had hardcoded the open-bitrate modification to 1411 always for dtswavs.

Originally posted by xastlin
Has anyone had success in spliting these open bitrate dts files or found a method to allow the dts file created by besplit or wav2dts to be imported into Maestro without errors?fyi, you can split while converting dtswav into dts.

-core( -input -output -logfile -type dtswav ) -split( ... )

xastlin
3rd June 2003, 01:33
Ask and You Shall Receive!!!

DSPGuru, you never cease to amaze me.

That worked like a champ. It looks like I will be busy for the next few days moving all my DTS CD's to DVD. :D

Now if we could only backup DVD-Audio ;)

Keep up the great work!

Xastlin

Lem
27th January 2004, 00:31
similar problem here. azidts crash immediately with no log with 'open' bitrate dts (the info comes from dtsparser ).
this track plays ok with powerdvd.
no problem with an other dts with 1412 bitrate.

Lem
2nd February 2004, 01:07
I think I've the same problem that xastlin. But new release of BeSplit doesn't fix it.

I've just rip one track from a DTS-CD.
=> 1.wav 40 Mo
I had converted it using BeSplit. Seems ok, it's finding a bitrate.
=> 1.dts 17 Mo
I play the DTS with PowerDvD, it's playing about twice fast as the original on the CD.

here's my logfile :

BeSplit v0.9b6 by DSPguru.
--------------------------

Logging start : 02/02/04 , 01:00:55.

besplit -core( -input e:\tmp\dts\1.wav -output e:\tmp\dts\1.dts -logfile e:\tmp\dts\besplit.log -type dtswav )

[00:00:00:000] +------- BeSplit -----
[00:00:00:000] | Input : e:\tmp\dts\1.wav
[00:00:00:000] | Source Sample-Rate: 44.1KHz
[00:00:00:000] | Channels Count: 5.1, Bitrate: 1411.2kbps
[00:00:00:000] | Output : e:\tmp\dts\1.dts
[00:00:00:000] +---------------------
[00:01:56:294] | Writing e:\tmp\dts\1.dts
[00:01:56:294] +---------------------
[00:01:56:294] Operation Completed !
[00:00:05:000] <-- Process Duration
Logging ends : 02/02/04 , 01:01:00.

DSPguru
3rd February 2004, 04:37
smells like a syncing problem..
use virtualdub's (or any other) hex-editor to cut the first 1mb of the dtswav file and mail it to me, so i can analyze it.
(I PM (http://forum.doom9.org/private.php?s=)ed you with my email address).

iqt
6th February 2004, 12:13
similar problem here.
the *.dts file has less than half size of the *.wav file after "besplitting" it. DSPGuru do you need more examples?

IQT

DSPguru
7th February 2004, 03:56
yes, i need a sample! didn't get a mail from lem..

Lem
7th February 2004, 10:48
I've sent you a mail 2 times ;)
first : you mailbox was full :rolleyes:
2nd : you did not received it ? :(
3rd : ok, I mail you another one just now :D

DSPguru
7th February 2004, 13:15
10x, got your sample! retry with attach.

Lem
7th February 2004, 13:46
Works great.
thanks a lot.

planet1
13th February 2004, 05:19
Hi,

well I can confirm that the new BeSplit 0.9 Beta 7 can handle all "DTS-WAV" (open bitrate / or not )files correctly now.

The initial problem was that the DTS Parser (DTS-wav to DTS, or DTS fixing tool) couldnt handle DTS-Wavs with open bitrate (found only on "original" DTS-CDs) at all - the results werent playable.

BeSplit Beta6 on the other hand produced some playable results, but those were only half of the normal size and played twice the normal speed (fixed-bitrate files were processed correctly).

There was a workaround (by transcoding to PCM) involving GraphEdit - but that wasnt the ideal solution - because it used intervideos audio filter which always resampled the end material to 48kHz.

My tests on these 2 CDs (open-bitrate):

http://www.dtsentertainment.com/sellsheet-md.php?upc=710215104423
http://www.telarc.com/dts/title.asp?sku=CD%2D84402%2DDTS&mscssid=SDF30AM8D7LD8KRD38NQM7LP18L12ATD

produced working .dts files - playable by PowerDVD and MediaPlayer
(transcodings via Besweet+azidts+intervideo were also possible).


The fixed-bitrate (most likely outputted by some "newer" encoder) DTS-Wavs also work (in fact the results of BeSplit and DTSParser are bit-identical ;) ).
Some samples can be found here: http://www.sr.se/multikanal/english/e_index.stm (the concert pieces should also be suited for non-scandinavians :p )



@DSPguru

well first thank you MAESTRO !!! :cool:

2. can you confirm that the problem was only in the header:

DTSParser (not working): .....|..c..:
BeSplit 0.9b7 (working): .....|..b..:

3. are those really open-bitrate files (meaning different bitrate), or just normal 1234 kb/s (packed in 1411 kb/s for Red-Book CD compliance, but lacking bitrate info) ones?

4. thx also for BeSliced (im not a commandline enthusiast) ;)





@xastlin

if I got it right your trying to put multiple DTS CDAs onto one DVD-Video (using DTS) - but why :confused: ???
Your way would be decoding the DTS-Wavs to PCM - resampling them to 48kHz - and reencoding them back to DTS. But that would involve a more or less serious quality degradation - wouldnt it ?

You could create some DVD-Audios (in a few years of course - $$$)having 44.1kHz PCM tracks (MLP isnt needed) - that wouldnt require a recompression to a lossy format [i doubt DVD-Audio supports 44.1kHz dts files in its VIDEO_TS folder - though it would be the perfect solution :(]

Anyway if you still wanna do it on DVD-Video i hope your encoding the new new DTS tracks at 1536 kb/s (not 768).



BTW i wouldnt use azidts (+besweet dll + intervideo filter) anymore:

1. the "stupid" directshow filter always resamples to 48kHz

2. if you choose 6 - mono PCM - wavs as output the results are mislabeled e.g. the actual LFE is now Center

(maybe that output option works only for AC3 - though im not sure - havent tested it yet)


as a possible alternative you can use VideoLAN 0.7.1 !!! beta !!!

http://download.videolan.org/pub/testing/vlc-0.7.1-test1/win32/vlc-0.7.1-test1-win32.exe


it can play DTS and DTS-Wavs - and output them to a 6ch PCM WAVE file :D (maintaining the correct sampling rate) .

The only problem is to find a working "6chwav to 6 mono-wavs" extraction tool. No Besweet isnt doing it right either - and I wouldnt want to just guess the channels :scared: .


ok enough for now,

CU

DSPguru
14th February 2004, 22:21
@planet1
10q.

2. yeap. BeSplit replaces the "open bitrate" header with a cbr header.
(it also converts the 14bit data into 16bit, therefore the extracted dts streams are 12.5% smaller)
3. normal

channel mapping issues,
BeSweet cannot decode dts. q7b (http://forum.doom9.org/showthread.php?s=&threadid=15738).
as for azidts that uses BeSweet.dll - the channel mapping had been tested when the tool was introduced, and if the channel mapping is wrong now, perhaps it's due to changes in the windvd filter.. ?

Originally posted by iqt
similar problem here.
the *.dts file has less than half size of the *.wav file after "besplitting" it. DSPGuru do you need more examples?

IQT i checked the sample you sent me, and it works for me.
i'm attaching (http://dspguru.notrace.dk/iqt-dtswav.zip) the sample, if anyone else feels like testing..

Lem
15th February 2004, 01:31
I 've got a sample that v0.9b7 can't handle properly !
the file ouput is about half the size of the original.

C:\>Z:/DTS/besplitv0[1].9b7/BeSplit.exe -core( - input "e:/tmp/dtswav/01.wav" -output "e:/tmp/dts/01.dts" -type dtswav -fix )
BeSplit v0.9b7 by DSPguru.
--------------------------

[00:00:00:000] +------- BeSplit -----
[00:00:00:000] | Input : e:/tmp/dtswav/01.wav
[00:00:00:000] | Source Sample-Rate: 44.1KHz
[00:00:00:000] | Channels Count: 5.1, Bitrate: 1411.2kbps
[00:00:00:000] | Output : e:/tmp/dts/01.dts
[00:00:00:000] +---------------------
[00:02:17:752] | Writing e:/tmp/dts/01.dts
[00:02:17:752] +---------------------
[00:02:17:752] Operation Completed !
[00:00:05:000] <-- Process Duration

@DSPGuru => do want the first 1mb of this dtswav ?

planet1
15th February 2004, 01:51
hi lem,


you got an interesting problem there.

First of all what kind of DTS-Wav is that from an original DTS-CD (open-bitrate) or some selfmade DTS-Wav.

What does the DTSParser say (open-bitrate or not) [ http://hypercube.is.dreaming.org/ ]???


You could also try this - use DTSParser for DTSWAV ----> DTS, the result shouldnt be playable though.
Then take that fixed.dts and fix it again through BeSplit (use Besliced and choose Fix File! its easier).

Can you play that file then (mediaplayer), what size has it and whats the playing time [should be a bit less than the original .wav of course]???

Lem
15th February 2004, 13:01
hi planet1,

it's an original audio DTS cd. it plays well with windvd.
according to DTSParser it's not open bitrate.
DTSParser don't create any output ! ( I've checked the right box ).
Latest Besplit create an output 1/2 the size of original ( see the log in previous post )

DSPguru
15th February 2004, 13:04
Originally posted by Lem
@DSPGuru => do want the first 1mb of this dtswav ? yes!

Trimegisto
15th February 2004, 16:25
Well, it worked but now I got into another jam

BeSplit v0.9b7 by DSPguru.
--------------------------

Logging start : 02/15/04 , 12:33:07.

BeSplit.exe -core( -input fl_d.wav -output 01.dts -logfile registo.log -type dtswav -fix )

[00:00:00:000] +------- BeSplit -----
[00:00:00:000] | Input : fl_d.wav
[00:00:00:000] | Source Sample-Rate: 44.1KHz
[00:00:00:000] | Channels Count: 5.1, Bitrate: 1411.2kbps
[00:00:00:000] | Output : 01.dts
[00:00:00:000] +---------------------
[00:43:05:356] | Writing 01.dts
[00:43:05:356] +---------------------
[00:43:05:356] Operation Completed !
[00:00:32:000] <-- Process Duration
Logging ends : 02/15/04 , 12:33:39.

With this I converted my DTS_WAV to DTS_RAW smaller than the other one and usable by Power DVD.

Now I want to resample it to 48kHz to use it in DVD authoring so I tried AC3 encoding:

azidts.exe -core( -input 01.DTS -output 01_48.ac3 -logfile 44to48.log ) -ac3enc( -b 384)

But azidts always crashes!

Must I really split the file into 6 wav files and reencode it with surcode? Isn't there a better or easier way?

planet1
15th February 2004, 18:39
@Lem

that "original" DTS-Audio CD of yours, must be a "newer" one which does have a correct bitrate flag. What bitrate does the DTSParser show.
Could it be a DTS-ES (6.1) CD, which would differ from the normal 5.1 in a matter that our tools can process them ???, sorry i havent got any of those :( .

@Trimegisto

Well the .dts should be normally a bit smaller than the .wav, because the dts stream (14bit @ 44.1kHz => 1.234 mb/s ) is packed as 16bit @ 44.1kHz => 1.4112 mb/s in order to comply with the CD - Red Book (CD-A specs) - so these CDs can be played on every CD-Player, though only those with a digital out - connected connected to some external decoder would produce some useable / audible results.

The resampling thing:

well normally youd use SSRC for that kind of task, because it produces excellent results. I wouldnt bet azidts with is intervideo-filter would do the same :sly:.
The AC-3 transcoding, the only reason to go from DTS to AC-3 would be to either create a more wider-usable DVD or if space i a crucial issue.
But normally you wouldnt just transcode AAC to MP2 if you wouldnt have to ;), to draw some parallel. (quality degradation)

Beside that how can you make sure the channels stay the same in a dts to ac3 conversion (they certainly wont if dont use DSPgurus new *special* besweet.dll plugin, which correctly maps the ouputted channels now :) ), without going to 6 mono wavs (PCM) first?

At last - i dont think azidts crashed -
Besweet rather closed the operation.

If you pick AC-3 as output format the encoding stops because the latest azid.dll (1.9) - doesnt allow it anymore (the ac3enc.dll - was and is kind of crappy - anyway).
Just check your logs


So the best way in my view - decode with azidts - output to 6 mono wavs (PCM) (use the new *SPECIAL* BeSweet.dll for correct channel mapping).
In the end load these six wavs in any commercial AC-3 Encoder.

Trimegisto
15th February 2004, 20:55
ok, I need some more help please;

Reinstalled WinDVD 5.3.5.2 and the crashes are gone :p

Step 1:

BeSplit v0.9b7 by DSPguru.
--------------------------

Logging start : 02/15/04 , 16:20:52.

BeSplit.exe -core( -input fl_d.wav -output fl_d.dts -logfile registo.log -type dtswav -fix )

[00:00:00:000] +------- BeSplit -----
[00:00:00:000] | Input : fl_d.wav
[00:00:00:000] | Source Sample-Rate: 44.1KHz
[00:00:00:000] | Channels Count: 5.1, Bitrate: 1411.2kbps
[00:00:00:000] | Output : fl_d.dts
[00:00:00:000] +---------------------
[00:43:05:356] | Writing fl_d.dts
[00:43:05:356] +---------------------
[00:43:05:356] Operation Completed !
[00:00:44:000] <-- Process Duration
Logging ends : 02/15/04 , 16:21:36.

Step 2:

azidts v0.1 by zmAn
-------------------
Using BeSweet.dll v1.5b23 by DSPguru (http://DSPguru.Doom9.org)
Using Shibatch.dll v0.24 by Naoki Shibata & DSPguru (shibatch.sourceforge.net).

Logging start : 02/15/04 , 17:57:32.

azidts -core( -input fl_d.dts -6ch -output test- -logfile azidts.log ) -ota( -fs 44100 ) -ssrc( --rate 48000 )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : fl_d.dts
[00:00:00:000] | Output: FL, FR, SL, SR, C, LFE
[00:00:00:000] | Floating-Point Process: No
[00:00:00:000] +------ Shibatch -----
[00:00:00:000] | Source Sample-Rate: 44.1KHz
[00:00:00:000] | Dest. Sample-Rate: 48.0KHz
[00:00:00:000] | Attenuation : 0.0db
[00:00:00:000] +---------------------
[00:43:05:215] Conversion Completed !
[00:37:43:000] <-- Transcoding Duration

Logging ends : 02/15/04 , 18:35:15.

Now I have 6 .wav files at 48kHz but they sound empty!! Tried with winamp, media player, power dvd but can't hear anything!!!
Is this normal? I don't think so! :mad:

What am I doing wrong? I choose "6 channel" and "both vocal" in the Intervideo optios.

But I must be missing something?

Any ideas? Any help would be greatly apreciated.

Thank you!

Lem
16th February 2004, 20:45
@planet1

here's the info by WinDVD
Stream:
Type: DTS
Bitrate: 1411 Kbps
Number of main channels: 5
LFE Channel: None
Sampling Frequency: 44.1khz
Bits Per Sample: 16

and by DTSparser :
bitrate Frequency Channels FrameSize
1411.2 44.1 Khz 24 bits CL+CR+L+R+SL+SR+LFE 2048 bytes

the output created by BeSplit is 1/2 sized.
the output created by DTSParser is 2 ko ...

DSPguru
20th February 2004, 10:33
i finally had some time to play with lem's sample.
check attach and report back.

Lem
21st February 2004, 10:40
Originally posted by DSPguru
i finally had some time to play with lem's sample.
check attach and report back.

I 've done some tests with my problematic sample.
The DTS is about the same size as the DTSWAV but it plays 2x fast !

daphy
4th October 2004, 12:53
I 've done some tests with my problematic sample.
The DTS is about the same size as the DTSWAV but it plays 2x fast !

any solutions meanwhile? :(

daphy
5th October 2004, 08:29
Hi folks,

I have found my error:

( -fs 44100 ) is needed to make usable single WAVs

One thing is missing in this thread:

THE MAPPING WITH THE WINDVD DS-FILTER IS TOTALLY WRONG


dts->6 mono wavs using azidts

correct mapping

c=fr
lf=lf
fr=c
lfe=rs
sl=lfe
sr=ls

@DSPGuru
is this a besweet problem?

planet1
6th October 2004, 17:52
Hi daphy,

well unfortunately DSPguru didnt release any of his DTS fixes on his site - so i guess they are a bit hard to find here in the forum:

BeSplit 0.7 Beta (2nd Edition) (for DTS-WAV to DTS extraction)

http://forum.doom9.org/attachment.php?postid=447285

it isnt perfect yet (e.g. outputted *fixed.dts plays fine via winDVD filter, but not via MPC / VideoLAN), but still a lot better than the previous 0.6 beta.


BeSweet.dll *SPECIAL* (for BeSweet DTS transcodings via azidts.exe)

http://forum.doom9.org/attachment.php?postid=444418

this resolved the mapping problem with WinDVD and was released back in february

http://forum.doom9.org/showthread.php?threadid=70805

which leads to my question if your sure about your observations regarding

lfe=rs
sl=lfe


cause as you can see i had different results
(I used a selfmade test-dts).

Last but not least - the 48kHz bug (which I think is WinDVDs fault)
where do you use your ( -fs 44100 ) switch? Because i dont want to see this scenario

DTS (extracted from WAV = 44.1 kHz) resampled via azidts/WinDVD to 48kHz and at last downsampled back to 44.1kHz through Besweet.


I hope that we all here at the forum can do some testing so DSPguru can release some final and stable tools - since we wont see many progress on libdts (renamed to libdca)http://www.videolan.org/libdca.html for the time being.

daphy
6th October 2004, 19:18
I have to confirm with the special edition of besweet.dll the mapping is correct!

besplit:
BeSplit.exe -core( -input x:\mapping-dtsWAV-5.1.wav -fix -logfile BeSliced.txt -type dtswav -output x:\mapping-dtsWAV-5.1_Fixed.dts ) -profile( BeSliced v0.3 )

-fs 44100

after fixing the DTSWAV to DTS (44.1) with BeSplit 0.7 Beta (2nd Edition) use this commandline:

"azidts.exe" -core( -input "x:\mapping-dtsWAV-5.1_Fixed.dts" -output "x:\mapping-dtsWAV-5.1_Fixed-" -6ch -logfilea BeSweet.log" ) -ota( -fs 44100 )

result
6 mono WAVs :D

besplit only change the header the resampling took place once with the command line!

planet1
6th October 2004, 22:01
Well my goal was to never resample the dts file because my targets would either be


CD-Audio (2ch PCM / Pro Logic 1 or 2)

[though HyperCube Transcoder might be better suited than azidts regarding the intervideo filters]


or DVD-Audio (6ch PCM @ 44.1kHz)


so the "-ota( -fs 44100 )" setting for Besweet seems to produce the results I want (6 mono WAVs @ 44.1kHz). :)



But now to BeSplit my attempts to put the dts back into a wav container (for the case that "future" encoders do not support a DTS-WAV direct mode) failed - can anyone confirm this problem ?



Though AC-3 on CD-Audio isnt an official standard, i wonder how BeSplit handles those WAVs ...
(e.g. HeadAC3he can pack a AC3 into WAV, so reversing the thing via BeSplit when necessary would be great) ;)

[It could also be important for LaserDisc people who want to access their soundtrack, which is AC-3 @ 44.1kHz if im not mistaken)

daphy
7th October 2004, 05:55
[though HyperCube Transcoder might be better suited than azidts regarding the intervideo filters]
am I wrong, but Hypercube uses the same intervideo filters as azidts :confused:
BTW: I never managed to transform a DTSWAV with Hypercube - can you give me a hint with the settings?
DTS as import format - ok
output 6 mono WAVs - ok
Directshow processing after installing the dtsfilter using 44.1 as input and output leads me to garbish :confused: :confused: :confused:
But now to BeSplit my attempts to put the dts back into a wav container (for the case that "future" encoders do not support a DTS-WAV direct mode) failed - can anyone confirm this problem ?

I have tried this with no success this morning! (But this is not that important to me)
Though AC-3 on CD-Audio isnt an official standard, i wonder how BeSplit handles those WAVs ...

I use the GUI (beslice) which leads me to a 0 KB file
Second attemp was to transform the AC3WAV with Softencode but the file obviously would be handled as a 2.0 PCM WAV - I also try to change setting in the decoding menu (3/2.1) with no success.
Thatīs it for this morning.

daphy
8th October 2004, 14:10
nice topic (http://www.videohelp.com/forum/viewtopic.php?t=231973) on this subject from the videohelp.com board

X-Calibar
14th February 2005, 05:32
The problem : the resulting dts file plays too fast

Okay! I'm new at this... EDIT: I want to take dts off of dts-audio cds, and be able to play them on my computer through PowerDVD SPDIF out to my dts decoder. Without any information loss... My solution has been to attempt to convert the wav to dts after ripping using EAC based on this thread...

BeSplit v0.9b7 by DSPguru.
--------------------------

Logging start : 02/13/05 , 23:19:48.

besplit -core( -input test.wav -output test.dts -logfile besplit.log -type dtswav -fix )

[00:00:00:000] +------- BeSplit -----
[00:00:00:000] | Input : test.wav
[00:00:00:000] | Source Sample-Rate: 44.1KHz
[00:00:00:000] | Channels Count: 5.1, Bitrate: 1411.2kbps
[00:00:00:000] | Output : test.dts
[00:00:00:000] +---------------------
[00:05:56:867] | Writing test.dts
[00:05:56:867] +---------------------
[00:05:56:867] Operation Completed !
[00:00:02:000] <-- Process Duration
Logging ends : 02/13/05 , 23:19:50.

I used the latest "fixed" I found in this thread, and now the results of DTSParser and BeSplit sound the same... [appeared to be the same size also] Original wav file 60 MB, new file 52.5 MB...

The time on operation completed is 5:57, the expected time, but the resulting file plays back 5:07...

The source is an original dts-cd Sting : Brand New Day..
Hm. I just noticed something, is this a problem? Frequency is 44,100 Khz, *24bits ... bitrate open, channels CL+CR+L+R+SL+SR+LFE ... Thanks for listening!

daphy
14th February 2005, 06:45
without a loss @ all you can replay those DTSWAV on VideoLan Player -> supports DTSWAV
Iīll guess this would save you a lot of work!

BTW: do you have a DTS Encoder? If you follow the thread you will notice that you have to reencode from uncompressed WAVs. What you did is the first step out of 4:

1. converting to a DTS (fix)
2. decoding to uncompressed WAV (azidts/besweet)
3. upsampling to 48KHz (step 2 and 3 can be done in one go)
4. encoding to real DTS (commercial DTS encoder)

generelly: reencodings out of lossy formats into lossy formats mean lossy sound :(

tiny
14th February 2005, 17:54
[It could also be important for LaserDisc people who want to access their soundtrack, which is AC-3 @ 44.1kHz if im not mistaken)

Nope, AC-3 on LaserDiscs is sampled at 48kHz and encoded as a RF (radio frequency) signal in the right analog channel. To play the AC-3 track from a LD the AC-3 RF signal must first be demodulated, then the AC-3 signal can be decoded in the normal way.

DTS on LaserDiscs, on the other hand, is sampled at 44.1kHz and in the PCM track.

tiny

X-Calibar
14th February 2005, 20:37
Originally posted by daphy
without a loss @ all you can replay those DTSWAV on VideoLan Player -> supports DTSWAV
Iīll guess this would save you a lot of work!

I had hoped that would be the solution! But, I need to be able to output the data to my dts capable reciever, and the A/52 over SPDIF option seems to output incoherent data to the reciever...

so I'd be happy if I could just convert it to a standard* dts file... and here is where my question comes in :

Originally posted by daphy
1. converting to a DTS (fix)
2. decoding to uncompressed WAV (azidts/besweet)
3. upsampling to 48KHz (step 2 and 3 can be done in one go)
4. encoding to real DTS (commercial DTS encoder)

generelly: reencodings out of lossy formats into lossy formats mean lossy sound :(

So your saying at step 1, converting it to a dts; the dts is in some awkward format, different than what is found on various dvd dts tracks..? And that dts file would not be able to be inserted into a audio track on a dvd?

EDIT: I just did some testing... apparently the strange format after step 1, is not recognized correctly by my reciever...! However! The problem is not BeSplit's fault! Just found out when outputting the dts file non-SPDIF in powerdvd using the software / hardware decoder [either it's PowerDVD or its Creative's I think] the sound plays as it should at the right speed, etc...

Hm. So I suppose there is no easy workaround, without re-encoding..?

tebasuna51
15th February 2005, 11:46
@Planet1 say:

"that "original" DTS-Audio CD of yours, must be a "newer" one which does have a correct bitrate flag. What bitrate does the DTSParser show.
Could it be a DTS-ES (6.1) CD, which would differ from the normal 5.1 in a matter that our tools can process them ???, sorry i havent got any of those."

The sample from @Lem:

" and by DTSparser :
bitrate Frequency Channels FrameSize
1411.2 44.1 Khz 24 bits CL+CR+L+R+SL+SR+LFE 2048 bytes"

And now from @X-Calibar

" Frequency is 44,100 Khz, *24bits ... bitrate open, channels CL+CR+L+R+SL+SR+LFE ..."

The two samples are 6.1
BeSplit seem don't work with this.

pymander
12th March 2005, 22:21
I solved all my DTS(Wav)problems with VLC 0.8.0

Open VLC. Load Streaming device. Load
DTSWav input file. Choose Stream Output and
configuration. Choose File and give new
output file a name and directory.
Choose Wav. Audio-codec s16l. Bitrate
to your choosing and 6 channels. Hit OK
and OK. And if all goes well you can see
VLC create your new Wav-file.
Use Wav2wav6 to seperate in 6 mono wav files.

This should work with all troublesome DTSWav/DTS
files!

Good Luck.

zambelli
15th June 2005, 01:39
I have a problem that's very closely related to this thread:

I have some DTS CDs that I would like to use as soundtracks on a DVD I'm making. My goal is to avoid re-encoding the tracks in order to preserve the original fidelity.

I ripped the DTS CD using EAC to regular 44.1kHz DTS WAV. I authored a DVD using TMGPEnc DVD Author and tried attaching the ripped audio track as a (pseudo) LPCM track to a video. Well, it turns out that's not so easy because the DVD spec calls out for 48kHz LPCM audio. OK, fine, I opened Cool Edit and adjusted the WAV sample rate to 48kHz (without resampling). My theory was that although the WAV header was 48kHz, the sampling rate of the DTS stream would still be preserved as 44kHz. I created the DVD, burned it, popped it into my DVD player...

Well, no luck. The LPCM track played, the audio receiver detected it as DTS - but the audio played too fast at 48kHz.

Is there any way to get a 44kHz DTS track onto a DVD-Video without recompressing?

magicclue
15th June 2005, 09:31
Is there any way to get a 44kHz DTS track onto a DVD-Video without recompressing?
No there is no way.

FutureCow
7th December 2005, 15:26
It's a bit old topic but i can't find my solution exactly.

I have a DTS audio cd. I ripped the cd to WAV files (DTSWAV)
Then i converted the files using Besplit
-core( -input Track02.wav -output Track02.dts -logfile besplit.log -type dtswav -fix )
I can play the Track02.dts perfectly with PowerDVD.
Now i want to author the .dts tracks to make a DVD, but when i add the dts file i get a error about the 44.1 Khz and the 48.0 Khz. I also read about it in this topic. Some people split the DTS into 6 mono Wav file to 48 khz. But is their a solution to simply tranfer the 44.1 Khz DTS to a 48 Khz DTS?

I tryed Azidts
core ( -input 01.dts -output 01n48.dts -logfile azdts.txt) -ssrc ( --rate 48000 )
but that didn't work :
DShowErr: FAILED(hr=0x80040154) in CreateFilter(CLSID_DTSSource, &pReader)

So how can i solve the problem?

daphy
7th December 2005, 17:27
Hiho

I tryed Azidts
core ( -input 01.dts -output 01n48.dts -logfile azdts.txt) -ssrc ( --rate 48000 )
but that didn't work :
DShowErr: FAILED(hr=0x80040154) in CreateFilter(CLSID_DTSSource, &pReader)
sounds loke the DS filter is missing
Now i want to author the .dts tracks to make a DVD, but when i add the dts file i get a error about the 44.1 Khz and the 48.0 Khz. I also read about it in this topic. Some people split the DTS into 6 mono Wav file to 48 khz. But is their a solution to simply tranfer the 44.1 Khz DTS to a 48 Khz DTS
there is no way to directly use this (44.1KHZ) DTS on a DVD-Video, sorry :(
you have decode the DTS in single (6) WAVs, upsample to 48 KHz then recode them back into DTS.
For decoding I would advise you a new(er) app called tranzcode, for the rest you might use besweet or wavewizard and the encoder of you choice :rolleyes:
most apps can be found on needfulthings (http://www.needfulthings.webhop.org) (even the missing DS-filter) :)

tebasuna51
9th December 2005, 14:34
There are a new, and experimental, method to do this job. If you want try it, you need:
- BeHappy, AviSynth-based audio transcoding tool http://workspaces.gotdotnet.com/behappy
- AviSynth http://www.avisynth.org/
- NicAudio plugin for AviSynth http://www.avisynth.org/warpenterprises/files/nicaudio_25_dll_20050704.zip
- ffmpeg http://ffmpeg.sourceforge.net/ I take ffmpeg CVS 2005-09-09 from http://www.free-codecs.com/download/ffmpegGUI.htm (only ffmpeg.exe is needed)

Install AviSynth (I work with v2.5.5 previously installed).
Put BeHappy.exe, NicAudio.dll and ffmpeg.exe in any folder (in examples I used D:\BeHappy\) and execute BeHappy.
First time (this settings are saved in a xml file) you need configure (don't type the #comments):

1) Source. Click in New and fill the fields:
Name: NicDts #or something like this to remember the decoder used
AVS Script: NicDTSSource("{0}")
Load Plugins: D:\BeHappy\NicAudio.dll #use Add to select you path

2) DSP functions. You need define a new function, then click in New and fill the fields:
Name: ssrc 5.1 48000 #or something like this to remember the function used
AVS Script: #type or copy from here:
a = last
b = GetChannel(a, 1, 2).SSRC(48000)
c = GetChannel(a, 3, 4).SSRC(48000)
d = GetChannel(a, 5, 6).SSRC(48000)
MergeChannels(b, c, d)
Load Plugins: #not needed, all AviSynth internal plugins

3) Destination. Click in New and fill the fields:
Name: ffmpeg Ac3enc #or something like this to remember the encoder used
Executable: D:\BeHappy\ffmpeg.exe #use Browse... to select you path
Extension: ac3
Arguments: -i - -ab 448 "{0}" #or your desired bitrate
AVS Script: 6==Audiochannels(last)?GetChannel(last,1,3,2,5,6,4):last

Now select your input file in Source -> Browse...
The name for your output file in Destination -> Browse...
And ENCODE!

In DSP you can use the internal function 'Normalize to 100%' (after the 'ssrc 5.1 48000', use up/down buttons).
This make a previous scan for max value, don't worry if progress bar remains 0% long time.
I think this work more quickly with 'Normalize to 100%' before the 'ssrc 5.1 48000' but this can produce any clipping, use at your own risk.

You can read more about BeHappy in: http://forum.doom9.org/showthread.php?t=103069