ffmpeg

Videos mit ffmpeg transcodieren

Auch videos kann man mit ffmpeg in andere Formate konvertieren:

"To start with, a DVD doesn't use mp4. It uses MPEG2 video at fixed
sized defined by the standard, and AC3, PCM or MP2 audio sampled at
48kHz.

If you want a PAL DVD then use the 'pal-dvd' target, if you want NTSC
then use the 'ntsc-dvd' target.

$ ffmpeg -i yourfile.avi -target pal-dvd -aspect 4:3 output.mpg
..."
von http://lists.mplayerhq.hu/pipermail/ffmpeg-user/2006-December/005986.html

breitbild videos werden mit 4:3 vertikal gestreckt. -aspect weglassen lässt das Seitenverhältnis gleich.

Audio Dateien mit ffmpeg konvertieren

zB ein wav auf 16K Abtastrate umwandeln:

ffmpeg -i sound.wav -ar 16000 sound16K.wav

-
aus einem video den sound extrahieren:

ffmpeg -i movie.avi -vn -acodec pcm_alaw sound.wav
ffmpeg -i movie.mp4 -acodec libmp3lame sound.mp3