Created
June 27, 2011 10:42
-
-
Save endymuhardin/1048657 to your computer and use it in GitHub Desktop.
Convert ogv to mp4 with H264 encoding, create poster, upload to server
This file contains hidden or 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
| ffmpeg -r 1 -t 1 -vframes 1 -i input-file.mp4 output-file.png |
This file contains hidden or 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
| ffmpeg -vcodec libx264 -vpre lossless_medium -i file-input.ogv file-output.mp4 |
This file contains hidden or 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
| ffmpeg -pass 1 -passlogfile file-input.ogv -threads 16 -keyint_min 0 -g 250 -skip_threshold 0 -qmin 1 -qmax 51 -i file-input.ogv -vcodec libvpx -b 614400 -s 640x480 -aspect 4:3 -an -y tmp.webm | |
| rm tmp.webm | |
| ffmpeg -pass 2 -passlogfile file-input.ogv -threads 16 -keyint_min 0 -g 250 -skip_threshold 0 -qmin 1 -qmax 51 -i file-input.ogv -vcodec libvpx -b 614400 -s 640x480 -aspect 4:3 -an -y file-output.webm |
This file contains hidden or 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
| rsync -avz /path/to/video/folder user@example.com:/home/user/public_html/videos |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment