How to use command line interface to automate conversion of flash movie (SWF) into AVI, MPG, WMV video with sound using SWF To Video Scout - ByteScout
Announcement
Our ByteScout SDK products are sunsetting as we focus on expanding new solutions.
Learn More Open modal
Close modal
Announcement Important Update
ByteScout SDK Sunsetting Notice
Our ByteScout SDK products are sunsetting as we focus on our new & improved solutions. Thank you for being part of our journey, and we look forward to supporting you in this next chapter!

How to use command line interface to automate conversion of flash movie (SWF) into AVI, MPG, WMV video with sound using SWF To Video Scout

  • Home
  • /
  • Articles
  • /
  • How to use command line interface to automate conversion of flash movie (SWF) into AVI, MPG, WMV video with sound using SWF To Video Scout
COMMAND LINE VERSION IS NO LONGER SUPPORTED! Check our SWF To VIDEO SDK instead:
SWF To Video SDK with support for SWF to video (AVI, WMV) and SWF to image (BMP, PNG) is available (click here to view);
SWF To Video Scout tutorial:
How to automate conversion of flash (SWF) movies into AVI, MPG, WMV video with sound using command line interface of SWF To Video Scout

This page contains information about command line parameters for SWF To Video Scout to help automate conversion of flash SWF movies (video, animations) into video files using SWF To Video Scout

First download and install SWF To Video Scout

IMPORTANT: To use command line interface automation in registered version you have to purchase one of the following license types:

Command Line License – allow to use command line program automation on one single workstation only
Developer License – allow to use command line interface and re-distribute program along with your end-user desktop application software without any additional royalties
Web License – allow to install and use program on one single web-server

For more information about these licenses please visit https://bytescout.com/purchase_swftovideoscout_developer.html

Command Line interface parameters:

/H – run program in automated mode
/S – set output video width and height in form of WIDTHxHEIGHT, for example: /H320x240
/F – set output video FPS. For example: /F15
/N – do not capture sound
/T – set path to temporary folder to store intermediate files. For example: /T”c:temp”
/V – set part of video codec name so program will search codec in list of available codecs and will select this codec to compress final video. For example: /VDivX
/C – conversion mode. (1 – realtime (default), 2 – frame by frame conversion without sound). For example: /C or /C1
/A – don’t auto close conversion – user will be required to click “Stop” or conversion can be stopped using global timeout parameter (see /G parameter)
/G – global timeout in seconds.For example /G200 – auto-stop conversion after 200 seconds. /G equal to /G600 (stop conversion after 600 seconds)
/P or /PN – force “play” button every N seconds for example /P3 – force play button every 3 seconds. /P = /P10 (force play every 10 seconds)
/L”filename” – write log file to filename. /L uses default filename = {APPDATA}SWF To Video ScoutLog.txt
/K”customcaption” – set custom caption for conversion wizard UI window (Developer License is required for this parameter)

Example:

// convert first 120 seconds of SWF into MPEG video with 300×300 dimensions and 15 FPS using built-in
// MPEG conversion, write log file into default log file location

SWFToVideoScout.exe “C:My Flash Moviesgollum.swf” “C:Convertedgollum.mpg” /H /S300x300 /V#MPEG /L /F15 /G120

Log File Constants

Program writes a log file (check /L command line parameter)

Following error names are used to indicate errors in a log file:

ERROR_OK – conversion successfull
ERROR_POST_PROCESSING_ABORTED – post-processing aborted by user clicked “Cancel” button
ERROR_CAN_NOT_COPY_INTERMEDIATE_FILES – can not copy intermediate files into final video file
ERROR_DLL_REQUIRED_NOT_FOUND – not able to find filter ascapscout.ax or not installed
ERROR_CONVERSION_STOPPED_BY_GLOBAL_TIMEOUT – conersion will continue but it was stopped by global timeout timer (see /G command line parameter)
ERROR_LARGE_OUTPUT_SIZE_DECREASED_TO_SCREEN – conversion will continue but output video dimensions were decreased to fit the screen
ERROR_SOURCE_FILE_IS_ZERO_SIZE – conversion can not be done as input file is zero size

prev
next