Herschel / Swivel

Adobe Flash SWF to video converter
https://newgrounds.com/swivel
GNU General Public License v3.0
166 stars 22 forks source link

Command line arguments #18

Open GiovanH opened 4 years ago

GiovanH commented 4 years ago

It should be possible to pass this command line arguments to render the video instead of using the GUI.

Herschel commented 4 years ago

There is some undocumented command line support, although it's somewhat limited because Adobe AIR is not designed for command line I/O. But you can do:

swivel foo.swf -s 1920x1080 -o foo.mp4

Parameters are here: https://github.com/Herschel/Swivel/blob/master/src/com/newgrounds/swivel/Swivel.hx#L204-L277

GiovanH commented 4 years ago

This is excellent, thank you. If these were documented, that would probably be very useful to people.

Ruthalas commented 2 years ago

Do these command line flags still work? If I run the example you provide, it doesn't seem to do anything.

Edit: The example works, but only if you don't have an instance of the application open already. Determining which flags work is obtuse. Glad to have this ability though!