AVCHD Camcorder SD cards
hadess at hadess.net
Fri Apr 15 09:43:28 UTC 2016
On Fri, 2016-04-01 at 22:48 +0100, Christopher Hoskin wrote:
> I am interested in detecting when an SD card used in a camcorder is
> connected to a computer. There appears to be a convention (possibly a
> standard, but I don't have a reference?) that camcorders recording to
> the AVCHD format structure their file layout as shown here:
> Currently this results in a Camcorder SD card being identified as 'x-
> content/image-dcf', which typically leads to the desktop environment
> automatically opening a photo editing application, rather than a
> video editing application.
> As a first draft, the entry might look something like this:
> <mime-type type="x-content/camcorder-avchd">
> <_comment>AVCHD Camcorder SD Card</_comment>
> <treematch path="PRIVATE/AVCHD/BDMV/STREAM" type="directory"
> I am not an expert in this area, so this may need some refinement.
> I would be interested to know your thoughts on whether it would be
> appropriate to introduce such a MIME type?
Mime-types should be added to shared-mime-info. See the HACKING file on
how to submit new mime-types.
However, the main problem is what do you expect to open this mime-type?
What application, if passed the path to the SD card, will recognise
that it's from a camcorder and offer a different behaviour?
I guess the problem is that it's wrongly detected as a camera, though
it's hard to know why based on the information you provided. Whether or
not you add a mime-type for AVCHD camcorders, it will still be detected
as a camera.
More information about the xdg