riccardo-lomazzi / camera_macos

Flutter stub plugin for camera implementation for macOS
MIT License
11 stars 8 forks source link

Sometimes seeing ASSET_WRITER_FAIL error #4

Open hillelcoren opened 1 year ago

hillelcoren commented 1 year ago

Hi,

Thanks for the very useful package!

When recording videos sometimes it works but other times I see the following error:

{code: ASSET_WRITER_FAIL, message: File not saved - The operation could not be completed, details: null}

Do you have any ideas to debug the problem?

riccardo-lomazzi commented 1 year ago

Hi,

Thanks for the very useful package!

When recording videos sometimes it works but other times I see the following error:

{code: ASSET_WRITER_FAIL, message: File not saved - The operation could not be completed, details: null}

Do you have any ideas to debug the problem?

Hi! Yes, I'm currently investing the issue, since it seems to happen randomly on different Macbook models.

Could be something related to the DispatchQueue used to store the buffer data, but I'm not entirely sure.

I'll let you know when a fix will be uploaded.

hillelcoren commented 1 year ago

Awesome, thank you!

Please let me know if there's any info I can provide to help.

deafjava commented 2 months ago

I'm facing the same issue. Indeed, it's random. I'd be very happy if this issue could be solved, because I need it for a great project I'm working on regarding Deaf People - Sign Language recording and getting feedback. Rooting for you! 🙏

Knightro63 commented 1 month ago

Hi @deafjava,

Do you see it only when starting the video or when saving the video?

For your use case could you use the stream and pass it through a coreml model (this is just for curiosity sake).

If you could give a detailed description I will look into it.

Thanks

deafjava commented 1 month ago

Hi @Knightro63 !

When saving the video.

Sure thing! Thanks for your response!