Skip to content

Commit

Permalink
Update doc to specify that we support v1, v2 and v4 timecode file
Browse files Browse the repository at this point in the history
  • Loading branch information
moi15moi committed Aug 14, 2024
1 parent e062253 commit 590809a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions muxtools/audio/extractors.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class Trimmer(Trimmer):
:param trim: Can be a single trim or a sequence of trims.
:param trim_use_ms: Will use milliseconds instead of frame numbers
:param fps: Fps fraction that will be used for the conversion. Also accepts a timecode (v2) file.
:param fps: Fps fraction that will be used for the conversion. Also accepts a timecode (v1, v2, v4) file.
:param preserve_delay: Will preserve existing container delay
:param num_frames: Total number of frames used for calculations
:param output: Custom output. Can be a dir or a file.
Expand Down Expand Up @@ -302,7 +302,7 @@ class Sox(Trimmer):
:param trim: List of Trims or a single Trim, which is a Tuple of two frame numbers or milliseconds
:param preserve_delay: Keeps existing container delay if True
:param trim_use_ms: Will use milliseconds instead of frame numbers
:param fps: The fps fraction used for the calculations. Also accepts a timecode (v2) file.
:param fps: The fps fraction used for the calculations. Also accepts a timecode (v1, v2, v4) file.
:param num_frames: Total number of frames used for calculations
:param output: Custom output. Can be a dir or a file.
Do not specify an extension unless you know what you're doing.
Expand Down
2 changes: 1 addition & 1 deletion muxtools/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def do_audio(
:param fileIn: Input file
:param track: Audio track number
:param trims: Frame ranges to trim and/or combine, e.g. (24, -24) or [(24, 500), (700, 900)]
:param fps: FPS Fraction used for the conversion to time. Also accepts a timecode (v2) file.
:param fps: FPS Fraction used for the conversion to time. Also accepts a timecode (v1, v2, v4) file.
:param num_frames: Total number of frames, used for negative numbers in trims
:param extractor: Tool used to extract the audio
:param trimmer: Tool used to trim the audio
Expand Down
6 changes: 3 additions & 3 deletions muxtools/misc/chapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(
Convenience class for chapters
:param chapter_source: Input either txt with ogm chapters, xml or (a list of) self defined chapters.
:param fps: Needed for timestamp convertion. Assumes 24000/1001 by default. Also accepts a timecode (v2) file.
:param fps: Needed for timestamp convertion. Assumes 24000/1001 by default. Also accepts a timecode (v1, v2, v4) file.
:param _print: Prints chapters after parsing and after trimming.
"""
self.fps = fps
Expand Down Expand Up @@ -205,7 +205,7 @@ def from_sub(
Extract chapters from an ass file or a SubFile.
:param file: Input ass file or SubFile
:param fps: FPS passed to the chapter class for further operations. Also accepts a timecode (v2) file.
:param fps: FPS passed to the chapter class for further operations. Also accepts a timecode (v1, v2, v4) file.
:param use_actor_field: Uses the actor field instead of the effect field for identification.
:param markers: Markers to check for.
:param _print: Prints the chapters after parsing
Expand Down Expand Up @@ -251,7 +251,7 @@ def from_mkv(file: PathLike, fps: Fraction | PathLike = Fraction(24000, 1001), _
Extract chapters from mkv.
:param file: Input mkv file
:param fps: FPS passed to the chapter class for further operations. Also accepts a timecode (v2) file.
:param fps: FPS passed to the chapter class for further operations. Also accepts a timecode (v1, v2, v4) file.
:param _print: Prints the chapters after parsing
"""
caller = "Chapters.from_mkv"
Expand Down
8 changes: 4 additions & 4 deletions muxtools/subtitle/sub.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def shift_0(
This does not currently exactly reproduce the aegisub behaviour but it should have the same effect.
:param fps: The fps fraction used for conversions. Also accepts a timecode (v2) file.
:param fps: The fps fraction used for conversions. Also accepts a timecode (v1, v2, v4) file.
:param allowed_styles: A list of style names this will run on. Will run on every line if None.
"""

Expand Down Expand Up @@ -327,7 +327,7 @@ def merge(
:param sync: Can be None to not adjust timing at all, an int for a frame number or a string for a syncpoint name.
:param sync2: The syncpoint you want to use for the second file.
This is needed if you specified a frame for sync and still want to use a specific syncpoint.
:param fps: The fps used for time calculations. Also accepts a timecode (v2) file.
:param fps: The fps used for time calculations. Also accepts a timecode (v1, v2, v4) file.
:param use_actor_field: Checks the actor field instead of effect for the names if True.
:param no_error: Don't error and warn instead if syncpoint not found.
"""
Expand Down Expand Up @@ -640,7 +640,7 @@ def shift(self: SubFileSelf, frames: int, fps: Fraction | PathLike = Fraction(24
Shifts all lines by any frame number.
:param frames: Number of frames to shift by
:param fps: FPS needed for the timing calculations. Also accepts a timecode (v2) file.
:param fps: FPS needed for the timing calculations. Also accepts a timecode (v1, v2, v4) file.
:param delete_before_zero: Delete lines that would be before 0 after shifting.
"""

Expand Down Expand Up @@ -695,7 +695,7 @@ def from_srt(
:param file: Input srt file
:param an8_all_caps: Automatically an8 every full caps line with over 7 characters because they're usually signs.
:param style_all_caps: Also set the style of these lines to "Sign" wether it exists or not.
:param fps: FPS needed for the time conversion. Also accepts a timecode (v2) file.
:param fps: FPS needed for the time conversion. Also accepts a timecode (v1, v2, v4) file.
:param encoding: Encoding used to read the file. Defaults to UTF8.
"""
caller = "SubFile.from_srt"
Expand Down
2 changes: 1 addition & 1 deletion muxtools/utils/parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def parse_chapters_bdmv(
Attempts to parse chapters from the bluray metadata
:param src: The m2ts file you're currently using
:param clip_fps: The fps of the clip. Also accepts a timecode (v2) file.
:param clip_fps: The fps of the clip. Also accepts a timecode (v1, v2, v4) file.
:param clip_frames: Total frames of the clip
:param _print: Prints the chapters after parsing if true
Expand Down

0 comments on commit 590809a

Please sign in to comment.