Last active
April 18, 2017 09:42
-
-
Save okamos/1a5ddbab78ded3793391ff7c0ff4cc86 to your computer and use it in GitHub Desktop.
FFmpeg
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
## sound | |
ffmpeg -y -i input.mp4 -f mp4 -acodec libfdk_aac -ar 44100 -b:a 64k -ac 2 -profile:a aac_he -afterburner 1 -vn output.m4a | |
## mp4 video | |
ffmpeg -y -i input.mp4 -f mp4 -vcodec libx264 -acodec libfdk_aac -s 1280x720 -b:v 3000k -r 29.97 -pix_fmt yuv420p -b:a 128k -ar 44100 -ac 2 -aspect 1280:720 output.mp4 | |
## sprite animation webp / jpg | |
ffmpeg -loglevel verbose -i input.mp4 -s 400x400 -r 12 -crf 0 -b:v 100000k -an -f mpegts - 2>"ffmpeglog" |\ | |
ffmpeg -i - -vcodec libwebp -vf tile=4x7 -qscale:v 60 "out/%05d.webp" 2>/dev/null | |
ffmpeg -loglevel verbose -i input.mp4 -s 400x400 -r 12 -crf 0 -b:v 100000k -an -f mpegts - 2>"ffmpeglog" |\ | |
ffmpeg -i - -vcodec mjpeg -vf tile=4x7 -qscale:v 5 "out/%05d.jpg" 2>/dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment