Last active
December 27, 2021 07:02
-
-
Save hoyangtsai/70595f45c7263a47827533b82222d4f6 to your computer and use it in GitHub Desktop.
#ffmpeg #videoConvert #command
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
# convert to h.264 mp4 | |
ffmpeg -i $input -f mp4 -vcodec libx264 -preset fast -profile:v high -level:v 5 $output -hide_banner | |
3 remove audio track only | |
ffmpeg -i $input -vcodec copy -an $output | |
# shrink video resolution | |
ffmpeg -i input.mp4 -vf scale=480:320 output_320.mp4 | |
# change the video resolution and aspect ratio | |
ffmpeg -i input.mp4 -vf scale=480:320,setdar=4:3 output_320.mp4 | |
# Convert lossless mp4 video | |
# https://superuser.com/questions/624565/ffmpeg-convert-flv-to-mp4-without-losing-quality | |
ffmpeg -i input.mov -c:v libx264 -crf 19 -strict experimental filename.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment