Skip to content

Instantly share code, notes, and snippets.

View darothen's full-sized avatar

Daniel Rothenberg darothen

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@darothen
darothen / datatree_dask.ipynb
Last active January 14, 2023 20:08
DataTree dask integration example
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