Skip to content

Hard coded path for mediainfo #12

Open
@micolous

Description

@micolous

There's a hard coded path to /usr/local/bin/mediainfo in autodetect_file.c:

char* mediaInfoInvokeStr = "/usr/local/bin/mediainfo";

As a result, if you have installed mediainfo in another directory that is in the PATH (eg: /usr/bin), such as installing it via apt install mediainfo, caption-inspector won't find it.

The Docker build appears to work around this by moving the binary:

COPY --from=base /usr/bin/mediainfo /usr/local/bin/mediainfo

The easy fix is to change this to:

char* mediaInfoInvokeStr = "mediainfo";

But it may also need a fix-up for the Docker container which puts the binary elsewhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions