ByteScout SWF To Video SDK – VBScript – SWF with Dynamic Scene to PNG Frames

  • Home
  • /
  • Articles
  • /
  • ByteScout SWF To Video SDK – VBScript – SWF with Dynamic Scene to PNG Frames

ByteScout SWF To Video SDK – VBScript – SWF with Dynamic Scene to PNG Frames

swf_with_dynamic_scene_to_png_frames.vbs

' x64 IMPORTANT NOTE: set CPU to x86 to build in x86 mode. WHY? Because flash is not supported on x64 platform currently at all

' Create an instance of SWFToVideo ActiveX object
Set converter = CreateObject("BytescoutSWFToVideo.SWFToVideo")

' Set debug log
'converter.SetLogFile "log.txt"

' Register SWFToVideo
converter.RegistrationName = "demo"
converter.RegistrationKey = "demo"

' uncomment to enable PNG with transparency
' converter.RGBAMode = true ' enable BEFORE setting InputSWFFileName property

' Set input SWF file
converter.InputSWFFileName = "DynamicScene.swf"

' Set output movie dimensions
converter.OutputWidth = 640
converter.OutputHeight = 480

' converter.StartFrame = 25

Converter.UseConversionTimeoutFor1FrameSWFOnly = false
Converter.ConversionTimeout = 60 ' 60 seconds

Converter.SWFConversionMode = 0
Converter.ConvertAllToPNG "."

' converter.ConvertToPNG "output.png"


Set converter = Nothing


  Click here to get your Free Trial version of the SDK

Tutorials:

prev
next