Video editing: cheat sheet

Here is a list of small video / audio editing tricks under linux.

Extract audio from .avi file

To extract the audio from an .avi video file, use the command:

mplayer video.avi -vc dummy -vo null -af resample=44100 -ao pcm:file=ripped-audio.wav

Make sure that the program oggenc is installed (in the kubuntu package vorbis-tools.

Then you can compress the .wav file with the following command:

oggenc -q4 ripped-audio.wav -o ripped-audio.ogg

That's it!

Alternatively, you can try:

ffmpeg -i chapter1.avi chapter1.mp3
// Or:
ffmpeg -i chapter1.avi chapter1.wav
lame chapter1.wav chapter1.mp3