[MPlayer-users] [Slightly off Topic]Extract DVD meta information

Albino albino.antonio at fastwebnet.it
Wed Jan 22 14:32:00 CET 2003


Arpi ha scritto:

>>just wondering. When encoding a Divx of a DVD it would be nice that f.i.
>>the author,title,copyright could be extracted from the DVD and put in the
>>    
>>
>
>afaik no such info stored on dvd in ascii form.
>or point me to any opensource app which is able to extract such data from dvd disc.
>
>  
>
try this:

#! /bin/bash

RD=/dev/dvd

for i in 32768,7   32776,32 32808,32 32958,128 33086,128 33214,128 
33342,128 33470,32 33581,16 33598,16  33615,16  33632,16
do
 old_IFS="$IFS"
 IFS=","
 set -- $i
 IFS="$old_IFS"
 OFFSET=$1
 LENGTH=$2
 echo "*`dd if=$RD bs=1 skip=$OFFSET count=$LENGTH   2> /dev/null`#"
done

## end

(it's opensource ;)

Note not all DVDs or CDs store their info about autor title and copyright but some do, so try the script with some cd and some dvd and tell me if it works. 

-- 

ciao
                                                   albino




More information about the MPlayer-users mailing list