You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseNotImplementedError('audio merging mode is not currently implemented. Please use the `complex_filtergraph=ffmpegio.filtergraph.presets.merge_audio(...)` to assign a custom filtergraph.')
1897
+
raiseNotImplementedError(
1898
+
"audio merging mode is not currently implemented. Please use the `complex_filtergraph=ffmpegio.filtergraph.presets.merge_audio(...)` to assign a custom filtergraph."
1899
+
)
1896
1900
do_merge=len(a_ids) >1
1897
1901
ifdo_merge:
1898
1902
ifmerge_audio_streamsisTrue:
@@ -2324,3 +2328,76 @@ def assign_std_pipes(
2324
2328
2325
2329
returnstdin, stdout, pinput
2326
2330
2331
+
2332
+
definit_std_pipes(
2333
+
stdin: IO|None,
2334
+
stdout: IO|None,
2335
+
input_info: list[InputSourceDict],
2336
+
output_info: list[OutputDestinationDict],
2337
+
update_rate: float|None=None,
2338
+
blocksize: int|None=None,
2339
+
queue_size: int|None=None,
2340
+
) ->ExitStack|None:
2341
+
"""initialize named pipes for read & write operations with FFmpeg
2342
+
2343
+
:param args: FFmpeg option arguments (modified)
2344
+
:param input_info: FFmpeg input information, its length matches that of `args['inputs']`
2345
+
:param output_info: FFmpeg output information, its length matches that of `args['outputs']` (modified)
2346
+
:param update_rate: target rate at which queue transactions will occur for raw data output,
2347
+
defaults to None (1 video frame or 1024 audio sample at a time)
2348
+
:param blocksize: encoded data output block size in bytes, defaults to None (2**20 bytes)
2349
+
:returns: a list of indices of the FFmpeg outputs that are raw data streams
2350
+
2351
+
In addition to the retured list, this function modifies the dicts in its arguements.
2352
+
2353
+
- The pipe names are assigned to the URLs of FFmpeg input and output (`args['inputs'][][0]`
2354
+
and `args['outputs'][][0]`)
2355
+
- The reader threads for FFmpeg outputs that are written to buffers (i.e.,
2356
+
`output_info[]['dst_type']=='buffer'`) are saved as `output_info[]['reader']`
2357
+
so the reader object can be used to retrieve the data.
2358
+
2359
+
2360
+
if any output is a piped, overwrite flag (-y) is automatically inserted
0 commit comments