vsmuxtools.extension.chapters
Chapters
Chapters(chapter_source: src_file | PathLike | GlobSearch | Chapter | list[Chapter], timesource: TimeSourceT = None, timescale: TimeScaleT = TimeScale.MKV, _print: bool = True)
Bases: Chapters
Convenience class for chapters
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
chapter_source
|
src_file | PathLike | GlobSearch | Chapter | list[Chapter]
|
Input either src_file/FileInfo, txt with ogm chapters, xml or (a list of) self defined chapters. A src_file may have at most one trim range. |
required |
timesource
|
TimeSourceT
|
The source of timestamps/timecodes. For details check the docstring on the type. Will be taken from input if it's a src_file and assume the usual 24 if not. |
None
|
timescale
|
TimeScaleT
|
Unit of time (in seconds) in terms of which frame timestamps are represented. For details check the docstring on the type. |
MKV
|
_print
|
bool
|
Prints chapters after parsing and after trimming. |
True
|