SWF To Video SDK supports Windows Media Video (WMV) as output video format and allows to convert SWF with data to WMV.

These examples show how to convert SWF flash video to WMV video file with SWF To Video SDK using Visual Basic or C# as programming language.

Visual Basic .NET

Imports System.Diagnostics
Imports BytescoutSWFToVideo

Class Program
    Friend Shared Sub Main(args As String())

        ' 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"

        ' Set the converter to the live data conversion mode
        ' (it will fully load the embedded video stream before the conversion)
        converter.SWFConversionMode = SWFConversionModeType.SWFWithLiveData

            ' Set input SWF file

            converter.InputSWFFileName = "http://s3.amazonaws.com/bytescout.com/files/demo/swfscout_VideoSample.swf"
    
            ' Set output AVI or WMV video file 
            converter.OutputVideoFileName = "result.wmv"

        ' Don't let it run infinitely
            converter.ConversionTimeOut = 3000 ' 3000ms = 3 seconds 

        ' set FPS 

        converter.FPS = 29.97F

        ' Set output movie dimensions 
        converter.OutputWidth = 320

        converter.OutputHeight = 240

        ' Run conversion 
        converter.RunAndWait()

        ' Open the result in default media player
        Process.Start("result.wmv")
    End Sub

End Class
Visual C#

using System.Diagnostics;
using BytescoutSWFToVideo;

namespace SwfWithDataToAvi
{
    class Program
    {
        static void Main(string[] args)

        {
            // Create an instance of SWFToVideo ActiveX object
            SWFToVideo converter = new SWFToVideo();

            // Set debug log
            //converter.SetLogFile("log.txt");

            // Register SWFToVideo
            converter.RegistrationName = "demo";

            converter.RegistrationKey = "demo";

            // Set the converter to the live data conversion mode
            // (it will fully load the embedded video stream before the conversion)

            converter.SWFConversionMode = SWFConversionModeType.SWFWithLiveData;

            // set input SWF file from URL
            converter.InputSWFFileName = "http://s3.amazonaws.com/bytescout.com/files/demo/swfscout_VideoSample.swf";

                // set output AVI or WMV video filename
                converter.OutputVideoFileName = "result.wmv";
        
            // Don't let it run infinitely

            converter.ConversionTimeOut = 15000; // 15000ms = 15 seconds 

            // set FPS 
            converter.FPS = 29.97f;

            // Set output movie dimensions 
            converter.OutputWidth = 320;
            converter.OutputHeight = 240; 

            // Run conversion 

            converter.RunAndWait();

            // Open the result in default media player
            Process.Start("result.wmv");

        }
    }
}