I have taken a AVI file and converted to the correct mp4 to put it onto my 30GB iPod. I have taken notes and heres what Ive come up with. I hope it helps!
First get the latest CVS with this:
This will make a ffmpeg dir and get all the needed files off the server (duh i guess but just explaining everything )
cvs -z9 -d:pserver:email@example.com:/cvsroot/ffmpeg co ffmpeg
You then get into that dir and need to configure the build. For some reason this part was the hardest for me to get. I had to run the following command before i ran the ./configure. This will pull everything ffmpeg needs and shouldn't give any build errors.
Make sure to have the sources in the repositories correct.
sudo apt-get build-dep ffmpeg
as well get the following 2 commands for libfaad-dev and libfaac-dev and the xvid librarys
sudo apt-get install libfaac-dev
sudo apt-get install libfaad2-dev
Ok so ready to configure for build heres what i used:
sudo apt-get install libxvidcore4-dev
Ok now lets build
./configure --enable-gpl --enable-pp --enable-vorbis --enable-libogg --enable-theora --enable-a52 --enable-dts --enable-dc1394 --enable-libgsm --disable-debug --enable-faac --enable-xvid
Let it run through, takes a few minutes on a 2GHz
Once completed go ahead and install it with:
Now to convert here is the command I used, it doesnt do a great job at making the files smaller but it works as of right now and Im working on getting a better way of getting the files smaller
And that is all to it! Took me about 10 minutes to convert a 45 minute show.
ffmpeg -y -i input.avi -b 768 -s 320x240 -vcodec xvid -ab 128 -acodec aac -ac 2 -ab 64 -f mp4 output.avi
I hope this helps someone because I have been looking everywhere to find a solution to this. And if this doesn't help anyone...well umm Im sorry Im no help still a total newbie at this stuff.