Monday, November 23, 2009

How to convert avi to vcd in ubuntu

I had a collection of videos that I wanted to write as a video CD so that I could play them in the vcd player in my home. The problem was that they are in avi format and directly writing them to a CD is not playable by a cd player. So I have to make a video CD out of the avi files. I read that Avidemux exports directly to VCD (mpg) format, but what I found out after wasting two whole hours is that the container that Avidemux produces while exporting to VCD format cannot contain audio. That means I was getting mpg files with no audio and Avidemux website suggested adding it manually later. But as it turns as everything in Linux it is a one-step process when done from the command line.

I got the following from the Ubuntu forums. (http://ubuntuforums.org/showthread.php?t=105781)

AVI to VCD

NTSC

ffmpeg -i -target ntsc-vcd

PAL

ffmpeg -i -target pal-vcd

Burn CD

K3b File > New Project > New Video CD project

For example in my case :

ffmpeg -i mymovie.avi -target pal-vcd forvcd.mpg

If there is stretching then

ffmpeg -i /path/file.avi -target pal-vcd -s 352x192 -padtop 32 -padbottom 32 /path/output.mpg

should help.


No comments:

OK GOOGLE on Samsung Galaxy S7 doesn’t work

To make Ok Google detection work on Galaxy S7 (Galaxy series phones) we need to perform a couple of steps. 1. As long as Samsung S vo...