Edició video amb GNU/Linux

Editem amb el Cinelerra

El Render, el podem fer seqüència JPG o PNG. Documentació Cinelerra

ffmpeg i mp3

En Ubuntu 8.04 instalarem els paquets següents per habilitar el mp3

wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - && sudo apt-get update
sudo apt-get install libavcodec1d libavformat1d libavutil1d libc6 libfreetype6 libimlib2 libsdl1.2debian libswscale1d libfaad0

Unim fotogrames en un clip

//mpeg4. El que agafarem
mencoder mf://*.png -mf w=720:h=576:fps=25:type=png -ovc lavc -lavcopts v codec=mpeg4 -oac copy -o output.avi
//Altres opcions
mencoder mf://*.png -mf w=720:h=576:fps=25:type=png -ovc raw -oac copy -o output.avi

Documentació Encoding from multiple input image files (JPEG, PNG, TGA, SGI) Mencoder

Unim audio i video

Ho podem fer amb Avidemux. Obrim un clip avi i un audio source external un wav. El so, podem editar-ho amb Audacity o amb Ardour

Convertir clip a mpeg

ffmpeg -s 720x576 -i fitxer_entrada.avi -target vcd -s 720x576 fitxer_sortida.mpg

Si el volem convertir a 352×288, només fem:

ffmpeg -i itxer_entrada.avi -target vcd fitxer_sortida.mpg

Reproducció

Si l'executem amb mplayer, ens donarà:

VIDEO:  MPEG1  720x576  (aspect 1)  25.000 fps  1150.0 kbps (143.8 kbyte/s)
AUDIO: 44100 Hz, 2 ch, s16le, 224.0 kbit/15.87% (ratio: 28000->176400)
Selected audio codec: [mad] afm:libmad (libMAD MPEG layer 1-2-3)

Conversió video a FLV

ffmpeg -sameq -i video.flv -g 60 video_new.flv

Annex

 
documentation/howto/video_linux.txt · Darrera modificació: 2009/11/23 10:23 per resteve
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki