Questions tagged [gif]

gif (or Graphics Interchange Format) is an image format originally invented by CompuServe for web usage. It supports a 256-bit palette, transparency, and animation.

Filter by
Sorted by
Tagged with
0 votes
0 answers
7 views

ffmpeg: why does'-vf scale=n:n' option change the frame rate + length of the output gif?

I'm using this command to generate an output gif animation at 10 fps from a group of consecutively numbered PNGs. ./ffmpeg.exe -i in_%4d.png -lossless 1 -framerate 10 -loop 0 out.gif However, my ...
user avatar
0 votes
1 answer
30 views

Make a GIF of animated object in PowerPoint

I want to export my animated PowerPoint object (not the entire slide) as GIF. Directly to GIF instead of Video if possible. How can I do so? Version Info: I have PowerPoint 365 on windows 11
user avatar
  • 105
0 votes
0 answers
78 views

How to lower the file size of a GIF file?

I am using Peek for screen recording into a GIF file. Sometimes I want to remove useless part of the file. For this purpose I use Kdenlive. After editing and rendering a final file become much bigger ...
user avatar
  • 109
0 votes
1 answer
36 views

Add single pixel to .gif file using ffmpeg

I have several thousand .gif files (with alpha channels) and I want to add a single red pixel (no transparency) in the bottom left hand corner of each .gif file. Each one has different dimensions. How ...
user avatar
  • 896
0 votes
0 answers
28 views

Which animation or video format supports setting the delay for individual frames beside gif and webp?

I am experimenting making animations. Currently my program can generate gif animation and video too. In the later case the framerate is higher, and moving animations are much smoother. I also can ...
user avatar
0 votes
1 answer
183 views

How to convert BMPs (bitmap black&white) to 1-bit color depth animated GIF

I have a sequence of BMPs that are 1bpp (1-bit color depth, black & white of course). I want to combine them into a single animated GIF, with 1-bit color depth. Is this possible? So far I have ...
user avatar
0 votes
2 answers
105 views

ffmpeg - Add text to existing gif without gif decolorization / pixilation

I am trying to add text to a gif, but after I add it there is some image decolorization & pixilation that happens. The command I am running on a to add text to the gif is as follows: ffmpeg -i ...
user avatar
  • 103
1 vote
1 answer
269 views

Upscale Gif File with Nearest Neighbor Interpolation (Integer Multiple) on Windows (Gifsicle)

I want to upscale a .gif file with nearest neighbor interpolation on Windows from commandline (I am scaling by integer multiples). I have tried gifsicle 1.92 but for some reason it doesn't work ...
user avatar
  • 896
0 votes
1 answer
270 views

ffmpeg - how to add multiple overlay gifs on top of video + command generator runs forever

the user will choose multiple gifs, scale them, put them in the desired position on screen, then they will be overlayed on top of a video .. in simple case where user choose only one gif to overlay .. ...
user avatar
0 votes
1 answer
741 views

Making GIFs with ffmpeg: what does "transparency_color" do?

I've been making GIFs from PNGs using FFmpeg, using commands like the following: ffmpeg -framerate 10 -pattern_type glob -i '*.png' -filter_complex "[0:v] split [a][b];[a] palettegen=...
user avatar
  • 1
1 vote
1 answer
108 views

FFmpeg: Apply Unique Palette To Every Frame of a .GIF?

⋯ Have .GIF with duration of 10 seconds at 15fps, for a total of 150 frames. Want to use different palette for every frame. Have palette files: p1.png, p2.png, p3.png etc … p150.png - What's my ffmpeg ...
user avatar
0 votes
1 answer
143 views

Add image above gif with ffmpeg

I cut out the top part of a 320x356 gif as follows: ffmpeg -i image.gif -filter:v "crop=320:226:0:130" out.gif I have a text image that I want to put where the cut out part was; how do I do ...
user avatar
  • 397
1 vote
0 answers
224 views

convert images to gif error marking filters as finished

I'm converting pretty large .png files to gif (2000X1000) I used this article http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html about a year ago to write a script after interpolating to find a ...
user avatar
  • 167
0 votes
1 answer
537 views

A PNG sequence to a GIF results in artifacts

Why would FFmpeg create these artifacts like remaining pixels on the edges of the animation where objects have already removed and how to remove these? Why would it create this magenta/red colored ...
user avatar
  • 227
1 vote
0 answers
226 views

Imagemagick file conversion not working?

I am trying to convert a file from .gif to .bmp using this command: convert -coalesce pixels8.gif out.bmp While doing this i get this error: convert-im6.q16: memory allocation failed `pixels8.gif' @ ...
user avatar
1 vote
1 answer
243 views

Why is the Batch script I created to convert MP4 files to GIF files with FFmpeg not working?

This is what I have so far. It runs, but throws an error. I have come up with the following below. for %%a in ("*.mp4") do ffmpeg -i "%%a" -t 3 -vf "fps=10, scale=320, flags=...
user avatar
5 votes
1 answer
3k views

How to control gif loop settings in FFmpeg

I'm able to export a sequence of images as a gif with FFmpeg: ffmpeg -vsync 2 -safe 0 -f concat -i "file:concat.txt" -lavfi palettegen=stats_mode=diff[pal],[0:v][pal]paletteuse=new=1:...
user avatar
1 vote
2 answers
993 views

FFMPEG : create a looping video with specific time

I'm trying to convert a GIF file into video and merge the output video with an audio file, so the final result will be a video + audio. public static String makeVideo(String inputGifPath, String ...
user avatar
2 votes
1 answer
341 views

Is it possible to embed a GIF in an RTF file?

I write a lot of tutorials using RTF as the format, but would like to be able to insert animated GIFs into them. I am wondering if this is possible with some code of any kind? I tried to drag and drop ...
user avatar
1 vote
1 answer
2k views

How can I limit the number of colors used in a GIF file while converting a MP4 to a GIF with FFmpeg?

I have this command that I found somewhere on SuperUser that converts an MP4 to a GIF: ffmpeg -i INPUT_FILE.MP4 -vf "fps=16,scale=160:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]...
user avatar
0 votes
1 answer
703 views

Saving a webpage along with its gifs [duplicate]

I'm looking for a way to save a wepgage along with its gifs (example). I know how to save a single gif, but my goal is to save the whole webpage (not as a pdf) and its gifs so that, when I open the ...
user avatar
0 votes
1 answer
1k views

How to edit .webm files or convert them to good quality .gif, to edit in GIMP

I have a short scene from some TV show in a .webm format. I wanted to edit it, to create a simple funny animation/meme. I know how to edit .gif in a GIMP frame by frame, so I thought about converting ...
user avatar
  • 337
0 votes
2 answers
395 views

FFMPEG keeps converting without stopping when using HStack to combine a gif with an video while also using a scale2ref filter

I am trying to combine/merge a gif/image with a video to output a video that has both in one frame. For that purpose i'm using FFMPEG on nodejs. The filter I am using is Hstack and since the content ...
user avatar
  • 1
0 votes
1 answer
70 views

How can I identify GIF files that were written by FFMPEG?

I have lot of gif files, several thousand. Some of them was created by me, and I nearly always used ffmpeg when encoding the gif. Now I would like to select those animations from the large ...
user avatar
2 votes
0 answers
589 views

Combine Audio and Gif into a video while preserving transparency using ffmpeg

I'm trying to combine an audio file and a gif into a video and I'm running into some issues despite trying quite a few solutions over Stack Overflow. I would like the combined file duration to match ...
user avatar
  • 121
0 votes
2 answers
5k views

Batch convert WebP files to GIF files offline?

Writing a batch script to convert all WebP files to be GIF format. Looking at the closest utility offered by Google, I don't see an immediately obvious way to do that. I don't like having to use ...
user avatar
0 votes
0 answers
137 views

Cut gif with FFmpeg while retaining quality?

I'm attempting to cut a gif using -ss and -t in FFmpeg but it's drastically decreasing the quality in comparison to the original gif. I'm using this command: ffmpeg -y ` -i "S:\Videos\Saved Clips\...
user avatar
  • 219
1 vote
1 answer
288 views

Why different frame count on ffprobe?

Question I use ffmpeg. Why are the frame counts different between A_COMAND and B_COMAND? sample_gif A_COMAND: $ ffmpeg -i ./for_sample.gif -vf mpdecimate,setpts=N/FRAME_RATE/TB ./tmp/%1d.png can ...
user avatar
  • 11
2 votes
0 answers
1k views

How to compress gif effectively to reduce size?

We use gifs for our blog extensively. We used to embed tenor nano gifs(90px height maintaining aspect ratio, used for GIF previews and shares on mobile) in it. Now we wanted to create our own gifs and ...
user avatar
0 votes
1 answer
207 views

ffmpeg png to gif losing first half of frame list with fifo filter

Can anybody suggest a solution to (or at least a cause for) the following snag I'm experiencing in Windows 10, please? While I originally thought this was, maybe, a problem with the source images, I'm ...
user avatar
1 vote
0 answers
1k views

Turning a series of PNG files into GIF with black transparent background

I have a series of RGB PNG images and I'd like to turn them into a single animated GIF file with black=transparent. The following command was recommended elsewhere, but it doesn't seem to turn the ...
user avatar
  • 11
17 votes
2 answers
14k views

Do 60 FPS GIF's actually exist? Or is the maximum 50 FPS?

I've been recently playing around with FFmpeg and I was trying to convert .avi to .gif since other methods I've tried to so far didn't work so well. What I noticed is that, when I use this command: ...
user avatar
3 votes
2 answers
4k views

Convert animated gif to animated webp using FFmpeg

How can I convert animated gif (with Alpha channel) to animated webp? I stuck with transparent background, I can't figure out how to convert gif with transparent background to webP with transparent ...
user avatar
  • 131
1 vote
0 answers
125 views

Rendering a high-fps gif from a video with ffmpeg?

I've been at this for about an hour. I've extracted the frames from my clip and rendered the frames to a mp4 with no problem. The mp4 plays exactly like how I'd like my gif to play, but when using ...
user avatar
  • 11
0 votes
0 answers
1k views

ffmpeg gif frames overlapping when made from transparent images

I'm trying to make a gif from a series of transparent pngs but when I play the resulting gif back the frames overlap the first frame can be seen through. Here's the command I was using(as part of a ...
user avatar
  • 1
2 votes
1 answer
2k views

How To disable specific decoders/demuxers in VLC

I am looking to have playlists of mixed media(GIF, MP4, etc) for an artistic showcase of different animations from several collaborators and VLC is the clear first choice since it supports ordered ...
user avatar
1 vote
1 answer
12k views

How do I export multiple pages of a CorelDraw file at once?

I have a CorelDraw X6 .cdr file that contains multiple images, each on a separate page. I want to export the image from each of these pages to produce a set of GIFs, however the CorelDraw Export ...
user avatar
6 votes
1 answer
10k views

How do I resize an animated GIF and keep transparency?

I tried to resize an animated GIF with transparency, but it turned the background a solid white. How do I keep the transparency? I read https://superuser.com/a/556031/130929 and tried >set ...
user avatar
  • 5,366
0 votes
1 answer
114 views

Quick way to make animated gif ?

I want to make an animated gif of a van png moving from one point on a google maps map to another point on the map. I could add each point, separarely, but it would take hours. Is there an ...
user avatar
3 votes
2 answers
4k views

How do I quickly generate low quality animated GIFs with ffmpeg?

We generate a lot of thumbnail GIFs whose quality does not matter nearly as much as the time it takes to generate them. Generating high quality GIFs with ffmpeg is very well covered, but I'm not ...
user avatar
  • 221
0 votes
1 answer
1k views

ffmpeg How to add apng dynamic diagram on video and let it play circulated

ffmpeg How to add apng dynamic diagram on video and let it play circulated: ffmpeg -y -i input.mp4 -ignore_loop 0 -i test.png - filter_complex 'overlay=x=100:y=100:shortest=1' out.mp4 Do you have ...
user avatar
2 votes
0 answers
669 views

Combine images and gif to a single video?

My project is to join all image files (currently only JPGs) in a folder to a single video file. All images are the same size (1080p) and each one should be displayed for 3s in the output video. Here's ...
user avatar
  • 33
0 votes
1 answer
1k views

Irfanview: How to stop gif images from overriding resize settings

I have set my Irfan View to automatically Scall all Images to window size. This works great for normal images. However I have noticed that, instead of fitting gifs into the window the same way it does ...
user avatar
7 votes
1 answer
3k views

How can I convert animated gif to animated webp?

On ubunt, I can convert animated .gif files to .webp format using imagemagick's convert 1.gif 1.webp, but then the animation is lost in the destination .web. I'm wondering how to preserver the ...
user avatar
  • 259
1 vote
1 answer
2k views

How to efficiently create a best-palette gif from a video portion straight from the web

I've been using for some time this couple of commands to convert a video segment to an animated gif, having ffmpeg calculate the best palette for it: ffmpeg -ss $START -i $IN_FILE -t $LENGTH -vf "fps=...
user avatar
0 votes
1 answer
4k views

how to combine/merge a video and a Gif using FFMPEG?

I want to merge a video and Gif. My video is a picture and a song during 45 seconds and my Gif is a equalizer animation. I want to combine video and Gif , Gif opacity be 50%. Thanks a lot.
user avatar
1 vote
1 answer
6k views

Why does Photoshop fail to save GIF but has no problem with same GIF in smaller size?

I need to save an animated GIF in two sizes: 357 by 500 px, and 860 by 1204 px. The 356 px-wide version saves fine, but the 860 px version comes up with the following error: Adobe Save For Web ...
user avatar
0 votes
1 answer
467 views

Saving Word file as Html decreases quality of equations

I have a Word file and I want to convert it to html. However all the equations are converted to gif and their quality becomes very low. The problem is that the system converts all that stuff in gifs. ...
user avatar
  • 101
0 votes
1 answer
72 views

When I create a GIF in Photoshop CS5 the animation is gone when I re-open the file

I am running Windows 10, using Photoshop CS5. I have been using Photoshop every day for several years, but am self-taught, so I am not an expert. I've read other questions like mine, so I would like ...
user avatar
0 votes
1 answer
499 views

How do you generate 'replace' gifs with ffmpeg instead of 'cumulative(combined)'?

I'm using the following code to generate a gif using ffmpeg: src="input.flv" dest="output.gif" palette="/tmp/palette.png" ffmpeg -i $src -vf palettegen -y $palette ffmpeg -i $src -i $palette -lavfi ...
user avatar
  • 247