digital-preservation / droid

DROID (Digital Record and Object Identification)
BSD 3-Clause "New" or "Revised" License
279 stars 75 forks source link

.dv Files Not Recognized #997

Open Lawrence58 opened 1 year ago

Lawrence58 commented 1 year ago

I ran .dv video files through DROID but the output was empty. It doesn't even include .dv as the file extension. When I search the PRONOM registry using the .dv extension there is an entry with MIME: video/dv and PUID: x-fmt/152. I assumed that meant DROID had some support for .dv files. Is that not the case or is something wrong? Thank you, Kevin Irelan

Dclipsham commented 1 year ago

There's no identification signature for x-fmt/152 yet but they should at least be coming up with an extension-match. Are you running DROID at command line or GUI? Is there anything interesting in the log file? Usually found at c:\users\.droid6\logs\droid.log Are you happy to screen-capture your output?

David

jendib commented 1 year ago

Hello @Dclipsham , I'm working with @Lawrence58. We are using the Java library to directly call Droid using the method DroidCore.matchBinarySignatures(IdentificationRequest request). This method only matches based on binary content right? So it would make sense that extension matching isn't coming up (and binary matching isn't supported for DV files).

steve-daly commented 1 year ago

You could look at the external Java API that was added in v6.6.0, although bear in mind that it's early days for this and this might change in future. The unit tests for this might give an indication of how it would work, but this should provide extension-only matching (and container signature matching) as seen in the unit tests https://github.com/digital-preservation/droid/blob/master/droid-api/src/test/java/uk/gov/nationalarchives/droid/internal/api/DroidAPITest.java

sparkhi commented 1 year ago

As mentioned by @steve-daly There is more information available to use the API in our wiki which may prove helpful. https://github.com/digital-preservation/droid/wiki/How-to-use-DROID-internal-API

jendib commented 1 year ago

Is it on your roadmap to have signature matching for DV files? And if so when do you think it could be released? Thanks.

steve-daly commented 1 year ago

Hi @jendib you could engage with the Pronom file format team here https://www.nationalarchives.gov.uk/pronom/submitinfo.htm ideally providing information or a signature for the format (e.g. from this kind of work https://cdn.nationalarchives.gov.uk/documents/information-management/pronom-file-signature-research.pdf).

I suspect these are dv-dif files, i.e. the elemental form of DV video which might often be wrapped in AVI, MOV, MXF etc. You'd ideally want to find a spec for this format to see what byte sequences might uniquely identify them, although I suspect this might vary on various flavours of the format (e.g. frame rate, bitrate).