Use of vcdxrip

#!/bin/bash

if [ ! -n “$2” ]; then
echo $0: 0/1 dir
exit 1
fi

DRIVE=$1
shift

DESTDIR=”$HOME/Videos/mpg/$1″
shift

if [ ! -d “$DESTDIR” ]; then
mkdir -p “$DESTDIR” || exit 1
fi

cd “$DESTDIR” &&
/bin/rm -f * &&
/usr/bin/vcdxrip $* -C /dev/scd$DRIVE &&
eject /dev/scd$DRIVE && echo vcdxrip successfully && exit 0

echo vcdxrip fail || exit 1

Concate VCDs to mp4 using VLC

#!/bin/bash
/bin/cat $* | /Users/xxx/Applications/VLC.app/Contents/MacOS/VLC –
–sout “#transcode{vcodec=h264,vb=1024,acodec=mp4a,ab=192,scale=1}:
standard{access=file,mux=mp4,dst=”/Users/xxx/Movies/vcd.mp4″}”
vlc:quit -I dummy