vcd-info: Some Examples
4 Some simple command invocations.
**********************************
Perhaps all you want to do is dump the information about a CD that is
currently sitting in your CD-ROM drive. If the CD is in the "default"
location for your OS, then this might work:
vcd-info
It means the same thing as:
vcd-info --cdrom-device
and using the "short" option:
vcd-info -C
I have a combined CD-ROM and DVD drive called '/dev/dvd'. I have
another CD-ROM drive which goes under the name '/dev/cdrom', but I
generally prefer to use the DVD/CD-ROM drive for reading since it
doesn't seem to run as hot. Since that drive is not the "default"
('/dev/cdrom') on my GNU/Linux box, I have to give a location. So this
will work:
vcd-info -C=/dev/dvd
Or even better, I'll let 'vcd-info' figure out it's a CD-ROM device:
vcd-info -i /dev/dvd
The equals sign before '/dev/dvd' is optional in either format.
Let's say you just used vcdimager or vcdxbuild it created output to
its "default" location (probably 'videocd.cue' and 'videocd.bin'. To
dump out this out:
vcd-info --cue-file
But if you specified the output to go to say 'nausicaa.bin' and
'nausicaa.cue' you would have to specify that location like this:
vcd-info -c nausicaa.cue
Or again not having to worry about what type of file you could use
the "intelligent" input option again as we did before:
vcd-info -i nausicaa.cue
To list all of the sub-options to choose from in the Primary Volume
Descriptor section (PVD) try this:
vcd-info --show-pvd help
Okay, now for for some more obscure stuff. Let's say I'm writing a
front-end GUI to do all sorts of stuff and I just need to pick out the
format (VCD 1.1, VCD 2.0, SVCD, CVD, XVCD, or HQVCD) of the Video CD in
the default drive. Since I have to read in this output, I don't want
any extra lines not relevant other than the version.
vcd-info --no-banner --show-format
Or even shorter:
vcd-info -t -f
I want to see the filesystem info and track info for the CD in my
default drive
vcd-info --show-tracks --show-filesystem
I want to see the filesystem info and track info for the CD in my
default drive
And finally I want to see just the "data" part -- that is the list of
the entries section, no summary information like a count or ID tag.
vcd-info --show-entries data