Archive for the ‘Uncategorized’ Category

Audio and Video Manipulation With ffmpeg

Tuesday, July 5th, 2011

In order to avoid always re-learning same things I’m listing few useful commands. For more detail and information go here.

Any video/audio to OGG/Vorbis

fmpeg -i source.file -vn -acodec libvorbis -aq 6 audio.ogg

The -vn option disables video recording — omit if source is audio file. The -aq option stands for audio quality. The value of 6 results roughly at 192 kbit/s. For other values check this table.

Any audio/video to mp3

ffmpeg -i source.file -vn -ar 44100 -ac 2 -ab 192 -f mp3 sound.mp3

The -vn option disables video recording — omit if source is audio file; -ar sets the audio sampling frequency; -ac number of audio channels; -ab audio bitrate in bit/s; -f forces mp3 format.

Instaling from source with Checkinstall

Monday, January 31st, 2011

If everything goes well, all you need to do is run the commands below.

$ ./configure
$ make
# checkinstall -D make install

You’ll end up with installed package or deb package to install with dpkg. In either case you can simply remove the package and all it’s files with apt-get or other package manager..

References: