muxtools.utils.parsing
parse_ogm
parse_xml
parse_m2ts_path
Parses actual source location from a dgi file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dgiFile
|
Path
|
Input file |
required |
Returns:
| Type | Description |
|---|---|
Path
|
Path of source file |
Source code in
muxtools/utils/parsing.py
parse_chapters_bdmv
parse_chapters_bdmv(src: PathLike, clip_fps: Fraction | PathLike = Fraction(24000, 1001), clip_frames: int = -1, _print: bool = False) -> list[Chapter]
Attempts to parse chapters from the bluray metadata
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
src
|
PathLike
|
The m2ts file you're currently using |
required |
clip_fps
|
Fraction | PathLike
|
The fps of the clip. Also accepts a timestamps (v1/v2/v4) file. |
Fraction(24000, 1001)
|
clip_frames
|
int
|
Total frames of the clip |
-1
|
_print
|
bool
|
Prints the chapters after parsing if true |
False
|
Returns:
| Type | Description |
|---|---|
list[Chapter]
|
List of parsed chapters |
Source code in
muxtools/utils/parsing.py
149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 | |