Created
January 15, 2014 16:31
-
-
Save julienhay/8439423 to your computer and use it in GitHub Desktop.
Bash ffmpeg génère tous les formats web et 3 vignettes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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