Last active
March 31, 2021 09:05
-
-
Save catalinberta/d83cc0fa5c1c53cb0c91086015c08812 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
// Cut Video Length -ss startFrom -t cutLength | |
ffmpeg -ss 30 -i input.wmv -c copy -t 10 output.wmv | |
// Cut Audio -ss startFrom -t cutLength | |
ffmpeg -ss 0 -i output.mp3 -t 30 output.mp3 | |
// Compress audio | |
ffmpeg -i input.mp3 -ab 48000 output.mp3 | |
// Cut audio starting from 10 seconds for 6 seconds | |
ffmpeg -ss 10 -i input.mp3 -t 6 output.mp3 | |
/** OPTIONS **/ | |
// Fade Audio | |
-af "afade=t=out:st=18:d=2" | |
// Fade Video | |
-vf "fade=t=out:st=18:d=2" | |
// Crop Video | |
-filter:v "crop=WIDTH:HEIGHT:LEFT:TOP" | |
// Resize Video | |
-vf scale=320:240 | |
// Quality 0 = lossless, 53 = worst | |
-crf 10 | |
// Compress & encode video | |
-c:v libx264 -acodec aac -strict -2 -movflags +faststart -profile:v baseline -level 4.0 -s 320x180 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment