Skip to content

Instantly share code, notes, and snippets.

@dineshadepu
Last active August 6, 2024 14:12
Show Gist options
  • Save dineshadepu/2c656b40fc172b71565deb8e22ee4d05 to your computer and use it in GitHub Desktop.
Save dineshadepu/2c656b40fc172b71565deb8e22ee4d05 to your computer and use it in GitHub Desktop.
Video formats conversion commands

ffmpeg -i 3d_dam_break.webm -vf "crop=trunc(iw/2)*2:trunc(ih/2)*2" 3d_dam_break.mp4

ffmpeg -i dinesh_2024_single_particle_swelling_N_15_buoyancy_check.webm -vf "crop=trunc(iw/2)*2:trunc(ih/2)*2" dinesh_2024_single_particle_swelling_N_15_buoyancy_check.mp4

ffmpeg -i fifty_bodies_500_density_sph_representation.webm -vf "crop=trunc(iw/2)*2:trunc(ih/2)*2" fifty_bodies_500_density_sph_representation.gif

To make movies out of images png, such as simulations movies of PySPH

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