[FFmpeg-user] CD-DTS

Ionel GARDAIS igardais at yahoo.fr
Sun Dec 22 11:42:38 CET 2013


Le 22 déc. 2013 à 08:00, Paul B Mahol <onemda at gmail.com> a écrit :

> On Sat, Dec 21, 2013 at 8:27 PM, Ionel GARDAIS <igardais at yahoo.fr> wrote:
> 
>> Hi list,
>> 
>> Has anyone succeeded in making a CD-DTS (a.k.a. DTS Audio CD a.k.a. 5.1
>> Music Disc) ?
>> I'm desperately trying to find the right combination of options to create
>> a valid, burnable wave file that spits DTS on my receiver.
>> Unfortunately, all I get is white noise.
>> 
>> The key seems to pack a DTS flow inside a classic 2-channel, 44100Hz,
>> PCM-declared WAV container.
>> 
>> Unfortunately,
>> $ ./ffmpeg -i input.aac -acodec dts -strict -2 -ar 44100 dts-output.wav
>> creates a 6-channel wav container for the DTS datas and
>> $ ./ffmpeg -i input.aac -acodec dts -strict -2 -ar 44100 -ac 2
>> dts-2c-output.wav
>> downmix the 5.1 aac input to a 2-channel wav file
>> 
>> I tried to bit-bang the dts-output.wav so the wav container is declared as
>> wanted but it fails.
>> The file at http://www.lamoateffe.com/samples/RedHouseDTS.wav is a valid
>> wav-packed DTS file.
>> 
>> Any advice welcomed.
>> 
> 
> For start what version are you using?

I'm using a daily build version : 
./ffmpeg -version
ffmpeg version N-59266-gd1b8e01
built on Dec 21 2013 13:21:23 with Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
configuration: --disable-yasm --enable-opencl --enable-openssl --enable-pic --enable-avresample --enable-shared --enable-libmp3lame --extra-cflags='-I /usr/local/include' --extra-ldflags='-L /usr/local/lib'
libavutil      52. 58.101 / 52. 58.101
libavcodec     55. 45.103 / 55. 45.103
libavformat    55. 22.100 / 55. 22.100
libavdevice    55.  5.102 / 55.  5.102
libavfilter     4.  0.100 /  4.  0.100
libavresample   1.  1.  0 /  1.  1.  0
libswscale      2.  5.101 /  2.  5.101
libswresample   0. 17.104 /  0. 17.104

I gave the rcaenc encoder a try : byte ordering is different, content is different but headers look the same.

I created a dca file with dcaenc using the folowing sequence : 
$ ./ffmpeg -i input.aac -acodec pcm_s16le -ar 44100 test.pcm.44100.wav
$ ./dcaenc test.pcm.44100.wav test.dcaenc.dts 1411200

The ffmpeg dca file was created like this :
$ ./ffmpeg -i input.aac -acodec dts -ar 44100 -strict -2  test.dts.44100.dts

Here are the tests results :
- plain dcaenc file burned with cdrecord '-audio -pad -swab' => DTS is OK on receiver, music plays, file cannot be read on VLC
- plain ffmpeg dts file burned with cdrecord '-audio -pad' => DTS is OK on receiver, SILENCE plays, file cannot be read on VLC
- dcaenc file, packed in a wav file with Carl's command and burned with cdrecord '-audio -pad' (no -swab here) => DTS is OK on receiver, music plays, file cannot be read on VLC
- ffmpeg dts, packed in a wav file with Carl's command and burned with cdrecord '-audio -pad' => no DTS, noise on receiver, file cannot be read on VLC

Ionel


More information about the ffmpeg-user mailing list