Skip to content

Instantly share code, notes, and snippets.

View rabernat's full-sized avatar

Ryan Abernathey rabernat

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rabernat
rabernat / encode.sh
Last active June 7, 2023 15:34
ffmpeg encoding command
# good info:
# https://trac.ffmpeg.org/wiki/Encode/H.264
# assuming the input files are 1920x1080
ffmpeg -i full_1080p/transformation_full.%04d.png -c:v libx264 -preset veryslow -crf 2 -pix_fmt yuv420p -framerate 25 output.mov
# or with padding (1080x1080 input)
ffmpeg -i movie_frames/frame1024_%04d.png -vf 'pad=width=1920:x=420:color=white' -c:v libx264 -preset veryslow -crf 2 -pix_fmt yuv420p -framerate 25 output_square.mov
# downsize to 720
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.