Created
June 4, 2020 23:57
-
-
Save ihainan/f6685ae1ebc2569877818bf5c90748f8 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
file_name=$1 | |
ffmpeg_ss=$2 | |
file_name_no_extension=$(basename "$file_name" .mp4) | |
ffmpeg -i "$file_name" -ss "$ffmpeg_ss" -c copy "$file_name_no_extension.tmp.mp4" | |
ffmpeg -i "$file_name_no_extension.tmp.mp4" -strict -2 -af "volume=20dB" "$file_name_no_extension.final.mp4" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment