How to convert SWF flash movie into video file in Visual Basic .NET using SWF To Video SDK - ByteScout

How to convert SWF flash movie into video file in Visual Basic .NET using SWF To Video SDK

  • Home
  • /
  • Articles
  • /
  • How to convert SWF flash movie into video file in Visual Basic .NET using SWF To Video SDK
This sample source code shows how to convert flash (.swf) movie into a video file using Bytescout SWF To Video SDK in Visual Basic .NET.

The SDK provides set of methods and properties to convert flash movies into video (compressed with the selected video compression codec, one of the available on the computer).

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("SlideShowWithEffects.swf", "result.avi")

        ' 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

Tutorials:

prev
next