Skip to content

Instantly share code, notes, and snippets.

@saml
Created January 31, 2018 18:39
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 saml/1e512d7b9a74a62e9c5e20d661dfc6a0 to your computer and use it in GitHub Desktop.
Save saml/1e512d7b9a74a62e9c5e20d661dfc6a0 to your computer and use it in GitHub Desktop.
ffmpeg -y -i original.mp4 -vcodec libx264 -an -r 30 tmp.r.30.mp4
ffmpeg -y -i original.mp4 -vcodec libx264 -an -filter_complex 'framerate=fps=30' tmp.framerate.30.mp4
ffmpeg -i tmp.r.30.mp4 -i tmp.framerate.30.mp4 -filter_complex psnr -f null -
[Parsed_psnr_0 @ 0x55ffd0baec40] PSNR y:24.064715 u:33.572894 v:31.957383 average:25.537430 min:12.611073 max:54.407847
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment