Last active
October 14, 2022 18:51
-
-
Save wallacemaxters/de7f3bff92dc7df87e8e9d48861f0e63 to your computer and use it in GitHub Desktop.
Speed up videos with ffmpeg command line
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
ffmpeg -i $1 -map 0:v -c:v copy -bsf:v h264_mp4toannexb raw.h264 | |
ffmpeg -fflags +genpts -r 45 -i raw.h264 -c:v copy $2 | |
rm raw.h264 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You might execute
chmod +x speed_up_video.sh
if needed