Skip to content

Instantly share code, notes, and snippets.

@julienhay
Created January 15, 2014 16:31
Show Gist options
  • Save julienhay/8439423 to your computer and use it in GitHub Desktop.
Save julienhay/8439423 to your computer and use it in GitHub Desktop.
Bash ffmpeg génère tous les formats web et 3 vignettes
#!/bin/bash
ffmpeg -i $1 -vcodec libx264 -b 200k -vf scale=iw/2:-1 video.mp4
ffmpeg -i video.mp4 -vcodec libtheora video.ogv
ffmpeg -i video.mp4 -b 700k video.webm
ffmpeg -i video.mp4 -vcodec flv video.flv
ffmpeg -itsoffset -1 -i video.mp4 -vframes 1 -filter:v scale="400:-1" thumb1.png
ffmpeg -itsoffset -5 -i video.mp4 -vframes 1 -filter:v scale="400:-1" thumb2.png
ffmpeg -itsoffset -10 -i video.mp4 -vframes 1 -filter:v scale="400:-1" thumb3.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment