Created
October 23, 2025 03:52
-
-
Save choonkeat/74c6e4bb98c276d1a8e030700525b23e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #!/bin/bash | |
| set -x | |
| SPEEDUP=1.5 | |
| while test -n "$1" | |
| do | |
| yes | ffmpeg -i "$1" \ | |
| -vf "setpts=PTS/${SPEEDUP}" \ | |
| -c:v libx264 -preset slow -crf 23 -pix_fmt yuv420p \ | |
| -af "atempo=${SPEEDUP}" -c:a aac -b:a 128k \ | |
| -movflags +faststart \ | |
| "$1".mp4 || exit 1 | |
| shift | |
| done |
This file contains hidden or 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
| #!/bin/bash | |
| set -x | |
| SPEEDUP=1.5 | |
| while test -n "$1" | |
| do | |
| yes | ffmpeg -i "$1" -vf "setpts=PTS/${SPEEDUP}" -an -c:v libx264 -preset slow -crf 23 -pix_fmt yuv420p "$1".mp4 || exit 1 | |
| shift | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment