muxtools.helpers.bsf.bsf_mpeg2
apply_mpeg2_bsf
apply_mpeg2_bsf(fileIn: PathLike, fileOut: Path | None = None, dar: MPEG2_DAR | str | None = None, fps: MPEG2_FPS | str | None = None, format: BSF_Format | int | None = None, primaries: BSF_Primaries | int | None = None, transfer: BSF_Transfer | int | None = None, matrix: BSF_Matrix | int | None = None, quiet: bool = True) -> Path
A helper for the FFMpeg mpeg2_metadata bitstream filter.
None values will do nothing to the respective metadata flags.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
fileIn
|
PathLike
|
The file to modify |
required |
dar
|
MPEG2_DAR | str | None
|
Set the display aspect ratio in the stream |
None
|
fps
|
MPEG2_FPS | str | None
|
Set the frame rate in the stream |
None
|
format
|
BSF_Format | int | None
|
Set the video format in the stream |
None
|
primaries
|
BSF_Primaries | int | None
|
Set the color primaries in the stream |
None
|
transfer
|
BSF_Transfer | int | None
|
Set the transfer characteristics in the stream |
None
|
matrix
|
BSF_Matrix | int | None
|
Set the matrix coefficients in the stream |
None
|
quiet
|
bool
|
Suppresses the output of ffmpeg |
True
|
Returns:
| Type | Description |
|---|---|
Path
|
The output path which may be different if a CRC was detected and swapped. |