gif

Convert .avi to .gif with ffmpeg with good quality AND subtitles

╄→尐↘猪︶ㄣ 提交于 2020-01-02 12:16:22
问题 I want to use ffmpeg to convert .avi to .gif with good quality and subtitles. Now, I use this script to convert from .avi to .gif with good quality : ffmpeg -v warning -ss 10:00 -t 5 -i input.avi -vf "fps=15,scale=420:-1:flags=lanczos,palettegen" -y palette.png ffmpeg -v warning -ss 10:00 -t 5 -i input.avi -i palette.png -lavfi "fps=15,scale=420:-1:flags=lanczos [x]; [x][1:v] paletteuse" -y output.gif I generate a palette and then using it to output the gif. Then I am using this script to add

Unable to show a *.gif file in a UIImageView in swift

天涯浪子 提交于 2020-01-02 03:48:11
问题 I have a *.gif file that I want to show in a UIImageView . I have tried the library FLAnimatedImage, code below. Result is just a static image. class LoginVC: UIViewController, UITextFieldDelegate { @IBOutlet weak var img_popup: FLAnimatedImageView! var img_popupraw: FLAnimatedImage = FLAnimatedImage(animatedGIFData: NSData(contentsOfFile: "ShitTalk_LoadingAnimation.gif")) override func viewDidLoad() { img_popup.animatedImage = img_popupraw } } Open to any alternative ways to show animating

Delphi TGIFImage animation issue with some GIF viewers

十年热恋 提交于 2020-01-02 01:45:52
问题 I have discovered that animated GIFs created using Delphi 2009's TGIFImage sometimes doesn't play correctly in some GIF viewers. The problem is that the animation is restarted prematurely. Consider the following example: program GIFAnomaly; {$APPTYPE CONSOLE} uses Windows, Types, Classes, SysUtils, Graphics, GIFImg; var g: TGIFImage; bm: TBitmap; procedure MakeFrame(n: integer); var x: Integer; y: Integer; begin for x := 0 to 256 - 1 do for y := 0 to 256 - 1 do bm.Canvas.Pixels[x, y] := RGB(

Imagemagick animated gif size optimization

守給你的承諾、 提交于 2020-01-01 09:16:36
问题 I am use this code to resize and save a animated gif (php): system("convert *originalfile* -resize *size* -coalesce *newfile*); Once done the filesize is quite large. Usually larger than the original even! What can I do to reduce the file size? I used convert $completeMiff -dither none -matte -depth 8 -deconstruct -layers optimizePlus -colors 32 $optimizedFile_16 and the file gets even bigger??? 回答1: Add -layers optimize system("convert *originalfile* -resize *size* -coalesce -layers optimize

How to show a GIF on iOS in a certain frame, not show it until fully loaded, and allow zoom?

萝らか妹 提交于 2019-12-30 19:58:32
问题 When a user selects a GIF, I want to present an overlay on top of everything showing the GIF. I know there's a few ways on iOS to do this. There's the great UIImage+animatedGIF which works decently well, but for longer GIFs they're very slow and don't play back at the same speed as a UIWebView would (which plays at the accurate playback speed). It sucks, because if that category didn't play them back slowly it would do everything I need. But it doesn't, so I tried with UIWebView, however I'm

Animated gif to avi on linux

 ̄綄美尐妖づ 提交于 2019-12-29 18:38:12
问题 Is there any way to convert an animated gif to a video format (e.g. .avi ) on Linux? I have already tried ffmpeg -i thegif.gif thevideo.avi but all I get is the first image of the video. 回答1: I can suggest combination of imagemagick and ffmpeg do this to extract each frame as png/jpeg $magick> convert 'images.gif[0]' image.png Do this to convert images to movie sequence ffmpeg -f image2 -i image%d.jpg video.mpg More help on commands http://www.imagemagick.org/script/command-line-processing

Animated gif to avi on linux

只谈情不闲聊 提交于 2019-12-29 18:37:06
问题 Is there any way to convert an animated gif to a video format (e.g. .avi ) on Linux? I have already tried ffmpeg -i thegif.gif thevideo.avi but all I get is the first image of the video. 回答1: I can suggest combination of imagemagick and ffmpeg do this to extract each frame as png/jpeg $magick> convert 'images.gif[0]' image.png Do this to convert images to movie sequence ffmpeg -f image2 -i image%d.jpg video.mpg More help on commands http://www.imagemagick.org/script/command-line-processing

Gif Animation in Gnuplot

喜夏-厌秋 提交于 2019-12-29 04:51:08
问题 I have a data file separated by two lines. Each section of data is ~50 lines. I'm trying to make a .gif file. I know how to plot them individually or in a group but can't get the .gif to work. My problem is similar to the one worked out by Glen MacLachlan in his youtube channel, part 5. Instead of 1 point, I have ~50 data points for each data section. He solves the problem by utilizing $index feature, and I tried to do the same but mine doesn't work. What am I missing? Do I really have to

How I can stop an animated GIF in JavaFX?

纵饮孤独 提交于 2019-12-28 03:07:11
问题 I want to use an animated GIF in my project, but I dont know how I can stop the loop animation. I mean, I want the GIF to play 1 time only. Thanks! 回答1: I haven't done GIF animation, wasn't even aware that JavaFX would have methods for starting and stopping them. If you wish to do ANY animation using images, I rather suggest you do it frame by frame yourself. This way you have full control over it and you can have more than just 256 colors in your image. I read a very good article about

Converting transparent gif / png to jpeg using java

风流意气都作罢 提交于 2019-12-28 01:53:07
问题 I'd like to convert gif images to jpeg using Java. It works great for most images, but I have a simple transparent gif image: Input gif image http://img292.imageshack.us/img292/2103/indexedtestal7.gif [In case the image is missing: it's a blue circle with transparent pixels around it] When I convert this image using the following code: File file = new File("indexed_test.gif"); BufferedImage image = ImageIO.read(file); File f = new File("indexed_test.jpg"); ImageIO.write(image, "jpg", f); This