Last active
July 22, 2016 08:38
-
-
Save mtrl/5719faabbe989a2d17be to your computer and use it in GitHub Desktop.
Transcode video for Chromecast
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
VIDEO=[video] | |
ffmpeg -i $VIDEO -c:v libx264 -profile:v high -level 5 -crf 18 -maxrate 10M -bufsize 16M -pix_fmt yuv420p -vf "scale=iw*sar:ih, scale='if(gt(iw,ih),min(1920,iw),-1)':'if(gt(iw,ih),-1,min(1080,ih))'" -x264opts bframes=3:cabac=1 -movflags faststart -strict experimental -c:a aac -b:a 320k -y $VIDEO.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment