CsabaConsulting / InspectorGadgetApp

Open Multi-Modal Personal Assistant
MIT License
3 stars 1 forks source link

Allow video input modality #43

Closed MrCsabaToth closed 2 days ago

MrCsabaToth commented 2 weeks ago

Currently only image input modality is possible, but allow video as well

MrCsabaToth commented 3 days ago

The camera video recorder records into a temporary file with the extension .temp. The mime Flutter plugin is not able to decide the mime type based on extension because of that, but even when I supply the first KB of the file mime might still not able to decide? We may have to use https://pub.dev/packages/ffmpeg_kit_flutter FFprobeKit.getMediaInformation?

FFprobeKit.getMediaInformation('<file path or url>').then((session) async {
  final information = await session.getMediaInformation();
MrCsabaToth commented 2 days ago

I managed to overcome this, no need for FFProbe