DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: swf to gif (or other usable format)  (Read 27,114 times)

rgdot

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 2,197
swf to gif (or other usable format)
« on: June 01, 2021, 07:46 PM »
Hi all :)

I have a swf file that I need to convert to be usable on a current web page. I can only find flash emulators that open the swf file in a browser and little else (they can't export to animated gif for example(?))
A downloadable software like lightspark does not even install properly or crash (latest version, tried both 32bit and 64bit)

I would think an Adobe product like After Effects would be able to open it and export it to a usable format but even if it does I have no access to Adobe products.

Any ideas?

rjbull

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 3,217
Re: swf to gif (or other usable format)
« Reply #1 on: June 01, 2021, 08:40 PM »
Sanity check - I have not tried this.

Movavi Video Converter seems to say it can convert SWF to a few other formats, and they also have an online video converter.

rgdot

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 2,197
Re: swf to gif (or other usable format)
« Reply #2 on: June 01, 2021, 08:47 PM »
The online version (tried to mp4, avi and others) doesn't seem to handle the swf file well, it says converting but the converted file is 0 seconds (but over 100k). The original swf file is 39k, nothing too unusual, basically animated text and logo.
Will attempt the download version, thanks.

rgdot

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 2,197
Re: swf to gif (or other usable format)
« Reply #3 on: June 01, 2021, 09:29 PM »
Looks like the same issue with the download version and a couple of other online convertors. The output is a static file, some formats only 1k size.

4wd

  • Pedantic Old Bastard
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,652
    • Coding Snacks
Re: swf to gif (or other usable format)
« Reply #4 on: June 02, 2021, 09:05 AM »
Have you tried ffmpeg?

Code: (generic)
ffmpeg -i input.swf output.gif

Will probably result in a file larger than the original, you could also try conversion to WEBM.

Code: (generic)
ffmpeg -i input.swf -c:v libvpx-vp9 -crf 30 -b:v 0 -an output.webm

Might need to play around with the CRF value to adjust your output quality. See here.
"I will not follow where the path may lead, but I will go where there is no path, and I will leave a trail." - Muriel Strode, 1903
« Last Edit: June 02, 2021, 09:26 AM by 4wd »

BGM

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 566
    • Participated in NANY Challenge Seven Times
Re: swf to gif (or other usable format)
« Reply #5 on: June 02, 2021, 01:48 PM »
I have a copy of a very old utility called "Swifty Batch Projector Creator" which converts swf files to exe files.
https://www.buraks.com/swifty/sbpc.html

https://www.buraks.com/swifty/

It's freeware, and the page is still up.

BGM

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 566
    • Participated in NANY Challenge Seven Times
Re: swf to gif (or other usable format)
« Reply #6 on: June 02, 2021, 01:56 PM »
Another thing you could do, is if you had any kind of swf player, you could record your screen as it played.
https://www.majorgeeks.com/files/details/screentogif.html

rgdot

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 2,197
Re: swf to gif (or other usable format)
« Reply #7 on: June 02, 2021, 02:24 PM »
Will try ffmpeg and swifty, thanks. Can I get the exe please? It is not available on the site I believe

In previous times (not related to this swf) no matter what I did screentogif looked like it lost quality or resolution, played with frames and every other setting in it and still never understood why.

BGM

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 566
    • Participated in NANY Challenge Seven Times
Re: swf to gif (or other usable format)
« Reply #8 on: June 02, 2021, 03:45 PM »
I can provide a link, but I just read on his site:
Quote
Update: Download removed. (I should have removed it years ago, because as noted above, Swifty Batch Projector Creator has an embedded link to Flasher.net. The site was a major Flash resource at the time. Unfortunately, now, it's kind of a porn site -Burak).

Swifty Batch Projector Creator can,
    Batch create projectors from a list of SWF files using the Player you select. Creating the SWF list easy with Drag & Drop operation.

SBPC, uses standalone Flash players to create projectors. You can copy many projectors in a folder named 'Players'. This is designed as such because SBPC needs to know which files are standalone Flash players. You can have version 3, 4, 5, MX players, EXE compressed versions of them and also maybe some edited players. This way, you can rename the player EXEs anyway you like.
« Last Edit: June 02, 2021, 06:42 PM by BGM »

rgdot

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 2,197
Re: swf to gif (or other usable format)
« Reply #9 on: June 02, 2021, 04:44 PM »
Not sure if distribution is allowed but thanks
« Last Edit: June 02, 2021, 06:46 PM by rgdot »

BGM

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 566
    • Participated in NANY Challenge Seven Times
Re: swf to gif (or other usable format)
« Reply #10 on: June 02, 2021, 06:22 PM »
Yeah, well, that program is about 20 years old, already, anyway.  I'm doubting it will even work on Windows 10.

« Last Edit: June 02, 2021, 07:03 PM by BGM »

rjbull

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 3,217
Re: swf to gif (or other usable format)
« Reply #11 on: June 02, 2021, 07:37 PM »
Another thing you could do, is if you had any kind of swf player, you could record your screen as it played.
https://www.majorgeeks.com/files/details/screentogif.html
ScreenToGif's own home page is https://www.screentogif.com/ but it's the same version as MajorGeeks have.  There's also LICEcap.  Don't know about quality; it certainly has less features.

Or you could use any other screen recorder, e.g. mouser's Easy Screencast Recorder?  It doesn't appear to offer animated GIF as a target format, but other formats are available.

rgdot

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 2,197
Re: swf to gif (or other usable format)
« Reply #12 on: June 02, 2021, 08:17 PM »
In HTML5 times probably have to embed a video but tools like mouser's output huge videos, have to read on compression or just create a good quality gif.
Same thing with ffmpeg, simple commands don't work, the same 0 seconds output as the video convertors above.

4wd

  • Pedantic Old Bastard
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,652
    • Coding Snacks
Re: swf to gif (or other usable format)
« Reply #13 on: June 02, 2021, 11:01 PM »
Same thing with ffmpeg, simple commands don't work, the same 0 seconds output as the video convertors above.

In that case try converting the SWF to images first:

Code: (generic)
ffmpeg -i input.swf output-%05d.png

That should output every frame as a consecutively numbered PNG, (if there's more than 100,000 frames you'll need to increase the 5 in output-%05d.png).

Then it should be a simple matter of using ffmpeg or any other video program to convert the images to video.

You're not able to PM me the original file, (or upload to gofile.io or somewhere and send a link)?
I use ffmpeg and/or other video programs almost every other day but I don't have any SWF files to try, (can't remember the last time I saw one).
"I will not follow where the path may lead, but I will go where there is no path, and I will leave a trail." - Muriel Strode, 1903

rgdot

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 2,197
Re: swf to gif (or other usable format)
« Reply #14 on: June 04, 2021, 03:18 AM »
Thank you 4wd, BGM, rjbull and everybody

4wd

  • Pedantic Old Bastard
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,652
    • Coding Snacks
Re: swf to gif (or other usable format)
« Reply #15 on: June 05, 2021, 02:47 AM »
For anyone else wanting to play an old SWF for capture, you can use Adobe's Flash Player Content Debugger and then use any screen/window capture program.
"I will not follow where the path may lead, but I will go where there is no path, and I will leave a trail." - Muriel Strode, 1903

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 9,827
    • Participated in NANY Challenge Eight Times
    • Cody Award
Re: swf to gif (or other usable format)
« Reply #16 on: June 05, 2021, 06:19 AM »
I've also used SWF File Player with some success in the past.

rgdot

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 2,197
Re: swf to gif (or other usable format)
« Reply #17 on: June 05, 2021, 03:17 PM »
Thanks guys. Hopefully will be fully done with Flash very soon :D

Original address: https://www.donationcoder.com/forum/index.php?topic=51456.0