Help - Search - Members - Calendar
Full Version: Howto convert .dts->dtswav & .ac3->ac3wav ?
Hydrogenaudio Forums > Lossy Audio Compression > Other Lossy Codecs
ontherocks
I have some .dts & .ac3 files. How to convert .dts to dtswav & .ac3 to ac3wav (not decode to wav)? (Preferably using free tools)

The final dtswav or ac3wav should be like the ones in http://www.sr.se/cgi-bin/mall/index.asp?ProgramID=2446
eevan
You can do that for DTS files using dts2wav. It's free.

But, those clips on the Swedish Radio are encoded from 44100 Hz sources, and will sound fine when you burn them on a CD.
If you ripped those DTS or AC3 files from a DVD, they are 48000 Hz. So, if you don't want them to sound lower, you need to decode them first to PCM, downsample to 44100 Hz and then reencode to DTS or DD.
There are no free encoders for DTS. There are for AC3 but IMO they are not of very good quality.
ontherocks
Yeh, the .dts & .ac3 files are all @ 48kHz.

Unfortunately "dts2wav" only supports .dts @ 44.1kHz.
Is there any tool to downsample .dts or .ac3 to 44.1kHz?

"headac3he" was able to do .ac3->ac3wav but the ac3wav was slower (as expected).

Anyone has any ideas about "spdifer". It sounds promising but I didn't get it to work correctly.
lvqcl
If you want to add WAV header to ac3 file - VirtualDubMod can do this. Just open video file that is long enough, then go to Streams -> Stream list. Press "Add" button, then press "Save WAV".
roozhou
QUOTE(ontherocks @ May 23 2008, 14:51) *

I have some .dts & .ac3 files. How to convert .dts to dtswav & .ac3 to ac3wav ? (Preferably using free tools)

The final dtswav or ac3wav should be like the ones in http://www.sr.se/cgi-bin/mall/index.asp?ProgramID=2446


CODE
ffmpeg -i input.ac3 -vn -acodec copy output.wav
ffmpeg -i input.dts -vn -acodec copy output.wav


Input files can also be video files and ffmpeg will extract ac3/dts stream.
ontherocks
QUOTE(roozhou @ May 24 2008, 06:31) *

CODE
ffmpeg -i input.ac3 -vn -acodec copy output.wav
ffmpeg -i input.dts -vn -acodec copy output.wav


Input files can also be video files and ffmpeg will extract ac3/dts stream.

Unfortunately this didn't work. The wav files properties are not like the ones in the http://www.sr.se/cgi-bin/mall/index.asp?ProgramID=2446
The wav files created by ffmpeg shows 6 channels and doesn't play in Foobar. I guess they are multichannel wav and not dtswav or ac3wav (which are essentially wav container/header for the .ac3/.dts files)

IPB Image

The wav files in the sr.se website show 2 channels and play in Foobar.

IPB Image
Martel
QUOTE(ontherocks @ May 24 2008, 06:31) *
... dtswav or ac3wav (which are essentially wav container/header for the .ac3/.dts files)
So you just need to wrap the ac3/dts stream into ACM wav file (like MP3, for expamle)?
Why do you need that or what are you trying to achieve?

QUOTE(ontherocks @ May 24 2008, 06:31) *

The wav files in the sr.se website show 2 channels and play in Foobar.
IPB Image
This seems to be just a regular CDDA-like format audio file like if you grabbed it from a CD, I do not see any resemblance to ac3 or dts.
ontherocks
Yes, ac3wav & dtswav are actually .ac3 & .dts files in wav containers with false wav header as PCM/2 Channel. Thats the reason you see 2 channel/PCM in the file properties exactly like cda format.

The applications of such files are mostly in creating Dolby Digital or DTS audio CDs.
eevan
I think that I explained everything. Can you resample an MP3 file without decoding it first? The same goes for DTS an DD. For DTS you need Minnetonka SurCode CD (or DVD). You decode your DTS to 6 PCM wavs, downsample them to 44100 Hz using any resampler you want (but I would use a good quality resampler like the one that is built into Adobe Audition or Voxengo r8brain). Then you load the resampled files to SurCode and encode them to DTS. After that you can use dts2wav to wrap the DTS in WAV and burn it to the CD. That's the only way to do what you want. (unless there is an open source free DTS encoder out there that I'm not aware of)

QUOTE(Martel)
Why do you need that or what are you trying to achieve?
DTS-CD
Jowie
This is what I'm trying to do... I haven't yet got it to work. Does the DTS file have to be at a specific bitrate in order for this (1411kbps)? I tried dts2wav and it didn't work... ffmeg I just can't work out how to install at all, it doesn't even seem to be compiled...
eevan
QUOTE(Jowie @ Jul 5 2008, 16:01) *
…Does the DTS file have to be at a specific bitrate in order for this (1411kbps)? I tried dts2wav and it didn't work...
I have no problems with dts2wav. Here is the log from SurCode DTS DVD. But it can output wav files itself

CODE
DTS CD:

Core Bit Rate            = 1411200 bps
Frame Size               = 1024 samples
Pad zeros at end of frame= Yes
Channel Layout           = 3/2/.1
Sampling Frequency       = 44100 Hz
Bits Per Input Sample    = 24
QMF Filter               = Nonperfect reconstruction
Rear channel attenuation = 0 dB
HDCD                     = No
ES                       = No
Compressed audio file    = D:\My Music\ad pedes.wav

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.