Abhishek Gupta

The Sun won’t set at NIT Durgapur !

Posts Tagged ‘video’

How To Convert Video File in Linux through command line

Posted by abhiitechie on August 30, 2009

Get the ffmpeg package first from the repo by

sudo apt-get install ffmpeg

Then follow the following command lines to get going

3gp to avi : ffmpeg -i source.3gp -f avi -vcodec xvid -acodec mp3 -ar 22050 destination.avi

flv to 3gp : ffmpeg -i source.flv -s 176×144 -vcodec h263 -r 25 -b 200 -ab 64 -acodec mp3 -ac 1 -ar 8000 destination.3gp

flv to mp4 : ffmpeg -i source.flv -vcodec h264 -r 25 -b 200 -ab 128 -acodec mp3 -ac 2 -ar 44100 destination.mp3

avi to mp4 : ffmpeg -i source.avi -f psp -r 29.97 -b 768k -ar 24000 -ab 64k -s 320×240 destination.mp4

mp4 to 3gp : ffmpeg -i source.mp4 -s 176×144 -vcodec h263 -r 25 -b 12200 -ab 12200 -ac 1 -ar 8000 destination.3gp

avi to 3gp : ffmpeg -i source.avi-s qcif -vcodec h263 -acodec mp3 -ac 1 -ar 8000 -r 25 -ab 32 -y destination.3gp

mpg to 3gp : ffmpeg -i source.mpg -s qcif -vcodec h263 -acodec mp3 -ac 1 -ar 8000 -ab 32 -y destination.3gp

Enjoy !

Posted in linux, Personal | Tagged: , , , , , , , , , | 5 Comments »

Download YouTube or Similar using Copy Paste

Posted by abhiitechie on April 27, 2009


We watch videos on YouTube, Google videos, and all those FLV powered video sharing portals. We all want to download it and save it for our later pleasure. Ofcourse, lots of desktop applications and command line utilities are available. But if we are on Linux we can have youtube videos with simple copy paste.

The video that you are currently viewing is on /tmp/Flashfoo (the foo can be any random string. After the video is completely buffered, we just have to copy the file to our local disk for persistent storage. That is it.

We can watch as many you want and copy them too. Each of the Flash* files have a unique random character string.

Posted in Personal, Uncategorized | Tagged: , , , , , , , , | 1 Comment »