|
|
Latest News
Converting Videos to iPod Format March 27th, 2008
I'm going to start off by giving a warning that this may get a little complicated. What we are going to do in this tutorial is download a couple programs, and then make a script that uses the functionality of these programs to produce a video file that the iPod can read and play. I'm going to write this tutorial as if you were using Ubuntu, but I'm sure it will work with other distributions of Linux as well. First of all we are going to need a program called ffmpeg. Unfortunately for us, ffmpeg doen't come fully enabled due to legal reasons, so we're going to have to build it from source. Heres the tutorial I wrote on the subject: Installing a Fully Enabled ffmpeg.
Next we need to download the script we are going to use. Download pypodconv and save it where ever you want it. Please note that I did not create this script. If you would rather create this script yourself then copy the following into a blank file and name it pypodconv.
You also need to make sure this script has execution privileges. In Ubuntu (and possibly other distributions) you do this by right-clicking the file and going to properties. Go to the Permissions tab and check the box that says "Allow Executing file as program.
The last thing we need to do before that script will work is download gpac. You can download it through Synaptic, or simply type this in the terminal:
sudo apt-get install gpac
Alright, now that everything is set I just need to explain how the script works. I'll explain it by giving an example of my set up. Lets say I'm in my home folder, I saved pypodconv in a folder called Documents, and the file I want to convert is called movie.avi and is in a folder called Videos. To convert this video I would go to the terminal and type:
Documents/pypodconv -i Videos/movie.avi -o movie.mov --hd
As you can see, whatever is after the "-i" is the input and whatever is after the "-o" is the file we want to create. The "--hd" is optional, but what it does is create a higher resolution video for better quality. Now all you can do is sit back and wait for the video to be encoded. This takes a good bit of time, especially if you used the "--hd" option. One last thing I would like to add is that if you saved pypodconv to your home folder instead of to a folder called Documents you would replace the last command with this:
./pypodconv -i Videos/movie.avi -o movie.mov --hd
This tells the computer that the file pypodconv is in the same folder you are in. Well thats the end of the tutorial. Feel free to bookmark this page for future reference in case you ever forget how to use the script.
Comments
|
|
| |