-
-
Save 44213/eedb5bb964067401dc8f30a51e0f9632 to your computer and use it in GitHub Desktop.
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
ffmpeg -y -i input.mp4 | |
-c:a libfaac -ac 2 -ab 192k -ar 44100 -c:v libx264 -profile:v high -level 4.0 -preset slow -b:v 3000k -maxrate 3000k -bufsize 3000k -filter:v scale=-1:720 -f mp4 -r 25 -g 25 -pix_fmt yuv420p encode_720high.mp4 | |
-c:a libfaac -ac 2 -ab 192k -ar 44100 -c:v libx264 -profile:v high -level 4.0 -preset medium -b:v 2000k -maxrate 2000k -bufsize 2000k -filter:v scale=-1:720 -f mp4 -r 25 -g 25 -pix_fmt yuv420p encode_720low.mp4 | |
-c:a libfaac -ac 2 -ab 160k -ar 44100 -c:v libx264 -profile:v main -level 3.0 -preset slow -b:v 1500k -maxrate 1500k -bufsize 1500k -filter:v scale=-1:576 -f mp4 -r 25 -g 25 -pix_fmt yuv420p encode_576high.mp4 | |
-c:a libfaac -ac 2 -ab 160k -ar 44100 -c:v libx264 -profile:v main -level 3.0 -preset fast -b:v 500k -maxrate 500k -bufsize 500k -filter:v scale=-1:576 -f mp4 -r 25 -g 25 -pix_fmt yuv420p encode_576low.mp4 | |
-c:a libfaac -ac 2 -ab 128k -ar 44100 -c:v libx264 -profile:v baseline -level 3.0 -preset slow -b:v 800k -maxrate 800k -bufsize 800k -filter:v scale=-1:288 -f mp4 -r 25 -g 25 -pix_fmt yuv420p encode_288high.mp4 | |
-c:a libfaac -ac 2 -ab 128k -ar 44100 -c:v libx264 -profile:v baseline -level 3.0 -preset fast -b:v 300k -maxrate 300k -bufsize 300k -filter:v scale=-1:288 -f mp4 -r 25 -g 25 -pix_fmt yuv420p encode_288low.mp4 | |
-c:a libfaac -ac 2 -ab 96k -ar 44100 -c:v libx264 -profile:v baseline -level 3.0 -preset fast -b:v 550k -maxrate 550k -bufsize 550k -filter:v scale=-1:180 -f mp4 -r 25 -g 25 -pix_fmt yuv420p encode_180high.mp4 | |
-c:a libfaac -ac 2 -ab 96k -ar 44100 -c:v libx264 -profile:v baseline -level 3.0 -preset fast -b:v 200k -maxrate 200k -bufsize 200k -filter:v scale=-1:180 -f mp4 -r 25 -g 25 -pix_fmt yuv420p encode_180low.mp4 | |
-ss 5 -vsync vfr -frames:v 3 -qscale:v 2 -filter:v scale=-1:500,thumbnail=200 input_%d.jpg | |
MP4Box -dash 2000 -rap -frag-rap -profile onDemand -out 1234563134_pap_small_d.mpd -mpd-title title | |
encode_720high.mp4#video encode_720low.mp4#video encode_576high.mp4#video encode_576low.mp4#video encode_288high.mp4#video encode_288low.mp4#video encode_180high.mp4#video encode_180low.mp4#video | |
encode_720high.mp4#audio encode_720low.mp4#audio encode_576high.mp4#audio encode_576low.mp4#audio encode_288high.mp4#audio encode_288low.mp4#audio encode_180high.mp4#audio encode_180low.mp4#audio | |
# Using imagemagic to help process | |
http://kwlug.org/node/854 | |
# Some cool image magic scripts: http://www.fmwconcepts.com/imagemagick/autocolor/index.php | |
Compressor: https://help.apple.com/compressor/mac/4.2/#/cpsrcbbd612d | |
ffmpeg Filters: https://ffmpeg.org/ffmpeg-filters.html | |
Resizes | |
https://gist.github.com/bmatherly/e39fb68c876161d5b17b | |
some math for scaling: http://superuser.com/questions/547296/resizing-videos-with-ffmpeg-avconv-to-fit-into-static-sized-player |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment