- Home
- Testimonials
- Purchase
- Developer Tools
- Desktop Utilities
- Download
- Support
- Blog
- Company
How to convert flash with dynamic data into AVI video file using SWF To Video SDK
This sample source code demonstrates how to convert SWF flash movie with one single frame and dynamically loaded data (FLV, XML etc) into AVI video using Bytescout SWF to Video SDK.
The SDK provides special .ConversionTimeOut property to control the length of the video to convert (in milliseconds). So if you have infinitely looped SWF movie then you can set .ConversionTimeOut property to the required duration in milliseconds.
Visual Basic .NET :
Imports BytescoutSWFToVideoLib
Module Module1
Sub Main()
' Create an instance of SWFToVideo ActiveX object
Dim converter As New SWFToVideo()
' Set debug log
'converter.SetLogFile("log.txt")
' Register SWFToVideo
converter.RegistrationName = "demo"
converter.RegistrationKey = "demo"
' Add SWF file and set its output filename
converter.SetMovie("HelloWorld.swf", "result.avi")
' This property is for one-frame or endless SWF movies.
' Will stop conversion after specified time (milliseconds).
converter.ConversionTimeOut = 5000 ' 5000ms = 5s
' Set output movie dimensions
converter.OutputWidth = 640
converter.OutputHeight = 480
' Run conversion
converter.RunAndWait()
' Open the result movie in default media player
Process.Start("result.avi")
End Sub
End Module
Filed in:
SWF To Video SDK
Tutorials:






