[linux-audio-user] Extracting/Ripping tracks from DVD-Audio discs

D. Sen dsen at homemail.com
Tue Mar 20 01:35:59 EDT 2007


So, it turns out that tcextract extracts the 5.1 channel AC3 file (when 
used with -a 0). If I use -a [1/2/3/etc], I get a 0 size file.

When I use tcdecode on the AC3 file, it downmixes to two channels and 
produces a  stereo file. However, I can use the -s [c,f,r] to weight 
mixing of the centre, front and rear to extract 3 different stereo 
files....(running tcdecode 3 different times with 3 different weights of 
[1,0,0], [0,1,0] and [0,0,1].

Its something I can use for now.

It would be nice to be able to extract the DTS channels - tcdecode does 
not decode DTS.

Thanks for your help,
D


Robin Gareus wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> 
> D. Sen wrote:
>> The problem with all of these applications is that they downmix the
>> audio down to stereo when storing to a wav file.
> 
> are you sure about that?  - `man tcdecode` says in line 48:
> 
> - -A flag
> 
> audio  flag  for AC3/A52 decoder [none]. This flag determines the
> down-mixing configuration. Valid choices for flag are determined by the
> following bits set:
>                drc off     1
>                demux       2
>                dolby off   4
> 
>       Add those numbers to turn multiple options on.
> 
> maybe you want tcextract (not decode the audio) ?
> from `man tcextract`:
> 
> The command tcextract -i foo.avi -x mp3 -a 3 extracts MPEG audio track 3
> from the AVI-file foo.avi and prints the bitstream to stdout.
> 
>> Do you know if the tccat/tcdecode/tcextract command will save the
>> individual tracks (interleaved or otherwise)?
> 
> interleaved, but it depends on the codec or how many audio tracks you
> select..
> 
> cheers,
> robin
> 
> PS. please don't top-post!
> 
>> Thanks,
>>
>> Robin Gareus wrote:
>>> D. Sen wrote:
>>>> Robin Gareus wrote:
>>>>> D. Sen wrote:
>>>>>> Anyone know of a way to extract the multichannel audio from a
>>>>>> DVD-Audio
>>>>>> disc? Xine plays the multichannel files - so I assume there has to
>>>>>> be a
>>>>>> way to extract them...
>>>>>>
>>>>> there's `tcdemux` and `tcdecode` from the transcode package
>>>>> - dvdrip provides is a GUI.
>>>>>
>>>>> (you can copy/paste dvdrip's LOG window for the commands it uses to do
>>>>> the job. You only want the first part of the pipe: tcdemux |
>>>>> tcdecode..)
>>>>>
>>>>>
>>>> dvdrip refuses to work on my distribution. 
>>> mmh then there's the chance that tcdemux & tcdecode won't work either. -
>>> usually you get those as dependency to dvd::rip.  - see.
>>> http://www.theorie.physik.uni-goettingen.de/~ostreich/transcode
>>>
>>> I'm sure that you can also use mplayer/mencoder or some ffmpeg command
>>> line to do the same job.. gstreamer too..
>>>
>>>> Is there a chance you could
>>>> tell me what the tcdemux | tcdecode scripts would be to extract the
>>>> audio?
>>> sorry, I did not have my dvd drive with me.. now I do.
>>>
>>> how are your command line skills? dvd::rip does a lot of fancy piping  (
>>> `man tee` -> man dvdrip-multitee ? :) ) - the command that does ripping
>>> & demux is several pages long (includes 100 subtitle commands)...
>>>
>>> It boils down to sth like this:
>>>
>>> tccat -t dvd -T 1,-1,1 -i \/dev\/scsi\/host8\/bus0\/target0\/lun0\/cd  |
>>> tcextract -a 0 -x ac3 -t vob | tcdecode -x ac3 | tcscan -x pcm
>>>
>>> adjust the device to match your DVD-ROM.  and replace the last step " |
>>> tcscan -x pcm" with " > ripped-audio.pcm" to write the audio into a
>>> file; or use " | tee ripped-audio.pcm | tcscan -x pcm" to write to a
>>> file and scan for peak values..
>>>
>>> use sox or rezound or ... to convert the pcm into your favorite format!
>>>
>>> good luck,
>>> robin
>>>
>>>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> 
> iD8DBQFF/ymleVUk8U+VK0IRAv/oAJ9Up2Mx/7QhwJzgbVwwuQb9dVWCnwCgu4bt
> +2q8W6C45eWk3Exsxx2fkc4=
> =gTLP
> -----END PGP SIGNATURE-----
> 
> 




More information about the Linux-audio-user mailing list