Estrarre l'audio da un video
Con MPlayer è immediato estrarre l'audio da un video e salvarlo in un file, ad esempio, mp3:
mplayer -dumpaudio video.flv -dumpfile audio.mp3
Convertire Video
Si possono convertire video (ad esempio .flv in .avi) installando ffmpeg. Ad esempio:
ffmpeg -i fileorigine.flv filedestinazione.avi
Mencoder può avere problemi di sincronizzazione risolvibili specificando più opzioni. Ad esempio, per convertire da .avi a .flv:
ffmpeg -i fileorigine.avi -y -ab 56 -ar 44100 -b 200 -r 15 -f flv filedestinazione.flv
Recording video with audio from webcam
The following records a video with audio (using ALSA) from an integrated webcam:
ffmpeg -f alsa -ac 2 -i hw:0,0 -acodec mp3 -f video4linux2 -s 320x240 -i /dev/video0 outvideo.mpg
where
/dev/video0
is the video device. One may probably wants to change the resolution, here set to -s 320x240
.