Replies: 4 comments 3 replies
-
Is there any chance to get a reply, even if the idea is totally rejected? I understand that there is too much code for so few people. SWFTools are written mainly in C (and porting them to Rust would be also an extra effort). Licensing terms are also different (GNU GPLv2). As far as I can remember, I read that Ruffle aims to have software for writing and dealing with SWF animations. May SWFTools be considered as the tool this project can adopt or should this idea be totally discarded? Many thanks for your help. |
Beta Was this translation helpful? Give feedback.
-
@ousia I don't really understand why you would like to convert swftools in rust knowing than ruffle needs SWF to play it? |
Beta Was this translation helpful? Give feedback.
-
@ousia Motivate developers here knowing enough C language to maintained SWFtools would be a good thing at its best, especially since SWFtools is still in standard package for many Linux distrib. What I know is some distrib like Fedora fixed it to let them compile and package it, so maybe start to get the rpm sources and make diffs of what it changed then create a fork or a PR right to Matthias repo. |
Beta Was this translation helpful? Give feedback.
-
Sorry for taking long to respond. OK, here's my opinion: Unfortunately, I don't think we have the resources to take this. This is a huge blob of C, written in a way that currently - even from C's POV, and sorry for being very direct - looks like it's asking for memory bugs. I also asked around and I think most of our devs (with some exceptions) have never actually used this toolkit; even if we had resources, it'd be weird to maintain something we never really use ourselves. Further, from my perspective, https://github.com/jindrapetrik/jpexs-decompiler already has a lot of the features that swftools has (at least, the SWF dumping/extraction, and AS2/3 modification), while supporting much more of newer SWF versions. Maybe you could have some success trying to migrate to that? The remaining features sound like could be somewhat integrated as feature requests into either Ruffle or FFDEC individually. |
Beta Was this translation helpful? Give feedback.
-
SWFTools (https://swftools.org) is a project that includes the following binaries:
as3compile
: an AS3 compiler.font2swf
: converts a font to SWF.gif2swf
,jpeg2swf
,png2swf
: image to SWF converters.pdf2swf
: PDF file to SWF converter.swfc
: compiles SWF scripts into SWF files (AS2 too).swfdump
: displays the content of SWF files.wav2swf
: converts WAV to SWF.swfbbox
: plays with bounding boxes.swfrender
: renders SWF file in PNG format.swfextract
: extracts data from SWF files.swfstrings
: extracts strings from SWF files.swfcombine
: combines SWF files.Matthias Kramm was its main developer and he did a wonderful job maintaining this software for years.
But as life goes on, he had other things to do (which is perfectly fine) and SWFTools has been unmaintained for over a decade.
Many Linux distributions include SWFTools (and also HomeBrew [among other ones]).
Besides segmentation faults and new features it would be nice to have, the main problem is that SWFTools have a non-negligible number of common vulnerabilities (more than a hundred, according to https://nvd.nist.gov/vuln/search/results?query=swftools&search_type=all).
I wonder whether sheltering SWFTools under the Ruffle umbrella could help both projects, further developing the former and including a free (as in “free speech” tool) to generate and modify SWF animations.
I am aware that this would mean other project to take care of and that implies investing time in it.
My question is whether SWFTools could be the project that Ruffle shelters to generate and modify SWF animations.
Many thanks for your excellent work, your patience (reading this) and your help.
Beta Was this translation helpful? Give feedback.
All reactions