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

not support avi video? #132

Open wengxianxun opened 1 year ago

wengxianxun commented 1 year ago

couldn't generate thumbnail, error:Error Domain=AVFoundationErrorDomain Code=-11869 "Cannot Open" UserInfo={NSLocalizedFailureReason=This media cannot be used., NSLocalizedDescription=Cannot Open, NSUnderlyingError=0x282c70210 {Error Domain=NSOSStatusErrorDomain Code=-12430 "(null)"}} [VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(IO Error, Failed to write data to file, null, null)

0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:653:7)

1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:296:18)

#2 VideoThumbnail.thumbnailFile (package:video_thumbnail/video_thumbnail.dart:48:12) #3 _VideoEditorExampleState.getImage (package:example/main.dart:74:22)
NajamLodhi commented 1 year ago

any solutions ?