DVD ripping with transcode 

From .ISO 

dvdd=/mnt/tmp1/
dvdd=/lfs/cache11/my-caches/dvdrip/ys/vob/001

Batch (s)vcd transcode 

# == output name (root)
oname=

# == The output format (should based on the input, ie, vcd to vcd, dvd to svcd)
ofmt1=vcd-ntsc
ofmt2=1
ofmt3=

ofmt1=svcd-ntsc
ofmt2=4
ofmt3=-svcdout

# == subtitle
subopt='-J extsub=0'
subopt=

tcqopt='-c 10:0-15:0'
tcqopt=

rm -vf simage.* &

 svs dvdd subopt ofmt1 ofmt2 ofmt3 oname tcqopt

# == dvd film
time nice transcode -i "$dvdd" -T 1,-1 $tcqopt $subopt --export_prof $ofmt1 -o $oname-
time nice mplex -f $ofmt2 -o $oname-%d.mpg $oname-.m2v $oname-.mpa

# = pack of vcds
seq -f '%02g' 3 5
echo 01
echo 1,-1

 !! | xargsi echo time nice transcode -i "$dvdd" -T {} $tcqopt $subopt --export_prof $ofmt1 -o $oname-{}- | bash -x

 !! | xargsi echo time nice mplex -f $ofmt2 -o $oname-{}%d.mpg $oname-{}-.m2v $oname-{}-.mpa | bash -x

rm *-.mp[av] &

rm *-??1.mpg &

tcprobe -i "$mfilm"
mpgtx -i "$mfilm"

Help 

-c f1-f2[,f3-f4[, ... ] ]
       encode only frames f1-f2 [and f3-f4]. Default is to  encode  all
       available  frames.   Use  this  and  you'll get statistics about
       remaining encoding time. The f[N] parameters may also  be  time-
       codes in the HH:MM:SS.FRAME format. Example:
       -c 500-0:5:01,:10:20-1:18:02.1
Will encode only from frame 500 to 5 minutes and 1 second
and from 10 min, 20 sec to 1 hour, 18 min, 2 sec and  one
frame.
Note that transcode starts counting frames at 0 and excludes the
last frame specified. That means that "-c  0-100"  will  encoded
100 frames starting at frame 0 up to frame 99
-T t[,c[,a]]
       select DVD title[,chapter[,angle]] [1,1,1]. Only a single  chap-
       ter  is  transcoded.  Use  -T 1,-1 to trancode all chapters in a
       row. You can even specify chapter ranges.
--export_prof S
       Select an export profile {vcd, svcd, dvd} [none]
       If  you  set  this  meta  option  to  one  of  the values below,
       transcode will adjust some internal paramaters as well as geome-
       try  and  clipping. If no export modules are specified, mpeg2enc
       for video and mp2enc for  audio  are  used  when  compiled  with
       mjpegtools support.
Valid  values  for S are vcd, vcd-pal, vcd-ntsc, svcd, svcd-pal,
svcd-ntsc, dvd, dvd-pal and dvd-ntsc.
When one of the above is  used,  transcode  will  calculate  the
needed  clipping and resizing values for you based on the import
and export aspect ratio. This is especially handy if you want to
encode a 16:9 DVD into a 4:3 SVCD for example.  Transcode inter-
nally then sets --pre_clip to add the  black  bars  ("letterbox-
ing").
If  you  use "vcd" instead of "vcd-pal" or "vcd-ntsc", transcode
will make an educated guess if PAL or NTSC vcd  is  wanted.  The
same  is  true  for "svcd" and "dvd". When the input file has no
aspect ratio information at all, transcode guesses it  based  on
the  import  frame sizes. You can set the import aspect ratio by
giving --import_asr CODE.
--export_asr C
       set export aspect ratio code C [as input]
Valid codes for C are
----------------------
1                 1:1
2                 4:3
3                16:9
4              2.21:1

Subtitle Overlay Mode 

http://www.transcoding.org/cgi-bin/transcode?Command_Examples/DVD_Subtitle_Overlay_Mode

Transcode provides a filter plugin, filter extsub.so, for elementary DVD subtitle rendering in connection with -x vob. Use it with

transcode [...] -J extsub=<options>

The option string looks as follows (all options default to 0):

s:h:t:f:w:a:b:p:q

s subtitle track id (0-31) Use tcprobe -H N with N>1 to find out if subtitle any packs are available in the program stream.

h offset of subtitle with respect to bottom of frame in rows Subtitles are placed at the bottom of the frame. Try this option to shift them up or down.

t global display start time correction in msec If you feel, subtitles are displayed not timely, adjust it with this option. This will affect all subtitles.

f fast rendering, i.e., no anti-aliasing (0=off, 1=on) Anti-aliasing of the font is performed by default. Switch it of (1) if your font is tiny and messed up by this feature.

w render on post-processing (0=off, 1=on) Setting this option to 1 will render the subtitle on post-processing instead of pre-processing. This may improve subtitle quality but makes no sense after extensive resizing of the frame.

a graylevel value a (0-255) b graylevel value b (0-255) Make another subtitle color visible with full intensity equal to 255. May lead to fatter fonts.

p assign subtitle color p [0-3] to graylevel value a q assign subtitle color q [0-3] to graylevel value b Shuffle the color assignment by choosing another subtitle color between 0 and 3. Useful for black fonts on white background.

Usage Examples 

documented on: 2004.10.29