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.

Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se

 

Go Back   Doom9's Forum > General > Audio encoding
Register FAQ Today's Posts Search

Reply
 
Thread Tools Search this Thread
Old 18th May 2008, 05:52   #1  |  Link
ontherocks
Registered User
 
Join Date: Aug 2007
Posts: 76
Convert .dts->dtswav & .ac3->ac3wav

I am trying to convert DVD audio tracks 5.1 DD or 5.1 DTS to multichannel wav (not 6 mono wavs).

This is what I tried in a two step process.
1) Step #1 - Demuxed the DVD tracks to .ac3 or .dts (according to the track) using DVDdecrypter.
This step was smooth.
2) Step #2 - Convert the .ac3 or .dts to wav. The step is driving me nuts.
Whatever method I choose (eac3to, VirtualdubMod, Foobar, PX3Convert, Belight, Besweet) I always get a "stereo" wav file. Not actually stereo 2 channel but some kind of weird wav file.
The wav file properties in MPC or VLC or Foobar tells me its 6 channel. But I do not get 6 channel audio in my HT receiver while playing those wav files. I only get 2 channel.
I have a lot of multichannel wavs from other sources (e.g. swedish radio website) which play just fine (6 channel) in my HT receiver.

Am I doing something fundamentally wrong?
Is there a single step process?

Last edited by ontherocks; 23rd May 2008 at 21:38.
ontherocks is offline   Reply With Quote
Old 18th May 2008, 09:42   #2  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 7,471
Quote:
Originally Posted by ontherocks View Post
I always get a "stereo" wav file. Not actually stereo 2 channel but some kind of weird wav file.
The wav file properties in MPC or VLC or Foobar tells me its 6 channel. But I do not get 6 channel audio in my HT receiver while playing those wav files. I only get 2 channel.
If MPC/VLC tells you 6 channel the problem is in your player system.
How connect the PC to the receiver?
With SPDIF or 6 analogic conexions?
If you have 6 analogic conexions configure your sound card to output 6 channels.
With SPDIF you need reencode to ac3 to send the digital signal, use Ac3Filter or ffdshow.
Quote:
I have a lot of multichannel wavs from other sources (e.g. swedish radio website) which play just fine (6 channel) in my HT receiver.
Wav is a container and these wav files are really ac3/dts with a little wav header.
Quote:
Am I doing something fundamentally wrong?
Play directly the ac3/dts files.
Quote:
Is there a single step process?
I don't know. The first step DVD -> PC maybe not legal in some countries.
tebasuna51 is offline   Reply With Quote
Old 18th May 2008, 14:20   #3  |  Link
ontherocks
Registered User
 
Join Date: Aug 2007
Posts: 76
Quote:
Originally Posted by tebasuna51 View Post
If MPC/VLC tells you 6 channel the problem is in your player system.
I think my HT receiver is just fine. Its the problem with the converted wav file. The reason I say this is because if I don't choose SPDIF passthrough and play these wavs though my PC stereo speakers they play just fine exactly like a regular stereo wav file, which is wrong. I should get static noise with multichannel wavs (which I get while playing the wavs from swedish radio).
Even Windows Media Player plays the converted wavs (and we know Windows media player doesn't have the capability to play multichannel wavs)

Quote:
Originally Posted by tebasuna51 View Post
How connect the PC to the receiver?
With SPDIF or 6 analogic conexions?
I connect them via SPDIF (coax).

Quote:
Originally Posted by tebasuna51 View Post
Wav is a container and these wav files are really ac3/dts with a little wav header.
How do I make those wav files exactly as in the swedish radio website? Actually that would be my goal I guess.

Quote:
Originally Posted by tebasuna51 View Post
Play directly the ac3/dts files.
If I play the .ac3 or .dts files directly through MPC/Foobar, I still get 2 channels. I do get 6 channels with VLC though. This is expected because I get the same results with .dts/.ac3 obtained from other sources.

My goal is to get 6 channel output through all the players MPC/Foobar/VLC as I get with the wavs from swedish radio website.
So how do I convert the demuxed .ac3/.dts to wav (exactly in the format swedish radio website has)?

Last edited by ontherocks; 18th May 2008 at 14:48.
ontherocks is offline   Reply With Quote
Old 18th May 2008, 14:57   #4  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 7,471
You don't need change the files, only configure your players.

VLC: Settings -> Preferences -> Audio -> Use SPDIF when available.
MPC: View -> Options -> Internal Filters -> AC3/DTS (double click) -> SPDIF
ffdshow: Codecs -> AC3/DTS -> SPDIF
tebasuna51 is offline   Reply With Quote
Old 18th May 2008, 15:27   #5  |  Link
ontherocks
Registered User
 
Join Date: Aug 2007
Posts: 76
Thanks a lot.
My bad I just forgot about the AC3/DTS setting in MPC.
Foobar is my preferred audio player. I don't want to install any extra filters like ffdshow/ac3filter to play multichannel audio, and without that I guess I cannot get 6 channel out of Foobar with .ac3/.dts files.

Hence please tell me how to make wav containers for the .ac3/.dts exactly the way its in swedish radio website. I really want to do this, pls.
ontherocks is offline   Reply With Quote
Old 18th May 2008, 17:50   #6  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 7,471
Quote:
Originally Posted by ontherocks View Post
Hence please tell me how to make wav containers for the .ac3/.dts exactly the way its in swedish radio website. I really want to do this, pls.
Search a little dts2wav.exe to do the job.
I never use this.

For what need you the dts -> wavdts (or ac3)?

If you want burn a CD the samplerate must be changed from 48KHz (DVD) to 44.1KHz (CD) then you need decode, resample, encode and transform to dtswav. If you have Surcode DTS encoder can output directly to dtswav.
tebasuna51 is offline   Reply With Quote
Old 18th May 2008, 22:01   #7  |  Link
ontherocks
Registered User
 
Join Date: Aug 2007
Posts: 76
Unfortunately dts2wav crashes with 48kHz files
I guess its only for 44.1 kHz .dts files.
ontherocks is offline   Reply With Quote
Old 19th May 2008, 11:37   #8  |  Link
daphy
Miles Freak
 
daphy's Avatar
 
Join Date: Apr 2003
Location: Europe
Posts: 652
tranzcode should do the job correctly
__________________
CYA Daphy
daphy is offline   Reply With Quote
Old 19th May 2008, 13:38   #9  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 7,471
@Daphy
The links in your post don't work.

ontherocks want dts to dtswav, not decode to wav.
I don't found how convert dts -> dtswav with Tranzcode.
tebasuna51 is offline   Reply With Quote
Old 19th May 2008, 13:56   #10  |  Link
ontherocks
Registered User
 
Join Date: Aug 2007
Posts: 76
@tebasuna51
I was about to say exactly the same thing

One more thing....
If you take the DD/DTS wav files at http://www.sr.se/cgi-bin/mall/index.asp?ProgramID=2446
and look at their file properties in MPC or Foobar, it tells they are 2 channel/stereo. Thats strange to me.

Last edited by ontherocks; 19th May 2008 at 14:05.
ontherocks is offline   Reply With Quote
Old 19th May 2008, 15:41   #11  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 7,471
Quote:
Originally Posted by ontherocks View Post
One more thing....
If you take the DD/DTS wav files at http://www.sr.se/cgi-bin/mall/index.asp?ProgramID=2446
and look at their file properties in MPC or Foobar, it tells they are 2 channel/stereo. Thats strange to me.
Like I say dts/ac3wav are dts/ac3 with a little wav header marked like stereo. The purpose is cheat a CD burner and write the dts/ac3 stream like uncompressed stereo standard CDAaudio. The player must recognize the stream and decode as multichannel.

At least dtswav can be renamed to .dts and play, and show, like multichannel in Foobar/MPC.
tebasuna51 is offline   Reply With Quote
Old 19th May 2008, 15:54   #12  |  Link
ontherocks
Registered User
 
Join Date: Aug 2007
Posts: 76
Thanks tebasuna. Got the fundamentals. (maybe I should modify my thread heading not to mislead people in what I am trying to do)

It looks like a simple job to make a wav container for .ac3/.dts and put a wave header (or maybe its a difficult job)

Headac3he was able to somewhat convert .ac3 to ac3wav. I was somewhat happy since the wav file was @44.1 kHz and played slower than the source .ac3 (sadly Headac3he doesn't support .dts yet)
ontherocks is offline   Reply With Quote
Old 19th May 2008, 16:18   #13  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 7,471
Quote:
Originally Posted by ontherocks View Post
It looks like a simple job to make a wav container for .ac3/.dts and put a wave header (or maybe its a difficult job)
The header is simple, the problem is:
- the standard dts use 16 util bits from 16 stream bits and big-endian format.
- the standard dtswav use 14 util bits from 16 stream bits and little-endian format.

Then all the data must be converted. This 14/16 bits is the reason for dtswav big size than equivalent dts.

But, for what do you need these old formats?
I think is only need to burn CD's
tebasuna51 is offline   Reply With Quote
Old 19th May 2008, 16:22   #14  |  Link
ontherocks
Registered User
 
Join Date: Aug 2007
Posts: 76
Quote:
Originally Posted by tebasuna51 View Post
But, for what do you need these old formats?
I think is only need to burn CD's
Yeh, thats what I want to do.
ontherocks is offline   Reply With Quote
Old 19th May 2008, 18:19   #15  |  Link
ontherocks
Registered User
 
Join Date: Aug 2007
Posts: 76
I was able to make dtswav & ddwav from .dts & .ac3 (wav containers of .dts/.ac3 with false headers) with spdifer.
But the dtswav & ddwav are @48kHz.
I now need something to downsample these to 44.1kHz without messing with anything else and my work will be done.

EDIT: spdifer did something wrong. Process failed !!

Last edited by ontherocks; 19th May 2008 at 18:40.
ontherocks is offline   Reply With Quote
Old 23rd May 2008, 21:37   #16  |  Link
ontherocks
Registered User
 
Join Date: Aug 2007
Posts: 76
Any more ideas to convert .dts->dtswav & .ac3->ac3wav ?
ontherocks is offline   Reply With Quote
Old 9th June 2008, 13:45   #17  |  Link
ontherocks
Registered User
 
Join Date: Aug 2007
Posts: 76
I succeeded in converting .dts->dtswav & .ac3->ac3wav using spdifer from AC3filter tools using the commands

Code:
spdifer filename.ac3 filename.wav -wav
spdifer filename.dts filename.wav -wav
The wavs were @48kHz. This caused static noise when I tired them to play them through the HT system via SPDIF as well as gave input file read errors when I tried to burn them as AudioCDs. I then changed the wav header to 44.1kHz using a hex editor. The wavs now played fine in through the HT system and I was able to burn them as DD/DTS AudioCDs.

The problem is they play a little longer because they play @44.1kHz.
The question is, why would they play @44.1kHz, since inherently they are .dts/.ac3 @48kHz in the wav container. Is it just because the wav header tells it is @44.1kHz??

Last edited by ontherocks; 9th June 2008 at 13:52.
ontherocks is offline   Reply With Quote
Reply


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 03:44.


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