How can I use AVFoundation or AVAsset to create a Subtitle on top of my video?
-
28-09-2019 - |
Question
I have a customized Player using compositions and some AVAssets. Everything works fine. Now I would like to to some Subtitle on top of my video. I've read in the documentation, that a mediaType "AVMediaTypeSubtitle" exists. Is there any Asset or AVAssetTrack, which can generate a TextOverlay, which I could insert into my composition to do subtitles?
Solution
I think there is a better solution then mine, but you can use text overlay using CATextLayer in AVVideoCompositionCoreAnimationTool.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow