MKVAttachment

class pymkv.MKVAttachment(file_path: str, name: str | None = None, description: str | None = None, attach_once: bool | None = False)

A class that represents an MKV attachment for an MKVFile object.

Parameters:
  • file_path (str) – The path to the attachment file.

  • name (str, optional) – The name that will be given to the attachment when muxed into a file.

  • description (str, optional) – The description that will be given to the attachment when muxed into a file.

  • attach_once (bool, optional) – Determines if the attachment should be added to all split files or only the first. Default is False, which will attach to all files.

mime_type

The attachment’s MIME type. The type will be guessed when file_path is set.

Type:

str

name

The name that will be given to the attachment when muxed into a file.

Type:

str

description

The description that will be given to the attachment when muxed into a file.

Type:

str

attach_once

Determines if the attachment should be added to all split files or only the first. Default is False, which will attach to all files.

Type:

bool

property file_path: str

The path to the attachment file.

Raises:

FileNotFoundError – Raised if file_path does not exist.

Type:

str