Archive for the ‘Ubuntu’ Category

Bash job queuing: Task Spooler

Tagged: Programming, Ubuntu Date: 9th, February 2009

Today I found nifty little tool for queuing bash jobs, Task Spooler.
Imagine you hava list of jobs that are dependant on each other.
First job converts video from one format to another, second job should trigger if first job was successful and do some status updating. This is exactly a thing Task Spooler will help you [...]

  • Leave Comment
  • Read Comments (2)

toGDImage() broken: Patching ffmpeg-php 0.6.0

Tagged: PHP, Programming, Ubuntu Date: 8th, February 2009

As fallow-up to previous post (link).

After toying with fresh ffmpeg-php 0.6.0 I kept getting error:
Fatal error: failed to convert frame to gd image

Problem lies in broken function _php_avframe_to_gd_image in ffmpeg_frame.c, in the base ffmpeg-php package.
To fix this problem download this patch file and apply it to ffmpeg_frame.c like so:

cd /path/to/ffmpeg-php-0.6.0/
wget http://hazaah.com/download/ffmpeg_frame.c.patch
patch -p0 ffmpeg_frame.c < ffmpeg_frame.c.patch

Reinstall [...]

  • Leave Comment
  • Read Comments (5)

How-to: FFmpeg, FFmpeg-PHP, Lame, Libogg, Libvorbis, FLVtool2, Mplayer, Mencoder, AMR

Tagged: Ubuntu Date: 8th, February 2009

This howto is written for Ubuntu 8.10 and is verified to work on 8.2.2009.
I found numerous tutorials on this subject out there but they all failed me, but combination of them all was successful. So fallowing is made from 10 different tutorials.
And for all those who will ask why not just apt-get php5-ffmpeg, answer is [...]

  • Leave Comment
  • Read Comments (9)

Can not change theme in AWN

Tagged: Ubuntu Date: 8th, August 2008

There is a bug in current version of AWN (Avant Window Navigator 0.3.1), theme manager is broken. After some time I found out that there is a very simple solution for this problem.
AWN doesn’t make permissions for config folder like it should, owner is root instead of you (the rightful owner). Quick fix is:

sudo chown [...]

  • Leave Comment
  • Read Comments (0)

Unrar recursively multiple archives (linux and mac)

Tagged: Database, Programming, Ubuntu Date: 1st, August 2008

It really is a drag when you download full season of your favorite show and see 20+ episodes in separate folders, every episode rared. It takes a bit of time to unpack one by one.
Here’s a little script that should help you with that (and with similar tasks). Download.
Install:

gunzip unrarr.gz
sudo cp unrarr /usr/bin/
sudo chmod +x [...]

  • Leave Comment
  • Read Comments (10)