flutter-cavalry / fc_native_video_thumbnail

A Flutter plugin to create video thumbnails via native APIs
BSD 3-Clause "New" or "Revised" License
10 stars 4 forks source link

"Operation failed. 'image.Attach' failed with Error 0x80004005" on Windows #3

Closed sfabio01 closed 3 months ago

sfabio01 commented 9 months ago

I'm getting the following exception when trying to generate a thumbnail on Windows: "Operation failed. image.Attach failed with Error 0x80004005: Unspecified error"

This is my code snippet:

try {
  thumbnailGenerated = await plugin.getVideoThumbnail(
      srcFile: result.files.single.path!,
      destFile: thumbpath,
      height: 200,
      width: 200,
      keepAspectRatio: true,
      format: 'jpeg',
      quality: 100);
} catch (e) {
  showGenericErrorToast(
      'Error generating thumbnail: ' + e.toString());
  return;
}
mgenware commented 9 months ago

hi @sfabio01 , I googled 0x80004005, it seems to be some access/permission errors. Is it from a network drive (or anything different from an ordinary file)? can you read the src file successfully via dart APIs?