Skip to main content
Added link to the source script, which is one of the "details" on the linked GitHub page; specified code block language
Source Link

I made my own version of the scriptthis script, which parameterizes the output resolution and frame rate as well.

Running ./gifenc.sh input.mov output.gif 720 10 will output 720p wide 10fps GIF from the movie you gave it. You might need to do chmod +x gifenc.sh for the file.

#!/bin/sh

palette="/tmp/palette.png"

filters="fps=$4,scale=$3:-1:flags=lanczos"

ffmpeg -v warning -i "$1" -vf "$filters,palettegen" -y "$palette"
ffmpeg -v warning -i "$1" -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y "$2"
#!/bin/sh

palette="/tmp/palette.png"

filters="fps=$4,scale=$3:-1:flags=lanczos"

ffmpeg -v warning -i "$1" -vf "$filters,palettegen" -y "$palette"
ffmpeg -v warning -i "$1" -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y "$2"

You can read the details on my Github

Assumptions: ffmpeg is installed, and the script is in the same folder as the other files.

I made my own version of the script, which parameterizes the output resolution and frame rate as well.

Running ./gifenc.sh input.mov output.gif 720 10 will output 720p wide 10fps GIF from the movie you gave it. You might need to do chmod +x gifenc.sh for the file.

#!/bin/sh

palette="/tmp/palette.png"

filters="fps=$4,scale=$3:-1:flags=lanczos"

ffmpeg -v warning -i "$1" -vf "$filters,palettegen" -y "$palette"
ffmpeg -v warning -i "$1" -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y "$2"

You can read the details on my Github

Assumptions: ffmpeg is installed, and the script is in the same folder as the other files.

I made my own version of this script, which parameterizes the output resolution and frame rate as well.

Running ./gifenc.sh input.mov output.gif 720 10 will output 720p wide 10fps GIF from the movie you gave it. You might need to do chmod +x gifenc.sh for the file.

#!/bin/sh

palette="/tmp/palette.png"

filters="fps=$4,scale=$3:-1:flags=lanczos"

ffmpeg -v warning -i "$1" -vf "$filters,palettegen" -y "$palette"
ffmpeg -v warning -i "$1" -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y "$2"

You can read the details on my Github

Assumptions: ffmpeg is installed, and the script is in the same folder as the other files.

Finish the job of allowing filenames with spaces.
Source Link

I made my own version of the script, which parameterizes the output resolution and frame rate as well. Usage:

Running ./gifenc.sh input.mov output.gif 720 10 will output 720p wide 10fps gifGIF from the movie you gave it. You might need to do chmod +x gifenc.sh for the file.

#!/bin/sh

palette="/tmp/palette.png"

filters="fps=$4,scale=$3:-1:flags=lanczos"

ffmpeg -v warning -i "$1" -vf "$filters,palettegen" -y $palette"$palette"
ffmpeg -v warning -i "$1" -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y $2"$2"

You can read the details on my Github

Assumptions: ffmpeg is installed, and the script is in the same folder thanas the other files.

I made my own version of the script, which parameterizes the output resolution and frame rate as well. Usage:

Running ./gifenc input.mov output.gif 720 10 will output 720p wide 10fps gif from the movie you gave it. You might need to do chmod +x gifenc.sh for the file.

#!/bin/sh

palette="/tmp/palette.png"

filters="fps=$4,scale=$3:-1:flags=lanczos"

ffmpeg -v warning -i "$1" -vf "$filters,palettegen" -y $palette
ffmpeg -v warning -i "$1" -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y $2

You can read the details on my Github

Assumptions: ffmpeg is installed, script is in the same folder than other files.

I made my own version of the script, which parameterizes the output resolution and frame rate as well.

Running ./gifenc.sh input.mov output.gif 720 10 will output 720p wide 10fps GIF from the movie you gave it. You might need to do chmod +x gifenc.sh for the file.

#!/bin/sh

palette="/tmp/palette.png"

filters="fps=$4,scale=$3:-1:flags=lanczos"

ffmpeg -v warning -i "$1" -vf "$filters,palettegen" -y "$palette"
ffmpeg -v warning -i "$1" -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y "$2"

You can read the details on my Github

Assumptions: ffmpeg is installed, and the script is in the same folder as the other files.

I made my own version of the script, which parameterizes the output resolution and frame rate as well. Usage:

Running ./gifenc input.mov output.gif 720 10 will output 720p wide 10fps gif from the movie you gave it. You might need to do chmod +x gifenc.sh for the file.

#!/bin/sh

palette="/tmp/palette.png"

filters="fps=$4,scale=$3:-1:flags=lanczos"

ffmpeg -v warning -i $1"$1" -vf "$filters,palettegen" -y $palette
ffmpeg -v warning -i $1"$1" -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y $2

You can read the details on my Github

AssumtionsAssumptions: ffmpeg is installed, script is in the same folder than other files.

I made my own version of the script, which parameterizes the output resolution and frame rate as well. Usage:

Running ./gifenc input.mov output.gif 720 10 will output 720p wide 10fps gif from the movie you gave it. You might need to do chmod +x gifenc.sh for the file.

#!/bin/sh

palette="/tmp/palette.png"

filters="fps=$4,scale=$3:-1:flags=lanczos"

ffmpeg -v warning -i $1 -vf "$filters,palettegen" -y $palette
ffmpeg -v warning -i $1 -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y $2

You can read the details on my Github

Assumtions: ffmpeg is installed, script is in same folder than other files.

I made my own version of the script, which parameterizes the output resolution and frame rate as well. Usage:

Running ./gifenc input.mov output.gif 720 10 will output 720p wide 10fps gif from the movie you gave it. You might need to do chmod +x gifenc.sh for the file.

#!/bin/sh

palette="/tmp/palette.png"

filters="fps=$4,scale=$3:-1:flags=lanczos"

ffmpeg -v warning -i "$1" -vf "$filters,palettegen" -y $palette
ffmpeg -v warning -i "$1" -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y $2

You can read the details on my Github

Assumptions: ffmpeg is installed, script is in the same folder than other files.

Source Link
thevangelist
  • 494
  • 1
  • 6
  • 11
Loading