Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-16-2004, 10:37 PM   #1
Registered: Jun 2003
Location: kc
Distribution: fc2
Posts: 52

Rep: Reputation: 15
avi to vcd

i am using the script below to generate video cd's which play on my dvd player from an avi file. just save the script as vcd. chmod 755 vcd and enter:
./vcd filename

this works great for avi files which i have taken with my canon sd100 camera, however it does not work for any other avi files that i already have. is there a catchall for
ffmpeg so that whatever codec the file is, it will be transformed into a vcd compliant mpeg?

# Burn a data cd
if test -f $TMPFILE
echo "Another VCD is currently being produced"
exit 0
trap 'rm $TMPFILE;exit 0' 0
echo $$ > $TMPFILE



echo "Converting $FNAME.avi to $FNAME.mpg"
ffmpeg -i $FNAME.avi -me full -title $FNAME -r 29.97 -s 352X240 -ab 224 -ar 44100 -b 1150 -f vcd -vcodec mpeg1video -acodec mp2 $FNAME.mpg

echo "Creating the VCD image for $FNAME.mpg"
vcdimager -t vcd2 -c $FNAME.cue -b $FNAME.bin -l $FNAME $FNAME.mpg

echo "Blanking the CDRW"
cdrdao blank --device 0,0,0

echo "Burning the VCD of $FNAME using cdrdao"
cdrdao write -v 2 --speed 4 --device 0,0,0 --driver generic-mmc --eject $FNAME.cue

echo "ALL DONE - CD is ready to be played on a DVD player."

rm *.bin *.cue
Old 02-16-2004, 10:47 PM   #2
Registered: Jun 2003
Location: kc
Distribution: fc2
Posts: 52

Original Poster
Rep: Reputation: 15
i forgot to credit that i got the above script from and made some modifications:


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert an AVI file to a VCD? jon_k Linux - Software 4 03-07-2006 02:56 PM
program to change avi to vcd? dr_zayus69 Linux - Software 4 09-03-2005 10:44 PM
converting avi to vcd nrunge Linux - Software 1 04-22-2004 03:07 AM
Avi to vcd and burn on dvdr? chup Linux - General 9 04-05-2004 06:12 PM
.AVI -> VCD + subtitiles from .txt ?? h8r Linux - Software 0 12-29-2003 08:25 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:11 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration