justsoft / video_thumbnail

This plugin generates thumbnail from video file or URL. It returns image in memory or writes into a file. It offers rich options to control the image format, resolution and quality. Supports iOS and Android.
MIT License
183 stars 225 forks source link

Support for HEVC video #151

Open ChristopherLinnett opened 9 months ago

ChristopherLinnett commented 9 months ago

The plugin doesn't seem to be able to read HEVC video. I have noticed it when trying to generate thumbnails that use this format (GoPro video mostly). I won't have control over the types of videos the intended app users will try to use so being able to read these formats is essential. The message that shows when attempting to process these videos for a thumbnail is this:

couldn't generate thumbnail, error:Error Domain=AVFoundationErrorDomain Code=-11832 "Cannot Open" UserInfo={NSLocalizedFailureReason=This media cannot be used., NSLocalizedDescription=Cannot Open, NSUnderlyingError=0x283585c80 {Error Domain=NSOSStatusErrorDomain Code=-12431 "(null)"}}