I have a project using Windows.Media.Editing.MediaComposition
and when using it to render a video composed of few clips, the RenderToFileAsync
works fine.
The problem is that when using a large amount of 4K videos and other clips, eventually after some hours generating the final video (can be 30 minutes, 1 hour, 2 hours...), the RenderToFileAsync
stops and raise a COMException
:
COMException: at c__DisplayClass97_0.<<RenderVideo>b__1>d.MoveNext()
This is the only information it returns.
I tried also to use MediaEncodingProfile.TranscodeAsync()
, inserting MediaComposition
into it, but same error eventually happens.
Is there a limitation from MediaComposition
side about number of clips or something like this? Is there a workaround I couldn't find? I don't know what to try from our project side anymore, any suggestion can help.