Control: tags 940222 -moreinfo +confirmed
Control: severity 940222 important

Paolo Benvenuto wrote...

> I have an .avi file on a debian server. The file command reports a wrong 
> result:
> 
> $ file -i myfile.avi
> myfile.avi: image/x-tga; charset=binary
> 
> I get the same mime type with python3 and magic.from_file().
> 
> However, the same file on my ubuntu pc (rsynced) is correctly reported as a 
> video:
> 
> $ file -i myfile.avi 
> myfile.avi: video/mpeg; charset=binary

With the help of the reproducer: This is a regression introduced[1]
upstream between 5.32 and 5.33, and fixed[2] between 5.36 and 5.37.
Mapping to distributions, this exists in Debian 10 ("buster") and
Ubutunu (not checked) 19.04 and 19.10.

About Debian 10, this warrants a fix via a point release. Scheduled.

> Weirdly , nautilus sees it correctly as a video (doesn't it use the same 
> libmagic1 library?).

Possibly nautilus uses

| shared-mime-info - FreeDesktop.org shared MIME database and spec

which - if memory serves me right - is a different implementation.

    Christoph

[1] FILE5_32-72-g8e6127de
[2] FILE5_36-4-gd75e8878

Attachment: signature.asc
Description: PGP signature

Reply via email to