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.

Try ByteScout SWF To Video SDK today: Get 60 Day Free Trial or sign up for Web API

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"); } } }

Try ByteScout SWF To Video SDK today: 60 Day Free Trial (on-premise version) or sign up for Web API (on demand version)

VIDEO

ON-PREMISE VERSION

Get 60 Day Free Trial or Visit ByteScout SWF To Video SDK page

Explore ByteScout SWF To Video SDK documentation

WEB API

Sign Up for free Web API key

Explore Web API Documentation

Tutorials:

prev
next