Created
December 10, 2017 13:39
-
-
Save mariangibala/021c429d4c60d36dff3d029e387c967b 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
ffmpeg -i "$1" -filter_complex "[0:v]setpts=0.6666666666666*PTS[v];[0:a]atempo=1.5[a]" -map "[v]" -map "[a]" "tmp-$1" | |
# Delay audio of $1 by 60ms to fix discrepancy caused by above step | |
ffmpeg -i "tmp-$1" -itsoffset 0.06 -i "tmp-$1" -map "0:0" -map "1:1" -acodec copy -vcodec copy "faster-$1" | |
rm "tmp-$1" # cleanup tmp file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment