ByteScout SWF To Video SDK - C# - Conversion Progress - 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!

ByteScout SWF To Video SDK – C# – Conversion Progress

  • Home
  • /
  • Articles
  • /
  • ByteScout SWF To Video SDK – C# – Conversion Progress

conversion progress in C# using ByteScout SWF To Video SDK

How to code conversion progress in C#: How-To tutorial

We’ve created and updating regularly our sample code library so you may quickly learn conversion progress and the step-by-step process in C#. ByteScout SWF To Video SDK helps with conversion progress in C#. ByteScout SWF To Video SDK is the SDK that is capable of converting SWF macromedia files into WMV and AVI video. Supports dynamic flash movies, can transmit variable values. Options to change output video size, framerate, quality are available.

The SDK samples like this one below explain how to quickly make your application do conversion progress in C# with the help of ByteScout SWF To Video SDK. To do conversion progress in your C# project or application you may simply copy & paste the code and then run your app! Test C# sample code examples whether they respond your needs and requirements for the project.

Visit our website provides for free trial version of ByteScout SWF To Video SDK. Free trial includes lots of source code samples to help you with your C# project.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

Program.cs
      
// x64 IMPORTANT NOTE: set CPU to x86 to build in x86 mode. WHY? Because flash is not supported on x64 platform currently at all using System; using System.Diagnostics; using System.Threading; using BytescoutSWFToVideo; namespace ConversionProgress { 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 converter.InputSWFFileName = "shapes.swf"; // set output AVI or WMV video filename converter.OutputVideoFileName = "result.wmv"; // Don't let it run infinitely converter.ConversionTimeOut = 5000; // 5000ms = 5 seconds // set FPS converter.FPS = 29.97f; // Set output movie dimensions converter.OutputWidth = 320; converter.OutputHeight = 240; // Run the conversion converter.Run(); // Show conversion progress: int i = 0; char[] spin = new char[] { '|', '/', '-', '\\' }; while (!Console.KeyAvailable && converter.IsRunning) { float progress = converter.ConversionProgress; Console.WriteLine(String.Format("Converting images {0}% {1}", progress, spin[i++])); Console.CursorTop--; i %= 4; Thread.Sleep(50); } if (converter.IsRunning) { converter.Stop(); Console.WriteLine("Conversion aborted by user."); } else { Console.WriteLine("Conversion competed successfully."); } // Open the result in default media player Process.Start("result.wmv"); Console.WriteLine(); Console.WriteLine("Hit any key..."); Console.ReadKey(); } } }

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout SWF To Video SDK Home Page

Explore ByteScout SWF To Video SDK Documentation

Explore Samples

Sign Up for ByteScout SWF To Video SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout SWF To Video SDK Home Page

Explore ByteScout SWF To Video SDK Documentation

Explore Samples

Sign Up for ByteScout SWF To Video SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next