Skip to main content

Adding the video file with multiple audio streams

Product: Video Edit SDK .Net. Engine: VideoEditCore (Windows only).

Video Edit SDK supports video files with one or more audio streams. But with some limitations. Splitter filters that parse source files have two ways to have multiple audio streams on output - multiple output pins or IAMStreamSelect interface usage. DirectShow Editing Services engine used in our SDKs limits us to use the first type of splitters if you want to add any stream except the first.

AVI splitter allows you to add several audio streams from the source file.

Filter graph for AVI

LAV Splitter (an excellent splitter that supports most formats) does not allow this. That can be a problem.

Filter graph for LAV

The best way is external audio file usage; this way has no problems. To select a splitter in your app, you can use the DirectShow_Filters_Blacklist_Add method to ban all other splitters. In .Net SDK, you can use a special API to extract an audio track and add it from an external file.

Required redists

How can the required redists be installed or deployed to the user's PC?


Visit our GitHub page to get more code samples.