typed-ffmpeg-compatible 3.5.1__py3-none-any.whl → 3.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- typed_ffmpeg/__init__.py +4 -1
- typed_ffmpeg/_version.py +2 -2
- typed_ffmpeg/base.py +4 -1
- typed_ffmpeg/codecs/__init__.py +2 -0
- typed_ffmpeg/codecs/decoders.py +1852 -1853
- typed_ffmpeg/codecs/encoders.py +2001 -1782
- typed_ffmpeg/codecs/schema.py +6 -12
- typed_ffmpeg/common/__init__.py +1 -0
- typed_ffmpeg/common/cache.py +9 -6
- typed_ffmpeg/common/schema.py +11 -0
- typed_ffmpeg/common/serialize.py +13 -7
- typed_ffmpeg/compile/__init__.py +1 -0
- typed_ffmpeg/compile/compile_cli.py +55 -8
- typed_ffmpeg/compile/compile_json.py +4 -0
- typed_ffmpeg/compile/compile_python.py +15 -0
- typed_ffmpeg/compile/context.py +15 -4
- typed_ffmpeg/compile/validate.py +9 -8
- typed_ffmpeg/dag/factory.py +2 -0
- typed_ffmpeg/dag/global_runnable/__init__.py +1 -0
- typed_ffmpeg/dag/global_runnable/global_args.py +2 -2
- typed_ffmpeg/dag/global_runnable/runnable.py +51 -11
- typed_ffmpeg/dag/io/__init__.py +1 -0
- typed_ffmpeg/dag/io/_input.py +20 -5
- typed_ffmpeg/dag/io/_output.py +24 -9
- typed_ffmpeg/dag/io/output_args.py +21 -7
- typed_ffmpeg/dag/nodes.py +20 -0
- typed_ffmpeg/dag/schema.py +19 -6
- typed_ffmpeg/dag/utils.py +2 -2
- typed_ffmpeg/exceptions.py +2 -1
- typed_ffmpeg/expressions.py +884 -0
- typed_ffmpeg/ffprobe/__init__.py +1 -0
- typed_ffmpeg/ffprobe/parse.py +7 -1
- typed_ffmpeg/ffprobe/probe.py +3 -1
- typed_ffmpeg/ffprobe/schema.py +83 -1
- typed_ffmpeg/ffprobe/xml2json.py +8 -2
- typed_ffmpeg/filters.py +540 -631
- typed_ffmpeg/formats/__init__.py +2 -0
- typed_ffmpeg/formats/demuxers.py +1869 -1921
- typed_ffmpeg/formats/muxers.py +1382 -1107
- typed_ffmpeg/formats/schema.py +6 -12
- typed_ffmpeg/info.py +8 -0
- typed_ffmpeg/options/__init__.py +15 -0
- typed_ffmpeg/options/codec.py +711 -0
- typed_ffmpeg/options/format.py +196 -0
- typed_ffmpeg/options/framesync.py +43 -0
- typed_ffmpeg/options/timeline.py +22 -0
- typed_ffmpeg/schema.py +15 -0
- typed_ffmpeg/sources.py +392 -381
- typed_ffmpeg/streams/__init__.py +2 -0
- typed_ffmpeg/streams/audio.py +1071 -882
- typed_ffmpeg/streams/av.py +9 -3
- typed_ffmpeg/streams/subtitle.py +3 -3
- typed_ffmpeg/streams/video.py +1873 -1725
- typed_ffmpeg/types.py +3 -2
- typed_ffmpeg/utils/__init__.py +1 -0
- typed_ffmpeg/utils/escaping.py +8 -4
- typed_ffmpeg/utils/frozendict.py +31 -1
- typed_ffmpeg/utils/lazy_eval/__init__.py +1 -0
- typed_ffmpeg/utils/lazy_eval/operator.py +75 -27
- typed_ffmpeg/utils/lazy_eval/schema.py +176 -4
- typed_ffmpeg/utils/run.py +2 -0
- typed_ffmpeg/utils/snapshot.py +3 -2
- typed_ffmpeg/utils/typing.py +2 -1
- typed_ffmpeg/utils/view.py +2 -1
- {typed_ffmpeg_compatible-3.5.1.dist-info → typed_ffmpeg_compatible-3.6.dist-info}/METADATA +1 -1
- typed_ffmpeg_compatible-3.6.dist-info/RECORD +73 -0
- typed_ffmpeg_compatible-3.5.1.dist-info/RECORD +0 -67
- {typed_ffmpeg_compatible-3.5.1.dist-info → typed_ffmpeg_compatible-3.6.dist-info}/WHEEL +0 -0
- {typed_ffmpeg_compatible-3.5.1.dist-info → typed_ffmpeg_compatible-3.6.dist-info}/entry_points.txt +0 -0
- {typed_ffmpeg_compatible-3.5.1.dist-info → typed_ffmpeg_compatible-3.6.dist-info}/licenses/LICENSE +0 -0
- {typed_ffmpeg_compatible-3.5.1.dist-info → typed_ffmpeg_compatible-3.6.dist-info}/top_level.txt +0 -0
typed_ffmpeg/formats/muxers.py
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
# NOTE: this file is auto-generated, do not modify
|
2
|
+
"""FFmpeg muxers."""
|
3
|
+
|
2
4
|
from typing import Literal
|
3
5
|
|
4
6
|
from ..utils.frozendict import merge
|
@@ -33,7 +35,7 @@ def _3g2(
|
|
33
35
|
movie_timescale: int | None = None,
|
34
36
|
) -> FFMpegMuxerOption:
|
35
37
|
"""
|
36
|
-
3GP2 (3GPP2 file format)
|
38
|
+
3GP2 (3GPP2 file format).
|
37
39
|
|
38
40
|
Args:
|
39
41
|
movflags: MOV muxer flags (default 0)
|
@@ -64,37 +66,36 @@ def _3g2(
|
|
64
66
|
|
65
67
|
Returns:
|
66
68
|
the set codec options
|
69
|
+
|
67
70
|
"""
|
68
71
|
return FFMpegMuxerOption(
|
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
|
-
)
|
72
|
+
merge({
|
73
|
+
"movflags": movflags,
|
74
|
+
"moov_size": moov_size,
|
75
|
+
"rtpflags": rtpflags,
|
76
|
+
"skip_iods": skip_iods,
|
77
|
+
"iods_audio_profile": iods_audio_profile,
|
78
|
+
"iods_video_profile": iods_video_profile,
|
79
|
+
"frag_duration": frag_duration,
|
80
|
+
"min_frag_duration": min_frag_duration,
|
81
|
+
"frag_size": frag_size,
|
82
|
+
"ism_lookahead": ism_lookahead,
|
83
|
+
"video_track_timescale": video_track_timescale,
|
84
|
+
"brand": brand,
|
85
|
+
"use_editlist": use_editlist,
|
86
|
+
"fragment_index": fragment_index,
|
87
|
+
"mov_gamma": mov_gamma,
|
88
|
+
"frag_interleave": frag_interleave,
|
89
|
+
"encryption_scheme": encryption_scheme,
|
90
|
+
"encryption_key": encryption_key,
|
91
|
+
"encryption_kid": encryption_kid,
|
92
|
+
"use_stream_ids_as_track_ids": use_stream_ids_as_track_ids,
|
93
|
+
"write_btrt": write_btrt,
|
94
|
+
"write_tmcd": write_tmcd,
|
95
|
+
"write_prft": write_prft,
|
96
|
+
"empty_hdlr_name": empty_hdlr_name,
|
97
|
+
"movie_timescale": movie_timescale,
|
98
|
+
})
|
98
99
|
)
|
99
100
|
|
100
101
|
|
@@ -126,7 +127,7 @@ def _3gp(
|
|
126
127
|
movie_timescale: int | None = None,
|
127
128
|
) -> FFMpegMuxerOption:
|
128
129
|
"""
|
129
|
-
3GP (3GPP file format)
|
130
|
+
3GP (3GPP file format).
|
130
131
|
|
131
132
|
Args:
|
132
133
|
movflags: MOV muxer flags (default 0)
|
@@ -157,80 +158,78 @@ def _3gp(
|
|
157
158
|
|
158
159
|
Returns:
|
159
160
|
the set codec options
|
161
|
+
|
160
162
|
"""
|
161
163
|
return FFMpegMuxerOption(
|
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
|
-
)
|
164
|
+
merge({
|
165
|
+
"movflags": movflags,
|
166
|
+
"moov_size": moov_size,
|
167
|
+
"rtpflags": rtpflags,
|
168
|
+
"skip_iods": skip_iods,
|
169
|
+
"iods_audio_profile": iods_audio_profile,
|
170
|
+
"iods_video_profile": iods_video_profile,
|
171
|
+
"frag_duration": frag_duration,
|
172
|
+
"min_frag_duration": min_frag_duration,
|
173
|
+
"frag_size": frag_size,
|
174
|
+
"ism_lookahead": ism_lookahead,
|
175
|
+
"video_track_timescale": video_track_timescale,
|
176
|
+
"brand": brand,
|
177
|
+
"use_editlist": use_editlist,
|
178
|
+
"fragment_index": fragment_index,
|
179
|
+
"mov_gamma": mov_gamma,
|
180
|
+
"frag_interleave": frag_interleave,
|
181
|
+
"encryption_scheme": encryption_scheme,
|
182
|
+
"encryption_key": encryption_key,
|
183
|
+
"encryption_kid": encryption_kid,
|
184
|
+
"use_stream_ids_as_track_ids": use_stream_ids_as_track_ids,
|
185
|
+
"write_btrt": write_btrt,
|
186
|
+
"write_tmcd": write_tmcd,
|
187
|
+
"write_prft": write_prft,
|
188
|
+
"empty_hdlr_name": empty_hdlr_name,
|
189
|
+
"movie_timescale": movie_timescale,
|
190
|
+
})
|
191
191
|
)
|
192
192
|
|
193
193
|
|
194
194
|
def a64() -> FFMpegMuxerOption:
|
195
195
|
"""
|
196
|
-
a64 - video for Commodore 64
|
197
|
-
|
196
|
+
a64 - video for Commodore 64.
|
198
197
|
|
199
198
|
Returns:
|
200
199
|
the set codec options
|
200
|
+
|
201
201
|
"""
|
202
|
-
return FFMpegMuxerOption(
|
202
|
+
return FFMpegMuxerOption(merge({}))
|
203
203
|
|
204
204
|
|
205
205
|
def ac3() -> FFMpegMuxerOption:
|
206
206
|
"""
|
207
|
-
|
208
|
-
|
207
|
+
Raw AC-3.
|
209
208
|
|
210
209
|
Returns:
|
211
210
|
the set codec options
|
211
|
+
|
212
212
|
"""
|
213
|
-
return FFMpegMuxerOption(
|
213
|
+
return FFMpegMuxerOption(merge({}))
|
214
214
|
|
215
215
|
|
216
216
|
def ac4(
|
217
217
|
write_crc: bool | None = None,
|
218
218
|
) -> FFMpegMuxerOption:
|
219
219
|
"""
|
220
|
-
|
220
|
+
Raw AC-4.
|
221
221
|
|
222
222
|
Args:
|
223
223
|
write_crc: enable checksum (default false)
|
224
224
|
|
225
225
|
Returns:
|
226
226
|
the set codec options
|
227
|
+
|
227
228
|
"""
|
228
229
|
return FFMpegMuxerOption(
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
}
|
233
|
-
)
|
230
|
+
merge({
|
231
|
+
"write_crc": write_crc,
|
232
|
+
})
|
234
233
|
)
|
235
234
|
|
236
235
|
|
@@ -240,7 +239,7 @@ def adts(
|
|
240
239
|
write_mpeg2: bool | None = None,
|
241
240
|
) -> FFMpegMuxerOption:
|
242
241
|
"""
|
243
|
-
ADTS AAC (Advanced Audio Coding)
|
242
|
+
ADTS AAC (Advanced Audio Coding).
|
244
243
|
|
245
244
|
Args:
|
246
245
|
write_id3v2: Enable ID3v2 tag writing (default false)
|
@@ -249,27 +248,26 @@ def adts(
|
|
249
248
|
|
250
249
|
Returns:
|
251
250
|
the set codec options
|
251
|
+
|
252
252
|
"""
|
253
253
|
return FFMpegMuxerOption(
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
}
|
260
|
-
)
|
254
|
+
merge({
|
255
|
+
"write_id3v2": write_id3v2,
|
256
|
+
"write_apetag": write_apetag,
|
257
|
+
"write_mpeg2": write_mpeg2,
|
258
|
+
})
|
261
259
|
)
|
262
260
|
|
263
261
|
|
264
262
|
def adx() -> FFMpegMuxerOption:
|
265
263
|
"""
|
266
|
-
CRI ADX
|
267
|
-
|
264
|
+
CRI ADX.
|
268
265
|
|
269
266
|
Returns:
|
270
267
|
the set codec options
|
268
|
+
|
271
269
|
"""
|
272
|
-
return FFMpegMuxerOption(
|
270
|
+
return FFMpegMuxerOption(merge({}))
|
273
271
|
|
274
272
|
|
275
273
|
def aiff(
|
@@ -277,7 +275,7 @@ def aiff(
|
|
277
275
|
id3v2_version: int | None = None,
|
278
276
|
) -> FFMpegMuxerOption:
|
279
277
|
"""
|
280
|
-
Audio IFF
|
278
|
+
Audio IFF.
|
281
279
|
|
282
280
|
Args:
|
283
281
|
write_id3v2: Enable ID3 tags writing. (default false)
|
@@ -285,91 +283,89 @@ def aiff(
|
|
285
283
|
|
286
284
|
Returns:
|
287
285
|
the set codec options
|
286
|
+
|
288
287
|
"""
|
289
288
|
return FFMpegMuxerOption(
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
}
|
295
|
-
)
|
289
|
+
merge({
|
290
|
+
"write_id3v2": write_id3v2,
|
291
|
+
"id3v2_version": id3v2_version,
|
292
|
+
})
|
296
293
|
)
|
297
294
|
|
298
295
|
|
299
296
|
def alaw() -> FFMpegMuxerOption:
|
300
297
|
"""
|
301
|
-
PCM A-law
|
302
|
-
|
298
|
+
PCM A-law.
|
303
299
|
|
304
300
|
Returns:
|
305
301
|
the set codec options
|
302
|
+
|
306
303
|
"""
|
307
|
-
return FFMpegMuxerOption(
|
304
|
+
return FFMpegMuxerOption(merge({}))
|
308
305
|
|
309
306
|
|
310
307
|
def alp(
|
311
308
|
type: int | None | Literal["auto", "tun", "pcm"] = None,
|
312
309
|
) -> FFMpegMuxerOption:
|
313
310
|
"""
|
314
|
-
LEGO Racers ALP
|
311
|
+
LEGO Racers ALP.
|
315
312
|
|
316
313
|
Args:
|
317
314
|
type: set file type (from 0 to 2) (default auto)
|
318
315
|
|
319
316
|
Returns:
|
320
317
|
the set codec options
|
318
|
+
|
321
319
|
"""
|
322
320
|
return FFMpegMuxerOption(
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
}
|
327
|
-
)
|
321
|
+
merge({
|
322
|
+
"type": type,
|
323
|
+
})
|
328
324
|
)
|
329
325
|
|
330
326
|
|
331
327
|
def alsa() -> FFMpegMuxerOption:
|
332
328
|
"""
|
333
|
-
ALSA audio output
|
334
|
-
|
329
|
+
ALSA audio output.
|
335
330
|
|
336
331
|
Returns:
|
337
332
|
the set codec options
|
333
|
+
|
338
334
|
"""
|
339
|
-
return FFMpegMuxerOption(
|
335
|
+
return FFMpegMuxerOption(merge({}))
|
340
336
|
|
341
337
|
|
342
338
|
def amr() -> FFMpegMuxerOption:
|
343
339
|
"""
|
344
|
-
3GPP AMR
|
345
|
-
|
340
|
+
3GPP AMR.
|
346
341
|
|
347
342
|
Returns:
|
348
343
|
the set codec options
|
344
|
+
|
349
345
|
"""
|
350
|
-
return FFMpegMuxerOption(
|
346
|
+
return FFMpegMuxerOption(merge({}))
|
351
347
|
|
352
348
|
|
353
349
|
def amv() -> FFMpegMuxerOption:
|
354
350
|
"""
|
355
|
-
AMV
|
356
|
-
|
351
|
+
AMV.
|
357
352
|
|
358
353
|
Returns:
|
359
354
|
the set codec options
|
355
|
+
|
360
356
|
"""
|
361
|
-
return FFMpegMuxerOption(
|
357
|
+
return FFMpegMuxerOption(merge({}))
|
362
358
|
|
363
359
|
|
364
360
|
def apm() -> FFMpegMuxerOption:
|
365
361
|
"""
|
366
|
-
Ubisoft Rayman 2 APM
|
367
|
-
|
362
|
+
Ubisoft Rayman 2 APM.
|
368
363
|
|
369
364
|
Returns:
|
370
365
|
the set codec options
|
366
|
+
|
371
367
|
"""
|
372
|
-
return FFMpegMuxerOption(
|
368
|
+
return FFMpegMuxerOption(merge({}))
|
373
369
|
|
374
370
|
|
375
371
|
def apng(
|
@@ -377,7 +373,7 @@ def apng(
|
|
377
373
|
final_delay: str | None = None,
|
378
374
|
) -> FFMpegMuxerOption:
|
379
375
|
"""
|
380
|
-
Animated Portable Network Graphics
|
376
|
+
Animated Portable Network Graphics.
|
381
377
|
|
382
378
|
Args:
|
383
379
|
plays: Number of times to play the output: 0 - infinite loop, 1 - no loop (from 0 to 65535) (default 1)
|
@@ -385,37 +381,36 @@ def apng(
|
|
385
381
|
|
386
382
|
Returns:
|
387
383
|
the set codec options
|
384
|
+
|
388
385
|
"""
|
389
386
|
return FFMpegMuxerOption(
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
}
|
395
|
-
)
|
387
|
+
merge({
|
388
|
+
"plays": plays,
|
389
|
+
"final_delay": final_delay,
|
390
|
+
})
|
396
391
|
)
|
397
392
|
|
398
393
|
|
399
394
|
def aptx() -> FFMpegMuxerOption:
|
400
395
|
"""
|
401
|
-
|
402
|
-
|
396
|
+
Raw aptX (Audio Processing Technology for Bluetooth).
|
403
397
|
|
404
398
|
Returns:
|
405
399
|
the set codec options
|
400
|
+
|
406
401
|
"""
|
407
|
-
return FFMpegMuxerOption(
|
402
|
+
return FFMpegMuxerOption(merge({}))
|
408
403
|
|
409
404
|
|
410
405
|
def aptx_hd() -> FFMpegMuxerOption:
|
411
406
|
"""
|
412
|
-
|
413
|
-
|
407
|
+
Raw aptX HD (Audio Processing Technology for Bluetooth).
|
414
408
|
|
415
409
|
Returns:
|
416
410
|
the set codec options
|
411
|
+
|
417
412
|
"""
|
418
|
-
return FFMpegMuxerOption(
|
413
|
+
return FFMpegMuxerOption(merge({}))
|
419
414
|
|
420
415
|
|
421
416
|
def argo_asf(
|
@@ -424,7 +419,7 @@ def argo_asf(
|
|
424
419
|
name: str | None = None,
|
425
420
|
) -> FFMpegMuxerOption:
|
426
421
|
"""
|
427
|
-
Argonaut Games ASF
|
422
|
+
Argonaut Games ASF.
|
428
423
|
|
429
424
|
Args:
|
430
425
|
version_major: override file major version (from 0 to 65535) (default 2)
|
@@ -433,15 +428,14 @@ def argo_asf(
|
|
433
428
|
|
434
429
|
Returns:
|
435
430
|
the set codec options
|
431
|
+
|
436
432
|
"""
|
437
433
|
return FFMpegMuxerOption(
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
}
|
444
|
-
)
|
434
|
+
merge({
|
435
|
+
"version_major": version_major,
|
436
|
+
"version_minor": version_minor,
|
437
|
+
"name": name,
|
438
|
+
})
|
445
439
|
)
|
446
440
|
|
447
441
|
|
@@ -451,7 +445,7 @@ def argo_cvg(
|
|
451
445
|
reverb: bool | None = None,
|
452
446
|
) -> FFMpegMuxerOption:
|
453
447
|
"""
|
454
|
-
Argonaut Games CVG
|
448
|
+
Argonaut Games CVG.
|
455
449
|
|
456
450
|
Args:
|
457
451
|
skip_rate_check: skip sample rate check (default false)
|
@@ -460,58 +454,74 @@ def argo_cvg(
|
|
460
454
|
|
461
455
|
Returns:
|
462
456
|
the set codec options
|
457
|
+
|
463
458
|
"""
|
464
459
|
return FFMpegMuxerOption(
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
}
|
471
|
-
)
|
460
|
+
merge({
|
461
|
+
"skip_rate_check": skip_rate_check,
|
462
|
+
"loop": loop,
|
463
|
+
"reverb": reverb,
|
464
|
+
})
|
472
465
|
)
|
473
466
|
|
474
467
|
|
475
|
-
def asf(
|
468
|
+
def asf(
|
469
|
+
packet_size: int | None = None,
|
470
|
+
) -> FFMpegMuxerOption:
|
476
471
|
"""
|
477
|
-
ASF (Advanced / Active Streaming Format)
|
472
|
+
ASF (Advanced / Active Streaming Format).
|
478
473
|
|
474
|
+
Args:
|
475
|
+
packet_size: Packet size (from 100 to 65536) (default 3200)
|
479
476
|
|
480
477
|
Returns:
|
481
478
|
the set codec options
|
479
|
+
|
482
480
|
"""
|
483
|
-
return FFMpegMuxerOption(
|
481
|
+
return FFMpegMuxerOption(
|
482
|
+
merge({
|
483
|
+
"packet_size": packet_size,
|
484
|
+
})
|
485
|
+
)
|
484
486
|
|
485
487
|
|
486
|
-
def asf_stream(
|
488
|
+
def asf_stream(
|
489
|
+
packet_size: int | None = None,
|
490
|
+
) -> FFMpegMuxerOption:
|
487
491
|
"""
|
488
|
-
ASF (Advanced / Active Streaming Format)
|
492
|
+
ASF (Advanced / Active Streaming Format).
|
489
493
|
|
494
|
+
Args:
|
495
|
+
packet_size: Packet size (from 100 to 65536) (default 3200)
|
490
496
|
|
491
497
|
Returns:
|
492
498
|
the set codec options
|
499
|
+
|
493
500
|
"""
|
494
|
-
return FFMpegMuxerOption(
|
501
|
+
return FFMpegMuxerOption(
|
502
|
+
merge({
|
503
|
+
"packet_size": packet_size,
|
504
|
+
})
|
505
|
+
)
|
495
506
|
|
496
507
|
|
497
508
|
def ass(
|
498
509
|
ignore_readorder: bool | None = None,
|
499
510
|
) -> FFMpegMuxerOption:
|
500
511
|
"""
|
501
|
-
SSA (SubStation Alpha) subtitle
|
512
|
+
SSA (SubStation Alpha) subtitle.
|
502
513
|
|
503
514
|
Args:
|
504
515
|
ignore_readorder: write events immediately, even if they're out-of-order (default false)
|
505
516
|
|
506
517
|
Returns:
|
507
518
|
the set codec options
|
519
|
+
|
508
520
|
"""
|
509
521
|
return FFMpegMuxerOption(
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
}
|
514
|
-
)
|
522
|
+
merge({
|
523
|
+
"ignore_readorder": ignore_readorder,
|
524
|
+
})
|
515
525
|
)
|
516
526
|
|
517
527
|
|
@@ -520,7 +530,7 @@ def ast(
|
|
520
530
|
loopend: int | None = None,
|
521
531
|
) -> FFMpegMuxerOption:
|
522
532
|
"""
|
523
|
-
AST (Audio Stream)
|
533
|
+
AST (Audio Stream).
|
524
534
|
|
525
535
|
Args:
|
526
536
|
loopstart: Loopstart position in milliseconds. (from -1 to INT_MAX) (default -1)
|
@@ -528,26 +538,25 @@ def ast(
|
|
528
538
|
|
529
539
|
Returns:
|
530
540
|
the set codec options
|
541
|
+
|
531
542
|
"""
|
532
543
|
return FFMpegMuxerOption(
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
}
|
538
|
-
)
|
544
|
+
merge({
|
545
|
+
"loopstart": loopstart,
|
546
|
+
"loopend": loopend,
|
547
|
+
})
|
539
548
|
)
|
540
549
|
|
541
550
|
|
542
551
|
def au() -> FFMpegMuxerOption:
|
543
552
|
"""
|
544
|
-
Sun AU
|
545
|
-
|
553
|
+
Sun AU.
|
546
554
|
|
547
555
|
Returns:
|
548
556
|
the set codec options
|
557
|
+
|
549
558
|
"""
|
550
|
-
return FFMpegMuxerOption(
|
559
|
+
return FFMpegMuxerOption(merge({}))
|
551
560
|
|
552
561
|
|
553
562
|
def avi(
|
@@ -556,7 +565,7 @@ def avi(
|
|
556
565
|
flipped_raw_rgb: bool | None = None,
|
557
566
|
) -> FFMpegMuxerOption:
|
558
567
|
"""
|
559
|
-
AVI (Audio Video Interleaved)
|
568
|
+
AVI (Audio Video Interleaved).
|
560
569
|
|
561
570
|
Args:
|
562
571
|
reserve_index_space: reserve space (in bytes) at the beginning of the file for each stream index (from 0 to INT_MAX) (default 0)
|
@@ -565,15 +574,14 @@ def avi(
|
|
565
574
|
|
566
575
|
Returns:
|
567
576
|
the set codec options
|
577
|
+
|
568
578
|
"""
|
569
579
|
return FFMpegMuxerOption(
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
}
|
576
|
-
)
|
580
|
+
merge({
|
581
|
+
"reserve_index_space": reserve_index_space,
|
582
|
+
"write_channel_mask": write_channel_mask,
|
583
|
+
"flipped_raw_rgb": flipped_raw_rgb,
|
584
|
+
})
|
577
585
|
)
|
578
586
|
|
579
587
|
|
@@ -582,7 +590,7 @@ def avif(
|
|
582
590
|
loop: int | None = None,
|
583
591
|
) -> FFMpegMuxerOption:
|
584
592
|
"""
|
585
|
-
AVIF
|
593
|
+
AVIF.
|
586
594
|
|
587
595
|
Args:
|
588
596
|
movie_timescale: set movie timescale (from 1 to INT_MAX) (default 1000)
|
@@ -590,59 +598,58 @@ def avif(
|
|
590
598
|
|
591
599
|
Returns:
|
592
600
|
the set codec options
|
601
|
+
|
593
602
|
"""
|
594
603
|
return FFMpegMuxerOption(
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
}
|
600
|
-
)
|
604
|
+
merge({
|
605
|
+
"movie_timescale": movie_timescale,
|
606
|
+
"loop": loop,
|
607
|
+
})
|
601
608
|
)
|
602
609
|
|
603
610
|
|
604
611
|
def avm2() -> FFMpegMuxerOption:
|
605
612
|
"""
|
606
|
-
SWF (ShockWave Flash) (AVM2)
|
607
|
-
|
613
|
+
SWF (ShockWave Flash) (AVM2).
|
608
614
|
|
609
615
|
Returns:
|
610
616
|
the set codec options
|
617
|
+
|
611
618
|
"""
|
612
|
-
return FFMpegMuxerOption(
|
619
|
+
return FFMpegMuxerOption(merge({}))
|
613
620
|
|
614
621
|
|
615
622
|
def avs2() -> FFMpegMuxerOption:
|
616
623
|
"""
|
617
|
-
|
618
|
-
|
624
|
+
Raw AVS2-P2/IEEE1857.4 video.
|
619
625
|
|
620
626
|
Returns:
|
621
627
|
the set codec options
|
628
|
+
|
622
629
|
"""
|
623
|
-
return FFMpegMuxerOption(
|
630
|
+
return FFMpegMuxerOption(merge({}))
|
624
631
|
|
625
632
|
|
626
633
|
def avs3() -> FFMpegMuxerOption:
|
627
634
|
"""
|
628
|
-
AVS3-P2/IEEE1857.10
|
629
|
-
|
635
|
+
AVS3-P2/IEEE1857.10.
|
630
636
|
|
631
637
|
Returns:
|
632
638
|
the set codec options
|
639
|
+
|
633
640
|
"""
|
634
|
-
return FFMpegMuxerOption(
|
641
|
+
return FFMpegMuxerOption(merge({}))
|
635
642
|
|
636
643
|
|
637
644
|
def bit() -> FFMpegMuxerOption:
|
638
645
|
"""
|
639
|
-
G.729 BIT file format
|
640
|
-
|
646
|
+
G.729 BIT file format.
|
641
647
|
|
642
648
|
Returns:
|
643
649
|
the set codec options
|
650
|
+
|
644
651
|
"""
|
645
|
-
return FFMpegMuxerOption(
|
652
|
+
return FFMpegMuxerOption(merge({}))
|
646
653
|
|
647
654
|
|
648
655
|
def caca(
|
@@ -659,7 +666,7 @@ def caca(
|
|
659
666
|
| Literal["algorithms", "antialiases", "charsets", "colors"] = None,
|
660
667
|
) -> FFMpegMuxerOption:
|
661
668
|
"""
|
662
|
-
|
669
|
+
Caca (color ASCII art) output device.
|
663
670
|
|
664
671
|
Args:
|
665
672
|
window_size: set window forced size
|
@@ -674,44 +681,43 @@ def caca(
|
|
674
681
|
|
675
682
|
Returns:
|
676
683
|
the set codec options
|
684
|
+
|
677
685
|
"""
|
678
686
|
return FFMpegMuxerOption(
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
}
|
691
|
-
)
|
687
|
+
merge({
|
688
|
+
"window_size": window_size,
|
689
|
+
"window_title": window_title,
|
690
|
+
"driver": driver,
|
691
|
+
"algorithm": algorithm,
|
692
|
+
"antialias": antialias,
|
693
|
+
"charset": charset,
|
694
|
+
"color": color,
|
695
|
+
"list_drivers": list_drivers,
|
696
|
+
"list_dither": list_dither,
|
697
|
+
})
|
692
698
|
)
|
693
699
|
|
694
700
|
|
695
701
|
def caf() -> FFMpegMuxerOption:
|
696
702
|
"""
|
697
|
-
Apple CAF (Core Audio Format)
|
698
|
-
|
703
|
+
Apple CAF (Core Audio Format).
|
699
704
|
|
700
705
|
Returns:
|
701
706
|
the set codec options
|
707
|
+
|
702
708
|
"""
|
703
|
-
return FFMpegMuxerOption(
|
709
|
+
return FFMpegMuxerOption(merge({}))
|
704
710
|
|
705
711
|
|
706
712
|
def cavsvideo() -> FFMpegMuxerOption:
|
707
713
|
"""
|
708
|
-
|
709
|
-
|
714
|
+
Raw Chinese AVS (Audio Video Standard) video.
|
710
715
|
|
711
716
|
Returns:
|
712
717
|
the set codec options
|
718
|
+
|
713
719
|
"""
|
714
|
-
return FFMpegMuxerOption(
|
720
|
+
return FFMpegMuxerOption(merge({}))
|
715
721
|
|
716
722
|
|
717
723
|
def chromaprint(
|
@@ -720,7 +726,7 @@ def chromaprint(
|
|
720
726
|
fp_format: int | None | Literal["raw", "compressed", "base64"] = None,
|
721
727
|
) -> FFMpegMuxerOption:
|
722
728
|
"""
|
723
|
-
Chromaprint
|
729
|
+
Chromaprint.
|
724
730
|
|
725
731
|
Args:
|
726
732
|
silence_threshold: threshold for detecting silence (from -1 to 32767) (default -1)
|
@@ -729,49 +735,48 @@ def chromaprint(
|
|
729
735
|
|
730
736
|
Returns:
|
731
737
|
the set codec options
|
738
|
+
|
732
739
|
"""
|
733
740
|
return FFMpegMuxerOption(
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
}
|
740
|
-
)
|
741
|
+
merge({
|
742
|
+
"silence_threshold": silence_threshold,
|
743
|
+
"algorithm": algorithm,
|
744
|
+
"fp_format": fp_format,
|
745
|
+
})
|
741
746
|
)
|
742
747
|
|
743
748
|
|
744
749
|
def codec2() -> FFMpegMuxerOption:
|
745
750
|
"""
|
746
|
-
codec2 .c2 muxer
|
747
|
-
|
751
|
+
codec2 .c2 muxer.
|
748
752
|
|
749
753
|
Returns:
|
750
754
|
the set codec options
|
755
|
+
|
751
756
|
"""
|
752
|
-
return FFMpegMuxerOption(
|
757
|
+
return FFMpegMuxerOption(merge({}))
|
753
758
|
|
754
759
|
|
755
760
|
def codec2raw() -> FFMpegMuxerOption:
|
756
761
|
"""
|
757
|
-
|
758
|
-
|
762
|
+
Raw codec2 muxer.
|
759
763
|
|
760
764
|
Returns:
|
761
765
|
the set codec options
|
766
|
+
|
762
767
|
"""
|
763
|
-
return FFMpegMuxerOption(
|
768
|
+
return FFMpegMuxerOption(merge({}))
|
764
769
|
|
765
770
|
|
766
771
|
def crc() -> FFMpegMuxerOption:
|
767
772
|
"""
|
768
|
-
CRC testing
|
769
|
-
|
773
|
+
CRC testing.
|
770
774
|
|
771
775
|
Returns:
|
772
776
|
the set codec options
|
777
|
+
|
773
778
|
"""
|
774
|
-
return FFMpegMuxerOption(
|
779
|
+
return FFMpegMuxerOption(merge({}))
|
775
780
|
|
776
781
|
|
777
782
|
def dash(
|
@@ -815,7 +820,7 @@ def dash(
|
|
815
820
|
update_period: int | None = None,
|
816
821
|
) -> FFMpegMuxerOption:
|
817
822
|
"""
|
818
|
-
DASH Muxer
|
823
|
+
DASH Muxer.
|
819
824
|
|
820
825
|
Args:
|
821
826
|
adaptation_sets: Adaptation sets. Syntax: id=0,streams=0,1,2 id=1,streams=3,4 and so on
|
@@ -857,181 +862,192 @@ def dash(
|
|
857
862
|
|
858
863
|
Returns:
|
859
864
|
the set codec options
|
865
|
+
|
860
866
|
"""
|
861
867
|
return FFMpegMuxerOption(
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
}
|
901
|
-
)
|
868
|
+
merge({
|
869
|
+
"adaptation_sets": adaptation_sets,
|
870
|
+
"window_size": window_size,
|
871
|
+
"extra_window_size": extra_window_size,
|
872
|
+
"seg_duration": seg_duration,
|
873
|
+
"frag_duration": frag_duration,
|
874
|
+
"frag_type": frag_type,
|
875
|
+
"remove_at_exit": remove_at_exit,
|
876
|
+
"use_template": use_template,
|
877
|
+
"use_timeline": use_timeline,
|
878
|
+
"single_file": single_file,
|
879
|
+
"single_file_name": single_file_name,
|
880
|
+
"init_seg_name": init_seg_name,
|
881
|
+
"media_seg_name": media_seg_name,
|
882
|
+
"utc_timing_url": utc_timing_url,
|
883
|
+
"method": method,
|
884
|
+
"http_user_agent": http_user_agent,
|
885
|
+
"http_persistent": http_persistent,
|
886
|
+
"hls_playlist": hls_playlist,
|
887
|
+
"hls_master_name": hls_master_name,
|
888
|
+
"streaming": streaming,
|
889
|
+
"timeout": timeout,
|
890
|
+
"index_correction": index_correction,
|
891
|
+
"format_options": format_options,
|
892
|
+
"global_sidx": global_sidx,
|
893
|
+
"dash_segment_type": dash_segment_type,
|
894
|
+
"ignore_io_errors": ignore_io_errors,
|
895
|
+
"lhls": lhls,
|
896
|
+
"ldash": ldash,
|
897
|
+
"master_m3u8_publish_rate": master_m3u8_publish_rate,
|
898
|
+
"write_prft": write_prft,
|
899
|
+
"mpd_profile": mpd_profile,
|
900
|
+
"http_opts": http_opts,
|
901
|
+
"target_latency": target_latency,
|
902
|
+
"min_playback_rate": min_playback_rate,
|
903
|
+
"max_playback_rate": max_playback_rate,
|
904
|
+
"update_period": update_period,
|
905
|
+
})
|
902
906
|
)
|
903
907
|
|
904
908
|
|
905
909
|
def data() -> FFMpegMuxerOption:
|
906
910
|
"""
|
907
|
-
|
908
|
-
|
911
|
+
Raw data.
|
909
912
|
|
910
913
|
Returns:
|
911
914
|
the set codec options
|
915
|
+
|
912
916
|
"""
|
913
|
-
return FFMpegMuxerOption(
|
917
|
+
return FFMpegMuxerOption(merge({}))
|
914
918
|
|
915
919
|
|
916
920
|
def daud() -> FFMpegMuxerOption:
|
917
921
|
"""
|
918
|
-
D-Cinema audio
|
919
|
-
|
922
|
+
D-Cinema audio.
|
920
923
|
|
921
924
|
Returns:
|
922
925
|
the set codec options
|
926
|
+
|
923
927
|
"""
|
924
|
-
return FFMpegMuxerOption(
|
928
|
+
return FFMpegMuxerOption(merge({}))
|
925
929
|
|
926
930
|
|
927
931
|
def dfpwm() -> FFMpegMuxerOption:
|
928
932
|
"""
|
929
|
-
|
930
|
-
|
933
|
+
Raw DFPWM1a.
|
931
934
|
|
932
935
|
Returns:
|
933
936
|
the set codec options
|
937
|
+
|
934
938
|
"""
|
935
|
-
return FFMpegMuxerOption(
|
939
|
+
return FFMpegMuxerOption(merge({}))
|
936
940
|
|
937
941
|
|
938
942
|
def dirac() -> FFMpegMuxerOption:
|
939
943
|
"""
|
940
|
-
|
941
|
-
|
944
|
+
Raw Dirac.
|
942
945
|
|
943
946
|
Returns:
|
944
947
|
the set codec options
|
948
|
+
|
945
949
|
"""
|
946
|
-
return FFMpegMuxerOption(
|
950
|
+
return FFMpegMuxerOption(merge({}))
|
947
951
|
|
948
952
|
|
949
953
|
def dnxhd() -> FFMpegMuxerOption:
|
950
954
|
"""
|
951
|
-
|
952
|
-
|
955
|
+
Raw DNxHD (SMPTE VC-3).
|
953
956
|
|
954
957
|
Returns:
|
955
958
|
the set codec options
|
959
|
+
|
956
960
|
"""
|
957
|
-
return FFMpegMuxerOption(
|
961
|
+
return FFMpegMuxerOption(merge({}))
|
958
962
|
|
959
963
|
|
960
964
|
def dts() -> FFMpegMuxerOption:
|
961
965
|
"""
|
962
|
-
|
963
|
-
|
966
|
+
Raw DTS.
|
964
967
|
|
965
968
|
Returns:
|
966
969
|
the set codec options
|
970
|
+
|
967
971
|
"""
|
968
|
-
return FFMpegMuxerOption(
|
972
|
+
return FFMpegMuxerOption(merge({}))
|
969
973
|
|
970
974
|
|
971
975
|
def dv() -> FFMpegMuxerOption:
|
972
976
|
"""
|
973
|
-
DV (Digital Video)
|
974
|
-
|
977
|
+
DV (Digital Video).
|
975
978
|
|
976
979
|
Returns:
|
977
980
|
the set codec options
|
981
|
+
|
978
982
|
"""
|
979
|
-
return FFMpegMuxerOption(
|
983
|
+
return FFMpegMuxerOption(merge({}))
|
980
984
|
|
981
985
|
|
982
|
-
def dvd(
|
986
|
+
def dvd(
|
987
|
+
muxrate: int | None = None,
|
988
|
+
preload: int | None = None,
|
989
|
+
) -> FFMpegMuxerOption:
|
983
990
|
"""
|
984
|
-
MPEG-2 PS (DVD VOB)
|
991
|
+
MPEG-2 PS (DVD VOB).
|
985
992
|
|
993
|
+
Args:
|
994
|
+
muxrate: (from 0 to 1.67772e+09) (default 0)
|
995
|
+
preload: Initial demux-decode delay in microseconds. (from 0 to INT_MAX) (default 500000)
|
986
996
|
|
987
997
|
Returns:
|
988
998
|
the set codec options
|
999
|
+
|
989
1000
|
"""
|
990
|
-
return FFMpegMuxerOption(
|
1001
|
+
return FFMpegMuxerOption(
|
1002
|
+
merge({
|
1003
|
+
"muxrate": muxrate,
|
1004
|
+
"preload": preload,
|
1005
|
+
})
|
1006
|
+
)
|
991
1007
|
|
992
1008
|
|
993
1009
|
def eac3() -> FFMpegMuxerOption:
|
994
1010
|
"""
|
995
|
-
|
996
|
-
|
1011
|
+
Raw E-AC-3.
|
997
1012
|
|
998
1013
|
Returns:
|
999
1014
|
the set codec options
|
1015
|
+
|
1000
1016
|
"""
|
1001
|
-
return FFMpegMuxerOption(
|
1017
|
+
return FFMpegMuxerOption(merge({}))
|
1002
1018
|
|
1003
1019
|
|
1004
1020
|
def evc() -> FFMpegMuxerOption:
|
1005
1021
|
"""
|
1006
|
-
|
1007
|
-
|
1022
|
+
Raw EVC video.
|
1008
1023
|
|
1009
1024
|
Returns:
|
1010
1025
|
the set codec options
|
1026
|
+
|
1011
1027
|
"""
|
1012
|
-
return FFMpegMuxerOption(
|
1028
|
+
return FFMpegMuxerOption(merge({}))
|
1013
1029
|
|
1014
1030
|
|
1015
1031
|
def f32be() -> FFMpegMuxerOption:
|
1016
1032
|
"""
|
1017
|
-
PCM 32-bit floating-point big-endian
|
1018
|
-
|
1033
|
+
PCM 32-bit floating-point big-endian.
|
1019
1034
|
|
1020
1035
|
Returns:
|
1021
1036
|
the set codec options
|
1037
|
+
|
1022
1038
|
"""
|
1023
|
-
return FFMpegMuxerOption(
|
1039
|
+
return FFMpegMuxerOption(merge({}))
|
1024
1040
|
|
1025
1041
|
|
1026
1042
|
def f32le() -> FFMpegMuxerOption:
|
1027
1043
|
"""
|
1028
|
-
PCM 32-bit floating-point little-endian
|
1029
|
-
|
1044
|
+
PCM 32-bit floating-point little-endian.
|
1030
1045
|
|
1031
1046
|
Returns:
|
1032
1047
|
the set codec options
|
1048
|
+
|
1033
1049
|
"""
|
1034
|
-
return FFMpegMuxerOption(
|
1050
|
+
return FFMpegMuxerOption(merge({}))
|
1035
1051
|
|
1036
1052
|
|
1037
1053
|
def f4v(
|
@@ -1062,7 +1078,7 @@ def f4v(
|
|
1062
1078
|
movie_timescale: int | None = None,
|
1063
1079
|
) -> FFMpegMuxerOption:
|
1064
1080
|
"""
|
1065
|
-
F4V Adobe Flash Video
|
1081
|
+
F4V Adobe Flash Video.
|
1066
1082
|
|
1067
1083
|
Args:
|
1068
1084
|
movflags: MOV muxer flags (default 0)
|
@@ -1093,60 +1109,59 @@ def f4v(
|
|
1093
1109
|
|
1094
1110
|
Returns:
|
1095
1111
|
the set codec options
|
1112
|
+
|
1096
1113
|
"""
|
1097
1114
|
return FFMpegMuxerOption(
|
1098
|
-
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1106
|
-
|
1107
|
-
|
1108
|
-
|
1109
|
-
|
1110
|
-
|
1111
|
-
|
1112
|
-
|
1113
|
-
|
1114
|
-
|
1115
|
-
|
1116
|
-
|
1117
|
-
|
1118
|
-
|
1119
|
-
|
1120
|
-
|
1121
|
-
|
1122
|
-
|
1123
|
-
|
1124
|
-
|
1125
|
-
}
|
1126
|
-
)
|
1115
|
+
merge({
|
1116
|
+
"movflags": movflags,
|
1117
|
+
"moov_size": moov_size,
|
1118
|
+
"rtpflags": rtpflags,
|
1119
|
+
"skip_iods": skip_iods,
|
1120
|
+
"iods_audio_profile": iods_audio_profile,
|
1121
|
+
"iods_video_profile": iods_video_profile,
|
1122
|
+
"frag_duration": frag_duration,
|
1123
|
+
"min_frag_duration": min_frag_duration,
|
1124
|
+
"frag_size": frag_size,
|
1125
|
+
"ism_lookahead": ism_lookahead,
|
1126
|
+
"video_track_timescale": video_track_timescale,
|
1127
|
+
"brand": brand,
|
1128
|
+
"use_editlist": use_editlist,
|
1129
|
+
"fragment_index": fragment_index,
|
1130
|
+
"mov_gamma": mov_gamma,
|
1131
|
+
"frag_interleave": frag_interleave,
|
1132
|
+
"encryption_scheme": encryption_scheme,
|
1133
|
+
"encryption_key": encryption_key,
|
1134
|
+
"encryption_kid": encryption_kid,
|
1135
|
+
"use_stream_ids_as_track_ids": use_stream_ids_as_track_ids,
|
1136
|
+
"write_btrt": write_btrt,
|
1137
|
+
"write_tmcd": write_tmcd,
|
1138
|
+
"write_prft": write_prft,
|
1139
|
+
"empty_hdlr_name": empty_hdlr_name,
|
1140
|
+
"movie_timescale": movie_timescale,
|
1141
|
+
})
|
1127
1142
|
)
|
1128
1143
|
|
1129
1144
|
|
1130
1145
|
def f64be() -> FFMpegMuxerOption:
|
1131
1146
|
"""
|
1132
|
-
PCM 64-bit floating-point big-endian
|
1133
|
-
|
1147
|
+
PCM 64-bit floating-point big-endian.
|
1134
1148
|
|
1135
1149
|
Returns:
|
1136
1150
|
the set codec options
|
1151
|
+
|
1137
1152
|
"""
|
1138
|
-
return FFMpegMuxerOption(
|
1153
|
+
return FFMpegMuxerOption(merge({}))
|
1139
1154
|
|
1140
1155
|
|
1141
1156
|
def f64le() -> FFMpegMuxerOption:
|
1142
1157
|
"""
|
1143
|
-
PCM 64-bit floating-point little-endian
|
1144
|
-
|
1158
|
+
PCM 64-bit floating-point little-endian.
|
1145
1159
|
|
1146
1160
|
Returns:
|
1147
1161
|
the set codec options
|
1162
|
+
|
1148
1163
|
"""
|
1149
|
-
return FFMpegMuxerOption(
|
1164
|
+
return FFMpegMuxerOption(merge({}))
|
1150
1165
|
|
1151
1166
|
|
1152
1167
|
def fbdev(
|
@@ -1154,7 +1169,7 @@ def fbdev(
|
|
1154
1169
|
yoffset: int | None = None,
|
1155
1170
|
) -> FFMpegMuxerOption:
|
1156
1171
|
"""
|
1157
|
-
Linux framebuffer
|
1172
|
+
Linux framebuffer.
|
1158
1173
|
|
1159
1174
|
Args:
|
1160
1175
|
xoffset: set x coordinate of top left corner (from INT_MIN to INT_MAX) (default 0)
|
@@ -1162,26 +1177,25 @@ def fbdev(
|
|
1162
1177
|
|
1163
1178
|
Returns:
|
1164
1179
|
the set codec options
|
1180
|
+
|
1165
1181
|
"""
|
1166
1182
|
return FFMpegMuxerOption(
|
1167
|
-
|
1168
|
-
|
1169
|
-
|
1170
|
-
|
1171
|
-
}
|
1172
|
-
)
|
1183
|
+
merge({
|
1184
|
+
"xoffset": xoffset,
|
1185
|
+
"yoffset": yoffset,
|
1186
|
+
})
|
1173
1187
|
)
|
1174
1188
|
|
1175
1189
|
|
1176
1190
|
def ffmetadata() -> FFMpegMuxerOption:
|
1177
1191
|
"""
|
1178
|
-
FFmpeg metadata in text
|
1179
|
-
|
1192
|
+
FFmpeg metadata in text.
|
1180
1193
|
|
1181
1194
|
Returns:
|
1182
1195
|
the set codec options
|
1196
|
+
|
1183
1197
|
"""
|
1184
|
-
return FFMpegMuxerOption(
|
1198
|
+
return FFMpegMuxerOption(merge({}))
|
1185
1199
|
|
1186
1200
|
|
1187
1201
|
def fifo(
|
@@ -1198,7 +1212,7 @@ def fifo(
|
|
1198
1212
|
timeshift: str | None = None,
|
1199
1213
|
) -> FFMpegMuxerOption:
|
1200
1214
|
"""
|
1201
|
-
FIFO queue pseudo-muxer
|
1215
|
+
FIFO queue pseudo-muxer.
|
1202
1216
|
|
1203
1217
|
Args:
|
1204
1218
|
fifo_format: Target muxer
|
@@ -1215,23 +1229,22 @@ def fifo(
|
|
1215
1229
|
|
1216
1230
|
Returns:
|
1217
1231
|
the set codec options
|
1232
|
+
|
1218
1233
|
"""
|
1219
1234
|
return FFMpegMuxerOption(
|
1220
|
-
|
1221
|
-
|
1222
|
-
|
1223
|
-
|
1224
|
-
|
1225
|
-
|
1226
|
-
|
1227
|
-
|
1228
|
-
|
1229
|
-
|
1230
|
-
|
1231
|
-
|
1232
|
-
|
1233
|
-
}
|
1234
|
-
)
|
1235
|
+
merge({
|
1236
|
+
"fifo_format": fifo_format,
|
1237
|
+
"queue_size": queue_size,
|
1238
|
+
"format_opts": format_opts,
|
1239
|
+
"drop_pkts_on_overflow": drop_pkts_on_overflow,
|
1240
|
+
"restart_with_keyframe": restart_with_keyframe,
|
1241
|
+
"attempt_recovery": attempt_recovery,
|
1242
|
+
"max_recovery_attempts": max_recovery_attempts,
|
1243
|
+
"recovery_wait_time": recovery_wait_time,
|
1244
|
+
"recovery_wait_streamtime": recovery_wait_streamtime,
|
1245
|
+
"recover_any_error": recover_any_error,
|
1246
|
+
"timeshift": timeshift,
|
1247
|
+
})
|
1235
1248
|
)
|
1236
1249
|
|
1237
1250
|
|
@@ -1241,7 +1254,7 @@ def fifo_test(
|
|
1241
1254
|
print_deinit_summary: bool | None = None,
|
1242
1255
|
) -> FFMpegMuxerOption:
|
1243
1256
|
"""
|
1244
|
-
Fifo test muxer
|
1257
|
+
Fifo test muxer.
|
1245
1258
|
|
1246
1259
|
Args:
|
1247
1260
|
write_header_ret: write_header() return value (from INT_MIN to INT_MAX) (default 0)
|
@@ -1250,69 +1263,67 @@ def fifo_test(
|
|
1250
1263
|
|
1251
1264
|
Returns:
|
1252
1265
|
the set codec options
|
1266
|
+
|
1253
1267
|
"""
|
1254
1268
|
return FFMpegMuxerOption(
|
1255
|
-
|
1256
|
-
|
1257
|
-
|
1258
|
-
|
1259
|
-
|
1260
|
-
}
|
1261
|
-
)
|
1269
|
+
merge({
|
1270
|
+
"write_header_ret": write_header_ret,
|
1271
|
+
"write_trailer_ret": write_trailer_ret,
|
1272
|
+
"print_deinit_summary": print_deinit_summary,
|
1273
|
+
})
|
1262
1274
|
)
|
1263
1275
|
|
1264
1276
|
|
1265
1277
|
def film_cpk() -> FFMpegMuxerOption:
|
1266
1278
|
"""
|
1267
|
-
Sega FILM / CPK
|
1268
|
-
|
1279
|
+
Sega FILM / CPK.
|
1269
1280
|
|
1270
1281
|
Returns:
|
1271
1282
|
the set codec options
|
1283
|
+
|
1272
1284
|
"""
|
1273
|
-
return FFMpegMuxerOption(
|
1285
|
+
return FFMpegMuxerOption(merge({}))
|
1274
1286
|
|
1275
1287
|
|
1276
1288
|
def filmstrip() -> FFMpegMuxerOption:
|
1277
1289
|
"""
|
1278
|
-
Adobe Filmstrip
|
1279
|
-
|
1290
|
+
Adobe Filmstrip.
|
1280
1291
|
|
1281
1292
|
Returns:
|
1282
1293
|
the set codec options
|
1294
|
+
|
1283
1295
|
"""
|
1284
|
-
return FFMpegMuxerOption(
|
1296
|
+
return FFMpegMuxerOption(merge({}))
|
1285
1297
|
|
1286
1298
|
|
1287
1299
|
def fits() -> FFMpegMuxerOption:
|
1288
1300
|
"""
|
1289
|
-
Flexible Image Transport System
|
1290
|
-
|
1301
|
+
Flexible Image Transport System.
|
1291
1302
|
|
1292
1303
|
Returns:
|
1293
1304
|
the set codec options
|
1305
|
+
|
1294
1306
|
"""
|
1295
|
-
return FFMpegMuxerOption(
|
1307
|
+
return FFMpegMuxerOption(merge({}))
|
1296
1308
|
|
1297
1309
|
|
1298
1310
|
def flac(
|
1299
1311
|
write_header: bool | None = None,
|
1300
1312
|
) -> FFMpegMuxerOption:
|
1301
1313
|
"""
|
1302
|
-
|
1314
|
+
Raw FLAC.
|
1303
1315
|
|
1304
1316
|
Args:
|
1305
1317
|
write_header: Write the file header (default true)
|
1306
1318
|
|
1307
1319
|
Returns:
|
1308
1320
|
the set codec options
|
1321
|
+
|
1309
1322
|
"""
|
1310
1323
|
return FFMpegMuxerOption(
|
1311
|
-
|
1312
|
-
|
1313
|
-
|
1314
|
-
}
|
1315
|
-
)
|
1324
|
+
merge({
|
1325
|
+
"write_header": write_header,
|
1326
|
+
})
|
1316
1327
|
)
|
1317
1328
|
|
1318
1329
|
|
@@ -1320,32 +1331,31 @@ def flv(
|
|
1320
1331
|
flvflags: str | None = None,
|
1321
1332
|
) -> FFMpegMuxerOption:
|
1322
1333
|
"""
|
1323
|
-
FLV (Flash Video)
|
1334
|
+
FLV (Flash Video).
|
1324
1335
|
|
1325
1336
|
Args:
|
1326
1337
|
flvflags: FLV muxer flags (default 0)
|
1327
1338
|
|
1328
1339
|
Returns:
|
1329
1340
|
the set codec options
|
1341
|
+
|
1330
1342
|
"""
|
1331
1343
|
return FFMpegMuxerOption(
|
1332
|
-
|
1333
|
-
|
1334
|
-
|
1335
|
-
}
|
1336
|
-
)
|
1344
|
+
merge({
|
1345
|
+
"flvflags": flvflags,
|
1346
|
+
})
|
1337
1347
|
)
|
1338
1348
|
|
1339
1349
|
|
1340
1350
|
def framecrc() -> FFMpegMuxerOption:
|
1341
1351
|
"""
|
1342
|
-
|
1343
|
-
|
1352
|
+
Framecrc testing.
|
1344
1353
|
|
1345
1354
|
Returns:
|
1346
1355
|
the set codec options
|
1356
|
+
|
1347
1357
|
"""
|
1348
|
-
return FFMpegMuxerOption(
|
1358
|
+
return FFMpegMuxerOption(merge({}))
|
1349
1359
|
|
1350
1360
|
|
1351
1361
|
def framehash(
|
@@ -1353,7 +1363,7 @@ def framehash(
|
|
1353
1363
|
format_version: int | None = None,
|
1354
1364
|
) -> FFMpegMuxerOption:
|
1355
1365
|
"""
|
1356
|
-
Per-frame hash testing
|
1366
|
+
Per-frame hash testing.
|
1357
1367
|
|
1358
1368
|
Args:
|
1359
1369
|
hash: set hash to use (default "sha256")
|
@@ -1361,14 +1371,13 @@ def framehash(
|
|
1361
1371
|
|
1362
1372
|
Returns:
|
1363
1373
|
the set codec options
|
1374
|
+
|
1364
1375
|
"""
|
1365
1376
|
return FFMpegMuxerOption(
|
1366
|
-
|
1367
|
-
|
1368
|
-
|
1369
|
-
|
1370
|
-
}
|
1371
|
-
)
|
1377
|
+
merge({
|
1378
|
+
"hash": hash,
|
1379
|
+
"format_version": format_version,
|
1380
|
+
})
|
1372
1381
|
)
|
1373
1382
|
|
1374
1383
|
|
@@ -1377,7 +1386,7 @@ def framemd5(
|
|
1377
1386
|
format_version: int | None = None,
|
1378
1387
|
) -> FFMpegMuxerOption:
|
1379
1388
|
"""
|
1380
|
-
Per-frame MD5 testing
|
1389
|
+
Per-frame MD5 testing.
|
1381
1390
|
|
1382
1391
|
Args:
|
1383
1392
|
hash: set hash to use (default "md5")
|
@@ -1385,59 +1394,58 @@ def framemd5(
|
|
1385
1394
|
|
1386
1395
|
Returns:
|
1387
1396
|
the set codec options
|
1397
|
+
|
1388
1398
|
"""
|
1389
1399
|
return FFMpegMuxerOption(
|
1390
|
-
|
1391
|
-
|
1392
|
-
|
1393
|
-
|
1394
|
-
}
|
1395
|
-
)
|
1400
|
+
merge({
|
1401
|
+
"hash": hash,
|
1402
|
+
"format_version": format_version,
|
1403
|
+
})
|
1396
1404
|
)
|
1397
1405
|
|
1398
1406
|
|
1399
1407
|
def g722() -> FFMpegMuxerOption:
|
1400
1408
|
"""
|
1401
|
-
|
1402
|
-
|
1409
|
+
Raw G.722.
|
1403
1410
|
|
1404
1411
|
Returns:
|
1405
1412
|
the set codec options
|
1413
|
+
|
1406
1414
|
"""
|
1407
|
-
return FFMpegMuxerOption(
|
1415
|
+
return FFMpegMuxerOption(merge({}))
|
1408
1416
|
|
1409
1417
|
|
1410
1418
|
def g723_1() -> FFMpegMuxerOption:
|
1411
1419
|
"""
|
1412
|
-
|
1413
|
-
|
1420
|
+
Raw G.723.1.
|
1414
1421
|
|
1415
1422
|
Returns:
|
1416
1423
|
the set codec options
|
1424
|
+
|
1417
1425
|
"""
|
1418
|
-
return FFMpegMuxerOption(
|
1426
|
+
return FFMpegMuxerOption(merge({}))
|
1419
1427
|
|
1420
1428
|
|
1421
1429
|
def g726() -> FFMpegMuxerOption:
|
1422
1430
|
"""
|
1423
|
-
|
1424
|
-
|
1431
|
+
Raw big-endian G.726 ("left-justified").
|
1425
1432
|
|
1426
1433
|
Returns:
|
1427
1434
|
the set codec options
|
1435
|
+
|
1428
1436
|
"""
|
1429
|
-
return FFMpegMuxerOption(
|
1437
|
+
return FFMpegMuxerOption(merge({}))
|
1430
1438
|
|
1431
1439
|
|
1432
1440
|
def g726le() -> FFMpegMuxerOption:
|
1433
1441
|
"""
|
1434
|
-
|
1435
|
-
|
1442
|
+
Raw little-endian G.726 ("right-justified").
|
1436
1443
|
|
1437
1444
|
Returns:
|
1438
1445
|
the set codec options
|
1446
|
+
|
1439
1447
|
"""
|
1440
|
-
return FFMpegMuxerOption(
|
1448
|
+
return FFMpegMuxerOption(merge({}))
|
1441
1449
|
|
1442
1450
|
|
1443
1451
|
def gif(
|
@@ -1445,7 +1453,7 @@ def gif(
|
|
1445
1453
|
final_delay: int | None = None,
|
1446
1454
|
) -> FFMpegMuxerOption:
|
1447
1455
|
"""
|
1448
|
-
CompuServe Graphics Interchange Format (GIF)
|
1456
|
+
CompuServe Graphics Interchange Format (GIF).
|
1449
1457
|
|
1450
1458
|
Args:
|
1451
1459
|
loop: Number of times to loop the output: -1 - no loop, 0 - infinite loop (from -1 to 65535) (default 0)
|
@@ -1453,81 +1461,89 @@ def gif(
|
|
1453
1461
|
|
1454
1462
|
Returns:
|
1455
1463
|
the set codec options
|
1464
|
+
|
1456
1465
|
"""
|
1457
1466
|
return FFMpegMuxerOption(
|
1458
|
-
|
1459
|
-
|
1460
|
-
|
1461
|
-
|
1462
|
-
}
|
1463
|
-
)
|
1467
|
+
merge({
|
1468
|
+
"loop": loop,
|
1469
|
+
"final_delay": final_delay,
|
1470
|
+
})
|
1464
1471
|
)
|
1465
1472
|
|
1466
1473
|
|
1467
1474
|
def gsm() -> FFMpegMuxerOption:
|
1468
1475
|
"""
|
1469
|
-
|
1470
|
-
|
1476
|
+
Raw GSM.
|
1471
1477
|
|
1472
1478
|
Returns:
|
1473
1479
|
the set codec options
|
1480
|
+
|
1474
1481
|
"""
|
1475
|
-
return FFMpegMuxerOption(
|
1482
|
+
return FFMpegMuxerOption(merge({}))
|
1476
1483
|
|
1477
1484
|
|
1478
1485
|
def gxf() -> FFMpegMuxerOption:
|
1479
1486
|
"""
|
1480
|
-
GXF (General eXchange Format)
|
1481
|
-
|
1487
|
+
GXF (General eXchange Format).
|
1482
1488
|
|
1483
1489
|
Returns:
|
1484
1490
|
the set codec options
|
1491
|
+
|
1485
1492
|
"""
|
1486
|
-
return FFMpegMuxerOption(
|
1493
|
+
return FFMpegMuxerOption(merge({}))
|
1487
1494
|
|
1488
1495
|
|
1489
1496
|
def h261() -> FFMpegMuxerOption:
|
1490
1497
|
"""
|
1491
|
-
|
1492
|
-
|
1498
|
+
Raw H.261.
|
1493
1499
|
|
1494
1500
|
Returns:
|
1495
1501
|
the set codec options
|
1502
|
+
|
1496
1503
|
"""
|
1497
|
-
return FFMpegMuxerOption(
|
1504
|
+
return FFMpegMuxerOption(merge({}))
|
1498
1505
|
|
1499
1506
|
|
1500
1507
|
def h263() -> FFMpegMuxerOption:
|
1501
1508
|
"""
|
1502
|
-
|
1503
|
-
|
1509
|
+
Raw H.263.
|
1504
1510
|
|
1505
1511
|
Returns:
|
1506
1512
|
the set codec options
|
1513
|
+
|
1507
1514
|
"""
|
1508
|
-
return FFMpegMuxerOption(
|
1515
|
+
return FFMpegMuxerOption(merge({}))
|
1509
1516
|
|
1510
1517
|
|
1511
1518
|
def h264() -> FFMpegMuxerOption:
|
1512
1519
|
"""
|
1513
|
-
|
1514
|
-
|
1520
|
+
Raw H.264 video.
|
1515
1521
|
|
1516
1522
|
Returns:
|
1517
1523
|
the set codec options
|
1524
|
+
|
1518
1525
|
"""
|
1519
|
-
return FFMpegMuxerOption(
|
1526
|
+
return FFMpegMuxerOption(merge({}))
|
1520
1527
|
|
1521
1528
|
|
1522
|
-
def hash(
|
1529
|
+
def hash(
|
1530
|
+
hash: str | None = None,
|
1531
|
+
) -> FFMpegMuxerOption:
|
1523
1532
|
"""
|
1524
|
-
Hash testing
|
1533
|
+
Hash testing.
|
1525
1534
|
|
1535
|
+
Args:
|
1536
|
+
hash: set hash to use (default "sha256")
|
1526
1537
|
|
1527
1538
|
Returns:
|
1528
1539
|
the set codec options
|
1540
|
+
|
1529
1541
|
"""
|
1530
|
-
return FFMpegMuxerOption(
|
1542
|
+
return FFMpegMuxerOption(
|
1543
|
+
merge({
|
1544
|
+
"hash": hash,
|
1545
|
+
})
|
1546
|
+
)
|
1531
1547
|
|
1532
1548
|
|
1533
1549
|
def hds(
|
@@ -1537,7 +1553,7 @@ def hds(
|
|
1537
1553
|
remove_at_exit: bool | None = None,
|
1538
1554
|
) -> FFMpegMuxerOption:
|
1539
1555
|
"""
|
1540
|
-
HDS Muxer
|
1556
|
+
HDS Muxer.
|
1541
1557
|
|
1542
1558
|
Args:
|
1543
1559
|
window_size: number of fragments kept in the manifest (from 0 to INT_MAX) (default 0)
|
@@ -1547,28 +1563,27 @@ def hds(
|
|
1547
1563
|
|
1548
1564
|
Returns:
|
1549
1565
|
the set codec options
|
1566
|
+
|
1550
1567
|
"""
|
1551
1568
|
return FFMpegMuxerOption(
|
1552
|
-
|
1553
|
-
|
1554
|
-
|
1555
|
-
|
1556
|
-
|
1557
|
-
|
1558
|
-
}
|
1559
|
-
)
|
1569
|
+
merge({
|
1570
|
+
"window_size": window_size,
|
1571
|
+
"extra_window_size": extra_window_size,
|
1572
|
+
"min_frag_duration": min_frag_duration,
|
1573
|
+
"remove_at_exit": remove_at_exit,
|
1574
|
+
})
|
1560
1575
|
)
|
1561
1576
|
|
1562
1577
|
|
1563
1578
|
def hevc() -> FFMpegMuxerOption:
|
1564
1579
|
"""
|
1565
|
-
|
1566
|
-
|
1580
|
+
Raw HEVC video.
|
1567
1581
|
|
1568
1582
|
Returns:
|
1569
1583
|
the set codec options
|
1584
|
+
|
1570
1585
|
"""
|
1571
|
-
return FFMpegMuxerOption(
|
1586
|
+
return FFMpegMuxerOption(merge({}))
|
1572
1587
|
|
1573
1588
|
|
1574
1589
|
def hls(
|
@@ -1611,7 +1626,7 @@ def hls(
|
|
1611
1626
|
headers: str | None = None,
|
1612
1627
|
) -> FFMpegMuxerOption:
|
1613
1628
|
"""
|
1614
|
-
Apple HTTP Live Streaming
|
1629
|
+
Apple HTTP Live Streaming.
|
1615
1630
|
|
1616
1631
|
Args:
|
1617
1632
|
start_number: set first number in the sequence (from 0 to I64_MAX) (default 0)
|
@@ -1652,70 +1667,69 @@ def hls(
|
|
1652
1667
|
|
1653
1668
|
Returns:
|
1654
1669
|
the set codec options
|
1670
|
+
|
1655
1671
|
"""
|
1656
1672
|
return FFMpegMuxerOption(
|
1657
|
-
|
1658
|
-
|
1659
|
-
|
1660
|
-
|
1661
|
-
|
1662
|
-
|
1663
|
-
|
1664
|
-
|
1665
|
-
|
1666
|
-
|
1667
|
-
|
1668
|
-
|
1669
|
-
|
1670
|
-
|
1671
|
-
|
1672
|
-
|
1673
|
-
|
1674
|
-
|
1675
|
-
|
1676
|
-
|
1677
|
-
|
1678
|
-
|
1679
|
-
|
1680
|
-
|
1681
|
-
|
1682
|
-
|
1683
|
-
|
1684
|
-
|
1685
|
-
|
1686
|
-
|
1687
|
-
|
1688
|
-
|
1689
|
-
|
1690
|
-
|
1691
|
-
|
1692
|
-
|
1693
|
-
|
1694
|
-
}
|
1695
|
-
)
|
1673
|
+
merge({
|
1674
|
+
"start_number": start_number,
|
1675
|
+
"hls_time": hls_time,
|
1676
|
+
"hls_init_time": hls_init_time,
|
1677
|
+
"hls_list_size": hls_list_size,
|
1678
|
+
"hls_delete_threshold": hls_delete_threshold,
|
1679
|
+
"hls_vtt_options": hls_vtt_options,
|
1680
|
+
"hls_allow_cache": hls_allow_cache,
|
1681
|
+
"hls_base_url": hls_base_url,
|
1682
|
+
"hls_segment_filename": hls_segment_filename,
|
1683
|
+
"hls_segment_options": hls_segment_options,
|
1684
|
+
"hls_segment_size": hls_segment_size,
|
1685
|
+
"hls_key_info_file": hls_key_info_file,
|
1686
|
+
"hls_enc": hls_enc,
|
1687
|
+
"hls_enc_key": hls_enc_key,
|
1688
|
+
"hls_enc_key_url": hls_enc_key_url,
|
1689
|
+
"hls_enc_iv": hls_enc_iv,
|
1690
|
+
"hls_subtitle_path": hls_subtitle_path,
|
1691
|
+
"hls_segment_type": hls_segment_type,
|
1692
|
+
"hls_fmp4_init_filename": hls_fmp4_init_filename,
|
1693
|
+
"hls_fmp4_init_resend": hls_fmp4_init_resend,
|
1694
|
+
"hls_flags": hls_flags,
|
1695
|
+
"strftime": strftime,
|
1696
|
+
"strftime_mkdir": strftime_mkdir,
|
1697
|
+
"hls_playlist_type": hls_playlist_type,
|
1698
|
+
"method": method,
|
1699
|
+
"hls_start_number_source": hls_start_number_source,
|
1700
|
+
"http_user_agent": http_user_agent,
|
1701
|
+
"var_stream_map": var_stream_map,
|
1702
|
+
"cc_stream_map": cc_stream_map,
|
1703
|
+
"master_pl_name": master_pl_name,
|
1704
|
+
"master_pl_publish_rate": master_pl_publish_rate,
|
1705
|
+
"http_persistent": http_persistent,
|
1706
|
+
"timeout": timeout,
|
1707
|
+
"ignore_io_errors": ignore_io_errors,
|
1708
|
+
"headers": headers,
|
1709
|
+
})
|
1696
1710
|
)
|
1697
1711
|
|
1698
1712
|
|
1699
1713
|
def ico() -> FFMpegMuxerOption:
|
1700
1714
|
"""
|
1701
|
-
Microsoft Windows ICO
|
1702
|
-
|
1715
|
+
Microsoft Windows ICO.
|
1703
1716
|
|
1704
1717
|
Returns:
|
1705
1718
|
the set codec options
|
1719
|
+
|
1706
1720
|
"""
|
1707
|
-
return FFMpegMuxerOption(
|
1721
|
+
return FFMpegMuxerOption(merge({}))
|
1708
1722
|
|
1709
1723
|
|
1710
1724
|
def ilbc() -> FFMpegMuxerOption:
|
1711
1725
|
"""
|
1712
|
-
|
1713
|
-
|
1726
|
+
ILBC storage.
|
1714
1727
|
|
1715
1728
|
Returns:
|
1716
1729
|
the set codec options
|
1730
|
+
|
1717
1731
|
"""
|
1718
|
-
return FFMpegMuxerOption(
|
1732
|
+
return FFMpegMuxerOption(merge({}))
|
1719
1733
|
|
1720
1734
|
|
1721
1735
|
def image2(
|
@@ -1727,7 +1741,7 @@ def image2(
|
|
1727
1741
|
protocol_opts: str | None = None,
|
1728
1742
|
) -> FFMpegMuxerOption:
|
1729
1743
|
"""
|
1730
|
-
image2 sequence
|
1744
|
+
image2 sequence.
|
1731
1745
|
|
1732
1746
|
Args:
|
1733
1747
|
update: continuously overwrite one file (default false)
|
@@ -1739,30 +1753,29 @@ def image2(
|
|
1739
1753
|
|
1740
1754
|
Returns:
|
1741
1755
|
the set codec options
|
1756
|
+
|
1742
1757
|
"""
|
1743
1758
|
return FFMpegMuxerOption(
|
1744
|
-
|
1745
|
-
|
1746
|
-
|
1747
|
-
|
1748
|
-
|
1749
|
-
|
1750
|
-
|
1751
|
-
|
1752
|
-
}
|
1753
|
-
)
|
1759
|
+
merge({
|
1760
|
+
"update": update,
|
1761
|
+
"start_number": start_number,
|
1762
|
+
"strftime": strftime,
|
1763
|
+
"frame_pts": frame_pts,
|
1764
|
+
"atomic_writing": atomic_writing,
|
1765
|
+
"protocol_opts": protocol_opts,
|
1766
|
+
})
|
1754
1767
|
)
|
1755
1768
|
|
1756
1769
|
|
1757
1770
|
def image2pipe() -> FFMpegMuxerOption:
|
1758
1771
|
"""
|
1759
|
-
|
1760
|
-
|
1772
|
+
Piped image2 sequence.
|
1761
1773
|
|
1762
1774
|
Returns:
|
1763
1775
|
the set codec options
|
1776
|
+
|
1764
1777
|
"""
|
1765
|
-
return FFMpegMuxerOption(
|
1778
|
+
return FFMpegMuxerOption(merge({}))
|
1766
1779
|
|
1767
1780
|
|
1768
1781
|
def ipod(
|
@@ -1793,7 +1806,7 @@ def ipod(
|
|
1793
1806
|
movie_timescale: int | None = None,
|
1794
1807
|
) -> FFMpegMuxerOption:
|
1795
1808
|
"""
|
1796
|
-
|
1809
|
+
IPod H.264 MP4 (MPEG-4 Part 14).
|
1797
1810
|
|
1798
1811
|
Args:
|
1799
1812
|
movflags: MOV muxer flags (default 0)
|
@@ -1824,49 +1837,48 @@ def ipod(
|
|
1824
1837
|
|
1825
1838
|
Returns:
|
1826
1839
|
the set codec options
|
1840
|
+
|
1827
1841
|
"""
|
1828
1842
|
return FFMpegMuxerOption(
|
1829
|
-
|
1830
|
-
|
1831
|
-
|
1832
|
-
|
1833
|
-
|
1834
|
-
|
1835
|
-
|
1836
|
-
|
1837
|
-
|
1838
|
-
|
1839
|
-
|
1840
|
-
|
1841
|
-
|
1842
|
-
|
1843
|
-
|
1844
|
-
|
1845
|
-
|
1846
|
-
|
1847
|
-
|
1848
|
-
|
1849
|
-
|
1850
|
-
|
1851
|
-
|
1852
|
-
|
1853
|
-
|
1854
|
-
|
1855
|
-
|
1856
|
-
}
|
1857
|
-
)
|
1843
|
+
merge({
|
1844
|
+
"movflags": movflags,
|
1845
|
+
"moov_size": moov_size,
|
1846
|
+
"rtpflags": rtpflags,
|
1847
|
+
"skip_iods": skip_iods,
|
1848
|
+
"iods_audio_profile": iods_audio_profile,
|
1849
|
+
"iods_video_profile": iods_video_profile,
|
1850
|
+
"frag_duration": frag_duration,
|
1851
|
+
"min_frag_duration": min_frag_duration,
|
1852
|
+
"frag_size": frag_size,
|
1853
|
+
"ism_lookahead": ism_lookahead,
|
1854
|
+
"video_track_timescale": video_track_timescale,
|
1855
|
+
"brand": brand,
|
1856
|
+
"use_editlist": use_editlist,
|
1857
|
+
"fragment_index": fragment_index,
|
1858
|
+
"mov_gamma": mov_gamma,
|
1859
|
+
"frag_interleave": frag_interleave,
|
1860
|
+
"encryption_scheme": encryption_scheme,
|
1861
|
+
"encryption_key": encryption_key,
|
1862
|
+
"encryption_kid": encryption_kid,
|
1863
|
+
"use_stream_ids_as_track_ids": use_stream_ids_as_track_ids,
|
1864
|
+
"write_btrt": write_btrt,
|
1865
|
+
"write_tmcd": write_tmcd,
|
1866
|
+
"write_prft": write_prft,
|
1867
|
+
"empty_hdlr_name": empty_hdlr_name,
|
1868
|
+
"movie_timescale": movie_timescale,
|
1869
|
+
})
|
1858
1870
|
)
|
1859
1871
|
|
1860
1872
|
|
1861
1873
|
def ircam() -> FFMpegMuxerOption:
|
1862
1874
|
"""
|
1863
|
-
Berkeley/IRCAM/CARL Sound Format
|
1864
|
-
|
1875
|
+
Berkeley/IRCAM/CARL Sound Format.
|
1865
1876
|
|
1866
1877
|
Returns:
|
1867
1878
|
the set codec options
|
1879
|
+
|
1868
1880
|
"""
|
1869
|
-
return FFMpegMuxerOption(
|
1881
|
+
return FFMpegMuxerOption(merge({}))
|
1870
1882
|
|
1871
1883
|
|
1872
1884
|
def ismv(
|
@@ -1897,7 +1909,7 @@ def ismv(
|
|
1897
1909
|
movie_timescale: int | None = None,
|
1898
1910
|
) -> FFMpegMuxerOption:
|
1899
1911
|
"""
|
1900
|
-
ISMV/ISMA (Smooth Streaming)
|
1912
|
+
ISMV/ISMA (Smooth Streaming).
|
1901
1913
|
|
1902
1914
|
Args:
|
1903
1915
|
movflags: MOV muxer flags (default 0)
|
@@ -1928,114 +1940,112 @@ def ismv(
|
|
1928
1940
|
|
1929
1941
|
Returns:
|
1930
1942
|
the set codec options
|
1943
|
+
|
1931
1944
|
"""
|
1932
1945
|
return FFMpegMuxerOption(
|
1933
|
-
|
1934
|
-
|
1935
|
-
|
1936
|
-
|
1937
|
-
|
1938
|
-
|
1939
|
-
|
1940
|
-
|
1941
|
-
|
1942
|
-
|
1943
|
-
|
1944
|
-
|
1945
|
-
|
1946
|
-
|
1947
|
-
|
1948
|
-
|
1949
|
-
|
1950
|
-
|
1951
|
-
|
1952
|
-
|
1953
|
-
|
1954
|
-
|
1955
|
-
|
1956
|
-
|
1957
|
-
|
1958
|
-
|
1959
|
-
|
1960
|
-
}
|
1961
|
-
)
|
1946
|
+
merge({
|
1947
|
+
"movflags": movflags,
|
1948
|
+
"moov_size": moov_size,
|
1949
|
+
"rtpflags": rtpflags,
|
1950
|
+
"skip_iods": skip_iods,
|
1951
|
+
"iods_audio_profile": iods_audio_profile,
|
1952
|
+
"iods_video_profile": iods_video_profile,
|
1953
|
+
"frag_duration": frag_duration,
|
1954
|
+
"min_frag_duration": min_frag_duration,
|
1955
|
+
"frag_size": frag_size,
|
1956
|
+
"ism_lookahead": ism_lookahead,
|
1957
|
+
"video_track_timescale": video_track_timescale,
|
1958
|
+
"brand": brand,
|
1959
|
+
"use_editlist": use_editlist,
|
1960
|
+
"fragment_index": fragment_index,
|
1961
|
+
"mov_gamma": mov_gamma,
|
1962
|
+
"frag_interleave": frag_interleave,
|
1963
|
+
"encryption_scheme": encryption_scheme,
|
1964
|
+
"encryption_key": encryption_key,
|
1965
|
+
"encryption_kid": encryption_kid,
|
1966
|
+
"use_stream_ids_as_track_ids": use_stream_ids_as_track_ids,
|
1967
|
+
"write_btrt": write_btrt,
|
1968
|
+
"write_tmcd": write_tmcd,
|
1969
|
+
"write_prft": write_prft,
|
1970
|
+
"empty_hdlr_name": empty_hdlr_name,
|
1971
|
+
"movie_timescale": movie_timescale,
|
1972
|
+
})
|
1962
1973
|
)
|
1963
1974
|
|
1964
1975
|
|
1965
1976
|
def ivf() -> FFMpegMuxerOption:
|
1966
1977
|
"""
|
1967
|
-
On2 IVF
|
1968
|
-
|
1978
|
+
On2 IVF.
|
1969
1979
|
|
1970
1980
|
Returns:
|
1971
1981
|
the set codec options
|
1982
|
+
|
1972
1983
|
"""
|
1973
|
-
return FFMpegMuxerOption(
|
1984
|
+
return FFMpegMuxerOption(merge({}))
|
1974
1985
|
|
1975
1986
|
|
1976
1987
|
def jacosub() -> FFMpegMuxerOption:
|
1977
1988
|
"""
|
1978
|
-
JACOsub subtitle format
|
1979
|
-
|
1989
|
+
JACOsub subtitle format.
|
1980
1990
|
|
1981
1991
|
Returns:
|
1982
1992
|
the set codec options
|
1993
|
+
|
1983
1994
|
"""
|
1984
|
-
return FFMpegMuxerOption(
|
1995
|
+
return FFMpegMuxerOption(merge({}))
|
1985
1996
|
|
1986
1997
|
|
1987
1998
|
def kvag() -> FFMpegMuxerOption:
|
1988
1999
|
"""
|
1989
|
-
Simon & Schuster Interactive VAG
|
1990
|
-
|
2000
|
+
Simon & Schuster Interactive VAG.
|
1991
2001
|
|
1992
2002
|
Returns:
|
1993
2003
|
the set codec options
|
2004
|
+
|
1994
2005
|
"""
|
1995
|
-
return FFMpegMuxerOption(
|
2006
|
+
return FFMpegMuxerOption(merge({}))
|
1996
2007
|
|
1997
2008
|
|
1998
2009
|
def latm(
|
1999
2010
|
smc_interval: int | None = None,
|
2000
2011
|
) -> FFMpegMuxerOption:
|
2001
2012
|
"""
|
2002
|
-
LOAS/LATM
|
2013
|
+
LOAS/LATM.
|
2003
2014
|
|
2004
2015
|
Args:
|
2005
2016
|
smc_interval: StreamMuxConfig interval. (from 1 to 65535) (default 20)
|
2006
2017
|
|
2007
2018
|
Returns:
|
2008
2019
|
the set codec options
|
2020
|
+
|
2009
2021
|
"""
|
2010
2022
|
return FFMpegMuxerOption(
|
2011
|
-
|
2012
|
-
|
2013
|
-
|
2014
|
-
}
|
2015
|
-
)
|
2023
|
+
merge({
|
2024
|
+
"smc-interval": smc_interval,
|
2025
|
+
})
|
2016
2026
|
)
|
2017
2027
|
|
2018
2028
|
|
2019
2029
|
def lrc() -> FFMpegMuxerOption:
|
2020
2030
|
"""
|
2021
|
-
LRC lyrics
|
2022
|
-
|
2031
|
+
LRC lyrics.
|
2023
2032
|
|
2024
2033
|
Returns:
|
2025
2034
|
the set codec options
|
2035
|
+
|
2026
2036
|
"""
|
2027
|
-
return FFMpegMuxerOption(
|
2037
|
+
return FFMpegMuxerOption(merge({}))
|
2028
2038
|
|
2029
2039
|
|
2030
2040
|
def m4v() -> FFMpegMuxerOption:
|
2031
2041
|
"""
|
2032
|
-
|
2033
|
-
|
2042
|
+
Raw MPEG-4 video.
|
2034
2043
|
|
2035
2044
|
Returns:
|
2036
2045
|
the set codec options
|
2046
|
+
|
2037
2047
|
"""
|
2038
|
-
return FFMpegMuxerOption(
|
2048
|
+
return FFMpegMuxerOption(merge({}))
|
2039
2049
|
|
2040
2050
|
|
2041
2051
|
def matroska(
|
@@ -2052,7 +2062,7 @@ def matroska(
|
|
2052
2062
|
default_mode: int | None | Literal["infer", "infer_no_subs", "passthrough"] = None,
|
2053
2063
|
) -> FFMpegMuxerOption:
|
2054
2064
|
"""
|
2055
|
-
Matroska
|
2065
|
+
Matroska.
|
2056
2066
|
|
2057
2067
|
Args:
|
2058
2068
|
reserve_index_space: Reserve a given amount of space (in bytes) at the beginning of the file for the index (cues). (from 0 to INT_MAX) (default 0)
|
@@ -2069,23 +2079,22 @@ def matroska(
|
|
2069
2079
|
|
2070
2080
|
Returns:
|
2071
2081
|
the set codec options
|
2082
|
+
|
2072
2083
|
"""
|
2073
2084
|
return FFMpegMuxerOption(
|
2074
|
-
|
2075
|
-
|
2076
|
-
|
2077
|
-
|
2078
|
-
|
2079
|
-
|
2080
|
-
|
2081
|
-
|
2082
|
-
|
2083
|
-
|
2084
|
-
|
2085
|
-
|
2086
|
-
|
2087
|
-
}
|
2088
|
-
)
|
2085
|
+
merge({
|
2086
|
+
"reserve_index_space": reserve_index_space,
|
2087
|
+
"cues_to_front": cues_to_front,
|
2088
|
+
"cluster_size_limit": cluster_size_limit,
|
2089
|
+
"cluster_time_limit": cluster_time_limit,
|
2090
|
+
"dash": dash,
|
2091
|
+
"dash_track_number": dash_track_number,
|
2092
|
+
"live": live,
|
2093
|
+
"allow_raw_vfw": allow_raw_vfw,
|
2094
|
+
"flipped_raw_rgb": flipped_raw_rgb,
|
2095
|
+
"write_crc32": write_crc32,
|
2096
|
+
"default_mode": default_mode,
|
2097
|
+
})
|
2089
2098
|
)
|
2090
2099
|
|
2091
2100
|
|
@@ -2093,76 +2102,75 @@ def md5(
|
|
2093
2102
|
hash: str | None = None,
|
2094
2103
|
) -> FFMpegMuxerOption:
|
2095
2104
|
"""
|
2096
|
-
MD5 testing
|
2105
|
+
MD5 testing.
|
2097
2106
|
|
2098
2107
|
Args:
|
2099
2108
|
hash: set hash to use (default "md5")
|
2100
2109
|
|
2101
2110
|
Returns:
|
2102
2111
|
the set codec options
|
2112
|
+
|
2103
2113
|
"""
|
2104
2114
|
return FFMpegMuxerOption(
|
2105
|
-
|
2106
|
-
|
2107
|
-
|
2108
|
-
}
|
2109
|
-
)
|
2115
|
+
merge({
|
2116
|
+
"hash": hash,
|
2117
|
+
})
|
2110
2118
|
)
|
2111
2119
|
|
2112
2120
|
|
2113
2121
|
def microdvd() -> FFMpegMuxerOption:
|
2114
2122
|
"""
|
2115
|
-
MicroDVD subtitle format
|
2116
|
-
|
2123
|
+
MicroDVD subtitle format.
|
2117
2124
|
|
2118
2125
|
Returns:
|
2119
2126
|
the set codec options
|
2127
|
+
|
2120
2128
|
"""
|
2121
|
-
return FFMpegMuxerOption(
|
2129
|
+
return FFMpegMuxerOption(merge({}))
|
2122
2130
|
|
2123
2131
|
|
2124
2132
|
def mjpeg() -> FFMpegMuxerOption:
|
2125
2133
|
"""
|
2126
|
-
|
2127
|
-
|
2134
|
+
Raw MJPEG video.
|
2128
2135
|
|
2129
2136
|
Returns:
|
2130
2137
|
the set codec options
|
2138
|
+
|
2131
2139
|
"""
|
2132
|
-
return FFMpegMuxerOption(
|
2140
|
+
return FFMpegMuxerOption(merge({}))
|
2133
2141
|
|
2134
2142
|
|
2135
2143
|
def mkvtimestamp_v2() -> FFMpegMuxerOption:
|
2136
2144
|
"""
|
2137
|
-
|
2138
|
-
|
2145
|
+
Extract pts as timecode v2 format, as defined by mkvtoolnix.
|
2139
2146
|
|
2140
2147
|
Returns:
|
2141
2148
|
the set codec options
|
2149
|
+
|
2142
2150
|
"""
|
2143
|
-
return FFMpegMuxerOption(
|
2151
|
+
return FFMpegMuxerOption(merge({}))
|
2144
2152
|
|
2145
2153
|
|
2146
2154
|
def mlp() -> FFMpegMuxerOption:
|
2147
2155
|
"""
|
2148
|
-
|
2149
|
-
|
2156
|
+
Raw MLP.
|
2150
2157
|
|
2151
2158
|
Returns:
|
2152
2159
|
the set codec options
|
2160
|
+
|
2153
2161
|
"""
|
2154
|
-
return FFMpegMuxerOption(
|
2162
|
+
return FFMpegMuxerOption(merge({}))
|
2155
2163
|
|
2156
2164
|
|
2157
2165
|
def mmf() -> FFMpegMuxerOption:
|
2158
2166
|
"""
|
2159
|
-
Yamaha SMAF
|
2160
|
-
|
2167
|
+
Yamaha SMAF.
|
2161
2168
|
|
2162
2169
|
Returns:
|
2163
2170
|
the set codec options
|
2171
|
+
|
2164
2172
|
"""
|
2165
|
-
return FFMpegMuxerOption(
|
2173
|
+
return FFMpegMuxerOption(merge({}))
|
2166
2174
|
|
2167
2175
|
|
2168
2176
|
def mov(
|
@@ -2193,7 +2201,7 @@ def mov(
|
|
2193
2201
|
movie_timescale: int | None = None,
|
2194
2202
|
) -> FFMpegMuxerOption:
|
2195
2203
|
"""
|
2196
|
-
QuickTime / MOV
|
2204
|
+
QuickTime / MOV.
|
2197
2205
|
|
2198
2206
|
Args:
|
2199
2207
|
movflags: MOV muxer flags (default 0)
|
@@ -2224,49 +2232,48 @@ def mov(
|
|
2224
2232
|
|
2225
2233
|
Returns:
|
2226
2234
|
the set codec options
|
2235
|
+
|
2227
2236
|
"""
|
2228
2237
|
return FFMpegMuxerOption(
|
2229
|
-
|
2230
|
-
|
2231
|
-
|
2232
|
-
|
2233
|
-
|
2234
|
-
|
2235
|
-
|
2236
|
-
|
2237
|
-
|
2238
|
-
|
2239
|
-
|
2240
|
-
|
2241
|
-
|
2242
|
-
|
2243
|
-
|
2244
|
-
|
2245
|
-
|
2246
|
-
|
2247
|
-
|
2248
|
-
|
2249
|
-
|
2250
|
-
|
2251
|
-
|
2252
|
-
|
2253
|
-
|
2254
|
-
|
2255
|
-
|
2256
|
-
}
|
2257
|
-
)
|
2238
|
+
merge({
|
2239
|
+
"movflags": movflags,
|
2240
|
+
"moov_size": moov_size,
|
2241
|
+
"rtpflags": rtpflags,
|
2242
|
+
"skip_iods": skip_iods,
|
2243
|
+
"iods_audio_profile": iods_audio_profile,
|
2244
|
+
"iods_video_profile": iods_video_profile,
|
2245
|
+
"frag_duration": frag_duration,
|
2246
|
+
"min_frag_duration": min_frag_duration,
|
2247
|
+
"frag_size": frag_size,
|
2248
|
+
"ism_lookahead": ism_lookahead,
|
2249
|
+
"video_track_timescale": video_track_timescale,
|
2250
|
+
"brand": brand,
|
2251
|
+
"use_editlist": use_editlist,
|
2252
|
+
"fragment_index": fragment_index,
|
2253
|
+
"mov_gamma": mov_gamma,
|
2254
|
+
"frag_interleave": frag_interleave,
|
2255
|
+
"encryption_scheme": encryption_scheme,
|
2256
|
+
"encryption_key": encryption_key,
|
2257
|
+
"encryption_kid": encryption_kid,
|
2258
|
+
"use_stream_ids_as_track_ids": use_stream_ids_as_track_ids,
|
2259
|
+
"write_btrt": write_btrt,
|
2260
|
+
"write_tmcd": write_tmcd,
|
2261
|
+
"write_prft": write_prft,
|
2262
|
+
"empty_hdlr_name": empty_hdlr_name,
|
2263
|
+
"movie_timescale": movie_timescale,
|
2264
|
+
})
|
2258
2265
|
)
|
2259
2266
|
|
2260
2267
|
|
2261
2268
|
def mp2() -> FFMpegMuxerOption:
|
2262
2269
|
"""
|
2263
|
-
MP2 (MPEG audio layer 2)
|
2264
|
-
|
2270
|
+
MP2 (MPEG audio layer 2).
|
2265
2271
|
|
2266
2272
|
Returns:
|
2267
2273
|
the set codec options
|
2274
|
+
|
2268
2275
|
"""
|
2269
|
-
return FFMpegMuxerOption(
|
2276
|
+
return FFMpegMuxerOption(merge({}))
|
2270
2277
|
|
2271
2278
|
|
2272
2279
|
def mp3(
|
@@ -2275,7 +2282,7 @@ def mp3(
|
|
2275
2282
|
write_xing: bool | None = None,
|
2276
2283
|
) -> FFMpegMuxerOption:
|
2277
2284
|
"""
|
2278
|
-
MP3 (MPEG audio layer 3)
|
2285
|
+
MP3 (MPEG audio layer 3).
|
2279
2286
|
|
2280
2287
|
Args:
|
2281
2288
|
id3v2_version: Select ID3v2 version to write. Currently 3 and 4 are supported. (from 0 to 4) (default 4)
|
@@ -2284,15 +2291,14 @@ def mp3(
|
|
2284
2291
|
|
2285
2292
|
Returns:
|
2286
2293
|
the set codec options
|
2294
|
+
|
2287
2295
|
"""
|
2288
2296
|
return FFMpegMuxerOption(
|
2289
|
-
|
2290
|
-
|
2291
|
-
|
2292
|
-
|
2293
|
-
|
2294
|
-
}
|
2295
|
-
)
|
2297
|
+
merge({
|
2298
|
+
"id3v2_version": id3v2_version,
|
2299
|
+
"write_id3v1": write_id3v1,
|
2300
|
+
"write_xing": write_xing,
|
2301
|
+
})
|
2296
2302
|
)
|
2297
2303
|
|
2298
2304
|
|
@@ -2324,7 +2330,7 @@ def mp4(
|
|
2324
2330
|
movie_timescale: int | None = None,
|
2325
2331
|
) -> FFMpegMuxerOption:
|
2326
2332
|
"""
|
2327
|
-
MP4 (MPEG-4 Part 14)
|
2333
|
+
MP4 (MPEG-4 Part 14).
|
2328
2334
|
|
2329
2335
|
Args:
|
2330
2336
|
movflags: MOV muxer flags (default 0)
|
@@ -2355,71 +2361,82 @@ def mp4(
|
|
2355
2361
|
|
2356
2362
|
Returns:
|
2357
2363
|
the set codec options
|
2364
|
+
|
2358
2365
|
"""
|
2359
2366
|
return FFMpegMuxerOption(
|
2360
|
-
|
2361
|
-
|
2362
|
-
|
2363
|
-
|
2364
|
-
|
2365
|
-
|
2366
|
-
|
2367
|
-
|
2368
|
-
|
2369
|
-
|
2370
|
-
|
2371
|
-
|
2372
|
-
|
2373
|
-
|
2374
|
-
|
2375
|
-
|
2376
|
-
|
2377
|
-
|
2378
|
-
|
2379
|
-
|
2380
|
-
|
2381
|
-
|
2382
|
-
|
2383
|
-
|
2384
|
-
|
2385
|
-
|
2386
|
-
|
2387
|
-
}
|
2388
|
-
)
|
2367
|
+
merge({
|
2368
|
+
"movflags": movflags,
|
2369
|
+
"moov_size": moov_size,
|
2370
|
+
"rtpflags": rtpflags,
|
2371
|
+
"skip_iods": skip_iods,
|
2372
|
+
"iods_audio_profile": iods_audio_profile,
|
2373
|
+
"iods_video_profile": iods_video_profile,
|
2374
|
+
"frag_duration": frag_duration,
|
2375
|
+
"min_frag_duration": min_frag_duration,
|
2376
|
+
"frag_size": frag_size,
|
2377
|
+
"ism_lookahead": ism_lookahead,
|
2378
|
+
"video_track_timescale": video_track_timescale,
|
2379
|
+
"brand": brand,
|
2380
|
+
"use_editlist": use_editlist,
|
2381
|
+
"fragment_index": fragment_index,
|
2382
|
+
"mov_gamma": mov_gamma,
|
2383
|
+
"frag_interleave": frag_interleave,
|
2384
|
+
"encryption_scheme": encryption_scheme,
|
2385
|
+
"encryption_key": encryption_key,
|
2386
|
+
"encryption_kid": encryption_kid,
|
2387
|
+
"use_stream_ids_as_track_ids": use_stream_ids_as_track_ids,
|
2388
|
+
"write_btrt": write_btrt,
|
2389
|
+
"write_tmcd": write_tmcd,
|
2390
|
+
"write_prft": write_prft,
|
2391
|
+
"empty_hdlr_name": empty_hdlr_name,
|
2392
|
+
"movie_timescale": movie_timescale,
|
2393
|
+
})
|
2389
2394
|
)
|
2390
2395
|
|
2391
2396
|
|
2392
|
-
def mpeg(
|
2397
|
+
def mpeg(
|
2398
|
+
muxrate: int | None = None,
|
2399
|
+
preload: int | None = None,
|
2400
|
+
) -> FFMpegMuxerOption:
|
2393
2401
|
"""
|
2394
|
-
MPEG-1 Systems / MPEG program stream
|
2402
|
+
MPEG-1 Systems / MPEG program stream.
|
2395
2403
|
|
2404
|
+
Args:
|
2405
|
+
muxrate: (from 0 to 1.67772e+09) (default 0)
|
2406
|
+
preload: Initial demux-decode delay in microseconds. (from 0 to INT_MAX) (default 500000)
|
2396
2407
|
|
2397
2408
|
Returns:
|
2398
2409
|
the set codec options
|
2410
|
+
|
2399
2411
|
"""
|
2400
|
-
return FFMpegMuxerOption(
|
2412
|
+
return FFMpegMuxerOption(
|
2413
|
+
merge({
|
2414
|
+
"muxrate": muxrate,
|
2415
|
+
"preload": preload,
|
2416
|
+
})
|
2417
|
+
)
|
2401
2418
|
|
2402
2419
|
|
2403
2420
|
def mpeg1video() -> FFMpegMuxerOption:
|
2404
2421
|
"""
|
2405
|
-
|
2406
|
-
|
2422
|
+
Raw MPEG-1 video.
|
2407
2423
|
|
2408
2424
|
Returns:
|
2409
2425
|
the set codec options
|
2426
|
+
|
2410
2427
|
"""
|
2411
|
-
return FFMpegMuxerOption(
|
2428
|
+
return FFMpegMuxerOption(merge({}))
|
2412
2429
|
|
2413
2430
|
|
2414
2431
|
def mpeg2video() -> FFMpegMuxerOption:
|
2415
2432
|
"""
|
2416
|
-
|
2417
|
-
|
2433
|
+
Raw MPEG-2 video.
|
2418
2434
|
|
2419
2435
|
Returns:
|
2420
2436
|
the set codec options
|
2437
|
+
|
2421
2438
|
"""
|
2422
|
-
return FFMpegMuxerOption(
|
2439
|
+
return FFMpegMuxerOption(merge({}))
|
2423
2440
|
|
2424
2441
|
|
2425
2442
|
def mpegts(
|
@@ -2453,7 +2470,7 @@ def mpegts(
|
|
2453
2470
|
nit_period: str | None = None,
|
2454
2471
|
) -> FFMpegMuxerOption:
|
2455
2472
|
"""
|
2456
|
-
MPEG-TS (MPEG-2 Transport Stream)
|
2473
|
+
MPEG-TS (MPEG-2 Transport Stream).
|
2457
2474
|
|
2458
2475
|
Args:
|
2459
2476
|
mpegts_transport_stream_id: Set transport_stream_id field. (from 1 to 65535) (default 1)
|
@@ -2476,29 +2493,28 @@ def mpegts(
|
|
2476
2493
|
|
2477
2494
|
Returns:
|
2478
2495
|
the set codec options
|
2496
|
+
|
2479
2497
|
"""
|
2480
2498
|
return FFMpegMuxerOption(
|
2481
|
-
|
2482
|
-
|
2483
|
-
|
2484
|
-
|
2485
|
-
|
2486
|
-
|
2487
|
-
|
2488
|
-
|
2489
|
-
|
2490
|
-
|
2491
|
-
|
2492
|
-
|
2493
|
-
|
2494
|
-
|
2495
|
-
|
2496
|
-
|
2497
|
-
|
2498
|
-
|
2499
|
-
|
2500
|
-
}
|
2501
|
-
)
|
2499
|
+
merge({
|
2500
|
+
"mpegts_transport_stream_id": mpegts_transport_stream_id,
|
2501
|
+
"mpegts_original_network_id": mpegts_original_network_id,
|
2502
|
+
"mpegts_service_id": mpegts_service_id,
|
2503
|
+
"mpegts_service_type": mpegts_service_type,
|
2504
|
+
"mpegts_pmt_start_pid": mpegts_pmt_start_pid,
|
2505
|
+
"mpegts_start_pid": mpegts_start_pid,
|
2506
|
+
"mpegts_m2ts_mode": mpegts_m2ts_mode,
|
2507
|
+
"muxrate": muxrate,
|
2508
|
+
"pes_payload_size": pes_payload_size,
|
2509
|
+
"mpegts_flags": mpegts_flags,
|
2510
|
+
"mpegts_copyts": mpegts_copyts,
|
2511
|
+
"tables_version": tables_version,
|
2512
|
+
"omit_video_pes_length": omit_video_pes_length,
|
2513
|
+
"pcr_period": pcr_period,
|
2514
|
+
"pat_period": pat_period,
|
2515
|
+
"sdt_period": sdt_period,
|
2516
|
+
"nit_period": nit_period,
|
2517
|
+
})
|
2502
2518
|
)
|
2503
2519
|
|
2504
2520
|
|
@@ -2506,32 +2522,31 @@ def mpjpeg(
|
|
2506
2522
|
boundary_tag: str | None = None,
|
2507
2523
|
) -> FFMpegMuxerOption:
|
2508
2524
|
"""
|
2509
|
-
MIME multipart JPEG
|
2525
|
+
MIME multipart JPEG.
|
2510
2526
|
|
2511
2527
|
Args:
|
2512
2528
|
boundary_tag: Boundary tag (default "ffmpeg")
|
2513
2529
|
|
2514
2530
|
Returns:
|
2515
2531
|
the set codec options
|
2532
|
+
|
2516
2533
|
"""
|
2517
2534
|
return FFMpegMuxerOption(
|
2518
|
-
|
2519
|
-
|
2520
|
-
|
2521
|
-
}
|
2522
|
-
)
|
2535
|
+
merge({
|
2536
|
+
"boundary_tag": boundary_tag,
|
2537
|
+
})
|
2523
2538
|
)
|
2524
2539
|
|
2525
2540
|
|
2526
2541
|
def mulaw() -> FFMpegMuxerOption:
|
2527
2542
|
"""
|
2528
|
-
PCM mu-law
|
2529
|
-
|
2543
|
+
PCM mu-law.
|
2530
2544
|
|
2531
2545
|
Returns:
|
2532
2546
|
the set codec options
|
2547
|
+
|
2533
2548
|
"""
|
2534
|
-
return FFMpegMuxerOption(
|
2549
|
+
return FFMpegMuxerOption(merge({}))
|
2535
2550
|
|
2536
2551
|
|
2537
2552
|
def mxf(
|
@@ -2549,7 +2564,7 @@ def mxf(
|
|
2549
2564
|
store_user_comments: bool | None = None,
|
2550
2565
|
) -> FFMpegMuxerOption:
|
2551
2566
|
"""
|
2552
|
-
MXF (Material eXchange Format)
|
2567
|
+
MXF (Material eXchange Format).
|
2553
2568
|
|
2554
2569
|
Args:
|
2555
2570
|
signal_standard: Force/set Signal Standard (from -1 to 7) (default -1)
|
@@ -2557,48 +2572,97 @@ def mxf(
|
|
2557
2572
|
|
2558
2573
|
Returns:
|
2559
2574
|
the set codec options
|
2575
|
+
|
2560
2576
|
"""
|
2561
2577
|
return FFMpegMuxerOption(
|
2562
|
-
|
2563
|
-
|
2564
|
-
|
2565
|
-
|
2566
|
-
}
|
2567
|
-
)
|
2578
|
+
merge({
|
2579
|
+
"signal_standard": signal_standard,
|
2580
|
+
"store_user_comments": store_user_comments,
|
2581
|
+
})
|
2568
2582
|
)
|
2569
2583
|
|
2570
2584
|
|
2571
|
-
def mxf_d10(
|
2585
|
+
def mxf_d10(
|
2586
|
+
d10_channelcount: int | None = None,
|
2587
|
+
signal_standard: int
|
2588
|
+
| None
|
2589
|
+
| Literal[
|
2590
|
+
"bt601",
|
2591
|
+
"bt1358",
|
2592
|
+
"smpte347m",
|
2593
|
+
"smpte274m",
|
2594
|
+
"smpte296m",
|
2595
|
+
"smpte349m",
|
2596
|
+
"smpte428",
|
2597
|
+
] = None,
|
2598
|
+
store_user_comments: bool | None = None,
|
2599
|
+
) -> FFMpegMuxerOption:
|
2572
2600
|
"""
|
2573
|
-
MXF (Material eXchange Format) D-10 Mapping
|
2601
|
+
MXF (Material eXchange Format) D-10 Mapping.
|
2574
2602
|
|
2603
|
+
Args:
|
2604
|
+
d10_channelcount: Force/set channelcount in generic sound essence descriptor (from -1 to 8) (default -1)
|
2605
|
+
signal_standard: Force/set Signal Standard (from -1 to 7) (default -1)
|
2606
|
+
store_user_comments: (default false)
|
2575
2607
|
|
2576
2608
|
Returns:
|
2577
2609
|
the set codec options
|
2610
|
+
|
2578
2611
|
"""
|
2579
|
-
return FFMpegMuxerOption(
|
2612
|
+
return FFMpegMuxerOption(
|
2613
|
+
merge({
|
2614
|
+
"d10_channelcount": d10_channelcount,
|
2615
|
+
"signal_standard": signal_standard,
|
2616
|
+
"store_user_comments": store_user_comments,
|
2617
|
+
})
|
2618
|
+
)
|
2580
2619
|
|
2581
2620
|
|
2582
|
-
def mxf_opatom(
|
2621
|
+
def mxf_opatom(
|
2622
|
+
mxf_audio_edit_rate: str | None = None,
|
2623
|
+
signal_standard: int
|
2624
|
+
| None
|
2625
|
+
| Literal[
|
2626
|
+
"bt601",
|
2627
|
+
"bt1358",
|
2628
|
+
"smpte347m",
|
2629
|
+
"smpte274m",
|
2630
|
+
"smpte296m",
|
2631
|
+
"smpte349m",
|
2632
|
+
"smpte428",
|
2633
|
+
] = None,
|
2634
|
+
store_user_comments: bool | None = None,
|
2635
|
+
) -> FFMpegMuxerOption:
|
2583
2636
|
"""
|
2584
|
-
MXF (Material eXchange Format) Operational Pattern Atom
|
2637
|
+
MXF (Material eXchange Format) Operational Pattern Atom.
|
2585
2638
|
|
2639
|
+
Args:
|
2640
|
+
mxf_audio_edit_rate: Audio edit rate for timecode (from 0 to INT_MAX) (default 25/1)
|
2641
|
+
signal_standard: Force/set Signal Standard (from -1 to 7) (default -1)
|
2642
|
+
store_user_comments: (default true)
|
2586
2643
|
|
2587
2644
|
Returns:
|
2588
2645
|
the set codec options
|
2646
|
+
|
2589
2647
|
"""
|
2590
|
-
return FFMpegMuxerOption(
|
2648
|
+
return FFMpegMuxerOption(
|
2649
|
+
merge({
|
2650
|
+
"mxf_audio_edit_rate": mxf_audio_edit_rate,
|
2651
|
+
"signal_standard": signal_standard,
|
2652
|
+
"store_user_comments": store_user_comments,
|
2653
|
+
})
|
2654
|
+
)
|
2591
2655
|
|
2592
2656
|
|
2593
2657
|
def null() -> FFMpegMuxerOption:
|
2594
2658
|
"""
|
2595
|
-
|
2596
|
-
|
2659
|
+
Raw null video.
|
2597
2660
|
|
2598
2661
|
Returns:
|
2599
2662
|
the set codec options
|
2663
|
+
|
2600
2664
|
"""
|
2601
|
-
return FFMpegMuxerOption(
|
2665
|
+
return FFMpegMuxerOption(merge({}))
|
2602
2666
|
|
2603
2667
|
|
2604
2668
|
def nut(
|
@@ -2606,7 +2670,7 @@ def nut(
|
|
2606
2670
|
write_index: bool | None = None,
|
2607
2671
|
) -> FFMpegMuxerOption:
|
2608
2672
|
"""
|
2609
|
-
NUT
|
2673
|
+
NUT.
|
2610
2674
|
|
2611
2675
|
Args:
|
2612
2676
|
syncpoints: NUT syncpoint behaviour (default 0)
|
@@ -2614,70 +2678,123 @@ def nut(
|
|
2614
2678
|
|
2615
2679
|
Returns:
|
2616
2680
|
the set codec options
|
2681
|
+
|
2617
2682
|
"""
|
2618
2683
|
return FFMpegMuxerOption(
|
2619
|
-
|
2620
|
-
|
2621
|
-
|
2622
|
-
|
2623
|
-
}
|
2624
|
-
)
|
2684
|
+
merge({
|
2685
|
+
"syncpoints": syncpoints,
|
2686
|
+
"write_index": write_index,
|
2687
|
+
})
|
2625
2688
|
)
|
2626
2689
|
|
2627
2690
|
|
2628
2691
|
def obu() -> FFMpegMuxerOption:
|
2629
2692
|
"""
|
2630
|
-
AV1 low overhead OBU
|
2631
|
-
|
2693
|
+
AV1 low overhead OBU.
|
2632
2694
|
|
2633
2695
|
Returns:
|
2634
2696
|
the set codec options
|
2697
|
+
|
2635
2698
|
"""
|
2636
|
-
return FFMpegMuxerOption(
|
2699
|
+
return FFMpegMuxerOption(merge({}))
|
2637
2700
|
|
2638
2701
|
|
2639
|
-
def oga(
|
2702
|
+
def oga(
|
2703
|
+
serial_offset: int | None = None,
|
2704
|
+
oggpagesize: int | None = None,
|
2705
|
+
pagesize: int | None = None,
|
2706
|
+
page_duration: int | None = None,
|
2707
|
+
) -> FFMpegMuxerOption:
|
2640
2708
|
"""
|
2641
|
-
Ogg Audio
|
2709
|
+
Ogg Audio.
|
2642
2710
|
|
2711
|
+
Args:
|
2712
|
+
serial_offset: serial number offset (from 0 to INT_MAX) (default 0)
|
2713
|
+
oggpagesize: Set preferred Ogg page size. (from 0 to 65025) (default 0)
|
2714
|
+
pagesize: preferred page size in bytes (deprecated) (from 0 to 65025) (default 0)
|
2715
|
+
page_duration: preferred page duration, in microseconds (from 0 to I64_MAX) (default 1000000)
|
2643
2716
|
|
2644
2717
|
Returns:
|
2645
2718
|
the set codec options
|
2719
|
+
|
2646
2720
|
"""
|
2647
|
-
return FFMpegMuxerOption(
|
2721
|
+
return FFMpegMuxerOption(
|
2722
|
+
merge({
|
2723
|
+
"serial_offset": serial_offset,
|
2724
|
+
"oggpagesize": oggpagesize,
|
2725
|
+
"pagesize": pagesize,
|
2726
|
+
"page_duration": page_duration,
|
2727
|
+
})
|
2728
|
+
)
|
2648
2729
|
|
2649
2730
|
|
2650
|
-
def ogg(
|
2731
|
+
def ogg(
|
2732
|
+
serial_offset: int | None = None,
|
2733
|
+
oggpagesize: int | None = None,
|
2734
|
+
pagesize: int | None = None,
|
2735
|
+
page_duration: int | None = None,
|
2736
|
+
) -> FFMpegMuxerOption:
|
2651
2737
|
"""
|
2652
|
-
Ogg
|
2738
|
+
Ogg.
|
2653
2739
|
|
2740
|
+
Args:
|
2741
|
+
serial_offset: serial number offset (from 0 to INT_MAX) (default 0)
|
2742
|
+
oggpagesize: Set preferred Ogg page size. (from 0 to 65025) (default 0)
|
2743
|
+
pagesize: preferred page size in bytes (deprecated) (from 0 to 65025) (default 0)
|
2744
|
+
page_duration: preferred page duration, in microseconds (from 0 to I64_MAX) (default 1000000)
|
2654
2745
|
|
2655
2746
|
Returns:
|
2656
2747
|
the set codec options
|
2748
|
+
|
2657
2749
|
"""
|
2658
|
-
return FFMpegMuxerOption(
|
2750
|
+
return FFMpegMuxerOption(
|
2751
|
+
merge({
|
2752
|
+
"serial_offset": serial_offset,
|
2753
|
+
"oggpagesize": oggpagesize,
|
2754
|
+
"pagesize": pagesize,
|
2755
|
+
"page_duration": page_duration,
|
2756
|
+
})
|
2757
|
+
)
|
2659
2758
|
|
2660
2759
|
|
2661
|
-
def ogv(
|
2760
|
+
def ogv(
|
2761
|
+
serial_offset: int | None = None,
|
2762
|
+
oggpagesize: int | None = None,
|
2763
|
+
pagesize: int | None = None,
|
2764
|
+
page_duration: int | None = None,
|
2765
|
+
) -> FFMpegMuxerOption:
|
2662
2766
|
"""
|
2663
|
-
Ogg Video
|
2767
|
+
Ogg Video.
|
2664
2768
|
|
2769
|
+
Args:
|
2770
|
+
serial_offset: serial number offset (from 0 to INT_MAX) (default 0)
|
2771
|
+
oggpagesize: Set preferred Ogg page size. (from 0 to 65025) (default 0)
|
2772
|
+
pagesize: preferred page size in bytes (deprecated) (from 0 to 65025) (default 0)
|
2773
|
+
page_duration: preferred page duration, in microseconds (from 0 to I64_MAX) (default 1000000)
|
2665
2774
|
|
2666
2775
|
Returns:
|
2667
2776
|
the set codec options
|
2777
|
+
|
2668
2778
|
"""
|
2669
|
-
return FFMpegMuxerOption(
|
2779
|
+
return FFMpegMuxerOption(
|
2780
|
+
merge({
|
2781
|
+
"serial_offset": serial_offset,
|
2782
|
+
"oggpagesize": oggpagesize,
|
2783
|
+
"pagesize": pagesize,
|
2784
|
+
"page_duration": page_duration,
|
2785
|
+
})
|
2786
|
+
)
|
2670
2787
|
|
2671
2788
|
|
2672
2789
|
def oma() -> FFMpegMuxerOption:
|
2673
2790
|
"""
|
2674
|
-
Sony OpenMG audio
|
2675
|
-
|
2791
|
+
Sony OpenMG audio.
|
2676
2792
|
|
2677
2793
|
Returns:
|
2678
2794
|
the set codec options
|
2795
|
+
|
2679
2796
|
"""
|
2680
|
-
return FFMpegMuxerOption(
|
2797
|
+
return FFMpegMuxerOption(merge({}))
|
2681
2798
|
|
2682
2799
|
|
2683
2800
|
def opengl(
|
@@ -2687,7 +2804,7 @@ def opengl(
|
|
2687
2804
|
window_size: str | None = None,
|
2688
2805
|
) -> FFMpegMuxerOption:
|
2689
2806
|
"""
|
2690
|
-
OpenGL output
|
2807
|
+
OpenGL output.
|
2691
2808
|
|
2692
2809
|
Args:
|
2693
2810
|
background: set background color (default "black")
|
@@ -2697,39 +2814,56 @@ def opengl(
|
|
2697
2814
|
|
2698
2815
|
Returns:
|
2699
2816
|
the set codec options
|
2817
|
+
|
2700
2818
|
"""
|
2701
2819
|
return FFMpegMuxerOption(
|
2702
|
-
|
2703
|
-
|
2704
|
-
|
2705
|
-
|
2706
|
-
|
2707
|
-
|
2708
|
-
}
|
2709
|
-
)
|
2820
|
+
merge({
|
2821
|
+
"background": background,
|
2822
|
+
"no_window": no_window,
|
2823
|
+
"window_title": window_title,
|
2824
|
+
"window_size": window_size,
|
2825
|
+
})
|
2710
2826
|
)
|
2711
2827
|
|
2712
2828
|
|
2713
|
-
def opus(
|
2829
|
+
def opus(
|
2830
|
+
serial_offset: int | None = None,
|
2831
|
+
oggpagesize: int | None = None,
|
2832
|
+
pagesize: int | None = None,
|
2833
|
+
page_duration: int | None = None,
|
2834
|
+
) -> FFMpegMuxerOption:
|
2714
2835
|
"""
|
2715
|
-
Ogg Opus
|
2836
|
+
Ogg Opus.
|
2716
2837
|
|
2838
|
+
Args:
|
2839
|
+
serial_offset: serial number offset (from 0 to INT_MAX) (default 0)
|
2840
|
+
oggpagesize: Set preferred Ogg page size. (from 0 to 65025) (default 0)
|
2841
|
+
pagesize: preferred page size in bytes (deprecated) (from 0 to 65025) (default 0)
|
2842
|
+
page_duration: preferred page duration, in microseconds (from 0 to I64_MAX) (default 1000000)
|
2717
2843
|
|
2718
2844
|
Returns:
|
2719
2845
|
the set codec options
|
2846
|
+
|
2720
2847
|
"""
|
2721
|
-
return FFMpegMuxerOption(
|
2848
|
+
return FFMpegMuxerOption(
|
2849
|
+
merge({
|
2850
|
+
"serial_offset": serial_offset,
|
2851
|
+
"oggpagesize": oggpagesize,
|
2852
|
+
"pagesize": pagesize,
|
2853
|
+
"page_duration": page_duration,
|
2854
|
+
})
|
2855
|
+
)
|
2722
2856
|
|
2723
2857
|
|
2724
2858
|
def oss() -> FFMpegMuxerOption:
|
2725
2859
|
"""
|
2726
|
-
OSS (Open Sound System) playback
|
2727
|
-
|
2860
|
+
OSS (Open Sound System) playback.
|
2728
2861
|
|
2729
2862
|
Returns:
|
2730
2863
|
the set codec options
|
2864
|
+
|
2731
2865
|
"""
|
2732
|
-
return FFMpegMuxerOption(
|
2866
|
+
return FFMpegMuxerOption(merge({}))
|
2733
2867
|
|
2734
2868
|
|
2735
2869
|
def psp(
|
@@ -2760,7 +2894,7 @@ def psp(
|
|
2760
2894
|
movie_timescale: int | None = None,
|
2761
2895
|
) -> FFMpegMuxerOption:
|
2762
2896
|
"""
|
2763
|
-
PSP MP4 (MPEG-4 Part 14)
|
2897
|
+
PSP MP4 (MPEG-4 Part 14).
|
2764
2898
|
|
2765
2899
|
Args:
|
2766
2900
|
movflags: MOV muxer flags (default 0)
|
@@ -2791,37 +2925,36 @@ def psp(
|
|
2791
2925
|
|
2792
2926
|
Returns:
|
2793
2927
|
the set codec options
|
2928
|
+
|
2794
2929
|
"""
|
2795
2930
|
return FFMpegMuxerOption(
|
2796
|
-
|
2797
|
-
|
2798
|
-
|
2799
|
-
|
2800
|
-
|
2801
|
-
|
2802
|
-
|
2803
|
-
|
2804
|
-
|
2805
|
-
|
2806
|
-
|
2807
|
-
|
2808
|
-
|
2809
|
-
|
2810
|
-
|
2811
|
-
|
2812
|
-
|
2813
|
-
|
2814
|
-
|
2815
|
-
|
2816
|
-
|
2817
|
-
|
2818
|
-
|
2819
|
-
|
2820
|
-
|
2821
|
-
|
2822
|
-
|
2823
|
-
}
|
2824
|
-
)
|
2931
|
+
merge({
|
2932
|
+
"movflags": movflags,
|
2933
|
+
"moov_size": moov_size,
|
2934
|
+
"rtpflags": rtpflags,
|
2935
|
+
"skip_iods": skip_iods,
|
2936
|
+
"iods_audio_profile": iods_audio_profile,
|
2937
|
+
"iods_video_profile": iods_video_profile,
|
2938
|
+
"frag_duration": frag_duration,
|
2939
|
+
"min_frag_duration": min_frag_duration,
|
2940
|
+
"frag_size": frag_size,
|
2941
|
+
"ism_lookahead": ism_lookahead,
|
2942
|
+
"video_track_timescale": video_track_timescale,
|
2943
|
+
"brand": brand,
|
2944
|
+
"use_editlist": use_editlist,
|
2945
|
+
"fragment_index": fragment_index,
|
2946
|
+
"mov_gamma": mov_gamma,
|
2947
|
+
"frag_interleave": frag_interleave,
|
2948
|
+
"encryption_scheme": encryption_scheme,
|
2949
|
+
"encryption_key": encryption_key,
|
2950
|
+
"encryption_kid": encryption_kid,
|
2951
|
+
"use_stream_ids_as_track_ids": use_stream_ids_as_track_ids,
|
2952
|
+
"write_btrt": write_btrt,
|
2953
|
+
"write_tmcd": write_tmcd,
|
2954
|
+
"write_prft": write_prft,
|
2955
|
+
"empty_hdlr_name": empty_hdlr_name,
|
2956
|
+
"movie_timescale": movie_timescale,
|
2957
|
+
})
|
2825
2958
|
)
|
2826
2959
|
|
2827
2960
|
|
@@ -2836,7 +2969,7 @@ def pulse(
|
|
2836
2969
|
minreq: int | None = None,
|
2837
2970
|
) -> FFMpegMuxerOption:
|
2838
2971
|
"""
|
2839
|
-
Pulse audio output
|
2972
|
+
Pulse audio output.
|
2840
2973
|
|
2841
2974
|
Args:
|
2842
2975
|
server: set PulseAudio server
|
@@ -2850,65 +2983,64 @@ def pulse(
|
|
2850
2983
|
|
2851
2984
|
Returns:
|
2852
2985
|
the set codec options
|
2986
|
+
|
2853
2987
|
"""
|
2854
2988
|
return FFMpegMuxerOption(
|
2855
|
-
|
2856
|
-
|
2857
|
-
|
2858
|
-
|
2859
|
-
|
2860
|
-
|
2861
|
-
|
2862
|
-
|
2863
|
-
|
2864
|
-
|
2865
|
-
}
|
2866
|
-
)
|
2989
|
+
merge({
|
2990
|
+
"server": server,
|
2991
|
+
"name": name,
|
2992
|
+
"stream_name": stream_name,
|
2993
|
+
"device": device,
|
2994
|
+
"buffer_size": buffer_size,
|
2995
|
+
"buffer_duration": buffer_duration,
|
2996
|
+
"prebuf": prebuf,
|
2997
|
+
"minreq": minreq,
|
2998
|
+
})
|
2867
2999
|
)
|
2868
3000
|
|
2869
3001
|
|
2870
3002
|
def rawvideo() -> FFMpegMuxerOption:
|
2871
3003
|
"""
|
2872
|
-
|
2873
|
-
|
3004
|
+
Raw video.
|
2874
3005
|
|
2875
3006
|
Returns:
|
2876
3007
|
the set codec options
|
3008
|
+
|
2877
3009
|
"""
|
2878
|
-
return FFMpegMuxerOption(
|
3010
|
+
return FFMpegMuxerOption(merge({}))
|
2879
3011
|
|
2880
3012
|
|
2881
3013
|
def rm() -> FFMpegMuxerOption:
|
2882
3014
|
"""
|
2883
|
-
RealMedia
|
2884
|
-
|
3015
|
+
RealMedia.
|
2885
3016
|
|
2886
3017
|
Returns:
|
2887
3018
|
the set codec options
|
3019
|
+
|
2888
3020
|
"""
|
2889
|
-
return FFMpegMuxerOption(
|
3021
|
+
return FFMpegMuxerOption(merge({}))
|
2890
3022
|
|
2891
3023
|
|
2892
3024
|
def roq() -> FFMpegMuxerOption:
|
2893
3025
|
"""
|
2894
|
-
|
2895
|
-
|
3026
|
+
Raw id RoQ.
|
2896
3027
|
|
2897
3028
|
Returns:
|
2898
3029
|
the set codec options
|
3030
|
+
|
2899
3031
|
"""
|
2900
|
-
return FFMpegMuxerOption(
|
3032
|
+
return FFMpegMuxerOption(merge({}))
|
2901
3033
|
|
2902
3034
|
|
2903
3035
|
def rso() -> FFMpegMuxerOption:
|
2904
3036
|
"""
|
2905
|
-
Lego Mindstorms RSO
|
2906
|
-
|
3037
|
+
Lego Mindstorms RSO.
|
2907
3038
|
|
2908
3039
|
Returns:
|
2909
3040
|
the set codec options
|
3041
|
+
|
2910
3042
|
"""
|
2911
|
-
return FFMpegMuxerOption(
|
3043
|
+
return FFMpegMuxerOption(merge({}))
|
2912
3044
|
|
2913
3045
|
|
2914
3046
|
def rtp(
|
@@ -2919,7 +3051,7 @@ def rtp(
|
|
2919
3051
|
seq: int | None = None,
|
2920
3052
|
) -> FFMpegMuxerOption:
|
2921
3053
|
"""
|
2922
|
-
RTP output
|
3054
|
+
RTP output.
|
2923
3055
|
|
2924
3056
|
Args:
|
2925
3057
|
rtpflags: RTP muxer flags (default 0)
|
@@ -2930,17 +3062,16 @@ def rtp(
|
|
2930
3062
|
|
2931
3063
|
Returns:
|
2932
3064
|
the set codec options
|
3065
|
+
|
2933
3066
|
"""
|
2934
3067
|
return FFMpegMuxerOption(
|
2935
|
-
|
2936
|
-
|
2937
|
-
|
2938
|
-
|
2939
|
-
|
2940
|
-
|
2941
|
-
|
2942
|
-
}
|
2943
|
-
)
|
3068
|
+
merge({
|
3069
|
+
"rtpflags": rtpflags,
|
3070
|
+
"payload_type": payload_type,
|
3071
|
+
"ssrc": ssrc,
|
3072
|
+
"cname": cname,
|
3073
|
+
"seq": seq,
|
3074
|
+
})
|
2944
3075
|
)
|
2945
3076
|
|
2946
3077
|
|
@@ -2949,7 +3080,7 @@ def rtp_mpegts(
|
|
2949
3080
|
rtp_muxer_options: str | None = None,
|
2950
3081
|
) -> FFMpegMuxerOption:
|
2951
3082
|
"""
|
2952
|
-
RTP/mpegts output format
|
3083
|
+
RTP/mpegts output format.
|
2953
3084
|
|
2954
3085
|
Args:
|
2955
3086
|
mpegts_muxer_options: set list of options for the MPEG-TS muxer
|
@@ -2957,14 +3088,13 @@ def rtp_mpegts(
|
|
2957
3088
|
|
2958
3089
|
Returns:
|
2959
3090
|
the set codec options
|
3091
|
+
|
2960
3092
|
"""
|
2961
3093
|
return FFMpegMuxerOption(
|
2962
|
-
|
2963
|
-
|
2964
|
-
|
2965
|
-
|
2966
|
-
}
|
2967
|
-
)
|
3094
|
+
merge({
|
3095
|
+
"mpegts_muxer_options": mpegts_muxer_options,
|
3096
|
+
"rtp_muxer_options": rtp_muxer_options,
|
3097
|
+
})
|
2968
3098
|
)
|
2969
3099
|
|
2970
3100
|
|
@@ -2977,7 +3107,7 @@ def rtsp(
|
|
2977
3107
|
pkt_size: int | None = None,
|
2978
3108
|
) -> FFMpegMuxerOption:
|
2979
3109
|
"""
|
2980
|
-
RTSP output
|
3110
|
+
RTSP output.
|
2981
3111
|
|
2982
3112
|
Args:
|
2983
3113
|
rtpflags: RTP muxer flags (default 0)
|
@@ -2989,151 +3119,242 @@ def rtsp(
|
|
2989
3119
|
|
2990
3120
|
Returns:
|
2991
3121
|
the set codec options
|
3122
|
+
|
2992
3123
|
"""
|
2993
3124
|
return FFMpegMuxerOption(
|
2994
|
-
|
2995
|
-
|
2996
|
-
|
2997
|
-
|
2998
|
-
|
2999
|
-
|
3000
|
-
|
3001
|
-
|
3002
|
-
}
|
3003
|
-
)
|
3125
|
+
merge({
|
3126
|
+
"rtpflags": rtpflags,
|
3127
|
+
"rtsp_transport": rtsp_transport,
|
3128
|
+
"min_port": min_port,
|
3129
|
+
"max_port": max_port,
|
3130
|
+
"buffer_size": buffer_size,
|
3131
|
+
"pkt_size": pkt_size,
|
3132
|
+
})
|
3004
3133
|
)
|
3005
3134
|
|
3006
3135
|
|
3007
3136
|
def s16be() -> FFMpegMuxerOption:
|
3008
3137
|
"""
|
3009
|
-
PCM signed 16-bit big-endian
|
3010
|
-
|
3138
|
+
PCM signed 16-bit big-endian.
|
3011
3139
|
|
3012
3140
|
Returns:
|
3013
3141
|
the set codec options
|
3142
|
+
|
3014
3143
|
"""
|
3015
|
-
return FFMpegMuxerOption(
|
3144
|
+
return FFMpegMuxerOption(merge({}))
|
3016
3145
|
|
3017
3146
|
|
3018
3147
|
def s16le() -> FFMpegMuxerOption:
|
3019
3148
|
"""
|
3020
|
-
PCM signed 16-bit little-endian
|
3021
|
-
|
3149
|
+
PCM signed 16-bit little-endian.
|
3022
3150
|
|
3023
3151
|
Returns:
|
3024
3152
|
the set codec options
|
3153
|
+
|
3025
3154
|
"""
|
3026
|
-
return FFMpegMuxerOption(
|
3155
|
+
return FFMpegMuxerOption(merge({}))
|
3027
3156
|
|
3028
3157
|
|
3029
3158
|
def s24be() -> FFMpegMuxerOption:
|
3030
3159
|
"""
|
3031
|
-
PCM signed 24-bit big-endian
|
3032
|
-
|
3160
|
+
PCM signed 24-bit big-endian.
|
3033
3161
|
|
3034
3162
|
Returns:
|
3035
3163
|
the set codec options
|
3164
|
+
|
3036
3165
|
"""
|
3037
|
-
return FFMpegMuxerOption(
|
3166
|
+
return FFMpegMuxerOption(merge({}))
|
3038
3167
|
|
3039
3168
|
|
3040
3169
|
def s24le() -> FFMpegMuxerOption:
|
3041
3170
|
"""
|
3042
|
-
PCM signed 24-bit little-endian
|
3043
|
-
|
3171
|
+
PCM signed 24-bit little-endian.
|
3044
3172
|
|
3045
3173
|
Returns:
|
3046
3174
|
the set codec options
|
3175
|
+
|
3047
3176
|
"""
|
3048
|
-
return FFMpegMuxerOption(
|
3177
|
+
return FFMpegMuxerOption(merge({}))
|
3049
3178
|
|
3050
3179
|
|
3051
3180
|
def s32be() -> FFMpegMuxerOption:
|
3052
3181
|
"""
|
3053
|
-
PCM signed 32-bit big-endian
|
3054
|
-
|
3182
|
+
PCM signed 32-bit big-endian.
|
3055
3183
|
|
3056
3184
|
Returns:
|
3057
3185
|
the set codec options
|
3186
|
+
|
3058
3187
|
"""
|
3059
|
-
return FFMpegMuxerOption(
|
3188
|
+
return FFMpegMuxerOption(merge({}))
|
3060
3189
|
|
3061
3190
|
|
3062
3191
|
def s32le() -> FFMpegMuxerOption:
|
3063
3192
|
"""
|
3064
|
-
PCM signed 32-bit little-endian
|
3065
|
-
|
3193
|
+
PCM signed 32-bit little-endian.
|
3066
3194
|
|
3067
3195
|
Returns:
|
3068
3196
|
the set codec options
|
3197
|
+
|
3069
3198
|
"""
|
3070
|
-
return FFMpegMuxerOption(
|
3199
|
+
return FFMpegMuxerOption(merge({}))
|
3071
3200
|
|
3072
3201
|
|
3073
3202
|
def s8() -> FFMpegMuxerOption:
|
3074
3203
|
"""
|
3075
|
-
PCM signed 8-bit
|
3076
|
-
|
3204
|
+
PCM signed 8-bit.
|
3077
3205
|
|
3078
3206
|
Returns:
|
3079
3207
|
the set codec options
|
3208
|
+
|
3080
3209
|
"""
|
3081
|
-
return FFMpegMuxerOption(
|
3210
|
+
return FFMpegMuxerOption(merge({}))
|
3082
3211
|
|
3083
3212
|
|
3084
3213
|
def sap() -> FFMpegMuxerOption:
|
3085
3214
|
"""
|
3086
|
-
SAP output
|
3087
|
-
|
3215
|
+
SAP output.
|
3088
3216
|
|
3089
3217
|
Returns:
|
3090
3218
|
the set codec options
|
3219
|
+
|
3091
3220
|
"""
|
3092
|
-
return FFMpegMuxerOption(
|
3221
|
+
return FFMpegMuxerOption(merge({}))
|
3093
3222
|
|
3094
3223
|
|
3095
3224
|
def sbc() -> FFMpegMuxerOption:
|
3096
3225
|
"""
|
3097
|
-
|
3098
|
-
|
3226
|
+
Raw SBC.
|
3099
3227
|
|
3100
3228
|
Returns:
|
3101
3229
|
the set codec options
|
3230
|
+
|
3102
3231
|
"""
|
3103
|
-
return FFMpegMuxerOption(
|
3232
|
+
return FFMpegMuxerOption(merge({}))
|
3104
3233
|
|
3105
3234
|
|
3106
3235
|
def scc() -> FFMpegMuxerOption:
|
3107
3236
|
"""
|
3108
|
-
Scenarist Closed Captions
|
3109
|
-
|
3237
|
+
Scenarist Closed Captions.
|
3110
3238
|
|
3111
3239
|
Returns:
|
3112
3240
|
the set codec options
|
3241
|
+
|
3113
3242
|
"""
|
3114
|
-
return FFMpegMuxerOption(
|
3243
|
+
return FFMpegMuxerOption(merge({}))
|
3115
3244
|
|
3116
3245
|
|
3117
|
-
def segment(
|
3246
|
+
def segment(
|
3247
|
+
reference_stream: str | None = None,
|
3248
|
+
segment_format: str | None = None,
|
3249
|
+
segment_format_options: str | None = None,
|
3250
|
+
segment_list: str | None = None,
|
3251
|
+
segment_header_filename: str | None = None,
|
3252
|
+
segment_list_flags: str | None = None,
|
3253
|
+
segment_list_size: int | None = None,
|
3254
|
+
segment_list_type: int
|
3255
|
+
| None
|
3256
|
+
| Literal["flat", "csv", "ext", "ffconcat", "m3u8", "hls"] = None,
|
3257
|
+
segment_atclocktime: bool | None = None,
|
3258
|
+
segment_clocktime_offset: str | None = None,
|
3259
|
+
segment_clocktime_wrap_duration: str | None = None,
|
3260
|
+
segment_time: str | None = None,
|
3261
|
+
segment_time_delta: str | None = None,
|
3262
|
+
min_seg_duration: str | None = None,
|
3263
|
+
segment_times: str | None = None,
|
3264
|
+
segment_frames: str | None = None,
|
3265
|
+
segment_wrap: int | None = None,
|
3266
|
+
segment_list_entry_prefix: str | None = None,
|
3267
|
+
segment_start_number: int | None = None,
|
3268
|
+
segment_wrap_number: int | None = None,
|
3269
|
+
strftime: bool | None = None,
|
3270
|
+
increment_tc: bool | None = None,
|
3271
|
+
break_non_keyframes: bool | None = None,
|
3272
|
+
individual_header_trailer: bool | None = None,
|
3273
|
+
write_header_trailer: bool | None = None,
|
3274
|
+
reset_timestamps: bool | None = None,
|
3275
|
+
initial_offset: str | None = None,
|
3276
|
+
write_empty_segments: bool | None = None,
|
3277
|
+
) -> FFMpegMuxerOption:
|
3118
3278
|
"""
|
3119
|
-
|
3279
|
+
Segment.
|
3120
3280
|
|
3281
|
+
Args:
|
3282
|
+
reference_stream: set reference stream (default "auto")
|
3283
|
+
segment_format: set container format used for the segments
|
3284
|
+
segment_format_options: set list of options for the container format used for the segments
|
3285
|
+
segment_list: set the segment list filename
|
3286
|
+
segment_header_filename: write a single file containing the header
|
3287
|
+
segment_list_flags: set flags affecting segment list generation (default cache)
|
3288
|
+
segment_list_size: set the maximum number of playlist entries (from 0 to INT_MAX) (default 0)
|
3289
|
+
segment_list_type: set the segment list type (from -1 to 4) (default -1)
|
3290
|
+
segment_atclocktime: set segment to be cut at clocktime (default false)
|
3291
|
+
segment_clocktime_offset: set segment clocktime offset (default 0)
|
3292
|
+
segment_clocktime_wrap_duration: set segment clocktime wrapping duration (default INT64_MAX)
|
3293
|
+
segment_time: set segment duration (default 2)
|
3294
|
+
segment_time_delta: set approximation value used for the segment times (default 0)
|
3295
|
+
min_seg_duration: set minimum segment duration (default 0)
|
3296
|
+
segment_times: set segment split time points
|
3297
|
+
segment_frames: set segment split frame numbers
|
3298
|
+
segment_wrap: set number after which the index wraps (from 0 to INT_MAX) (default 0)
|
3299
|
+
segment_list_entry_prefix: set base url prefix for segments
|
3300
|
+
segment_start_number: set the sequence number of the first segment (from 0 to INT_MAX) (default 0)
|
3301
|
+
segment_wrap_number: set the number of wrap before the first segment (from 0 to INT_MAX) (default 0)
|
3302
|
+
strftime: set filename expansion with strftime at segment creation (default false)
|
3303
|
+
increment_tc: increment timecode between each segment (default false)
|
3304
|
+
break_non_keyframes: allow breaking segments on non-keyframes (default false)
|
3305
|
+
individual_header_trailer: write header/trailer to each segment (default true)
|
3306
|
+
write_header_trailer: write a header to the first segment and a trailer to the last one (default true)
|
3307
|
+
reset_timestamps: reset timestamps at the beginning of each segment (default false)
|
3308
|
+
initial_offset: set initial timestamp offset (default 0)
|
3309
|
+
write_empty_segments: allow writing empty 'filler' segments (default false)
|
3121
3310
|
|
3122
3311
|
Returns:
|
3123
3312
|
the set codec options
|
3313
|
+
|
3124
3314
|
"""
|
3125
|
-
return FFMpegMuxerOption(
|
3315
|
+
return FFMpegMuxerOption(
|
3316
|
+
merge({
|
3317
|
+
"reference_stream": reference_stream,
|
3318
|
+
"segment_format": segment_format,
|
3319
|
+
"segment_format_options": segment_format_options,
|
3320
|
+
"segment_list": segment_list,
|
3321
|
+
"segment_header_filename": segment_header_filename,
|
3322
|
+
"segment_list_flags": segment_list_flags,
|
3323
|
+
"segment_list_size": segment_list_size,
|
3324
|
+
"segment_list_type": segment_list_type,
|
3325
|
+
"segment_atclocktime": segment_atclocktime,
|
3326
|
+
"segment_clocktime_offset": segment_clocktime_offset,
|
3327
|
+
"segment_clocktime_wrap_duration": segment_clocktime_wrap_duration,
|
3328
|
+
"segment_time": segment_time,
|
3329
|
+
"segment_time_delta": segment_time_delta,
|
3330
|
+
"min_seg_duration": min_seg_duration,
|
3331
|
+
"segment_times": segment_times,
|
3332
|
+
"segment_frames": segment_frames,
|
3333
|
+
"segment_wrap": segment_wrap,
|
3334
|
+
"segment_list_entry_prefix": segment_list_entry_prefix,
|
3335
|
+
"segment_start_number": segment_start_number,
|
3336
|
+
"segment_wrap_number": segment_wrap_number,
|
3337
|
+
"strftime": strftime,
|
3338
|
+
"increment_tc": increment_tc,
|
3339
|
+
"break_non_keyframes": break_non_keyframes,
|
3340
|
+
"individual_header_trailer": individual_header_trailer,
|
3341
|
+
"write_header_trailer": write_header_trailer,
|
3342
|
+
"reset_timestamps": reset_timestamps,
|
3343
|
+
"initial_offset": initial_offset,
|
3344
|
+
"write_empty_segments": write_empty_segments,
|
3345
|
+
})
|
3346
|
+
)
|
3126
3347
|
|
3127
3348
|
|
3128
3349
|
def smjpeg() -> FFMpegMuxerOption:
|
3129
3350
|
"""
|
3130
|
-
Loki SDL MJPEG
|
3131
|
-
|
3351
|
+
Loki SDL MJPEG.
|
3132
3352
|
|
3133
3353
|
Returns:
|
3134
3354
|
the set codec options
|
3355
|
+
|
3135
3356
|
"""
|
3136
|
-
return FFMpegMuxerOption(
|
3357
|
+
return FFMpegMuxerOption(merge({}))
|
3137
3358
|
|
3138
3359
|
|
3139
3360
|
def smoothstreaming(
|
@@ -3144,7 +3365,7 @@ def smoothstreaming(
|
|
3144
3365
|
remove_at_exit: bool | None = None,
|
3145
3366
|
) -> FFMpegMuxerOption:
|
3146
3367
|
"""
|
3147
|
-
Smooth Streaming Muxer
|
3368
|
+
Smooth Streaming Muxer.
|
3148
3369
|
|
3149
3370
|
Args:
|
3150
3371
|
window_size: number of fragments kept in the manifest (from 0 to INT_MAX) (default 0)
|
@@ -3155,29 +3376,28 @@ def smoothstreaming(
|
|
3155
3376
|
|
3156
3377
|
Returns:
|
3157
3378
|
the set codec options
|
3379
|
+
|
3158
3380
|
"""
|
3159
3381
|
return FFMpegMuxerOption(
|
3160
|
-
|
3161
|
-
|
3162
|
-
|
3163
|
-
|
3164
|
-
|
3165
|
-
|
3166
|
-
|
3167
|
-
}
|
3168
|
-
)
|
3382
|
+
merge({
|
3383
|
+
"window_size": window_size,
|
3384
|
+
"extra_window_size": extra_window_size,
|
3385
|
+
"lookahead_count": lookahead_count,
|
3386
|
+
"min_frag_duration": min_frag_duration,
|
3387
|
+
"remove_at_exit": remove_at_exit,
|
3388
|
+
})
|
3169
3389
|
)
|
3170
3390
|
|
3171
3391
|
|
3172
3392
|
def sox() -> FFMpegMuxerOption:
|
3173
3393
|
"""
|
3174
|
-
SoX (Sound eXchange) native
|
3175
|
-
|
3394
|
+
SoX (Sound eXchange) native.
|
3176
3395
|
|
3177
3396
|
Returns:
|
3178
3397
|
the set codec options
|
3398
|
+
|
3179
3399
|
"""
|
3180
|
-
return FFMpegMuxerOption(
|
3400
|
+
return FFMpegMuxerOption(merge({}))
|
3181
3401
|
|
3182
3402
|
|
3183
3403
|
def spdif(
|
@@ -3186,7 +3406,7 @@ def spdif(
|
|
3186
3406
|
dtshd_fallback_time: int | None = None,
|
3187
3407
|
) -> FFMpegMuxerOption:
|
3188
3408
|
"""
|
3189
|
-
IEC 61937 (used on S/PDIF - IEC958)
|
3409
|
+
IEC 61937 (used on S/PDIF - IEC958).
|
3190
3410
|
|
3191
3411
|
Args:
|
3192
3412
|
spdif_flags: IEC 61937 encapsulation flags (default 0)
|
@@ -3195,82 +3415,120 @@ def spdif(
|
|
3195
3415
|
|
3196
3416
|
Returns:
|
3197
3417
|
the set codec options
|
3418
|
+
|
3198
3419
|
"""
|
3199
3420
|
return FFMpegMuxerOption(
|
3200
|
-
|
3201
|
-
|
3202
|
-
|
3203
|
-
|
3204
|
-
|
3205
|
-
}
|
3206
|
-
)
|
3421
|
+
merge({
|
3422
|
+
"spdif_flags": spdif_flags,
|
3423
|
+
"dtshd_rate": dtshd_rate,
|
3424
|
+
"dtshd_fallback_time": dtshd_fallback_time,
|
3425
|
+
})
|
3207
3426
|
)
|
3208
3427
|
|
3209
3428
|
|
3210
|
-
def spx(
|
3429
|
+
def spx(
|
3430
|
+
serial_offset: int | None = None,
|
3431
|
+
oggpagesize: int | None = None,
|
3432
|
+
pagesize: int | None = None,
|
3433
|
+
page_duration: int | None = None,
|
3434
|
+
) -> FFMpegMuxerOption:
|
3211
3435
|
"""
|
3212
|
-
Ogg Speex
|
3436
|
+
Ogg Speex.
|
3213
3437
|
|
3438
|
+
Args:
|
3439
|
+
serial_offset: serial number offset (from 0 to INT_MAX) (default 0)
|
3440
|
+
oggpagesize: Set preferred Ogg page size. (from 0 to 65025) (default 0)
|
3441
|
+
pagesize: preferred page size in bytes (deprecated) (from 0 to 65025) (default 0)
|
3442
|
+
page_duration: preferred page duration, in microseconds (from 0 to I64_MAX) (default 1000000)
|
3214
3443
|
|
3215
3444
|
Returns:
|
3216
3445
|
the set codec options
|
3446
|
+
|
3217
3447
|
"""
|
3218
|
-
return FFMpegMuxerOption(
|
3448
|
+
return FFMpegMuxerOption(
|
3449
|
+
merge({
|
3450
|
+
"serial_offset": serial_offset,
|
3451
|
+
"oggpagesize": oggpagesize,
|
3452
|
+
"pagesize": pagesize,
|
3453
|
+
"page_duration": page_duration,
|
3454
|
+
})
|
3455
|
+
)
|
3219
3456
|
|
3220
3457
|
|
3221
3458
|
def srt() -> FFMpegMuxerOption:
|
3222
3459
|
"""
|
3223
|
-
SubRip subtitle
|
3224
|
-
|
3460
|
+
SubRip subtitle.
|
3225
3461
|
|
3226
3462
|
Returns:
|
3227
3463
|
the set codec options
|
3464
|
+
|
3228
3465
|
"""
|
3229
|
-
return FFMpegMuxerOption(
|
3466
|
+
return FFMpegMuxerOption(merge({}))
|
3230
3467
|
|
3231
3468
|
|
3232
|
-
def streamhash(
|
3469
|
+
def streamhash(
|
3470
|
+
hash: str | None = None,
|
3471
|
+
) -> FFMpegMuxerOption:
|
3233
3472
|
"""
|
3234
|
-
Per-stream hash testing
|
3473
|
+
Per-stream hash testing.
|
3235
3474
|
|
3475
|
+
Args:
|
3476
|
+
hash: set hash to use (default "sha256")
|
3236
3477
|
|
3237
3478
|
Returns:
|
3238
3479
|
the set codec options
|
3480
|
+
|
3239
3481
|
"""
|
3240
|
-
return FFMpegMuxerOption(
|
3482
|
+
return FFMpegMuxerOption(
|
3483
|
+
merge({
|
3484
|
+
"hash": hash,
|
3485
|
+
})
|
3486
|
+
)
|
3241
3487
|
|
3242
3488
|
|
3243
3489
|
def sup() -> FFMpegMuxerOption:
|
3244
3490
|
"""
|
3245
|
-
|
3246
|
-
|
3491
|
+
Raw HDMV Presentation Graphic Stream subtitles.
|
3247
3492
|
|
3248
3493
|
Returns:
|
3249
3494
|
the set codec options
|
3495
|
+
|
3250
3496
|
"""
|
3251
|
-
return FFMpegMuxerOption(
|
3497
|
+
return FFMpegMuxerOption(merge({}))
|
3252
3498
|
|
3253
3499
|
|
3254
|
-
def svcd(
|
3500
|
+
def svcd(
|
3501
|
+
muxrate: int | None = None,
|
3502
|
+
preload: int | None = None,
|
3503
|
+
) -> FFMpegMuxerOption:
|
3255
3504
|
"""
|
3256
|
-
MPEG-2 PS (SVCD)
|
3505
|
+
MPEG-2 PS (SVCD).
|
3257
3506
|
|
3507
|
+
Args:
|
3508
|
+
muxrate: (from 0 to 1.67772e+09) (default 0)
|
3509
|
+
preload: Initial demux-decode delay in microseconds. (from 0 to INT_MAX) (default 500000)
|
3258
3510
|
|
3259
3511
|
Returns:
|
3260
3512
|
the set codec options
|
3513
|
+
|
3261
3514
|
"""
|
3262
|
-
return FFMpegMuxerOption(
|
3515
|
+
return FFMpegMuxerOption(
|
3516
|
+
merge({
|
3517
|
+
"muxrate": muxrate,
|
3518
|
+
"preload": preload,
|
3519
|
+
})
|
3520
|
+
)
|
3263
3521
|
|
3264
3522
|
|
3265
3523
|
def swf() -> FFMpegMuxerOption:
|
3266
3524
|
"""
|
3267
|
-
SWF (ShockWave Flash)
|
3268
|
-
|
3525
|
+
SWF (ShockWave Flash).
|
3269
3526
|
|
3270
3527
|
Returns:
|
3271
3528
|
the set codec options
|
3529
|
+
|
3272
3530
|
"""
|
3273
|
-
return FFMpegMuxerOption(
|
3531
|
+
return FFMpegMuxerOption(merge({}))
|
3274
3532
|
|
3275
3533
|
|
3276
3534
|
def tee(
|
@@ -3278,7 +3536,7 @@ def tee(
|
|
3278
3536
|
fifo_options: str | None = None,
|
3279
3537
|
) -> FFMpegMuxerOption:
|
3280
3538
|
"""
|
3281
|
-
Multiple muxer tee
|
3539
|
+
Multiple muxer tee.
|
3282
3540
|
|
3283
3541
|
Args:
|
3284
3542
|
use_fifo: Use fifo pseudo-muxer to separate actual muxers from encoder (default false)
|
@@ -3286,224 +3544,247 @@ def tee(
|
|
3286
3544
|
|
3287
3545
|
Returns:
|
3288
3546
|
the set codec options
|
3547
|
+
|
3289
3548
|
"""
|
3290
3549
|
return FFMpegMuxerOption(
|
3291
|
-
|
3292
|
-
|
3293
|
-
|
3294
|
-
|
3295
|
-
}
|
3296
|
-
)
|
3550
|
+
merge({
|
3551
|
+
"use_fifo": use_fifo,
|
3552
|
+
"fifo_options": fifo_options,
|
3553
|
+
})
|
3297
3554
|
)
|
3298
3555
|
|
3299
3556
|
|
3300
3557
|
def truehd() -> FFMpegMuxerOption:
|
3301
3558
|
"""
|
3302
|
-
|
3303
|
-
|
3559
|
+
Raw TrueHD.
|
3304
3560
|
|
3305
3561
|
Returns:
|
3306
3562
|
the set codec options
|
3563
|
+
|
3307
3564
|
"""
|
3308
|
-
return FFMpegMuxerOption(
|
3565
|
+
return FFMpegMuxerOption(merge({}))
|
3309
3566
|
|
3310
3567
|
|
3311
3568
|
def tta() -> FFMpegMuxerOption:
|
3312
3569
|
"""
|
3313
|
-
TTA (True Audio)
|
3314
|
-
|
3570
|
+
TTA (True Audio).
|
3315
3571
|
|
3316
3572
|
Returns:
|
3317
3573
|
the set codec options
|
3574
|
+
|
3318
3575
|
"""
|
3319
|
-
return FFMpegMuxerOption(
|
3576
|
+
return FFMpegMuxerOption(merge({}))
|
3320
3577
|
|
3321
3578
|
|
3322
3579
|
def ttml() -> FFMpegMuxerOption:
|
3323
3580
|
"""
|
3324
|
-
TTML subtitle
|
3325
|
-
|
3581
|
+
TTML subtitle.
|
3326
3582
|
|
3327
3583
|
Returns:
|
3328
3584
|
the set codec options
|
3585
|
+
|
3329
3586
|
"""
|
3330
|
-
return FFMpegMuxerOption(
|
3587
|
+
return FFMpegMuxerOption(merge({}))
|
3331
3588
|
|
3332
3589
|
|
3333
3590
|
def u16be() -> FFMpegMuxerOption:
|
3334
3591
|
"""
|
3335
|
-
PCM unsigned 16-bit big-endian
|
3336
|
-
|
3592
|
+
PCM unsigned 16-bit big-endian.
|
3337
3593
|
|
3338
3594
|
Returns:
|
3339
3595
|
the set codec options
|
3596
|
+
|
3340
3597
|
"""
|
3341
|
-
return FFMpegMuxerOption(
|
3598
|
+
return FFMpegMuxerOption(merge({}))
|
3342
3599
|
|
3343
3600
|
|
3344
3601
|
def u16le() -> FFMpegMuxerOption:
|
3345
3602
|
"""
|
3346
|
-
PCM unsigned 16-bit little-endian
|
3347
|
-
|
3603
|
+
PCM unsigned 16-bit little-endian.
|
3348
3604
|
|
3349
3605
|
Returns:
|
3350
3606
|
the set codec options
|
3607
|
+
|
3351
3608
|
"""
|
3352
|
-
return FFMpegMuxerOption(
|
3609
|
+
return FFMpegMuxerOption(merge({}))
|
3353
3610
|
|
3354
3611
|
|
3355
3612
|
def u24be() -> FFMpegMuxerOption:
|
3356
3613
|
"""
|
3357
|
-
PCM unsigned 24-bit big-endian
|
3358
|
-
|
3614
|
+
PCM unsigned 24-bit big-endian.
|
3359
3615
|
|
3360
3616
|
Returns:
|
3361
3617
|
the set codec options
|
3618
|
+
|
3362
3619
|
"""
|
3363
|
-
return FFMpegMuxerOption(
|
3620
|
+
return FFMpegMuxerOption(merge({}))
|
3364
3621
|
|
3365
3622
|
|
3366
3623
|
def u24le() -> FFMpegMuxerOption:
|
3367
3624
|
"""
|
3368
|
-
PCM unsigned 24-bit little-endian
|
3369
|
-
|
3625
|
+
PCM unsigned 24-bit little-endian.
|
3370
3626
|
|
3371
3627
|
Returns:
|
3372
3628
|
the set codec options
|
3629
|
+
|
3373
3630
|
"""
|
3374
|
-
return FFMpegMuxerOption(
|
3631
|
+
return FFMpegMuxerOption(merge({}))
|
3375
3632
|
|
3376
3633
|
|
3377
3634
|
def u32be() -> FFMpegMuxerOption:
|
3378
3635
|
"""
|
3379
|
-
PCM unsigned 32-bit big-endian
|
3380
|
-
|
3636
|
+
PCM unsigned 32-bit big-endian.
|
3381
3637
|
|
3382
3638
|
Returns:
|
3383
3639
|
the set codec options
|
3640
|
+
|
3384
3641
|
"""
|
3385
|
-
return FFMpegMuxerOption(
|
3642
|
+
return FFMpegMuxerOption(merge({}))
|
3386
3643
|
|
3387
3644
|
|
3388
3645
|
def u32le() -> FFMpegMuxerOption:
|
3389
3646
|
"""
|
3390
|
-
PCM unsigned 32-bit little-endian
|
3391
|
-
|
3647
|
+
PCM unsigned 32-bit little-endian.
|
3392
3648
|
|
3393
3649
|
Returns:
|
3394
3650
|
the set codec options
|
3651
|
+
|
3395
3652
|
"""
|
3396
|
-
return FFMpegMuxerOption(
|
3653
|
+
return FFMpegMuxerOption(merge({}))
|
3397
3654
|
|
3398
3655
|
|
3399
3656
|
def u8() -> FFMpegMuxerOption:
|
3400
3657
|
"""
|
3401
|
-
PCM unsigned 8-bit
|
3402
|
-
|
3658
|
+
PCM unsigned 8-bit.
|
3403
3659
|
|
3404
3660
|
Returns:
|
3405
3661
|
the set codec options
|
3662
|
+
|
3406
3663
|
"""
|
3407
|
-
return FFMpegMuxerOption(
|
3664
|
+
return FFMpegMuxerOption(merge({}))
|
3408
3665
|
|
3409
3666
|
|
3410
3667
|
def uncodedframecrc() -> FFMpegMuxerOption:
|
3411
3668
|
"""
|
3412
|
-
|
3413
|
-
|
3669
|
+
Uncoded framecrc testing.
|
3414
3670
|
|
3415
3671
|
Returns:
|
3416
3672
|
the set codec options
|
3673
|
+
|
3417
3674
|
"""
|
3418
|
-
return FFMpegMuxerOption(
|
3675
|
+
return FFMpegMuxerOption(merge({}))
|
3419
3676
|
|
3420
3677
|
|
3421
3678
|
def vc1() -> FFMpegMuxerOption:
|
3422
3679
|
"""
|
3423
|
-
|
3424
|
-
|
3680
|
+
Raw VC-1 video.
|
3425
3681
|
|
3426
3682
|
Returns:
|
3427
3683
|
the set codec options
|
3684
|
+
|
3428
3685
|
"""
|
3429
|
-
return FFMpegMuxerOption(
|
3686
|
+
return FFMpegMuxerOption(merge({}))
|
3430
3687
|
|
3431
3688
|
|
3432
3689
|
def vc1test() -> FFMpegMuxerOption:
|
3433
3690
|
"""
|
3434
|
-
VC-1 test bitstream
|
3435
|
-
|
3691
|
+
VC-1 test bitstream.
|
3436
3692
|
|
3437
3693
|
Returns:
|
3438
3694
|
the set codec options
|
3695
|
+
|
3439
3696
|
"""
|
3440
|
-
return FFMpegMuxerOption(
|
3697
|
+
return FFMpegMuxerOption(merge({}))
|
3441
3698
|
|
3442
3699
|
|
3443
|
-
def vcd(
|
3700
|
+
def vcd(
|
3701
|
+
muxrate: int | None = None,
|
3702
|
+
preload: int | None = None,
|
3703
|
+
) -> FFMpegMuxerOption:
|
3444
3704
|
"""
|
3445
|
-
MPEG-1 Systems / MPEG program stream (VCD)
|
3705
|
+
MPEG-1 Systems / MPEG program stream (VCD).
|
3446
3706
|
|
3707
|
+
Args:
|
3708
|
+
muxrate: (from 0 to 1.67772e+09) (default 0)
|
3709
|
+
preload: Initial demux-decode delay in microseconds. (from 0 to INT_MAX) (default 500000)
|
3447
3710
|
|
3448
3711
|
Returns:
|
3449
3712
|
the set codec options
|
3713
|
+
|
3450
3714
|
"""
|
3451
|
-
return FFMpegMuxerOption(
|
3715
|
+
return FFMpegMuxerOption(
|
3716
|
+
merge({
|
3717
|
+
"muxrate": muxrate,
|
3718
|
+
"preload": preload,
|
3719
|
+
})
|
3720
|
+
)
|
3452
3721
|
|
3453
3722
|
|
3454
3723
|
def vidc() -> FFMpegMuxerOption:
|
3455
3724
|
"""
|
3456
|
-
PCM Archimedes VIDC
|
3457
|
-
|
3725
|
+
PCM Archimedes VIDC.
|
3458
3726
|
|
3459
3727
|
Returns:
|
3460
3728
|
the set codec options
|
3729
|
+
|
3461
3730
|
"""
|
3462
|
-
return FFMpegMuxerOption(
|
3731
|
+
return FFMpegMuxerOption(merge({}))
|
3463
3732
|
|
3464
3733
|
|
3465
|
-
def vob(
|
3734
|
+
def vob(
|
3735
|
+
muxrate: int | None = None,
|
3736
|
+
preload: int | None = None,
|
3737
|
+
) -> FFMpegMuxerOption:
|
3466
3738
|
"""
|
3467
|
-
MPEG-2 PS (VOB)
|
3739
|
+
MPEG-2 PS (VOB).
|
3468
3740
|
|
3741
|
+
Args:
|
3742
|
+
muxrate: (from 0 to 1.67772e+09) (default 0)
|
3743
|
+
preload: Initial demux-decode delay in microseconds. (from 0 to INT_MAX) (default 500000)
|
3469
3744
|
|
3470
3745
|
Returns:
|
3471
3746
|
the set codec options
|
3747
|
+
|
3472
3748
|
"""
|
3473
|
-
return FFMpegMuxerOption(
|
3749
|
+
return FFMpegMuxerOption(
|
3750
|
+
merge({
|
3751
|
+
"muxrate": muxrate,
|
3752
|
+
"preload": preload,
|
3753
|
+
})
|
3754
|
+
)
|
3474
3755
|
|
3475
3756
|
|
3476
3757
|
def voc() -> FFMpegMuxerOption:
|
3477
3758
|
"""
|
3478
|
-
Creative Voice
|
3479
|
-
|
3759
|
+
Creative Voice.
|
3480
3760
|
|
3481
3761
|
Returns:
|
3482
3762
|
the set codec options
|
3763
|
+
|
3483
3764
|
"""
|
3484
|
-
return FFMpegMuxerOption(
|
3765
|
+
return FFMpegMuxerOption(merge({}))
|
3485
3766
|
|
3486
3767
|
|
3487
3768
|
def vvc() -> FFMpegMuxerOption:
|
3488
3769
|
"""
|
3489
|
-
|
3490
|
-
|
3770
|
+
Raw H.266/VVC video.
|
3491
3771
|
|
3492
3772
|
Returns:
|
3493
3773
|
the set codec options
|
3774
|
+
|
3494
3775
|
"""
|
3495
|
-
return FFMpegMuxerOption(
|
3776
|
+
return FFMpegMuxerOption(merge({}))
|
3496
3777
|
|
3497
3778
|
|
3498
3779
|
def w64() -> FFMpegMuxerOption:
|
3499
3780
|
"""
|
3500
|
-
Sony Wave64
|
3501
|
-
|
3781
|
+
Sony Wave64.
|
3502
3782
|
|
3503
3783
|
Returns:
|
3504
3784
|
the set codec options
|
3785
|
+
|
3505
3786
|
"""
|
3506
|
-
return FFMpegMuxerOption(
|
3787
|
+
return FFMpegMuxerOption(merge({}))
|
3507
3788
|
|
3508
3789
|
|
3509
3790
|
def wav(
|
@@ -3515,7 +3796,7 @@ def wav(
|
|
3515
3796
|
peak_ppv: int | None = None,
|
3516
3797
|
) -> FFMpegMuxerOption:
|
3517
3798
|
"""
|
3518
|
-
WAV / WAVE (Waveform Audio)
|
3799
|
+
WAV / WAVE (Waveform Audio).
|
3519
3800
|
|
3520
3801
|
Args:
|
3521
3802
|
write_bext: Write BEXT chunk. (default false)
|
@@ -3527,18 +3808,17 @@ def wav(
|
|
3527
3808
|
|
3528
3809
|
Returns:
|
3529
3810
|
the set codec options
|
3811
|
+
|
3530
3812
|
"""
|
3531
3813
|
return FFMpegMuxerOption(
|
3532
|
-
|
3533
|
-
|
3534
|
-
|
3535
|
-
|
3536
|
-
|
3537
|
-
|
3538
|
-
|
3539
|
-
|
3540
|
-
}
|
3541
|
-
)
|
3814
|
+
merge({
|
3815
|
+
"write_bext": write_bext,
|
3816
|
+
"write_peak": write_peak,
|
3817
|
+
"rf64": rf64,
|
3818
|
+
"peak_block_size": peak_block_size,
|
3819
|
+
"peak_format": peak_format,
|
3820
|
+
"peak_ppv": peak_ppv,
|
3821
|
+
})
|
3542
3822
|
)
|
3543
3823
|
|
3544
3824
|
|
@@ -3556,7 +3836,7 @@ def webm(
|
|
3556
3836
|
default_mode: int | None | Literal["infer", "infer_no_subs", "passthrough"] = None,
|
3557
3837
|
) -> FFMpegMuxerOption:
|
3558
3838
|
"""
|
3559
|
-
WebM
|
3839
|
+
WebM.
|
3560
3840
|
|
3561
3841
|
Args:
|
3562
3842
|
reserve_index_space: Reserve a given amount of space (in bytes) at the beginning of the file for the index (cues). (from 0 to INT_MAX) (default 0)
|
@@ -3573,23 +3853,22 @@ def webm(
|
|
3573
3853
|
|
3574
3854
|
Returns:
|
3575
3855
|
the set codec options
|
3856
|
+
|
3576
3857
|
"""
|
3577
3858
|
return FFMpegMuxerOption(
|
3578
|
-
|
3579
|
-
|
3580
|
-
|
3581
|
-
|
3582
|
-
|
3583
|
-
|
3584
|
-
|
3585
|
-
|
3586
|
-
|
3587
|
-
|
3588
|
-
|
3589
|
-
|
3590
|
-
|
3591
|
-
}
|
3592
|
-
)
|
3859
|
+
merge({
|
3860
|
+
"reserve_index_space": reserve_index_space,
|
3861
|
+
"cues_to_front": cues_to_front,
|
3862
|
+
"cluster_size_limit": cluster_size_limit,
|
3863
|
+
"cluster_time_limit": cluster_time_limit,
|
3864
|
+
"dash": dash,
|
3865
|
+
"dash_track_number": dash_track_number,
|
3866
|
+
"live": live,
|
3867
|
+
"allow_raw_vfw": allow_raw_vfw,
|
3868
|
+
"flipped_raw_rgb": flipped_raw_rgb,
|
3869
|
+
"write_crc32": write_crc32,
|
3870
|
+
"default_mode": default_mode,
|
3871
|
+
})
|
3593
3872
|
)
|
3594
3873
|
|
3595
3874
|
|
@@ -3600,7 +3879,7 @@ def webm_chunk(
|
|
3600
3879
|
method: str | None = None,
|
3601
3880
|
) -> FFMpegMuxerOption:
|
3602
3881
|
"""
|
3603
|
-
WebM Chunk Muxer
|
3882
|
+
WebM Chunk Muxer.
|
3604
3883
|
|
3605
3884
|
Args:
|
3606
3885
|
chunk_start_index: start index of the chunk (from 0 to INT_MAX) (default 0)
|
@@ -3610,16 +3889,15 @@ def webm_chunk(
|
|
3610
3889
|
|
3611
3890
|
Returns:
|
3612
3891
|
the set codec options
|
3892
|
+
|
3613
3893
|
"""
|
3614
3894
|
return FFMpegMuxerOption(
|
3615
|
-
|
3616
|
-
|
3617
|
-
|
3618
|
-
|
3619
|
-
|
3620
|
-
|
3621
|
-
}
|
3622
|
-
)
|
3895
|
+
merge({
|
3896
|
+
"chunk_start_index": chunk_start_index,
|
3897
|
+
"header": header,
|
3898
|
+
"audio_chunk_duration": audio_chunk_duration,
|
3899
|
+
"method": method,
|
3900
|
+
})
|
3623
3901
|
)
|
3624
3902
|
|
3625
3903
|
|
@@ -3633,7 +3911,7 @@ def webm_dash_manifest(
|
|
3633
3911
|
minimum_update_period: int | None = None,
|
3634
3912
|
) -> FFMpegMuxerOption:
|
3635
3913
|
"""
|
3636
|
-
WebM DASH Manifest
|
3914
|
+
WebM DASH Manifest.
|
3637
3915
|
|
3638
3916
|
Args:
|
3639
3917
|
adaptation_sets: Adaptation sets. Syntax: id=0,streams=0,1,2 id=1,streams=3,4 and so on
|
@@ -3646,19 +3924,18 @@ def webm_dash_manifest(
|
|
3646
3924
|
|
3647
3925
|
Returns:
|
3648
3926
|
the set codec options
|
3927
|
+
|
3649
3928
|
"""
|
3650
3929
|
return FFMpegMuxerOption(
|
3651
|
-
|
3652
|
-
|
3653
|
-
|
3654
|
-
|
3655
|
-
|
3656
|
-
|
3657
|
-
|
3658
|
-
|
3659
|
-
|
3660
|
-
}
|
3661
|
-
)
|
3930
|
+
merge({
|
3931
|
+
"adaptation_sets": adaptation_sets,
|
3932
|
+
"live": live,
|
3933
|
+
"chunk_start_index": chunk_start_index,
|
3934
|
+
"chunk_duration_ms": chunk_duration_ms,
|
3935
|
+
"utc_timing_url": utc_timing_url,
|
3936
|
+
"time_shift_buffer_depth": time_shift_buffer_depth,
|
3937
|
+
"minimum_update_period": minimum_update_period,
|
3938
|
+
})
|
3662
3939
|
)
|
3663
3940
|
|
3664
3941
|
|
@@ -3666,65 +3943,64 @@ def webp(
|
|
3666
3943
|
loop: int | None = None,
|
3667
3944
|
) -> FFMpegMuxerOption:
|
3668
3945
|
"""
|
3669
|
-
WebP
|
3946
|
+
WebP.
|
3670
3947
|
|
3671
3948
|
Args:
|
3672
3949
|
loop: Number of times to loop the output: 0 - infinite loop (from 0 to 65535) (default 1)
|
3673
3950
|
|
3674
3951
|
Returns:
|
3675
3952
|
the set codec options
|
3953
|
+
|
3676
3954
|
"""
|
3677
3955
|
return FFMpegMuxerOption(
|
3678
|
-
|
3679
|
-
|
3680
|
-
|
3681
|
-
}
|
3682
|
-
)
|
3956
|
+
merge({
|
3957
|
+
"loop": loop,
|
3958
|
+
})
|
3683
3959
|
)
|
3684
3960
|
|
3685
3961
|
|
3686
3962
|
def webvtt() -> FFMpegMuxerOption:
|
3687
3963
|
"""
|
3688
|
-
WebVTT subtitle
|
3689
|
-
|
3964
|
+
WebVTT subtitle.
|
3690
3965
|
|
3691
3966
|
Returns:
|
3692
3967
|
the set codec options
|
3968
|
+
|
3693
3969
|
"""
|
3694
|
-
return FFMpegMuxerOption(
|
3970
|
+
return FFMpegMuxerOption(merge({}))
|
3695
3971
|
|
3696
3972
|
|
3697
3973
|
def wsaud() -> FFMpegMuxerOption:
|
3698
3974
|
"""
|
3699
|
-
Westwood Studios audio
|
3700
|
-
|
3975
|
+
Westwood Studios audio.
|
3701
3976
|
|
3702
3977
|
Returns:
|
3703
3978
|
the set codec options
|
3979
|
+
|
3704
3980
|
"""
|
3705
|
-
return FFMpegMuxerOption(
|
3981
|
+
return FFMpegMuxerOption(merge({}))
|
3706
3982
|
|
3707
3983
|
|
3708
3984
|
def wtv() -> FFMpegMuxerOption:
|
3709
3985
|
"""
|
3710
|
-
Windows Television (WTV)
|
3711
|
-
|
3986
|
+
Windows Television (WTV).
|
3712
3987
|
|
3713
3988
|
Returns:
|
3714
3989
|
the set codec options
|
3990
|
+
|
3715
3991
|
"""
|
3716
|
-
return FFMpegMuxerOption(
|
3992
|
+
return FFMpegMuxerOption(merge({}))
|
3717
3993
|
|
3718
3994
|
|
3719
3995
|
def wv() -> FFMpegMuxerOption:
|
3720
3996
|
"""
|
3721
|
-
|
3722
|
-
|
3997
|
+
Raw WavPack.
|
3723
3998
|
|
3724
3999
|
Returns:
|
3725
4000
|
the set codec options
|
4001
|
+
|
3726
4002
|
"""
|
3727
|
-
return FFMpegMuxerOption(
|
4003
|
+
return FFMpegMuxerOption(merge({}))
|
3728
4004
|
|
3729
4005
|
|
3730
4006
|
def xv(
|
@@ -3736,7 +4012,7 @@ def xv(
|
|
3736
4012
|
window_y: int | None = None,
|
3737
4013
|
) -> FFMpegMuxerOption:
|
3738
4014
|
"""
|
3739
|
-
XV (XVideo) output device
|
4015
|
+
XV (XVideo) output device.
|
3740
4016
|
|
3741
4017
|
Args:
|
3742
4018
|
display_name: set display name
|
@@ -3748,27 +4024,26 @@ def xv(
|
|
3748
4024
|
|
3749
4025
|
Returns:
|
3750
4026
|
the set codec options
|
4027
|
+
|
3751
4028
|
"""
|
3752
4029
|
return FFMpegMuxerOption(
|
3753
|
-
|
3754
|
-
|
3755
|
-
|
3756
|
-
|
3757
|
-
|
3758
|
-
|
3759
|
-
|
3760
|
-
|
3761
|
-
}
|
3762
|
-
)
|
4030
|
+
merge({
|
4031
|
+
"display_name": display_name,
|
4032
|
+
"window_id": window_id,
|
4033
|
+
"window_size": window_size,
|
4034
|
+
"window_title": window_title,
|
4035
|
+
"window_x": window_x,
|
4036
|
+
"window_y": window_y,
|
4037
|
+
})
|
3763
4038
|
)
|
3764
4039
|
|
3765
4040
|
|
3766
4041
|
def yuv4mpegpipe() -> FFMpegMuxerOption:
|
3767
4042
|
"""
|
3768
|
-
YUV4MPEG pipe
|
3769
|
-
|
4043
|
+
YUV4MPEG pipe.
|
3770
4044
|
|
3771
4045
|
Returns:
|
3772
4046
|
the set codec options
|
4047
|
+
|
3773
4048
|
"""
|
3774
|
-
return FFMpegMuxerOption(
|
4049
|
+
return FFMpegMuxerOption(merge({}))
|