cd-info: Use libvcdinfo if it is around to list out general Video CD

properties (format version, album description, preparer id, volume
number and count). cd-info output changed slightly.
This commit is contained in:
rocky
2003-04-26 14:24:44 +00:00
parent 4bb6abc003
commit 65e6cf33ca
18 changed files with 117 additions and 30 deletions

View File

@@ -8,5 +8,5 @@ CD-ROM Track List (1 - 1)
1: 00:02:00 000000 audio
170: 00:06:02 000302 leadout
__________________________________
try to find out what sort of CD this is
CD Analysis Report
Audio CD, CDDB disc ID is 02000401

View File

@@ -1,9 +1,13 @@
#!/bin/sh
#$Id: check_cue.sh.in,v 1.1 2003/04/22 12:09:09 rocky Exp $
#$Id: check_cue.sh.in,v 1.2 2003/04/26 14:24:45 rocky Exp $
if test -n "@CDDB_LIB@" ; then
cddb_opt='--no-cddb'
fi
if test -n "@VCD_LIB@" ; then
vcd_opt='--no-vcd'
fi
if test -z $srcdir ; then
srcdir=`pwd`
fi
@@ -33,7 +37,7 @@ fi
fname=vcd_demo
testnum='Video CD'
if test -f ${srcdir}/${fname}.cue ; then
test_cdinfo "-c ${srcdir}/vcd_demo.cue" \
test_cdinfo "-c ${srcdir}/vcd_demo.cue $vcd_opt" \
${fname}.dump ${srcdir}/${fname}.right
RC=$?
check_result $RC "cdinfo CUE test $testnum"
@@ -44,7 +48,7 @@ fi
fname=svcd_ogt_test_ntsc
testnum='Super Video CD'
if test -f ${srcdir}/${fname}.bin ; then
test_cdinfo "--cue-file ${srcdir}/${fname}.cue" \
test_cdinfo "--cue-file ${srcdir}/${fname}.cue $vcd_opt" \
${fname}.dump ${srcdir}/${fname}.right
RC=$?
check_result $RC "cdinfo CUE test $testnum"

View File

@@ -1,5 +1,9 @@
#!/bin/sh
#$Id: check_nrg.sh,v 1.2 2003/04/24 02:45:04 rocky Exp $
#$Id: check_nrg.sh,v 1.3 2003/04/26 14:24:45 rocky Exp $
if test -n "-lvcd -lvcdinfo" ; then
vcd_opt='--no-vcd'
fi
if test -z $srcdir ; then
srcdir=`pwd`
@@ -10,19 +14,19 @@ fi
BASE=`basename $0 .sh`
fname=videocd
test_cdinfo "--nrg-file ${srcdir}/${fname}.nrg" \
test_cdinfo "--nrg-file ${srcdir}/${fname}.nrg $vcd_opt " \
${fname}.dump ${srcdir}/${fname}.right
RC=$?
check_result $RC 'cdinfo NRG test 1'
check_result $RC 'cd-info NRG test 1'
BASE=`basename $0 .sh`
nrg_file=${srcdir}/monvoisin.nrg
if test -f $nrg_file ; then
test_cdinfo "--nrg-file $nrg_file" \
test_cdinfo "--nrg-file $nrg_file $vcd_opt " \
monvoisin.dump ${srcdir}/monvoisin.right
RC=$?
check_result $RC 'cdinfo NRG test 1'
check_result $RC 'cd-info NRG test 1'
else
echo "Don't see NRG file ${nrg_file}. Test skipped."
exit $SKIP_TEST_EXITCODE
@@ -33,7 +37,7 @@ if test -f $nrg_file ; then
test_cdinfo "--nrg-file $nrg_file" \
svcdgs.dump ${srcdir}/svcdgs.right
RC=$?
check_result $RC 'cdinfo NRG test 2'
check_result $RC 'cd-info NRG test 2'
exit $RC
else

View File

@@ -3,6 +3,6 @@ This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
__________________________________
try to find out what sort of CD this is
CD Analysis Report
CD-ROM with ISO 9660 filesystem
ISO 9660: 64 blocks, label `CDROM '

View File

@@ -3,6 +3,6 @@ This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
__________________________________
try to find out what sort of CD this is
CD Analysis Report
CD-ROM with ISO 9660 filesystem
ISO 9660: 64 blocks, label `CDROM '

View File

@@ -8,6 +8,6 @@ CD-ROM Track List (1 - 1)
1: 00:02:00 000000 data
170: 00:06:02 000302 leadout
__________________________________
try to find out what sort of CD this is
CD Analysis Report
CD-ROM with ISO 9660 filesystem
ISO 9660: 64 blocks, label `CDROM '

View File

@@ -8,6 +8,6 @@ CD-ROM Track List (1 - 1)
1: 00:02:00 000000 data
170: 00:06:02 000302 leadout
__________________________________
try to find out what sort of CD this is
CD Analysis Report
CD-ROM with ISO 9660 filesystem
ISO 9660: 64 blocks, label `CDROM '

View File

@@ -8,6 +8,6 @@ CD-ROM Track List (1 - 1)
1: 00:02:00 000000 data
170: 00:06:02 000302 leadout
__________________________________
try to find out what sort of CD this is
CD Analysis Report
CD-ROM with ISO 9660 filesystem
ISO 9660: 64 blocks, label `CDROM '

View File

@@ -8,6 +8,6 @@ CD-ROM Track List (1 - 1)
1: 00:02:00 000000 data
170: 00:06:02 000302 leadout
__________________________________
try to find out what sort of CD this is
CD Analysis Report
CD-ROM with ISO 9660 filesystem
ISO 9660: 64 blocks, label `CDROM '

View File

@@ -8,6 +8,6 @@ CD-ROM Track List (1 - 1)
1: 00:02:00 000000 data
170: 00:06:02 000302 leadout
__________________________________
try to find out what sort of CD this is
CD Analysis Report
CD-ROM with ISO 9660 filesystem
ISO 9660: 64 blocks, label `CDROM '

View File

@@ -9,7 +9,7 @@ CD-ROM Track List (1 - 2)
2: 00:18:51 001251 XA
170: 00:39:71 002846 leadout
__________________________________
try to find out what sort of CD this is
CD Analysis Report
CD-ROM with CD-RTOS and ISO 9660 filesystem
ISO 9660: 1101 blocks, label `MONVOISIN '
XA sectors Video CD

View File

@@ -9,7 +9,7 @@ CD-ROM Track List (1 - 2)
2: 00:09:01 000526 XA
170: 00:56:56 004106 leadout
__________________________________
try to find out what sort of CD this is
CD Analysis Report
CD-ROM with CD-RTOS and ISO 9660 filesystem
ISO 9660: 376 blocks, label `SVCD_OGT_TEST_NTSC '
XA sectors

View File

@@ -9,7 +9,7 @@ CD-ROM Track List (1 - 2)
2: 00:22:53 001553 XA
170: 01:17:62 005687 leadout
__________________________________
try to find out what sort of CD this is
CD Analysis Report
CD-ROM with ISO 9660 filesystem
ISO 9660: 6610 blocks, label `SVCD '
XA sectors Chaoji Video CD

View File

@@ -10,7 +10,7 @@ CD-ROM Track List (1 - 3)
3: 00:24:71 001721 XA
170: 00:30:10 002110 leadout
__________________________________
try to find out what sort of CD this is
CD Analysis Report
CD-ROM with CD-RTOS and ISO 9660 filesystem
ISO 9660: 1032 blocks, label `V0469 '
XA sectors Video CD

View File

@@ -12,7 +12,7 @@ CD-ROM Track List (1 - 5)
5: 00:22:01 001501 XA
170: 00:25:01 001726 leadout
__________________________________
try to find out what sort of CD this is
CD Analysis Report
CD-ROM with CD-RTOS and ISO 9660 filesystem
ISO 9660: 676 blocks, label `SVIDEOCD '
XA sectors