Created
June 3, 2020 10:24
-
-
Save mykeels/66dc360af24d742fdb82c19305d83c1d to your computer and use it in GitHub Desktop.
A powershell script for converting mp4 files to gif, using ffmpeg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function global:Mp4ToGif() | |
{ | |
$input=$args[0] | |
Write-Output "Input: $input" | |
ffmpeg -i "$input" -vf "split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 output.gif | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment