Un peu de transcodage vidéo

March 6, 2011 by nono
Catégories geekeries - Mots-clés ffmpeg video

Juste histoire de ne pas oublier, ce blog est un bloc-notes comme un autre. :-)

Pour convertir une vidéo en h264 :

ffmpeg -i beat_it.dv -acodec libmp3lame -vcodec libx264 \
  -aspect 16:9 -vpre normal -metadata artist="Les Fourmis Acidulees" \
  -metadata title="Beat It" beat_it.mp4

Pour la convertir en Ogg Theora :

ffmpeg2theora -i beat_it.dv --optimize --aspect 16:9 \
  --nometadata --no-oshash --artist "Les Fourmis Acidulees" \
  --title "Beat It" --date "26/02/2011" --location "Les Trois Arts" \
  beat_it.ogv

La finalité, c'est ce greffon Wordpress.

EDIT : Et la version Flash, pour les gens qui sont encore au XXème siècle :

ffmpeg -i beat_it.dv -aspect 16:9 -s 426x240 -ar 44100 \
  -metadata artist="Les Fourmis Acidulees" \
  -metadata title="Beat It" beat_it.flv