Monday, March 2, 2009

Conversion to .avi of some problematic .flv files

Recently I ve found in the net some .flv files that does not play in mplayer nor vlc (under Ubuntu intrepid), both complaining with a message:

[flv @ 0x8837aa8]Unsupported video codec (7)


These files comes encoded with the H.264 codec, and for a reason I ignore, mplayer and vlc refuses to play them, despite they support such a encoding. ffmpeg, however does, but not certainly the version shipped with Ubuntu. So the trick is to compile the latest sources of ffmpeg, which you can find via svn at:

svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg


As the idea is to compile and use a new version of ffmpeg without touching the Ubuntu's version, you can compile it statically and install it in a directory of your own:

./configure --prefix=/path/to/your/dir --enable-static
make
make install


It is not necessary to do this under root (in fact the idea is avoid being root). Once compiled, you can use your new ffmpeg to convert the annoying file:

/path/to/your/dir/bin/ffmpeg -i your_annoying_file.flv -vcodec copy your_new_file.avi


And voilĂ ! (at last it worked for me!)

Wednesday, December 10, 2008

Convert AVI to 3gp

To convert your favorite video in 3gp format, in order to watch it in your cellphone, just do (trick from: http://goinggnu.wordpress.com/2007/02/13/convert-avi-to-3gp-using-ffmpeg/)

ffmpeg -i inputfile.avi -s qcif -vcodec h263 -acodec aac -ac 1 -ar 8000 -r 25 -ab 32 -y outputfile.3gp

Thursday, October 23, 2008

Inline Images with Data URLs

You can embed an image inside the img tag, in this way:
 src="data:image/gif;base64,R0lGODl... (base64 letters) .../gAwXEQA7"

The image is encoded in base64 and won't be read from a file! This works on all the decent web browsers, so don't expect a good behavior on IE.

An embedded image using this technique:

embedded folder icon

Saturday, October 18, 2008

Scientific Handbook for the Simulation of Collective Intelligence

OK, I think that a good manual to start my PhD.:


Scientific Handbook for the Simulation of Collective Intelligence





The PDF can be downloaded at: http://sci.collectivae.net/

Tuesday, May 6, 2008

how to remove dolphin and everythink that is associate with it in kubuntu gutsy

From: http://ubuntuforums.org/showthread.php?t=667425

1.) Right click a folder, select Properties
2.) Click button next to "Type: Folder"
3.) Set konqueror as default and apply.