This is probably not really important for a lot of people, but my significant other and I agreed that its about time we get a vcd/dvd player. This is to increase the life expectancy of our PCs at home.
The fastest and it seems to me the easiest way to get this done is using ‘devede‘ . It’s pretty much a front-end for some other applications like mencoder, vcdimager, dvdauthor, etc. Another alternative is ‘tovid‘, but I didn’t have time to check it out.
For those who like the command-line route (or you do stuff remotely on your torrent server
), here’s my own note on making vcd/svcd.
Before that you might want to get the jargons straightened out as you’ll come across them. You can start here.
(1) Convert the .avi to mpeg with ffmpeg
$ ffmpeg -i video.avi -target ntsc-vcd video.mpg
Some of the videos I have got are in widescreen format. So to retain the black bars on the top and the bottom, you got to apply some padding to it. If this is not done then you’ll find the video stretched.
$ffmpeg -i video.avi -target ntsc-vcd -s 352×176 -padtop 32 -padbottom 32 video.mpg
Apparently there’s a formula to apply for the values of s, padtop and padbottom depending on your system (ntsc vs pal thingy)
(2) Split the mpg file, if required.
In some cases, the mpg file created will be quite large and may not fit in a single CD. Since vcdimager, will not work with anything above 700MB, you really need to split the mpg.
$mpgtx -2 video.mpg -b video
This will create to files - video-1.mpg and video-2.mpg respectively. Now I’ve encountered some problems with doing the above if you’re producing svcd (-target ntsc-svcd) with ffmpeg. vcdimager seems to have problem reading the 2nd portion of the mpeg even though there is no problem rendering it with mplayer. I’ll just use devede for now if I need to make svcd.
(3) Make the VCD
$vcdimager -t vcd2 -c video.cue -b video.bin video.mpg
This will produce two files of course, video.bin and video.cue . The *.cue file is just a text file containing some information, the *bin file is the video itself. Go ahead and try: mplayer video.bin and you should be able to watch the video.
(4) Burn the files.
$cdrdao write –device /dev/cdrw video.cue
cdrdao will figure out where to get video.bin from the information extracted from the cue file.
If you have wodim, a cdrecord replacement, you could also do:
$wodim dev=/dev/cdrw -dao cuefile=video.cue
I pretty much extracted the steps in 1-4 above from gentoo-wiki.
written by adli
Recent Comments