Tuesday, January 17, 2006

mplayer and .3gp files

from this ::
http://blog.chris.de/archives/22-Nokias-.3gp-Files.html

I noticed that Nokia's .3gp files are simpy ffh263 encoded Therefore, it's easy to get MPlayer playing those videos. Follow me...

First of all, download MPlayer and install it. (Note that mplayer should have support for ffmpeg, so ffmpeg development libraries have to be installed). If you try to watch a video from your Nokia with mplayer right now, it will most likely fail with an error message like this one:

Cannot find codec matching selected -vo and video format 0x33363273.

This is easily fixed though:

1. Copy the codecs.conf file from the etc/ directory in your mplayer sources to ~/.mplayer/
2. Add the following line under the videocodec ffh263 (just search for it) section in this file:

format 0x33363273

Watching videos should work now. Also converting is possible

This command converts the .3gp to a DivX4:
# mencoder -ovc divx4 -nosound "Video.3gp" -o Video.avi

I'm still profiling a bit. I will update this entry, as soon as I found an appropriate bitrate and got sound conversion working.

Good luck!

Monday, January 09, 2006

find

to find each file and location in those files where a particular word occurs

find . -type f | xargs grep -i | more

got it from the following page
http://www.kegel.com/php.html#intro