Exporting AVAssetExportSession video files with multiple audio tracks

I am using AVAssetExportSession

c AVMutableComposition

to create one video file from three video files.

When checking the output video file, Quicktime

there are two audio tracks.

1. 2ch 44,100
2. 1ch 44,100

      

How to export using AVAssetExportSession

so that the exported video has only one audio track, as this causes an issue when the video is displayed outside of iOS.

I used SDAVAssetExportSession

one that does what I need, but it has some reliability issues as seen from the Github issues for the project, so I'd rather just use AVAssetExportSession

.

thank

+3
ios video avfoundation audio avassetexportsession


source to share


No one has answered this question yet

Check out similar questions:

fourteen
AVAssetExportSession failed with unknown error -12780 for specific video
12
Export AVAssetExportSession could not be deterministic with error: "Operation stopped, NSLocalizedFailureReason = Video could not be compiled."
6
Outputting audio settings when adding one AAC file to another
2
Video duration AVAssetExportSession is disconnected and invalid
2
AVAssetExportSession error for certain videos
1
Exporting time using AVAssetExportSession results in black video
0
Can I use an image for a poster frame for an audio clip on iOS?
0
AVAssetTrack displayed on AVPlayerLayer is not displayed correctly
0
Can I add an extra audio track to a video file on iOS?
0
AVAssetExportSession exports audio only



All Articles
Loading...
X
Show
Funny
Dev
Pics