Created
June 1, 2018 21:28
-
-
Save lucasrizoli/b034a1913d768ba25f8947a85bda6d89 to your computer and use it in GitHub Desktop.
ffmpeg commands
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
# Convert input.avi to out.mp4 | |
ffmpeg -i input.avi -c:v libx264 -crf 19 -preset slow -c:a aac -b:a 192k -ac 2 out.mp4 | |
# Clip using ffmpeg | |
## no reencode | |
ffmpeg -i in.mp4 -ss [start] -t [duration] -c copy out.mp4 | |
ffmpeg -i in.mp4 -ss [start] -to [end] -c copy out.mp4 | |
## yes reencode | |
ffmpeg -ss [start] -i in.mp4 -t [duration] -c:v libx264 -c:a aac -strict experimental -b:a 128k out.mp4 | |
## crop reencode | |
ffmpeg -i in.mp4 -ss [start] -to [end] -c:v libx264 -strict experimental -filter:v "crop=256:180:1023:138" out.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment