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
1
vote
1answer
20 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 ...
0
votes
1answer
22 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 ...
0
votes
0answers
27 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 ...
0
votes
1answer
90 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 ...
0
votes
0answers
82 views

How to change background color of mp4 video with ffmpeg

I have a black and white video (animated text is black on a white background), but the white is not white, it is some off-white. I only have access to the .mp4. How do I change this off-white color to ...
1
vote
0answers
85 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' @ ...
1
vote
1answer
65 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=...
0
votes
0answers
10 views

How to change gif during a stream using ffmpeg?

I know to use -loop 0 -f image2 -i ./image.png to overlay an image that can be changed mid-stream by replacing image.png, but is there something similar to gifs? -ignore_loop 0 -i ./image.gif
1
vote
1answer
218 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:...
1
vote
2answers
61 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 ...
2
votes
1answer
156 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 ...
1
vote
1answer
398 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]...
0
votes
1answer
254 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 ...
0
votes
1answer
684 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 ...
0
votes
2answers
206 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 ...
0
votes
1answer
51 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 ...
2
votes
0answers
330 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 ...
0
votes
2answers
3k 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 ...
0
votes
0answers
70 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\...
1
vote
1answer
189 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 ...
1
vote
0answers
653 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 ...
0
votes
1answer
150 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 ...
1
vote
0answers
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 ...
15
votes
2answers
8k 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: ...
1
vote
2answers
3k 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 ...
1
vote
0answers
74 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 ...
0
votes
0answers
892 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 ...
1
vote
1answer
1k 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 ...
0
votes
1answer
8k 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 ...
5
votes
1answer
7k 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 ...
0
votes
1answer
102 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 ...
3
votes
2answers
2k 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 ...
0
votes
1answer
981 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 ...
2
votes
0answers
509 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 ...
0
votes
1answer
918 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 ...
4
votes
1answer
2k 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 ...
1
vote
1answer
1k 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=...
0
votes
1answer
3k 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.
1
vote
1answer
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 ...
0
votes
1answer
326 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. ...
0
votes
1answer
58 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 ...
0
votes
1answer
439 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 ...
0
votes
1answer
4k views

FFMPEG: Convert video to Animated Gif Preview getting frame after interval

I would like to generate a gif preview for my application and made it on my server using FFMPEG. It should generate a gif getting 10 frames for each video but without using a temp dir(or temp files ...
2
votes
2answers
2k views

Can I block the autoplay GIFs on “Giphy”, “Tenor GIF Keyboard”, etc, on Facebook Messenger?

Facebook Messenger allows people to link in with sites like Tenor and Giphy to add GIFs to a conversation that play on a loop without user input. Facebook have shown no interest in allowing users to ...
1
vote
1answer
3k views

ffmpeg generate and use different palette for every frame

Following this tutorial I managed to create high quality gifs in reasonable memory size. Using piping, what I'm currently doing is this # Generate palette ffmpeg -y -i - -vf fps=15,scale=600:-1:...
2
votes
0answers
370 views

How does giphy detect whether the image is embedded or not?

Giphy has a pretty neat trick with its gif images: If they are embedded within another html page, as in, say <img src="https://media.giphy.com/media/DFqYLyMGpZ42c/giphy.gif" width="200"> ...
1
vote
1answer
2k views

How to decrease the produced GIF size when converting from a video file without losing so much quality

I have made a project in Adobe After Effects, @30 fps - 7 seconds long - (resolution 506 X 808) and exported it as AVI video file (395MB size). after that I imported the video in the Photoshop and ...
0
votes
0answers
17 views

Save a Graphics Interchange Format [duplicate]

How can I save the gif "Graph of Tangent from Unit circle" on: http://www.mathwarehouse.com/unit-circle/graph-and-formula-unit-circle.php ? Thank you.
1
vote
0answers
961 views

Efficient way to create video from looped .gif file?

I have two files: animation.gif and audio.mp3; duration(audio.mp3) >> duration(animation.gif). I want to create .webm file from the two, i.e. looped (unknown number of times) animation.gif + audio.mp3....
3
votes
1answer
4k views

Specify background color when converting GIF to MP4 with ffmpeg

I have an animated GIF with transparency. I want to convert it to an MP4. When I do so, the transparent regions are filled with fully opaque white. I'd like to specify the color used to replace these ...