![newgrounds swf converter newgrounds swf converter](https://i.ytimg.com/vi/FW0dOs8yAnI/hqdefault.jpg)
The trouble is, when you decompile an swf file, you don't get actionscript, you get bytecode.įor example, here's a simple script: var test = So, I set out on a mission to add the feature in to Swivel. This causes the conversions to hang when being run through the command line. My script goes and downloads videos from Newgrounds with the NATA round tag (like "nata2015open"), and swfs uploaded to Newgrounds all have preloaders. However, I also needed to be able to set the start frame.
![newgrounds swf converter newgrounds swf converter](https://windows-cdn.softpedia.com/screenshots/ImTOO-SWF-Converter_1.png)
Set the audio for the exported video (No audio, audio from the swf, or an external file) $ Swivel file.swf -o converted.mp4 Set the video scale mode $ Swivel file.swf -a none Set the audio bitrate $ Swivel file.swf -sm letterbox Set the video bitrate $ Swivel file.swf -ab 1.5m
![newgrounds swf converter newgrounds swf converter](https://images.sftcdn.net/images/t_app-cover-l,f_auto/p/0feea1ea-a4d4-11e6-818d-00163ed833e7/3615538709/free-swf-to-video-converter-software-3615538709.jpg)
Set the output width and height $ Swivel file.swf -vb 1.5m It turns out that if you want to use Swivel from the command line, you have a few different flags you can set: $ Swivel file.swf -s 1280x720 To find out, a used a Flash decompiler and took a look at bin/Swivel.swf from the Swivel installation directory. I wondered if maybe Swivel actually did have a command line API, but just an undocumented one. But I noticed that if you run it, followed by the name of a file, it will convert it using the default settings: $ Swivel file.swf It doesn't say so anywhere on the wiki page. The thing is, Swivel doesn't claim to be usable from the command line. Perl is my tool of choice to do web scraping and automation, and I figured I'd throw in a system call to run Swivel on the downloaded swf files that I scrape from Newgrounds. When presented with a task like this, there is a lot of repetitive process involved, so I like to try to automate things. So that is why I wanted to use it when presented with the task of downloading all the NATA entries and converting them all to video. It's a really fantastic tool and is really the only acceptable tool for converting Flash videos. You probably know of and have used Newgrounds's swf to video converter, Swivel.
#Newgrounds swf converter Patch
TL DR turns out you can use Swivel from the command line, but it doesn't let you change the starting frame that way, so I tried to patch it in myself.