Skip to content

Instantly share code, notes, and snippets.

@Hemant-Mann
Created October 31, 2021 07:48
Show Gist options
  • Save Hemant-Mann/bb72433c14d95512e3d82e197a02b95a to your computer and use it in GitHub Desktop.
Save Hemant-Mann/bb72433c14d95512e3d82e197a02b95a to your computer and use it in GitHub Desktop.
#!/bin/bash
## reference: https://unix.stackexchange.com/questions/40638/how-to-do-i-convert-an-animated-gif-to-an-mp4-or-mv4-on-the-command-line
ffmpeg -i IMG_a.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" video_a.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment