muxtools.muxing.muxfiles
VideoFile
VideoFile(file: PathLike | Sequence[PathLike] | GlobSearch, container_delay: int = 0, source: PathLike | None = None, tags: dict[str, str] | None = None)
Bases: MuxingFile
Source code in
muxtools/muxing/muxfiles.py
to_track
to_track(name: str = '', lang: str = 'ja', default: bool = True, forced: bool = False, timecode_file: PathLike | GlobSearch | None = None, crop: int | tuple[int, int] | tuple[int, int, int, int] | None = None, args: list[str] = [], tags: dict[str, str] | None = None, **kwargs: Any) -> VideoTrack
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
timecode_file
|
PathLike | GlobSearch | None
|
Pass a path for proper vfr playback if needed. |
None
|
crop
|
int | tuple[int, int] | tuple[int, int, int, int] | None
|
Container based cropping with (horizontal, vertical) or (left, top, right, bottom). Will crop the same on all sides if passed a single integer. |
None
|
Source code in
muxtools/muxing/muxfiles.py
AudioFile
AudioFile(file: PathLike | Sequence[PathLike] | GlobSearch, container_delay: int = 0, source: PathLike | None = None, tags: dict[str, str] | None = None, duration: timedelta | None = None)
Bases: MuxingFile
Source code in
muxtools/muxing/muxfiles.py
to_mka
Muxes the AudioFile to an MKA file with specified container delay applied.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
delete
|
bool
|
Deletes the current file after muxing |
True
|
Returns:
| Type | Description |
|---|---|
Path
|
Path object of the resulting mka file |