LinuxCommandLibrary

gst-typefind-0.10

Determine the media type of a file

SYNOPSIS

gst-typefind-0.10 [-v | --verbose] [-s SEEK_SIZE | --seek-size=SEEK_SIZE] [FILE | -]

PARAMETERS

-v, --verbose
    Output all detected MIME types sorted by probability rank

-s SEEK_SIZE, --seek-size=SEEK_SIZE
    Bytes to scan from file start (default: 65536)

--help
    Show help message

--version
    Display version information

DESCRIPTION

The gst-typefind-0.10 command is a utility from the GStreamer 0.10 multimedia framework designed to identify the media type (MIME type) of a file or data stream.

It analyzes the beginning of a file or stdin input using GStreamer's typefinding plugins, which examine headers, magic bytes, and patterns to determine formats like audio/mpeg, video/x-h264, or image/png.

By default, it outputs the most probable MIME type with its probability score. This is useful for scripting, media processing pipelines, or integrating with other tools to handle files without extensions.

The tool relies on installed GStreamer 0.10 plugins; unsupported formats yield 'application/octet-stream'. It's lightweight and fast for quick type checks.

Note: GStreamer 0.10 is legacy; modern systems prefer gst-typefind-1.0.

CAVEATS

Legacy GStreamer 0.10 tool; limited plugin support for modern codecs. Use gst-typefind-1.0 on current systems. No network stream support.

EXAMPLE

gst-typefind-0.10 video.mp4
Outputs: video/quicktime; probability=1.0

gst-typefind-0.10 -v - (from stdin, verbose)

OUTPUT FORMAT

MIME;probability=RANK (e.g., audio/mpeg;probability=1.0). Rank 1 is highest.

HISTORY

Part of GStreamer 0.10 series (2008-2012), introduced for pipeline debugging and scripting. Superseded by 1.x in 2012; 0.10 plugins EOL.

SEE ALSO

Copied to clipboard