ByteScout SWF To Video SDK - C# - Set Audio Track - ByteScout

ByteScout SWF To Video SDK – C# – Set Audio Track

  • Home
  • /
  • Articles
  • /
  • ByteScout SWF To Video SDK – C# – Set Audio Track

How to set audio track in C# and ByteScout SWF To Video SDK

This code in C# shows how to set audio track with this how to tutorial

These sample source codes on this page below are demonstrating how to set audio track 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 and you can use it to set audio track with C#.

This rich sample source code in C# for ByteScout SWF To Video SDK includes the number of functions and options you should do calling the API to set audio track. Just copy and paste the code into your C# application’s code and follow the instruction. Further enhancement of the code will make it more vigorous.

ByteScout SWF To Video SDK free trial version is available on our website. C# and other programming languages are supported.

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. using System.Diagnostics; using BytescoutSWFToVideo; namespace SetAudioTrack { 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 input SWF file converter.InputSWFFileName = "SlideShowWithEffects.swf"; // set output AVI video filename converter.OutputVideoFileName = "result.avi"; // Set background music converter.ExternalAudioTrackFromFileName = "bgmusic.mp3"; // Set output audio codec converter.CurrentAudioCodecName = "ADPCM"; // Set output movie dimensions converter.OutputWidth = 640; converter.OutputHeight = 480; // Run conversion converter.RunAndWait(); // release resources System.Runtime.InteropServices.Marshal.ReleaseComObject(converter); converter = null; // Open the result movie in default media player Process.Start("result.avi"); } } }

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