Last active
January 10, 2019 18:17
-
-
Save cedeber/e0a85fe36cbb731893a6ad6f594e17ad to your computer and use it in GitHub Desktop.
FFmpeg useful 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
# remove sound | |
ffmpeg -i input.mp4 -c copy -an output.mp4 | |
# export first frame | |
ffmpeg -i input.mp4 -ss 0 -vframes 1 poster.png | |
# Resize | |
ffmpeg -i input.mp4 -filter:v scale=-1:720 -c:a copy output.mp4 | |
ffmpeg -i input.mp4 -filter:v scale=-1:720 -c:a copy output.mp4 | |
#Bitrate | |
ffmpeg -i input.mp4 -c:v libx264 -b:v 2M -maxrate 2M -bufsize 1M output.mp4 | |
ffmpeg -i input.mp4 -c:v copy -ar 44100 -ab 128k output.mp4 | |
# Merge audio and video | |
ffmpeg -i video.mp4 -i audio.m4a -c:v copy -c:a copy output.mp4 | |
# Rotate | |
ffmpeg -i input.mp4 -vf "hflip,vflip" output.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment