Skip to content

Instantly share code, notes, and snippets.

@wallacemaxters
Last active October 14, 2022 18:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wallacemaxters/de7f3bff92dc7df87e8e9d48861f0e63 to your computer and use it in GitHub Desktop.
Save wallacemaxters/de7f3bff92dc7df87e8e9d48861f0e63 to your computer and use it in GitHub Desktop.
Speed up videos with ffmpeg command line
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
@wallacemaxters
Copy link
Author

wallacemaxters commented Oct 14, 2022

./speed_up_video.sh input.mp4 output.mp4

You might execute chmod +x speed_up_video.sh if needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment