Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Videos without audio don't merge. #7

Open
EmanTahir888 opened this issue Sep 23, 2022 · 0 comments
Open

Videos without audio don't merge. #7

EmanTahir888 opened this issue Sep 23, 2022 · 0 comments

Comments

@EmanTahir888
Copy link

I got the issue that when i merge a video with no sound it gave me an error. I resolved it by changing some code i.e.

if let audioAsset: AVAssetTrack = asset.tracks(withMediaType: .audio).first{
try audioTrack.insertTimeRange(timeRange, of: audioAsset, at: currentTime)
}

but then it started merging one video with no sound and other with sound but if both videos are without sound the export session gives an error of operation failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant