Using VCDXRIP
To convert to MPEG:
$ vcdxrip
USING MENCODER
mencoder [options] file [file|URL|-] [-o file | file://file | smb://[user:pass@]host/filepath]
$ mencoder vcd//:2 -oac lavc -ovc lavc -o filename.avi
($ sign is the terminal prompt)
-oac lavc
Encode with a libavcodec codec
-ovc lavc
Encode with a libavcodec codec.
Using CDFS
The source can be downloaded here:
http://users.elis.ugent.be/~mronsse/cdfs/download/
(Unfortunately, the driver doesn't yet support later Linux versions).
$ mount -t cdfs -o ro /dev/cdrom /mnt/video
And copy the *.DAT files
FFMPEG
FFMPEG is a very powerful tool (command-line) to transcode media file.For example, to extract audio from an AVI file:
$ ffmeg -i source_video.avi -vn -ar 44100 -ac 2 192 -f mp3 sound.mp3
To convert MPG to AVI (or vise-versa):
$ ffmeg -i video_original.mpg output.avi
To encode WAV to mp3:
$ ffmpeg -i video.wav -vn -ar 44100 -ac 2 -ab 192 -f mp3 song.mp3
To mix a WAV file with a video file:
$ ffmpeg -i audio.wav -i video.avi audio_video.avi
To convert AVI to MPEG suitable for DVD:
ffmpeg -i source_video.avi -target pal-dvd -ps 2000000000 -aspect 16:9 finale_video.mpeg
AVI to VCD:
$ ffmpeg -i video.avi -target ntsc-vcd video_out.mpg
To use 2-pass encoding, pass "-pass 2 -passlogfile somefile" before output file.
HandBrake
We then can use Handbrake to transcode video from CD/DVD to various formats, especially for Apple products.
There are two versions of HandBrake, one is the GUI front-end, and the CLI version.
To list the built-in presets:
$ HandBrakeCLI -z
To use the preset, use capital "-Z"
For example:
$HandBrakeCLI -Z "iPhone 4" -i avseq0.avi -o output.mp4
The syntax for mencoder is vcd://2, not vcd//:2.
ReplyDeleteThanks for the correction
ReplyDelete