Created
January 10, 2018 21:12
-
-
Save rmpel/2c36a0d79e3dff36264a0be50a5f96a2 to your computer and use it in GitHub Desktop.
Slow down video from Super8 (18fps or 24fps) recorded as 30 fps.
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 | |
| [ "" = "$1" ] && echo "Je bent vergeten het bron-bestand op te geven: $0 bron.mp4" && echo "Als tweede parameter kun je een doel-bestand opgeven: $0 bron.mp4 doel.mp4" && exit 1; | |
| BRON="$1" | |
| DOEL="$i"-18fps.mp4 | |
| [ "" != "$2" ] && DOEL="$2" | |
| ffmpeg -i "$BRON" -r 18 -filter:v "setpts=(30/18)*PTS" "$DOEL" |
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 | |
| [ "" = "$1" ] && echo "Je bent vergeten het bron-bestand op te geven: $0 bron.mp4" && echo "Als tweede parameter kun je een doel-bestand opgeven: $0 bron.mp4 doel.mp4" && exit 1; | |
| BRON="$1" | |
| DOEL="$i"-24fps.mp4 | |
| [ "" != "$2" ] && DOEL="$2" | |
| ffmpeg -i "$BRON" -r 24 -filter:v "setpts=(30/24)*PTS" "$DOEL" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment