|
|
News
Converting Videos to iPod Format - March 27th, 2008 23:12:38
| 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 (0) |
Installing a Fully Enabled ffmpeg - March 27th, 2008 23:12:29
| There are some useful programs and scripts out there that require ffmpeg to work correctly, so I've decided to write a tutorial on getting it installed. This tutorial is aimed at Ubuntu users, but it may work for other distributions as well. The problem with ffmpeg on Ubuntu is that it doesn't come fully enabled, due to legal reasons. To fix this problem we need to build it from source. Type each of these line into the terminal. (Note that there are 3 lines here, each beginning with "sudo", however the formatting of this page may cause them to wrap to the next line.):
sudo apt-get build-dep ffmpeg
sudo apt-get install ffmpeg
sudo apt-get install liblame-dev libfaad2-dev libfaac-dev libxvidcore4-dev liba52-0.7.4 liba52-0.7.4-dev libx264-dev
The following line is for 64-bit Ubuntu users only:
sudo cp /usr/lib/libx264_pic.a /usr/lib/libx264.a
Now we are going to download the source code and go to the directory it was downloaded to:
apt-get source ffmpeg
cd ffmpeg-*/
Time to configure. Assuming you are using Ubuntu 7.04 or 7.10 type this command into the terminal:
./configure --enable-gpl --enable-pp --enable-pthreads \
--enable-libogg --enable-liba52 --enable-libdts \
--enable-dc1394 --enable-libgsm --disable-debug --enable-libmp3lame \
--enable-libfaad --enable-libfaac --enable-xvid --enable-x264
All that is left to do is install, which can be done with these commands:
make
sudo make install
OK hopefully everything went as planned and we didn't get any serious errors. If you are using 64-bit Ubuntu you have one more command to finish installing ffmpeg:
sudo apt-get install --reinstall libx264-dev
When installing ffmpeg myself I got my information from help.ubuntu.com, so if you run into any problems check that site out. That site isn't specifically for installing ffmpeg, but all of the information you need is there.
Comments (0) |
Conky - System Monitor - March 27th, 2008 03:48:49
| Conky is an application that I love to have running whenever I'm using my computer. Its pretty much eyecandy that gives you that geeky/cool look for your desktop, but I guess it can be pretty useful too. Basically what it does is show system monitoring information on your desktop, such as the amount of memory you are using, how fast your CPU is running, etc. It also has a transparent background, making it seem like its part of your desktop wallpaper.

That picture shows conky running in the top right coner of the screen. For the most part it is very easy to install. If you are running Ubuntu you can simply go to the main menu -> System -> Administration -> Synaptic Package Manager. Scroll down the list of programs until you find conky, check the box and install it. At the time of this writing conky is at version 1.4.7 in the package manager, but i believe there is a newer version available on the Conky Website if you want the upgrade. I use version 1.4.7 myself and it works like a charm.
Now that we have conky installed we need to customize it how we want. Conky's configuration file is just found in your home folder, but it is a hidden file. To find it you need to click the View menu at the top of the File Browser and select Show Hidden Files. The file is called ".conkyrc". If you don't have this file in your home folder you can simply create one yourself. Inside of this file is where you need to put your configuration. Here is one to get you started:
And here is the one I made and use:
I know it can look somewhat intimidating, but look over those scripts for a little while and I'm sure you can figure out how they work. Everything that has a "#" before it is just a comment to help you out. My script is a lot shorter than the first one, but the first one may do a better job of explaining what is going on. If you figure out how to work the scripts you can check out a full list of variables at the Conky Website.
Now we want to run conky and see how it looks. open up a terminal and simply type in "conky" without the quotes and it should pop up. When you close the terminal conky will dissappear, but this is a good way to continue editing the .conkyrc file and checking out what it looks like. When you get it how you like and want it to stay up for good hit Alt + F2 and type in "conky" without the quotes.
The next thing you probably want to do is getting conky to startup when you turn your computer on, however I'll probably save this for another tutorial. The reason being that sometimes people run into the problem of Conky loading before the wallpaper does, and therefore the wallpaper gets drawn on top of conky. If you really want to know the work around right now you can check out the Ubuntu forum.
Wells thats about it for now. Whats great about Conky is that you can actually set it up to read RSS feeds, check your email, display the weather, and all kinds of other things, but i'm going to save that for another tutorial. First things first, and that is getting conky to work.
Still having problems? Check out the Conky FAQs.
Comments (0) |
Page: | 1 | 2 | 3 | 4 ...
|
| |