media
highly recommanded
video
get audio from video
convert flv to mp4
options:
pic-%02d.png
: Read all images from the current folder with the prefix pic-, a following number of 2 digits (%02d) and an ending of .png
-r 1/5
: Displays each image for 5 seconds
r 30
: Output framerate of 30 fps.
-c:v libx264
: Output video codec: h264
pix_fmt yuv420p
: YUV pixel format
convert to 5 mins (300 sec)
sequence convert (every 5 mins ~> 300 secs)
first 5 mins (0 ~> 300)
second 5 mins (300*1 ~> 300)
third 5 mins (300*2 ~> 300)
-density 400
: Set the horizontal resolution of the image
combine video and audio
compression mov
[!NOTE|label:references:]
convert mov to mp4
[!NOTE|label:reference:]
convert video to gif
[!NOTE|label:references:]
How do I convert a video to GIF using ffmpeg, with reasonable quality?
options:
-ss 30
: skip first 30 seconds
-t 3
: create a 3 second output
fps=10
: fps filter sets the frame rate
scale=320:-1
: resize the output to 320 pixels wide and automatically determine the height, the lanczos scaling algorithm is used in this example.
scale=0:-1
: do not resize
split[s0][s1]
: split filter will allow everything to be done in one command and avoids having to create a temporary PNG file of the palette
[s0]palettegen[p];[s1][p]paletteuse
: palettegen and paletteuse filters will generate and use a custom palette generated from your inputffmpeg options:
-vf "fps=10,scale=320:-1:flags=lanczos"
a filtergraph using the fps and scale filters.
-c:v pam
: chooses the pam image encoder
-f image2pipe
: chooses the image2pipe muxerconvert options:
-delay
: set frame rate with a combination of the fps filter in ffmpeg
-loop 0
: makes infinite loop
-layers optimize
: enable the general purpose GIF optimizerto set rgb
-vf scale=320:-1,format=rgb8,format=rgb24
convert pngs into gif
image
for multiple images
identity an image
convert svg to png
qlmanage
convert
convert HEIC/HEIF to PNG
or
animation flow chart
create animation flow
[!NOTE|label:references:]
export to svg
convert svg to gif
online tools
[!NOTE|label:references:]
convert svg to gif with watermark in html5animationtogif.com
increase the SVG image height to make the watermark shows below of original image
crop the watermark in animated GIF editor and Gif maker
local tools
chrome extension: Chrome Capture - screenshot & GIF
desktop application: GIF Brewery:
.045s
,0.50s
or0.52s
Last updated