Advertisement

ffmpeg combine gifski

top computer
Jika kualitas pecah
ffmpeg -i input.mkv output.gif

Jika tak mau kualitas pecah, maximum quality
ffmpeg -i video.mp4 frame%04d.png
gifski -o clip.gif frame*.png
Ini akan membentuk file frame0001.png frame0002.png frame0003.png, dll.

Jika Anda ingin mengurangi dimensi video, tambahkan filter penskalaan:
ffmpeg -i video.mp4 -vf scale=400:240 frame%04d.png
Jika Anda ingin mengurangi frame rate, tambahkan filter fps:
ffmpeg -i video.mp4 -vf fps=12 frame%04d.png
Juga bisa kombinasi filter dengan -vf scale=400:240,fps=12

Other GIF stuff I wrote: lossy GIF encoder and GIF to video converter (which you should really do). File gifski

ffmpeg combine two videos
ffmpeg -i one.mkv -i two.mkv -i three.mkv \
  -filter_complex "[0:v] [0:a] [1:v] [1:a] [2:v] [2:a] concat=n=3:v=1:a=1 [v] [a]" \
  -map "[v]" -map "[a]" output.mkv
this method performs a re-encode.
Thanks