'how to add mkv file in avasset and extract video and audio from that?(swift)

i want to extract mkv's video and audio in AVasset and merge it in mp4 container and display it in swift UI?

i tried this Convert .mkv file into .mp4 file in swift 3 but that's does not worked



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source