Closed bypie5 closed 2 years ago
Ubuntu 22.04 (Jammy) has libmagic1 at version 5.41, which has the linked bug fixes and solves the problem for me. Focal's libmagic1 is an older version.
To save time for anyone else looking into this: This is the relevant file in libmagic: https://github.com/file/file/blob/edd157a719a0cdb3739b7ca946fe40610118f3dd/magic/Magdir/animation
If upgrading isn't an option for you, I saw that python-magic allows you directly specify a magic file magic.Magic(magic_file="path_to_magic_file")
, so it may be possible to take a newer magic file and use it with your existing installation. I don't know if doing this is a good idea or not, I opted to upgrade our base image instead.
magic
incorrectly labels MP4 videos withftypiso5
in their header. This seems to be an issue with libmagic itself. For more information about this bug, see this bug report for libmagic: https://mailman.astron.com/pipermail/file/2020-November/000441.htmlRelevant part quoted below: