mkvpropedit
MKVPropEdit
Source code in .venv/lib/python3.11/site-packages/muxtools/helpers/propedit.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 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 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 |
|
__init__(fileIn, track_statistics=None, chapters=None, tags=None)
Creates the mkvpropedit helper including any modifications possible on the global scope.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
fileIn
|
PathLike
|
File to edit. |
required |
track_statistics
|
bool | None
|
Whether to update or remove track statistics like bitrate. |
None
|
chapters
|
PathLike | Chapters
|
Chapters to add to the file. This can be any txt or xml file in the same formats that mkvmerge takes. It can also take a muxtools Chapters object and create a txt from that. An empty string will remove any chapters. |
None
|
tags
|
dict[str, str] | None
|
Global tags to add/replace. An empty string as value will remove a tag. An empty dict will remove any global tags. |
None
|
Source code in .venv/lib/python3.11/site-packages/muxtools/helpers/propedit.py
info(title=None, date=None, muxing_application=None, writing_application=None, **kwargs)
Edit properties for the main info section.
None
always means the property will be left untouched while an empty string will remove the property outright.
Bool values are converted to their respective integer to be passed on to mkvpropedit.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
title
|
str | None
|
The title for the whole movie |
None
|
date
|
str | None
|
The date the file was created |
None
|
muxing_application
|
str | None
|
The name of the application or library used for multiplexing the file |
None
|
writing_application
|
str | None
|
The name of the application or library used for writing the file |
None
|
kwargs
|
bool | str | None
|
Any other properties to set or remove. Check out the 'Segment information' section in |
{}
|
Source code in .venv/lib/python3.11/site-packages/muxtools/helpers/propedit.py
video_track(name=None, language=None, default=None, forced=None, tags=None, crop=None, **kwargs)
Edit properties for the next video track in the file.
None
always means the property will be left untouched while an empty string will remove the property outright.
Bool values are converted to their respective integer to be passed on to mkvpropedit.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str | None
|
A human-readable track name |
None
|
language
|
str | None
|
Specifies the language of the track |
None
|
default
|
bool | None
|
Specifies whether a track should be eligible for automatic selection |
None
|
forced
|
bool | None
|
Specifies whether a track should be played with tracks of a different type but same language |
None
|
tags
|
dict[str, str] | None
|
Any custom/arbitrary tags to set for the track. An empty string as value will remove a tag An empty dict will remove any custom tags. |
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
|
kwargs
|
bool | str | None
|
Any other properties to set or remove. Check out the 'Track headers' section in |
{}
|
Source code in .venv/lib/python3.11/site-packages/muxtools/helpers/propedit.py
audio_track(name=None, language=None, default=None, forced=None, tags=None, **kwargs)
Edit properties for the next audio track in the file.
None
always means the property will be left untouched while an empty string will remove the property outright.
Bool values are converted to their respective integer to be passed on to mkvpropedit.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str | None
|
A human-readable track name |
None
|
language
|
str | None
|
Specifies the language of the track |
None
|
default
|
bool | None
|
Specifies whether a track should be eligible for automatic selection |
None
|
forced
|
bool | None
|
Specifies whether a track should be played with tracks of a different type but same language |
None
|
tags
|
dict[str, str] | None
|
Any custom/arbitrary tags to set for the track. An empty string as value will remove a tag. An empty dict will remove any custom tags. |
None
|
kwargs
|
bool | str | None
|
Any other properties to set or remove. Check out the 'Track headers' section in |
{}
|
Source code in .venv/lib/python3.11/site-packages/muxtools/helpers/propedit.py
sub_track(name=None, language=None, default=None, forced=None, tags=None, **kwargs)
Edit properties for the next subtitle track in the file.
None
always means the property will be left untouched while an empty string will remove the property outright.
Bool values are converted to their respective integer to be passed on to mkvpropedit.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str | None
|
A human-readable track name |
None
|
language
|
str | None
|
Specifies the language of the track |
None
|
default
|
bool | None
|
Specifies whether a track should be eligible for automatic selection |
None
|
forced
|
bool | None
|
Specifies whether a track should be played with tracks of a different type but same language |
None
|
tags
|
dict[str, str] | None
|
Any custom/arbitrary tags to set for the track. An empty string as value will remove a tag. An empty dict will remove any custom tags. |
None
|
kwargs
|
bool | str | None
|
Any other properties to set or remove. Check out the 'Track headers' section in |
{}
|
Source code in .venv/lib/python3.11/site-packages/muxtools/helpers/propedit.py
run(quiet=True, error_on_failure=True)
Run the mkvpropedit process.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
quiet
|
bool
|
Suppresses the output. The stdout will still be printed on failure regardless of this setting. |
True
|
error_on_failure
|
bool
|
Raise an exception on failure. Otherwise this function will return a bool indicating the success. |
True
|