PDA

View Full Version : Make your own GIF files


Kworb
Jan 28th, 2012, 09:06 PM
I've been busy the past two days making this tool, hope it helps!

http://kworb.net/makegifs.html

Good luck and have fun!

http://kworb.net/rinus.gif

Sasja
Jan 30th, 2012, 09:42 AM
Thanks, will try that :)

But OMG Rinus :rolls:

silverwhite
Jan 30th, 2012, 11:04 AM
Does it work on Mac? :sobbing:

Kworb
Jan 30th, 2012, 11:55 AM
Does it work on Mac? :sobbing:

It might, I wrote some instructions for Mac, but no one's tested it yet :p

Download: http://kworb.net/makegifsmac.zip

Extract this somewhere.

Then download a Mac version of ffmpeg: http://ffmpegmac.net/

And also the Mac version of Mediainfo: http://mediainfo.sourceforge.net/en/Download/Mac_OS
Not sure which one you need, DyLib I guess? It should be one file, and you need to put it in the same folder as the MakeGif.jar

Then you can run MakeGif.jar, and in it make sure to Browse to the ffmpeg you downloaded.

Maybe then it works, let me know how it goes!

silverwhite
Jan 30th, 2012, 11:58 AM
Will let you know :hatoff:

silverwhite
Feb 2nd, 2012, 01:31 AM
Error message :sobbing:

File access cancelled by user.
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: Unable to load library 'mediainfo': dlopen(libmediainfo.dylib, 9): no suitable image found. Did find:
libmediainfo.dylib: no matching architecture in universal wrapper at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrar y.java:169)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrar y.java:242)
at com.sun.jna.Library$Handler.<init>(Library.java:140)
at com.sun.jna.Native.loadLibrary(Native.java:368)
at makegifgui.MediaInfoLibrary.<clinit>(MediaInfoLibrary.java:21)
at makegifgui.MediaInfo.<init>(MediaInfo.java:40)
at makegifgui.GifGUI.selectVideoButtonActionPerformed (GifGUI.java:612)
at makegifgui.GifGUI.access$000(GifGUI.java:20)
at makegifgui.GifGUI$1.actionPerformed(GifGUI.java:13 4)
at javax.swing.AbstractButton.fireActionPerformed(Abs tractButton.java:2028)
at javax.swing.AbstractButton$Handler.actionPerformed (AbstractButton.java:2351)
at javax.swing.DefaultButtonModel.fireActionPerformed (DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultB uttonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.jav a:6373)
at javax.swing.JComponent.processMouseEvent(JComponen t.java:3267)
at java.awt.Component.processEvent(Component.java:613 8)
at java.awt.Container.processEvent(Container.java:208 5)
at java.awt.Component.dispatchEventImpl(Component.jav a:4735)
at java.awt.Container.dispatchEventImpl(Container.jav a:2143)
at java.awt.Component.dispatchEvent(Component.java:45 65)
at java.awt.LightweightDispatcher.retargetMouseEvent( Container.java:4621)
at java.awt.LightweightDispatcher.processMouseEvent(C ontainer.java:4282)
at java.awt.LightweightDispatcher.dispatchEvent(Conta iner.java:4212)
at java.awt.Container.dispatchEventImpl(Container.jav a:2129)
at java.awt.Window.dispatchEventImpl(Window.java:2478 )
at java.awt.Component.dispatchEvent(Component.java:45 65)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.j ava:679)
at java.awt.EventQueue.access$000(EventQueue.java:85)
at java.awt.EventQueue$1.run(EventQueue.java:638)
at java.awt.EventQueue$1.run(EventQueue.java:636)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectio nPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectio nPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$2.run(EventQueue.java:652)
at java.awt.EventQueue$2.run(EventQueue.java:650)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectio nPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java: 649)
at java.awt.EventDispatchThread.pumpOneEventForFilter s(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(E ventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:122)
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: Could not initialize class makegifgui.MediaInfoLibrary at makegifgui.MediaInfo.<init>(MediaInfo.java:40)
at makegifgui.GifGUI.selectVideoButtonActionPerformed (GifGUI.java:612)
at makegifgui.GifGUI.access$000(GifGUI.java:20)
at makegifgui.GifGUI$1.actionPerformed(GifGUI.java:13 4)
at javax.swing.AbstractButton.fireActionPerformed(Abs tractButton.java:2028)
at javax.swing.AbstractButton$Handler.actionPerformed (AbstractButton.java:2351)
at javax.swing.DefaultButtonModel.fireActionPerformed (DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultB uttonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.jav a:6373)
at javax.swing.JComponent.processMouseEvent(JComponen t.java:3267)
at java.awt.Component.processEvent(Component.java:613 8)
at java.awt.Container.processEvent(Container.java:208 5)
at java.awt.Component.dispatchEventImpl(Component.jav a:4735)
at java.awt.Container.dispatchEventImpl(Container.jav a:2143)
at java.awt.Component.dispatchEvent(Component.java:45 65)
at java.awt.LightweightDispatcher.retargetMouseEvent( Container.java:4621)
at java.awt.LightweightDispatcher.processMouseEvent(C ontainer.java:4282)
at java.awt.LightweightDispatcher.dispatchEvent(Conta iner.java:4212)
at java.awt.Container.dispatchEventImpl(Container.jav a:2129)
at java.awt.Window.dispatchEventImpl(Window.java:2478 )
at java.awt.Component.dispatchEvent(Component.java:45 65)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.j ava:679)
at java.awt.EventQueue.access$000(EventQueue.java:85)
at java.awt.EventQueue$1.run(EventQueue.java:638)
at java.awt.EventQueue$1.run(EventQueue.java:636)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectio nPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectio nPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$2.run(EventQueue.java:652)
at java.awt.EventQueue$2.run(EventQueue.java:650)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectio nPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java: 649)
at java.awt.EventDispatchThread.pumpOneEventForFilter s(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(E ventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:122)

Kworb
Feb 2nd, 2012, 01:56 AM
Which DyLib did you get? Maybe try the other one on the page :p

Also I released a new version, with a new URL: http://kworb.net/kworbgifmac.zip

silverwhite
Feb 2nd, 2012, 02:12 AM
Which DyLib did you get? Maybe try the other one on the page :p

Also I released a new version, with a new URL: http://kworb.net/kworbgifmac.zip

I tried the Universal one first, then the other one. The first one was a folder while the second one was a DMG file :scratch: For the second one, I just opened it and dragged the MediaInfo file into the kworbgifmac folder :p

This is the error message I got this time :o

Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: Unable to load library 'mediainfo': dlopen(libmediainfo.dylib, 9): image not found at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrar y.java:169)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrar y.java:242)
at com.sun.jna.Library$Handler.<init>(Library.java:140)
at com.sun.jna.Native.loadLibrary(Native.java:368)
at makegifgui.MediaInfoLibrary.<clinit>(MediaInfoLibrary.java:21)
at makegifgui.MediaInfo.<init>(MediaInfo.java:40)
at makegifgui.GifGUI.selectVideoButtonActionPerformed (GifGUI.java:834)
at makegifgui.GifGUI.access$000(GifGUI.java:28)
at makegifgui.GifGUI$1.actionPerformed(GifGUI.java:17 5)
at javax.swing.AbstractButton.fireActionPerformed(Abs tractButton.java:2028)
at javax.swing.AbstractButton$Handler.actionPerformed (AbstractButton.java:2351)
at javax.swing.DefaultButtonModel.fireActionPerformed (DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultB uttonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.jav a:6373)
at javax.swing.JComponent.processMouseEvent(JComponen t.java:3267)
at java.awt.Component.processEvent(Component.java:613 8)
at java.awt.Container.processEvent(Container.java:208 5)
at java.awt.Component.dispatchEventImpl(Component.jav a:4735)
at java.awt.Container.dispatchEventImpl(Container.jav a:2143)
at java.awt.Component.dispatchEvent(Component.java:45 65)
at java.awt.LightweightDispatcher.retargetMouseEvent( Container.java:4621)
at java.awt.LightweightDispatcher.processMouseEvent(C ontainer.java:4282)
at java.awt.LightweightDispatcher.dispatchEvent(Conta iner.java:4212)
at java.awt.Container.dispatchEventImpl(Container.jav a:2129)
at java.awt.Window.dispatchEventImpl(Window.java:2478 )
at java.awt.Component.dispatchEvent(Component.java:45 65)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.j ava:679)
at java.awt.EventQueue.access$000(EventQueue.java:85)
at java.awt.EventQueue$1.run(EventQueue.java:638)
at java.awt.EventQueue$1.run(EventQueue.java:636)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectio nPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectio nPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$2.run(EventQueue.java:652)
at java.awt.EventQueue$2.run(EventQueue.java:650)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectio nPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java: 649)
at java.awt.EventDispatchThread.pumpOneEventForFilter s(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(E ventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:122)

Kworb
Feb 2nd, 2012, 03:09 AM
http://kworb.net/libmediainfo.dylib

That one works I hope. Just put it in the folder like before and try again. :D

silverwhite
Feb 2nd, 2012, 03:19 AM
Kworb :worship:

BTW, do you work or study? You have so many things going on here and on Pulse :lol:

silverwhite
Feb 2nd, 2012, 03:56 AM
Feedback :p

The programme seems to work fine for .flv files but not for .mp4 ones, for which this line keeps repeating :lol:

frame= 0 fps= 0 q=0.0 size= 0kB time=00:00:00.00 bitrate= 0.0kbits/s
frame= 0 fps= 0 q=0.0 size= 0kB time=00:00:00.00 bitrate= 0.0kbits/s
frame= 0 fps= 0 q=0.0 size= 0kB time=00:00:00.00 bitrate= 0.0kbits/s

silverwhite
Feb 2nd, 2012, 04:33 AM
Oh no. I've another problem. :awww:

The gif I made works when I open it in a web browser (but not in Preview). When I tried to upload it on Tumblr, it appears as a still image :o

Kworb
Feb 2nd, 2012, 09:22 AM
Kworb :worship:

BTW, do you work or study? You have so many things going on here and on Pulse :lol:
Yes I work for a transport research company, doing programming, data processing, data analysis and mathematical modeling. :p but I work fast, so I can spend half a day doing real work and pretend it took me a whole day to do it, which means I have plenty of time for other stuff. ;)

Feedback :p

The programme seems to work fine for .flv files but not for .mp4 ones, for which this line keeps repeating :lol:

frame= 0 fps= 0 q=0.0 size= 0kB time=00:00:00.00 bitrate= 0.0kbits/s
frame= 0 fps= 0 q=0.0 size= 0kB time=00:00:00.00 bitrate= 0.0kbits/s
frame= 0 fps= 0 q=0.0 size= 0kB time=00:00:00.00 bitrate= 0.0kbits/s
I think that happens when it's a long video and it has to search for the right start time. Keep it running for a while, or try the first few seconds, and see if this is still a problem.

Oh no. I've another problem. :awww:

The gif I made works when I open it in a web browser (but not in Preview). When I tried to upload it on Tumblr, it appears as a still image :o
That's because of Tumblr's size restrictions. I think they only allow 1 MB for gifs. I suggest uploading it to tinypic.com instead.

silverwhite
Feb 2nd, 2012, 10:37 AM
Yes I work for a transport research company, doing programming, data processing, data analysis and mathematical modeling. :p but I work fast, so I can spend half a day doing real work and pretend it took me a whole day to do it, which means I have plenty of time for other stuff. ;)

That's because of Tumblr's size restrictions. I think they only allow 1 MB for gifs. I suggest uploading it to tinypic.com instead.

:speakles:

Didn't think of that :silly:

silverwhite
Feb 5th, 2012, 02:34 PM
Oh yes. Any chance to have the option of adding text, in a later version? :oh:

Kworb
Feb 5th, 2012, 04:45 PM
Yes I've already been experimenting with that, but not satisfied yet with the results. :p

Uploaded a new version today, look here (http://kworb.net/makegifs.html) for instructions.

silverwhite
Feb 5th, 2012, 04:47 PM
:rocker2:

jameshazza
May 31st, 2012, 07:46 PM
Any luck with ther version where you can add text? Also do you need and FLV player or just file?

silverwhite
Jun 9th, 2012, 09:00 AM
I have a small problem. A lot of the gifs that I make are too big to upload. Any way to reduce the size? :oh:

Wert.
Sep 12th, 2012, 08:41 PM
Well if you tone down number of colors from 256 to 128 for example it will reduce size a lot. :p