Created
May 12, 2024 15:06
-
-
Save doceazedo/96b8e30a4ffc3cae0d1ab3969f55ba1c 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
# https://stackoverflow.com/a/74430442 | |
# https://stackoverflow.com/a/37570435 | |
mkdir out | |
for f in *.AVI; do | |
dur=$(ffprobe -v error -show_entries format=duration -of compact=p=0:nk=1 "$f") | |
ffmpeg -i "$f" -t $dur -af "volume=0.25" "out/${f%.*}.mp4" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment