I'm working on a video player app that has the basic functionality of viewing a video and then be able to trim and crop that video and then save it.
My flow of trimming a video and then saving it works well with any and every video.
Cropping, however, doesn't work in the sense that I am unable to Save the video and export it.
Whenever I crop a video, in the video player, I can see the cropped version of the video (it plays too!)
but on saving said video, I get the error:
Export failed with status: 4, error: Cannot Decode
I've been debugging for 2 days now but I'm still unsure as to why this happens.
I'm almost certain the bug is somewhere cause of cropping and then saving/exporting.
If anyone has dealt with this before, please let me know what the best step to do is! If you could help me refine the flow for cropping and exporting, that'd be really helpful too.
Thanks!