I just did a re-write of one of my most popular hits on this blog. It was all documented in the comments of the script’s page but it’s a bit of a mess so here’s the definitive step-by-step walkthrough to converting your videos to AMV format in Linux (I use Ubuntu 10.04) If you can’t make out the pictures in this post click on them to make them bigger – remember, they’re only pictures, not real dialog windows… ;oP
- Open a terminal window
sudo apt-get install subversionAllow this to finish, it takes a good few minutes
svn checkout http://amv-codec-tools.googlecode.com/svn/trunk/ amv-codec-tools
cd amv-codec-tools/AMVmuxer
make build
sudo apt-get install nautilus-actionscd
gedit- Paste the following code into that file
#!/bin/bash
for uri in $@; do
INFILE=$uri
FORMAT=${INFILE:(-4)}
OUTFILE=${INFILE/$FORMAT/.amv}
cd ~/amv-codec-tools/AMVmuxer ;
./ffmpeg/ffmpeg -i "$INFILE" -f amv -r 16 -s 160x120 -ac 1 -ar 22050 -qmin 3 -qmax 3 "$OUTFILE" ;
zenity --title "$FORMAT to .amv File Conversion Complete" --info --text="${INFILE/file:\/\// } has converted \n\nCheck ${OUTFILE/file:\/\// }";
done
…save file as ‘convert to amv’ and close the file - back in the terminal…
nautilus-actions-config-tool - In the window that pops up, click new and make it look like this (don’t worry about the shred file and wipe free space stuff, we’re only interested in the Convert to amv stuff):



note the different tabs that are open, also note where quotation marks have been used - Save the configuration
- Close the nautilus actions configuration tool window
- Close the terminal window
- In nautilus navigate to a file you want converted
- Right click on it, you should see this menu item
go ahead and select that - After some time, how long depends on the size of the file, you’ll get a dialog box looking something like this

- Go ahead and play the file (I use GNOME MPlayer for amv files “sudo apt-get install gnome-mplayer” but vlc plays them too. You may need codecs.)

Hopefully that’ll be you sorted but there are a few points to note…
- Spaces in file or path names – it can’t handle them
- You can do multiple files on the one click, it’ll do them one at a time
- Some file types won’t convert without messing with ffmpeg – notably mp4/mp3/3gp – these can be made to work but that’s outside the scope of this, importantly flv files convert perfectly so your youtube downloads will work ;oP
- This was written using Ubuntu – I can’t be certain it’ll work with other distros
go stick your amv files onto your iteddy or ipod-esque thingy and play to your hearts content!




















