VCD Transforming


Table of Contents

cmd:VCDImager 
Source 
Supplied Tools 
Help 
Test run 
Version v0.7.20-2 
Version v0.7.12 (Linux) 
cmd:vcdxrip 
Basic Info 
Help 
vcdxrip: Skip invalid mpg stream 
cmd:VCDGear 
Basic Info 
Help 
Faq 
Installation 
Versions 
VCDImager structure sizes 
1. Disc Structure - Sector Overhead 
2. Disc Structure - Mode 2 Form 2 Sector Size 
3. OGT bandwidth 
3. OGT bandwidth 
Copy Video CD 
Help 
VCD & SVCD Creation - How To 
Creating Video CD's 
Storing MPEG's. 
Creating SVCD's 
Linux Notes: Video Editing 
Media Comparison 
Video CDs (VCD) and Super Video CDs (SVCD) 
Procedure for SVCD production 
How do I play VCD's in my linux box? 
cmd:readvcd 
Version 0.3 
Examples 
VCDGrab 
Can't copy files in *.dat form VCD 
Can't copy files in *.dat form VCD 
Mpg - Dat 
Mpg - Dat 
Mpg - Dat 
Coping Dat Files 
Coping Dat Files 
vcd, .dat files and isofs problem 
vcd, .dat files and isofs problem 
vcd, .dat files and isofs problem 

cmd:VCDImager 

Source 

http://www.vcdimager.org/

http://freshmeat.net/projects/vcdimager/

Stable 0.6.2 15-May-2001 Development 0.7.20 20-Feb-2004

Supplied Tools 

The following command-line tools are provided with this package:

`vcdimager'
Simple front-end, allowing for easy command-line controlled generation of basic VCD and SVCD disc images without an intermediate XML description.
`vcd-info'
Selectively shows detailed information about the structure a Video CD. See *Note Introduction: (vcd-info)Top.
`vcdxgen'

XML VCD-description generator, with a command-line interface similar to the classic `vcdimager' front-end.

This tool works almost like the `vcdimager' tool, except that it
creates an intermediate XML description, instead of directly building
the disc image. This XML can be used as a starting point for
customization.
The XML file can then be fed to `vcdxbuild' for building the actual
image file(s).
`vcdxbuild'
Builds a VCD/SVCD according to a supplied XML description and files containing the MPEG program streams referred to in the XML description. See *Note vcdxbuild::.
`vcdxrip'
Disassembles a given VCD or SVCD disc into a XML description and the contained MPEG program streams. See *Note vcdxrip::.
`vcdxminfo'
This is a debugging tool for displaying some MPEG properties, as conceived by internal library `libvcd' and `libvcdinfo'. See *Note vcdxminfo::.
`cdxa2mpeg'
A program to strip the RIFF header on CD-XA-format tracks. See *Note cdxa2mpeg::.

Help 

Support 

The support forum http://savannah.gnu.org/support/?group=vcdimager

To post a message to the Help-VCDImager m-list, send email to help-vcdimager@gnu.org.

To contact the author directly: <hvr@hvrlab.org>.

Simple Multitrack Example 

Taken from 'info vcdimager'.

In the following example session, the files `track1.mpg', `track2.mpg' and `track3.mpg' are mastered into the default output files `videocd.cue' and `videocd.bin'. The volume label is set to `My Test VCD'.

$ vcdimager --iso-volume-label="MY_TEST_VCD" track1.mpg track2 track3.mpg
   INFO: scanning mpeg sequence item #0 for scanpoints...
   INFO: scanning mpeg sequence item #1 for scanpoints...
   INFO: scanning mpeg sequence item #2 for scanpoints...
   INFO: writing track 1 (ISO-9660)...
   INFO: writing track 2, MPEG1, NTSC SIF (352x240/29.97fps), 1 audio stream...
   INFO: writing track 3, MPEG1, PAL SIF (352x288/25fps), 1 audio stream...
   INFO: writing track 4, MPEG1, NTSC SIF (352x240/29.97fps), 1 audio stream...
finished ok, image created with 13626 sectors [03:01.51]
The same with XML based tools:
$ vcdxgen --iso-volume-label="MY_TEST_VCD" track1.mpg track2 track3.mpg
(Super) VideoCD xml description created successfully as `videocd.xml'
$ vcdxbuild videocd.xml
   INFO: scanning mpeg sequence item #0 for scanpoints...
   INFO: scanning mpeg sequence item #1 for scanpoints...
   INFO: scanning mpeg sequence item #2 for scanpoints...
   INFO: writing track 1 (ISO-9660)...
   INFO: writing track 2, MPEG1, NTSC SIF (352x240/29.97fps), 1 audio stream...
   INFO: writing track 3, MPEG1, PAL SIF (352x288/25fps), 1 audio stream...
   INFO: writing track 4, MPEG1, MPEG1, NTSC SIF (352x240/29.97fps), 1 audio stream...
finished ok, image created with 13626 sectors [03:01.51]
$

Adding Files to the Video CD 

Files can be added to the ISO file-system, that is the first track of the Video CD, by making use of the command-line options `—add-file=FILE,ISO_FILENAME' and `—add-file-2336=FILE,ISO_FILENAME'. The latter option allows you to include files containing the complete user data of mode 2 CD-ROM sectors (10).

The path name given as ISO_FILENAME determines where to link the file in the file-system of the Video CD. The given path name must be a valid ISO9660 file name with the following restrictions:

  • The Character set is restricted to upper case letters, numbers, underscore `_', dot `.' and slash `/'.
  • The maximum file name length is restricted to 31 characters, the directory nesting level is restricted to 8 and the maximum path length is limited to 255 characters.
  • File names must contain exactly one dot. if no file name extension is supposed to exist the dot must be placed as a trailing dot.
  • The path-name must not begin or end with a slash nor should it contain slashes following directly each other.

If the parent directory for a file entry does not exist it will be created automatically on demand.

For example, if you happen to have a CD-i application consisting of the files `cdi_imag.rtf', `cdi_text.fnt', `cdi_vcd.app' and `cdi_vcd.cfg', with `cdi_vcd.app' being the main application executable, you could add the following lines to your `~/.popt' popt(12) aliasing file(13)

vcdimager alias --cdi \
   --iso-application-id "CDI/CDI_VCD.APP;1" \
   --add-file-2336 /usr/share/cdi/cdi_imag.rtf,CDI/CDI_IMAG.RTF \
   --add-file      /usr/share/cdi/cdi_text.fnt,CDI/CDI_TEXT.FNT \
   --add-file      /usr/share/cdi/cdi_vcd.app,CDI/CDI_VCD.APP \
   --add-file      /usr/share/cdi/cdi_vcd.cfg,CDI/CDI_VCD.CFG

SVCD Player Compatibility 

If you have problems with your playing device failing to _detect_ a created SVCD, you can may the following things (some of the advices below apply to VCDs as well):

  1. Take warnings serious! If there were warnings issued during the image building process, chances are the problems are related to them.
  2. Make sure the SVCD is physically OK (e.g., analyze the disc with `vcddebug' or try it on some other playing device).
  3. Try creating the SVCD by enabling the `svcd vcd30 mpegav' and `svcd vcd30 entrysvd' options.
  4. Add an empty `/SEGMENT' directory, if it isn't created due to inclusion of SPIs.

    --add-dir=ISO_DIRNAME
           add empty dir to ISO fs
  5. If you have confusing time readings for discs with more than one video track, you might need to use the `svcd vcd30 tracksvd' option.

Test run 

2<<, >>

mfilm=test1.mpg
$ gmplayer -dr -vo x11 -vm "$mfilm"; xset +dpms
VIDEO:  MPEG1  352x240  (aspect 12)  29.970 fps  1149.6 kbps (143.7 kbyte/s)
$ vcdimager -l "label as Testing" "$mfilm"
finished ok, image created with 3175 sectors [00:42.25] (7467600 bytes)
$ dir -gG videocd*
-rw-rw----  1 7467600 Aug 20 18:37 videocd.bin
-rw-rw----  1     172 Aug 20 18:37 videocd.cue
Ref:
test1.mpg:     5802852
videocd.bin:   7467600
ToBurn=videocd
mfilm="$ToBurn.bin"; gmplayer -dr -vo x11 -vm "$mfilm"; xset +dpms

1<<, >>

$ vcdimager -l Test -c Test-1.cue -b Test-1.bin 'Test-1.mpg'
   INFO: scanning mpeg sequence item #0 for scanpoints...
++ WARN: string 'Test' fails d-character constraint (pos = 1)
   INFO: writing track 1 (ISO9660)...
   INFO: writing track 2, MPEG1, NTSC SIF (352x240/29.97fps), audio[0]: l2/44.1kHz/224kbps/stereo ...
finished ok, image created with 229960 sectors [51:06.10] (540865920 bytes)
$ mplayer Test-1.bin
Playing Test-1.bin
MPEG-PS file format detected.
VIDEO:  MPEG1  352x240  (aspect 2)  29.97 fps  1100.0 kbps (137.5 kbyte/s)
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 28000->176400 (224.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AF_pre: af format: 2 bps, 2 ch, 44100 hz, little endian signed int
AF_pre: 44100Hz 2ch Signed 16-bit (Little-Endian)

Version v0.7.20-2 

% debfoster vcdimager
The following extra packages will be installed:
  libcdio0 libiso9660-0 libvcdinfo0
The following NEW packages will be installed:
  libcdio0 libiso9660-0 libvcdinfo0 vcdimager
0 upgraded, 4 newly installed, 0 to remove
Need to get 740kB of archives.
After unpacking 1552kB of additional disk space will be used.

documented on: 2004.08.20

Version v0.7.12 (Linux) 

http://packman.links2linux.org/index.php4?action=251

Description 

GNU VCDImager is a full-featured mastering suite for authoring, disassembling and analyzing Video CD's and Super Video CD's.

The core functionality consists of directly making Video CD BIN/CUE-style CD images from mpeg files, which (after being written to CDR(W) media) can be played on standalone VCD players or DVD players and on computers running GNU/Linux, MacOS, Win32 or any other OS capable of accessing VCD's. BIN/CUE images can be burned with [cdrdao] (please use a recent version, since older ones do not support BIN/CUE-style cuesheets) under GNU/Linux (and other supported platforms by cdrdao, e.g. freeBSD, Irix, Solaris and even win32)

vcd-info    display (selectively) the contents of a Video CD or CD image
vcdimager   generates simple pbc-less VCD and SVCD disc images directly
vcdxgen     XML VCD-description generator
vcdxbuild   Builds a VCD/SVCD according to a supplied XML control file.
vcdxrip     Reverses the process for a given VCD or SVCD disc.
vcdxminfo   Debugging tool for displaying MPEG stream properties.
cdxa2mpeg   Simple tool for converting RIFF CDXA file to plain mpeg.

Authors:

Herbert Valerio Riedel <hvr@gnu.org>
Rocky Bernstein <rocky@panix.com>
Homepage: http://www.vcdimager.org/[]

Last Update: 04-05-02 02:31 AM

SuSE 9.1, SuSE 8.2: Version 0.7.20 RedHat 9: Version 0.7.17

Changes 

Changes from VCDImager v0.7.11 (Linux) to VCDImager v0.7.12 (Linux)

  • improved support for SVCD- and CVD-style subtitles
  • new conversion tool cdxa2mpeg added
  • minor subheader change for SPI area
  • create 150 sector post-gap ("leadout pregap") by default
  • fixed compilation with linux kernel headers prior to 2.2.16
  • switched to new automake/conf versions

Download 

http://www.dawnload.net/alternative_platforms/linux_software/vcdimager_linux.cfm

VCDImager is a little program which allows direct making of VideoCD or SVCD BIN/CUE CD images from MPEG-1 files, which can be played on standalone VCD players or DVD players and on computers running Linux, MacOS, Win32 or any other OS capable of accessing VCDs.

The program is a commandline based, so step back if you hate tools without GUI.

VCDImager is the tool for you if you're looking for a completely free VCD/SVCD solution. It works without problems with VCD and SVCD files created using the TMPGEnc MPEG encoder.