Posts Tagged ‘Ubuntu’

I Hate downtime

Wednesday, July 9th, 2008

Yesterday evening, I agreed to turn my Home Server ™ off too help some people sleep.

Unfortunatly my servers sleep turned out to be the big sleep, and this morning it refused to start.

A few hours and a HD transplant later, evrything is back on line, now running on a Semperon 2600 and 1Go of ram :)

Ubuntu vs AAC (round 1)

Saturday, June 7th, 2008

For better or for worse, (generally for worse) a lot of multimedia systems seem to like making peoples lives difficult.

This is painfully obvious with AAC and the formats that use it (think mp4).

Luckally, playback can be assured by using a nice arrangement of plugins that are downloaded just in time to play the offending file on your computer (thanks ubuntu).

This help doesn’t extend to re-encoding though, so for those of you lucky enough to have an mp4 capable phone (like the sony erricsons), you can find that putting the latest Bleach on your phone to be an exercise in frustration.

The reasons for this are numerous and complexe but come down to the simple fact that if cannonicle put aac encoders in Ubuntu they’d be sued to kingdom come in the states (thank god I don’t live there ;) ).

Help is at hand though, since even if the versions of the enncoding tools included with Ubuntu don’t come equiped, you can re-compile them so that they work as intended.

First up: ffmpeg

FFmpeg is one of the many swiss army knives used for video encoding available with Linux. It’s probably the easiest to use, and like it’s cousins, the ubuntu version comes cripled.

What to do?

First of all, make sure we have what’s needed to re-build it

sudo apt-get build-dep ffmpeg

Then add a few libraries (that add the magic support)

sudo apt-get install libfaac-dev libfaac0 libfaad-dev libfaad2-0 libfaad0

Finally, get the source code to ffmpeg

mkdir ffmpeg
cd ffmpeg
apt-get source ffmpeg

Now the fun starts, you should have 3 files and a directory before you.

Cd into the directory.

Now let’s move this thing arround a bit:

Open: debian/rules

This file tells dpkg how to build ffmpeg, we want to add a config flag so go to the lines that start with “confflags” and add on to one of them:

–enable-libfaad –enable-libfaac

Save, and quit, now all you have to do is re-build the package

dpkg-buildpackage

go have a coffee while it builds, and then install the result:

cd ..
dpkg -i ffmpeg*

To use, something like this is needed:

ffmpeg -i Source.avi -vcodec h263 -b 400 -s 352×288 -acodec aac -ab 64 -ar 48000 -ac 2 -f mp4 Dest.mp4

Update:

For eugenia (and anyone else who also wants AMR support), here are the debs with it (supported in the ‘if it breaks you get to keep both pieces’ way since I haven’t got the means to test them atm:

Update :

I’ve removed the download links for now since the files aren’t available on my server any longer. If anyone needs them, let me know

Bye bye Dapper, Welcome Hardy

Sunday, April 27th, 2008

I’ve just finished upgrading my server to Ubuntu Hardy, with virtual no trouble.

The only problem came from the kernel, which now calls  ide drives ’sd…’ instead of ‘hd…’ so hda1 becomes sda1.

Update grub or face the consequances.You have been warned!