diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[not config][graph].json b/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[not config][graph].json new file mode 100644 index 00000000..90381bd7 --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[not config][graph].json @@ -0,0 +1,46 @@ +{ + "index": null, + "node": { + "filename": "output.mp4", + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video", + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "tmp1.mp4", + "inputs": [], + "kwargs": [] + } + }, + { + "index": null, + "node": { + "filename": "tmp2.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [ + [ + "n", + 2 + ] + ], + "name": "concat", + "output_typings": [ + "video" + ] + } + } + ], + "kwargs": [] + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[not config][graph].png b/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[not config][graph].png deleted file mode 100644 index bfbc5c3d..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[not config][graph].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[not set with global args][graph].json b/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[not set with global args][graph].json new file mode 100644 index 00000000..e7128ba5 --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[not set with global args][graph].json @@ -0,0 +1,54 @@ +{ + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "filename": "output.mp4", + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video", + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "tmp1.mp4", + "inputs": [], + "kwargs": [] + } + }, + { + "index": null, + "node": { + "filename": "tmp2.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [ + [ + "n", + 2 + ] + ], + "name": "concat", + "output_typings": [ + "video" + ] + } + } + ], + "kwargs": [] + } + } + ], + "kwargs": [] + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[not set with global args][graph].png b/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[not set with global args][graph].png deleted file mode 100644 index c942e8fb..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[not set with global args][graph].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[set n is False with global args][graph].json b/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[set n is False with global args][graph].json new file mode 100644 index 00000000..53e31b6e --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[set n is False with global args][graph].json @@ -0,0 +1,59 @@ +{ + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "filename": "output.mp4", + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video", + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "tmp1.mp4", + "inputs": [], + "kwargs": [] + } + }, + { + "index": null, + "node": { + "filename": "tmp2.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [ + [ + "n", + 2 + ] + ], + "name": "concat", + "output_typings": [ + "video" + ] + } + } + ], + "kwargs": [] + } + } + ], + "kwargs": [ + [ + "n", + false + ] + ] + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[set n is False with global args][graph].png b/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[set n is False with global args][graph].png deleted file mode 100644 index a4e0282b..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[set n is False with global args][graph].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[set n is True with global args][graph].json b/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[set n is True with global args][graph].json new file mode 100644 index 00000000..c06213cf --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[set n is True with global args][graph].json @@ -0,0 +1,59 @@ +{ + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "filename": "output.mp4", + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video", + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "tmp1.mp4", + "inputs": [], + "kwargs": [] + } + }, + { + "index": null, + "node": { + "filename": "tmp2.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [ + [ + "n", + 2 + ] + ], + "name": "concat", + "output_typings": [ + "video" + ] + } + } + ], + "kwargs": [] + } + } + ], + "kwargs": [ + [ + "n", + true + ] + ] + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[set n is True with global args][graph].png b/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[set n is True with global args][graph].png deleted file mode 100644 index 174149c2..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[set n is True with global args][graph].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[set y is True with global args0][graph].json b/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[set y is True with global args0][graph].json new file mode 100644 index 00000000..0de79b8d --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[set y is True with global args0][graph].json @@ -0,0 +1,59 @@ +{ + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "filename": "output.mp4", + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video", + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "tmp1.mp4", + "inputs": [], + "kwargs": [] + } + }, + { + "index": null, + "node": { + "filename": "tmp2.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [ + [ + "n", + 2 + ] + ], + "name": "concat", + "output_typings": [ + "video" + ] + } + } + ], + "kwargs": [] + } + } + ], + "kwargs": [ + [ + "y", + true + ] + ] + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[set y is True with global args0][graph].png b/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[set y is True with global args0][graph].png deleted file mode 100644 index 3fcb64b4..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[set y is True with global args0][graph].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[set y is True with global args1][graph].json b/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[set y is True with global args1][graph].json new file mode 100644 index 00000000..214a8efc --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[set y is True with global args1][graph].json @@ -0,0 +1,59 @@ +{ + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "filename": "output.mp4", + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video", + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "tmp1.mp4", + "inputs": [], + "kwargs": [] + } + }, + { + "index": null, + "node": { + "filename": "tmp2.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [ + [ + "n", + 2 + ] + ], + "name": "concat", + "output_typings": [ + "video" + ] + } + } + ], + "kwargs": [] + } + } + ], + "kwargs": [ + [ + "y", + false + ] + ] + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[set y is True with global args1][graph].png b/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[set y is True with global args1][graph].png deleted file mode 100644 index 592810a5..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[set y is True with global args1][graph].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[set y with overwrite_output][graph].json b/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[set y with overwrite_output][graph].json new file mode 100644 index 00000000..0de79b8d --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[set y with overwrite_output][graph].json @@ -0,0 +1,59 @@ +{ + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "filename": "output.mp4", + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video", + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "tmp1.mp4", + "inputs": [], + "kwargs": [] + } + }, + { + "index": null, + "node": { + "filename": "tmp2.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [ + [ + "n", + 2 + ] + ], + "name": "concat", + "output_typings": [ + "video" + ] + } + } + ], + "kwargs": [] + } + } + ], + "kwargs": [ + [ + "y", + true + ] + ] + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[set y with overwrite_output][graph].png b/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[set y with overwrite_output][graph].png deleted file mode 100644 index 3fcb64b4..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_global_node_with_args_overwrite[set y with overwrite_output][graph].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_node_prop[filter-node][graph].json b/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_node_prop[filter-node][graph].json new file mode 100644 index 00000000..d721d494 --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_node_prop[filter-node][graph].json @@ -0,0 +1,27 @@ +{ + "index": null, + "node": { + "input_typings": [], + "inputs": [], + "kwargs": [ + [ + "w", + "1920" + ], + [ + "h", + "1080" + ], + [ + "true", + true + ], + [ + "false", + false + ] + ], + "name": "scale", + "output_typings": [] + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_node_prop[filter-node][graph].png b/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_node_prop[filter-node][graph].png deleted file mode 100644 index 5c4cd7d2..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_node_prop[filter-node][graph].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_node_prop[global-node][graph].json b/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_node_prop[global-node][graph].json new file mode 100644 index 00000000..65ca3371 --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_node_prop[global-node][graph].json @@ -0,0 +1,38 @@ +{ + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "filename": "temp", + "inputs": [ + { + "index": null, + "node": { + "filename": "tmp.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [] + } + } + ], + "kwargs": [ + [ + "y", + true + ], + [ + "no", + false + ], + [ + "speed", + 1 + ] + ] + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_node_prop[global-node][graph].png b/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_node_prop[global-node][graph].png deleted file mode 100644 index 4c7a4de1..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_node_prop[global-node][graph].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_node_prop[input-node][graph].json b/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_node_prop[input-node][graph].json new file mode 100644 index 00000000..980de9c5 --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_node_prop[input-node][graph].json @@ -0,0 +1,13 @@ +{ + "index": null, + "node": { + "filename": "test.mp4", + "inputs": [], + "kwargs": [ + [ + "f", + "mp4" + ] + ] + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_node_prop[input-node][graph].png b/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_node_prop[input-node][graph].png deleted file mode 100644 index a16b229a..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_node_prop[input-node][graph].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_node_prop[merge-output-node][graph].json b/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_node_prop[merge-output-node][graph].json new file mode 100644 index 00000000..639d844f --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_node_prop[merge-output-node][graph].json @@ -0,0 +1,42 @@ +{ + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "filename": "out1.mp4", + "inputs": [ + { + "index": null, + "node": { + "filename": "tmp1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [] + } + }, + { + "index": null, + "node": { + "filename": "out2.mp4", + "inputs": [ + { + "index": null, + "node": { + "filename": "tmp2.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [] + } + } + ], + "kwargs": [] + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_node_prop[merge-output-node][graph].png b/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_node_prop[merge-output-node][graph].png deleted file mode 100644 index 5b4c0815..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_node_prop[merge-output-node][graph].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_node_prop[output-node][graph].json b/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_node_prop[output-node][graph].json new file mode 100644 index 00000000..cb37765c --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_node_prop[output-node][graph].json @@ -0,0 +1,13 @@ +{ + "index": null, + "node": { + "filename": "test.mp4", + "inputs": [], + "kwargs": [ + [ + "bufsize", + "64k" + ] + ] + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_node_prop[output-node][graph].png b/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_node_prop[output-node][graph].png deleted file mode 100644 index 75ef53cb..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_nodes/test_node_prop[output-node][graph].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_dag[org].json b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_dag[org].json new file mode 100644 index 00000000..86aecc9c --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_dag[org].json @@ -0,0 +1,35 @@ +{ + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } + } + ], + "kwargs": [], + "name": "B" + } + } + ], + "kwargs": [], + "name": "C" + } + } + ], + "kwargs": [], + "name": "D" + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_dag[org].png b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_dag[org].png deleted file mode 100644 index d7534f96..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_dag[org].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[linear][org].json b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[linear][org].json new file mode 100644 index 00000000..86aecc9c --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[linear][org].json @@ -0,0 +1,35 @@ +{ + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } + } + ], + "kwargs": [], + "name": "B" + } + } + ], + "kwargs": [], + "name": "C" + } + } + ], + "kwargs": [], + "name": "D" + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[linear][org].png b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[linear][org].png deleted file mode 100644 index d7534f96..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[linear][org].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[linear][replace A - E].json b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[linear][replace A - E].json index 78ffe0c3..b994f322 100644 --- a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[linear][replace A - E].json +++ b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[linear][replace A - E].json @@ -1,41 +1,44 @@ { - "inputs": [ - { - "index": null, - "node": { - "inputs": [ - { - "index": null, - "node": { - "inputs": [ - { - "index": null, - "node": { - "inputs": [ - { - "index": null, - "node": { - "inputs": [], - "kwargs": [], - "name": "A" + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } } - } - ], - "kwargs": [], - "name": "E" + ], + "kwargs": [], + "name": "E" + } } - } - ], - "kwargs": [], - "name": "B" + ], + "kwargs": [], + "name": "B" + } } - } - ], - "kwargs": [], - "name": "C" + ], + "kwargs": [], + "name": "C" + } } - } - ], - "kwargs": [], - "name": "D" + ], + "kwargs": [], + "name": "D" + } } diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[linear][replace A - E].png b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[linear][replace A - E].png deleted file mode 100644 index 7fdc9600..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[linear][replace A - E].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[linear][replace B - E].json b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[linear][replace B - E].json index 5dce4c46..fc1fdbaa 100644 --- a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[linear][replace B - E].json +++ b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[linear][replace B - E].json @@ -1,32 +1,35 @@ { - "inputs": [ - { - "index": null, - "node": { - "inputs": [ - { - "index": null, - "node": { - "inputs": [ - { - "index": null, - "node": { - "inputs": [], - "kwargs": [], - "name": "A" + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } } - } - ], - "kwargs": [], - "name": "E" + ], + "kwargs": [], + "name": "E" + } } - } - ], - "kwargs": [], - "name": "C" + ], + "kwargs": [], + "name": "C" + } } - } - ], - "kwargs": [], - "name": "D" + ], + "kwargs": [], + "name": "D" + } } diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[linear][replace B - E].png b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[linear][replace B - E].png deleted file mode 100644 index 02b65d1e..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[linear][replace B - E].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[linear][replace C - E].json b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[linear][replace C - E].json index 302233a6..ff1cd4f4 100644 --- a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[linear][replace C - E].json +++ b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[linear][replace C - E].json @@ -1,23 +1,26 @@ { - "inputs": [ - { - "index": null, - "node": { - "inputs": [ - { - "index": null, - "node": { - "inputs": [], - "kwargs": [], - "name": "A" + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } } - } - ], - "kwargs": [], - "name": "E" + ], + "kwargs": [], + "name": "E" + } } - } - ], - "kwargs": [], - "name": "D" + ], + "kwargs": [], + "name": "D" + } } diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[linear][replace C - E].png b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[linear][replace C - E].png deleted file mode 100644 index 85c0d0e1..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[linear][replace C - E].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[linear][replace D - E].json b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[linear][replace D - E].json index 07b58ed9..e1ee512d 100644 --- a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[linear][replace D - E].json +++ b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[linear][replace D - E].json @@ -1,14 +1,17 @@ { - "inputs": [ - { - "index": null, - "node": { - "inputs": [], - "kwargs": [], - "name": "A" + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } } - } - ], - "kwargs": [], - "name": "E" + ], + "kwargs": [], + "name": "E" + } } diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[linear][replace D - E].png b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[linear][replace D - E].png deleted file mode 100644 index d0a388db..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[linear][replace D - E].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[multi_loop][org].json b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[multi_loop][org].json new file mode 100644 index 00000000..ca608056 --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[multi_loop][org].json @@ -0,0 +1,60 @@ +{ + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } + }, + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } + } + ], + "kwargs": [], + "name": "B" + } + } + ], + "kwargs": [], + "name": "C" + } + }, + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } + } + ], + "kwargs": [], + "name": "B" + } + } + ], + "kwargs": [], + "name": "D" + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[multi_loop][org].png b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[multi_loop][org].png deleted file mode 100644 index d8703dfe..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[multi_loop][org].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[multi_loop][replace A - E].json b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[multi_loop][replace A - E].json index 141d0a6c..339aa722 100644 --- a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[multi_loop][replace A - E].json +++ b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[multi_loop][replace A - E].json @@ -1,84 +1,87 @@ { - "inputs": [ - { - "index": null, - "node": { - "inputs": [ - { - "index": null, - "node": { - "inputs": [ - { - "index": null, - "node": { - "inputs": [], - "kwargs": [], - "name": "A" + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } } - } - ], - "kwargs": [], - "name": "E" - } - }, - { - "index": null, - "node": { - "inputs": [ - { - "index": null, - "node": { - "inputs": [ - { - "index": null, - "node": { - "inputs": [], - "kwargs": [], - "name": "A" + ], + "kwargs": [], + "name": "E" + } + }, + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } } - } - ], - "kwargs": [], - "name": "E" + ], + "kwargs": [], + "name": "E" + } } - } - ], - "kwargs": [], - "name": "B" + ], + "kwargs": [], + "name": "B" + } } - } - ], - "kwargs": [], - "name": "C" - } - }, - { - "index": null, - "node": { - "inputs": [ - { - "index": null, - "node": { - "inputs": [ - { - "index": null, - "node": { - "inputs": [], - "kwargs": [], - "name": "A" + ], + "kwargs": [], + "name": "C" + } + }, + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } } - } - ], - "kwargs": [], - "name": "E" + ], + "kwargs": [], + "name": "E" + } } - } - ], - "kwargs": [], - "name": "B" + ], + "kwargs": [], + "name": "B" + } } - } - ], - "kwargs": [], - "name": "D" + ], + "kwargs": [], + "name": "D" + } } diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[multi_loop][replace A - E].png b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[multi_loop][replace A - E].png deleted file mode 100644 index 35edfa89..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[multi_loop][replace A - E].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[multi_loop][replace B - E].json b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[multi_loop][replace B - E].json index 45beb861..3e82fb64 100644 --- a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[multi_loop][replace B - E].json +++ b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[multi_loop][replace B - E].json @@ -1,57 +1,60 @@ { - "inputs": [ - { - "index": null, - "node": { - "inputs": [ - { - "index": null, - "node": { - "inputs": [], - "kwargs": [], - "name": "A" - } - }, - { - "index": null, - "node": { - "inputs": [ - { - "index": null, - "node": { - "inputs": [], - "kwargs": [], - "name": "A" + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } + }, + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } } - } - ], - "kwargs": [], - "name": "E" + ], + "kwargs": [], + "name": "E" + } } - } - ], - "kwargs": [], - "name": "C" - } - }, - { - "index": null, - "node": { - "inputs": [ - { - "index": null, - "node": { - "inputs": [], - "kwargs": [], - "name": "A" + ], + "kwargs": [], + "name": "C" + } + }, + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } } - } - ], - "kwargs": [], - "name": "E" + ], + "kwargs": [], + "name": "E" + } } - } - ], - "kwargs": [], - "name": "D" + ], + "kwargs": [], + "name": "D" + } } diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[multi_loop][replace B - E].png b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[multi_loop][replace B - E].png deleted file mode 100644 index 61d118e2..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[multi_loop][replace B - E].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[multi_loop][replace C - E].json b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[multi_loop][replace C - E].json index 01cae506..4d4577c7 100644 --- a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[multi_loop][replace C - E].json +++ b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[multi_loop][replace C - E].json @@ -1,40 +1,43 @@ { - "inputs": [ - { - "index": null, - "node": { - "inputs": [ - { - "index": null, - "node": { - "inputs": [], - "kwargs": [], - "name": "A" + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } } - } - ], - "kwargs": [], - "name": "E" - } - }, - { - "index": null, - "node": { - "inputs": [ - { - "index": null, - "node": { - "inputs": [], - "kwargs": [], - "name": "A" + ], + "kwargs": [], + "name": "E" + } + }, + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } } - } - ], - "kwargs": [], - "name": "B" + ], + "kwargs": [], + "name": "B" + } } - } - ], - "kwargs": [], - "name": "D" + ], + "kwargs": [], + "name": "D" + } } diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[multi_loop][replace C - E].png b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[multi_loop][replace C - E].png deleted file mode 100644 index a3e6241a..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[multi_loop][replace C - E].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[multi_loop][replace D - E].json b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[multi_loop][replace D - E].json index 07b58ed9..e1ee512d 100644 --- a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[multi_loop][replace D - E].json +++ b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[multi_loop][replace D - E].json @@ -1,14 +1,17 @@ { - "inputs": [ - { - "index": null, - "node": { - "inputs": [], - "kwargs": [], - "name": "A" + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } } - } - ], - "kwargs": [], - "name": "E" + ], + "kwargs": [], + "name": "E" + } } diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[multi_loop][replace D - E].png b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[multi_loop][replace D - E].png deleted file mode 100644 index d0a388db..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[multi_loop][replace D - E].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[simple_loop][org].json b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[simple_loop][org].json new file mode 100644 index 00000000..6816e950 --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[simple_loop][org].json @@ -0,0 +1,43 @@ +{ + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } + } + ], + "kwargs": [], + "name": "C" + } + }, + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } + } + ], + "kwargs": [], + "name": "B" + } + } + ], + "kwargs": [], + "name": "D" + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[simple_loop][org].png b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[simple_loop][org].png deleted file mode 100644 index 009007ba..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[simple_loop][org].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[simple_loop][replace A - E].json b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[simple_loop][replace A - E].json index 13f49629..fe41417a 100644 --- a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[simple_loop][replace A - E].json +++ b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[simple_loop][replace A - E].json @@ -1,58 +1,61 @@ { - "inputs": [ - { - "index": null, - "node": { - "inputs": [ - { - "index": null, - "node": { - "inputs": [ - { - "index": null, - "node": { - "inputs": [], - "kwargs": [], - "name": "A" + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } } - } - ], - "kwargs": [], - "name": "E" + ], + "kwargs": [], + "name": "E" + } } - } - ], - "kwargs": [], - "name": "C" - } - }, - { - "index": null, - "node": { - "inputs": [ - { - "index": null, - "node": { - "inputs": [ - { - "index": null, - "node": { - "inputs": [], - "kwargs": [], - "name": "A" + ], + "kwargs": [], + "name": "C" + } + }, + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } } - } - ], - "kwargs": [], - "name": "E" + ], + "kwargs": [], + "name": "E" + } } - } - ], - "kwargs": [], - "name": "B" + ], + "kwargs": [], + "name": "B" + } } - } - ], - "kwargs": [], - "name": "D" + ], + "kwargs": [], + "name": "D" + } } diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[simple_loop][replace A - E].png b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[simple_loop][replace A - E].png deleted file mode 100644 index 479d4c69..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[simple_loop][replace A - E].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[simple_loop][replace B - E].json b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[simple_loop][replace B - E].json index 1aa199e4..4adb8887 100644 --- a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[simple_loop][replace B - E].json +++ b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[simple_loop][replace B - E].json @@ -1,40 +1,43 @@ { - "inputs": [ - { - "index": null, - "node": { - "inputs": [ - { - "index": null, - "node": { - "inputs": [], - "kwargs": [], - "name": "A" + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } } - } - ], - "kwargs": [], - "name": "C" - } - }, - { - "index": null, - "node": { - "inputs": [ - { - "index": null, - "node": { - "inputs": [], - "kwargs": [], - "name": "A" + ], + "kwargs": [], + "name": "C" + } + }, + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } } - } - ], - "kwargs": [], - "name": "E" + ], + "kwargs": [], + "name": "E" + } } - } - ], - "kwargs": [], - "name": "D" + ], + "kwargs": [], + "name": "D" + } } diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[simple_loop][replace B - E].png b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[simple_loop][replace B - E].png deleted file mode 100644 index 24bfcaa1..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[simple_loop][replace B - E].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[simple_loop][replace C - E].json b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[simple_loop][replace C - E].json index 01cae506..4d4577c7 100644 --- a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[simple_loop][replace C - E].json +++ b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[simple_loop][replace C - E].json @@ -1,40 +1,43 @@ { - "inputs": [ - { - "index": null, - "node": { - "inputs": [ - { - "index": null, - "node": { - "inputs": [], - "kwargs": [], - "name": "A" + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } } - } - ], - "kwargs": [], - "name": "E" - } - }, - { - "index": null, - "node": { - "inputs": [ - { - "index": null, - "node": { - "inputs": [], - "kwargs": [], - "name": "A" + ], + "kwargs": [], + "name": "E" + } + }, + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } } - } - ], - "kwargs": [], - "name": "B" + ], + "kwargs": [], + "name": "B" + } } - } - ], - "kwargs": [], - "name": "D" + ], + "kwargs": [], + "name": "D" + } } diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[simple_loop][replace C - E].png b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[simple_loop][replace C - E].png deleted file mode 100644 index a3e6241a..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[simple_loop][replace C - E].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[simple_loop][replace D - E].json b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[simple_loop][replace D - E].json index 07b58ed9..e1ee512d 100644 --- a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[simple_loop][replace D - E].json +++ b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[simple_loop][replace D - E].json @@ -1,14 +1,17 @@ { - "inputs": [ - { - "index": null, - "node": { - "inputs": [], - "kwargs": [], - "name": "A" + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } } - } - ], - "kwargs": [], - "name": "E" + ], + "kwargs": [], + "name": "E" + } } diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[simple_loop][replace D - E].png b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[simple_loop][replace D - E].png deleted file mode 100644 index d0a388db..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[simple_loop][replace D - E].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[update_node][org].json b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[update_node][org].json new file mode 100644 index 00000000..4034da4e --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[update_node][org].json @@ -0,0 +1,60 @@ +{ + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } + } + ], + "kwargs": [], + "name": "B" + } + }, + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } + } + ], + "kwargs": [], + "name": "C" + } + }, + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } + } + ], + "kwargs": [], + "name": "B" + } + } + ], + "kwargs": [], + "name": "D" + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[update_node][org].png b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[update_node][org].png deleted file mode 100644 index 777bc1cc..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[update_node][org].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[update_node][replace B - B#].json b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[update_node][replace B - B#].json index 399d3cbe..35faccac 100644 --- a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[update_node][replace B - B#].json +++ b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[update_node][replace B - B#].json @@ -1,57 +1,60 @@ { - "inputs": [ - { - "index": null, - "node": { - "inputs": [ - { - "index": null, - "node": { - "inputs": [ - { - "index": null, - "node": { - "inputs": [], - "kwargs": [], - "name": "A" + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } } - } - ], - "kwargs": [], - "name": "B#" + ], + "kwargs": [], + "name": "B#" + } + }, + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } } - }, - { - "index": null, - "node": { - "inputs": [], - "kwargs": [], - "name": "A" + ], + "kwargs": [], + "name": "C" + } + }, + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } } - } - ], - "kwargs": [], - "name": "C" + ], + "kwargs": [], + "name": "B#" + } } - }, - { - "index": null, - "node": { - "inputs": [ - { - "index": null, - "node": { - "inputs": [], - "kwargs": [], - "name": "A" - } - } - ], - "kwargs": [], - "name": "B#" - } - } - ], - "kwargs": [], - "name": "D" + ], + "kwargs": [], + "name": "D" + } } diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[update_node][replace B - B#].png b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[update_node][replace B - B#].png deleted file mode 100644 index 572df03a..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[update_node][replace B - B#].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[update_node][replace C - C##].json b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[update_node][replace C - C##].json index 12726266..6c215b6d 100644 --- a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[update_node][replace C - C##].json +++ b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[update_node][replace C - C##].json @@ -1,57 +1,60 @@ { - "inputs": [ - { - "index": null, - "node": { - "inputs": [ - { - "index": null, - "node": { - "inputs": [ - { - "index": null, - "node": { - "inputs": [], - "kwargs": [], - "name": "A" + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } } - } - ], - "kwargs": [], - "name": "B#" + ], + "kwargs": [], + "name": "B#" + } + }, + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } } - }, - { - "index": null, - "node": { - "inputs": [], - "kwargs": [], - "name": "A" + ], + "kwargs": [], + "name": "C##" + } + }, + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } } - } - ], - "kwargs": [], - "name": "C##" + ], + "kwargs": [], + "name": "B" + } } - }, - { - "index": null, - "node": { - "inputs": [ - { - "index": null, - "node": { - "inputs": [], - "kwargs": [], - "name": "A" - } - } - ], - "kwargs": [], - "name": "B" - } - } - ], - "kwargs": [], - "name": "D" + ], + "kwargs": [], + "name": "D" + } } diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[update_node][replace C - C##].png b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[update_node][replace C - C##].png deleted file mode 100644 index dc2cc2b2..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[update_node][replace C - C##].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[update_node][replace C - C#].json b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[update_node][replace C - C#].json index f7feff37..34fc3ef6 100644 --- a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[update_node][replace C - C#].json +++ b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[update_node][replace C - C#].json @@ -1,57 +1,60 @@ { - "inputs": [ - { - "index": null, - "node": { - "inputs": [ - { - "index": null, - "node": { - "inputs": [ - { - "index": null, - "node": { - "inputs": [], - "kwargs": [], - "name": "A" + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } } - } - ], - "kwargs": [], - "name": "B" + ], + "kwargs": [], + "name": "B" + } + }, + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } } - }, - { - "index": null, - "node": { - "inputs": [], - "kwargs": [], - "name": "A" + ], + "kwargs": [], + "name": "C#" + } + }, + { + "index": null, + "node": { + "inputs": [ + { + "index": null, + "node": { + "inputs": [], + "kwargs": [], + "name": "A" + } } - } - ], - "kwargs": [], - "name": "C#" + ], + "kwargs": [], + "name": "B" + } } - }, - { - "index": null, - "node": { - "inputs": [ - { - "index": null, - "node": { - "inputs": [], - "kwargs": [], - "name": "A" - } - } - ], - "kwargs": [], - "name": "B" - } - } - ], - "kwargs": [], - "name": "D" + ], + "kwargs": [], + "name": "D" + } } diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[update_node][replace C - C#].png b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[update_node][replace C - C#].png deleted file mode 100644 index b9fe0bec..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_replace[update_node][replace C - C#].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_stream_view.png b/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_stream_view.png deleted file mode 100644 index 777bc1cc..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_schema/test_stream_view.png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[amix-stream-2][add-split].json b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[amix-stream-2][add-split].json new file mode 100644 index 00000000..3a62bb78 --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[amix-stream-2][add-split].json @@ -0,0 +1,137 @@ +{ + "index": null, + "node": { + "filename": "tmp.mp4", + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "audio", + "audio" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "audio" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "audio" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "areverse", + "output_typings": [ + "audio" + ] + } + } + ], + "kwargs": [ + [ + "outputs", + 2 + ] + ], + "name": "asplit", + "output_typings": [ + "audio", + "audio" + ] + } + }, + { + "index": 0, + "node": { + "input_typings": [ + "audio" + ], + "inputs": [ + { + "index": 1, + "node": { + "input_typings": [ + "audio" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "audio" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "areverse", + "output_typings": [ + "audio" + ] + } + } + ], + "kwargs": [ + [ + "outputs", + 2 + ] + ], + "name": "asplit", + "output_typings": [ + "audio", + "audio" + ] + } + } + ], + "kwargs": [], + "name": "areverse", + "output_typings": [ + "audio" + ] + } + } + ], + "kwargs": [ + [ + "inputs", + 2 + ], + [ + "duration", + "first" + ] + ], + "name": "amix", + "output_typings": [ + "audio" + ] + } + } + ], + "kwargs": [] + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[amix-stream-2][add-split].png b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[amix-stream-2][add-split].png deleted file mode 100644 index ae7747eb..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[amix-stream-2][add-split].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[amix-stream-2][before].json b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[amix-stream-2][before].json new file mode 100644 index 00000000..87adaf71 --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[amix-stream-2][before].json @@ -0,0 +1,95 @@ +{ + "index": null, + "node": { + "filename": "tmp.mp4", + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "audio", + "audio" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "audio" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "areverse", + "output_typings": [ + "audio" + ] + } + }, + { + "index": 0, + "node": { + "input_typings": [ + "audio" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "audio" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "areverse", + "output_typings": [ + "audio" + ] + } + } + ], + "kwargs": [], + "name": "areverse", + "output_typings": [ + "audio" + ] + } + } + ], + "kwargs": [ + [ + "inputs", + 2 + ], + [ + "duration", + "first" + ] + ], + "name": "amix", + "output_typings": [ + "audio" + ] + } + } + ], + "kwargs": [] + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[amix-stream-2][before].png b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[amix-stream-2][before].png deleted file mode 100644 index d3628159..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[amix-stream-2][before].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[amix-stream-2][remove-split].json b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[amix-stream-2][remove-split].json new file mode 100644 index 00000000..87adaf71 --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[amix-stream-2][remove-split].json @@ -0,0 +1,95 @@ +{ + "index": null, + "node": { + "filename": "tmp.mp4", + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "audio", + "audio" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "audio" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "areverse", + "output_typings": [ + "audio" + ] + } + }, + { + "index": 0, + "node": { + "input_typings": [ + "audio" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "audio" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "areverse", + "output_typings": [ + "audio" + ] + } + } + ], + "kwargs": [], + "name": "areverse", + "output_typings": [ + "audio" + ] + } + } + ], + "kwargs": [ + [ + "inputs", + 2 + ], + [ + "duration", + "first" + ] + ], + "name": "amix", + "output_typings": [ + "audio" + ] + } + } + ], + "kwargs": [] + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[amix-stream-2][remove-split].png b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[amix-stream-2][remove-split].png deleted file mode 100644 index d3628159..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[amix-stream-2][remove-split].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[amix-stream][add-split].json b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[amix-stream][add-split].json new file mode 100644 index 00000000..97e1b9c4 --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[amix-stream][add-split].json @@ -0,0 +1,137 @@ +{ + "index": null, + "node": { + "filename": "tmp.mp4", + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "audio", + "audio" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "audio" + ], + "inputs": [ + { + "index": 1, + "node": { + "input_typings": [ + "audio" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "audio" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "areverse", + "output_typings": [ + "audio" + ] + } + } + ], + "kwargs": [ + [ + "outputs", + 2 + ] + ], + "name": "asplit", + "output_typings": [ + "audio", + "audio" + ] + } + } + ], + "kwargs": [], + "name": "areverse", + "output_typings": [ + "audio" + ] + } + }, + { + "index": 0, + "node": { + "input_typings": [ + "audio" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "audio" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "areverse", + "output_typings": [ + "audio" + ] + } + } + ], + "kwargs": [ + [ + "outputs", + 2 + ] + ], + "name": "asplit", + "output_typings": [ + "audio", + "audio" + ] + } + } + ], + "kwargs": [ + [ + "inputs", + 2 + ], + [ + "duration", + "first" + ] + ], + "name": "amix", + "output_typings": [ + "audio" + ] + } + } + ], + "kwargs": [] + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[amix-stream][add-split].png b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[amix-stream][add-split].png deleted file mode 100644 index ca7f9467..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[amix-stream][add-split].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[amix-stream][before].json b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[amix-stream][before].json new file mode 100644 index 00000000..1469d57f --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[amix-stream][before].json @@ -0,0 +1,95 @@ +{ + "index": null, + "node": { + "filename": "tmp.mp4", + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "audio", + "audio" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "audio" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "audio" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "areverse", + "output_typings": [ + "audio" + ] + } + } + ], + "kwargs": [], + "name": "areverse", + "output_typings": [ + "audio" + ] + } + }, + { + "index": 0, + "node": { + "input_typings": [ + "audio" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "areverse", + "output_typings": [ + "audio" + ] + } + } + ], + "kwargs": [ + [ + "inputs", + 2 + ], + [ + "duration", + "first" + ] + ], + "name": "amix", + "output_typings": [ + "audio" + ] + } + } + ], + "kwargs": [] + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[amix-stream][before].png b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[amix-stream][before].png deleted file mode 100644 index e220d5ca..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[amix-stream][before].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[amix-stream][remove-split].json b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[amix-stream][remove-split].json new file mode 100644 index 00000000..1469d57f --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[amix-stream][remove-split].json @@ -0,0 +1,95 @@ +{ + "index": null, + "node": { + "filename": "tmp.mp4", + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "audio", + "audio" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "audio" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "audio" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "areverse", + "output_typings": [ + "audio" + ] + } + } + ], + "kwargs": [], + "name": "areverse", + "output_typings": [ + "audio" + ] + } + }, + { + "index": 0, + "node": { + "input_typings": [ + "audio" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "areverse", + "output_typings": [ + "audio" + ] + } + } + ], + "kwargs": [ + [ + "inputs", + 2 + ], + [ + "duration", + "first" + ] + ], + "name": "amix", + "output_typings": [ + "audio" + ] + } + } + ], + "kwargs": [] + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[amix-stream][remove-split].png b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[amix-stream][remove-split].png deleted file mode 100644 index e220d5ca..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[amix-stream][remove-split].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[complex-stream][add-split].json b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[complex-stream][add-split].json new file mode 100644 index 00000000..ec2cb932 --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[complex-stream][add-split].json @@ -0,0 +1,425 @@ +{ + "index": null, + "node": { + "filename": "tmp.mp4", + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video", + "audio", + "video", + "audio" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "reverse", + "output_typings": [ + "video" + ] + } + } + ], + "kwargs": [ + [ + "outputs", + 2 + ] + ], + "name": "split", + "output_typings": [ + "video", + "video" + ] + } + }, + { + "index": 0, + "node": { + "input_typings": [ + "audio" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "audio" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input2.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "areverse", + "output_typings": [ + "audio" + ] + } + } + ], + "kwargs": [ + [ + "outputs", + 2 + ] + ], + "name": "asplit", + "output_typings": [ + "audio", + "audio" + ] + } + }, + { + "index": 1, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "reverse", + "output_typings": [ + "video" + ] + } + } + ], + "kwargs": [ + [ + "outputs", + 2 + ] + ], + "name": "split", + "output_typings": [ + "video", + "video" + ] + } + }, + { + "index": 1, + "node": { + "input_typings": [ + "audio" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "audio" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input2.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "areverse", + "output_typings": [ + "audio" + ] + } + } + ], + "kwargs": [ + [ + "outputs", + 2 + ] + ], + "name": "asplit", + "output_typings": [ + "audio", + "audio" + ] + } + } + ], + "kwargs": [ + [ + "n", + 2 + ], + [ + "v", + 1 + ], + [ + "a", + 1 + ] + ], + "name": "concat", + "output_typings": [ + "video", + "audio" + ] + } + }, + { + "index": 1, + "node": { + "input_typings": [ + "video", + "audio", + "video", + "audio" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "reverse", + "output_typings": [ + "video" + ] + } + } + ], + "kwargs": [ + [ + "outputs", + 2 + ] + ], + "name": "split", + "output_typings": [ + "video", + "video" + ] + } + }, + { + "index": 0, + "node": { + "input_typings": [ + "audio" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "audio" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input2.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "areverse", + "output_typings": [ + "audio" + ] + } + } + ], + "kwargs": [ + [ + "outputs", + 2 + ] + ], + "name": "asplit", + "output_typings": [ + "audio", + "audio" + ] + } + }, + { + "index": 1, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "reverse", + "output_typings": [ + "video" + ] + } + } + ], + "kwargs": [ + [ + "outputs", + 2 + ] + ], + "name": "split", + "output_typings": [ + "video", + "video" + ] + } + }, + { + "index": 1, + "node": { + "input_typings": [ + "audio" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "audio" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input2.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "areverse", + "output_typings": [ + "audio" + ] + } + } + ], + "kwargs": [ + [ + "outputs", + 2 + ] + ], + "name": "asplit", + "output_typings": [ + "audio", + "audio" + ] + } + } + ], + "kwargs": [ + [ + "n", + 2 + ], + [ + "v", + 1 + ], + [ + "a", + 1 + ] + ], + "name": "concat", + "output_typings": [ + "video", + "audio" + ] + } + } + ], + "kwargs": [] + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[complex-stream][add-split].png b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[complex-stream][add-split].png deleted file mode 100644 index 055fbbca..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[complex-stream][add-split].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[complex-stream][before].json b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[complex-stream][before].json new file mode 100644 index 00000000..12dab020 --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[complex-stream][before].json @@ -0,0 +1,257 @@ +{ + "index": null, + "node": { + "filename": "tmp.mp4", + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video", + "audio", + "video", + "audio" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "reverse", + "output_typings": [ + "video" + ] + } + }, + { + "index": 0, + "node": { + "input_typings": [ + "audio" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input2.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "areverse", + "output_typings": [ + "audio" + ] + } + }, + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "reverse", + "output_typings": [ + "video" + ] + } + }, + { + "index": 0, + "node": { + "input_typings": [ + "audio" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input2.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "areverse", + "output_typings": [ + "audio" + ] + } + } + ], + "kwargs": [ + [ + "n", + 2 + ], + [ + "v", + 1 + ], + [ + "a", + 1 + ] + ], + "name": "concat", + "output_typings": [ + "video", + "audio" + ] + } + }, + { + "index": 1, + "node": { + "input_typings": [ + "video", + "audio", + "video", + "audio" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "reverse", + "output_typings": [ + "video" + ] + } + }, + { + "index": 0, + "node": { + "input_typings": [ + "audio" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input2.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "areverse", + "output_typings": [ + "audio" + ] + } + }, + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "reverse", + "output_typings": [ + "video" + ] + } + }, + { + "index": 0, + "node": { + "input_typings": [ + "audio" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input2.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "areverse", + "output_typings": [ + "audio" + ] + } + } + ], + "kwargs": [ + [ + "n", + 2 + ], + [ + "v", + 1 + ], + [ + "a", + 1 + ] + ], + "name": "concat", + "output_typings": [ + "video", + "audio" + ] + } + } + ], + "kwargs": [] + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[complex-stream][before].png b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[complex-stream][before].png deleted file mode 100644 index 84618828..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[complex-stream][before].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[complex-stream][remove-split].json b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[complex-stream][remove-split].json new file mode 100644 index 00000000..12dab020 --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[complex-stream][remove-split].json @@ -0,0 +1,257 @@ +{ + "index": null, + "node": { + "filename": "tmp.mp4", + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video", + "audio", + "video", + "audio" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "reverse", + "output_typings": [ + "video" + ] + } + }, + { + "index": 0, + "node": { + "input_typings": [ + "audio" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input2.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "areverse", + "output_typings": [ + "audio" + ] + } + }, + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "reverse", + "output_typings": [ + "video" + ] + } + }, + { + "index": 0, + "node": { + "input_typings": [ + "audio" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input2.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "areverse", + "output_typings": [ + "audio" + ] + } + } + ], + "kwargs": [ + [ + "n", + 2 + ], + [ + "v", + 1 + ], + [ + "a", + 1 + ] + ], + "name": "concat", + "output_typings": [ + "video", + "audio" + ] + } + }, + { + "index": 1, + "node": { + "input_typings": [ + "video", + "audio", + "video", + "audio" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "reverse", + "output_typings": [ + "video" + ] + } + }, + { + "index": 0, + "node": { + "input_typings": [ + "audio" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input2.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "areverse", + "output_typings": [ + "audio" + ] + } + }, + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "reverse", + "output_typings": [ + "video" + ] + } + }, + { + "index": 0, + "node": { + "input_typings": [ + "audio" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input2.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "areverse", + "output_typings": [ + "audio" + ] + } + } + ], + "kwargs": [ + [ + "n", + 2 + ], + [ + "v", + 1 + ], + [ + "a", + 1 + ] + ], + "name": "concat", + "output_typings": [ + "video", + "audio" + ] + } + } + ], + "kwargs": [] + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[complex-stream][remove-split].png b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[complex-stream][remove-split].png deleted file mode 100644 index 84618828..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[complex-stream][remove-split].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[not-utilize-split][add-split].json b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[not-utilize-split][add-split].json new file mode 100644 index 00000000..5b687fbe --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[not-utilize-split][add-split].json @@ -0,0 +1,32 @@ +{ + "index": null, + "node": { + "filename": "tmp.mp4", + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "reverse", + "output_typings": [ + "video" + ] + } + } + ], + "kwargs": [] + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[not-utilize-split][add-split].png b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[not-utilize-split][add-split].png deleted file mode 100644 index 46991d4e..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[not-utilize-split][add-split].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[not-utilize-split][before].json b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[not-utilize-split][before].json new file mode 100644 index 00000000..1a49a615 --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[not-utilize-split][before].json @@ -0,0 +1,53 @@ +{ + "index": null, + "node": { + "filename": "tmp.mp4", + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "reverse", + "output_typings": [ + "video" + ] + } + } + ], + "kwargs": [ + [ + "outputs", + 2 + ] + ], + "name": "split", + "output_typings": [ + "video", + "video" + ] + } + } + ], + "kwargs": [] + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[not-utilize-split][before].png b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[not-utilize-split][before].png deleted file mode 100644 index 9ace62be..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[not-utilize-split][before].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[not-utilize-split][remove-split].json b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[not-utilize-split][remove-split].json new file mode 100644 index 00000000..5b687fbe --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[not-utilize-split][remove-split].json @@ -0,0 +1,32 @@ +{ + "index": null, + "node": { + "filename": "tmp.mp4", + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "reverse", + "output_typings": [ + "video" + ] + } + } + ], + "kwargs": [] + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[not-utilize-split][remove-split].png b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[not-utilize-split][remove-split].png deleted file mode 100644 index 46991d4e..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[not-utilize-split][remove-split].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reduntant-split-duplicate][add-split].json b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reduntant-split-duplicate][add-split].json new file mode 100644 index 00000000..814537e6 --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reduntant-split-duplicate][add-split].json @@ -0,0 +1,166 @@ +{ + "index": null, + "node": { + "filename": "tmp.mp4", + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video", + "video", + "video" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "reverse", + "output_typings": [ + "video" + ] + } + } + ], + "kwargs": [ + [ + "outputs", + 3 + ] + ], + "name": "split", + "output_typings": [ + "video", + "video", + "video" + ] + } + }, + { + "index": 1, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "reverse", + "output_typings": [ + "video" + ] + } + } + ], + "kwargs": [ + [ + "outputs", + 3 + ] + ], + "name": "split", + "output_typings": [ + "video", + "video", + "video" + ] + } + }, + { + "index": 2, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "reverse", + "output_typings": [ + "video" + ] + } + } + ], + "kwargs": [ + [ + "outputs", + 3 + ] + ], + "name": "split", + "output_typings": [ + "video", + "video", + "video" + ] + } + } + ], + "kwargs": [ + [ + "n", + 3 + ] + ], + "name": "concat", + "output_typings": [ + "video" + ] + } + } + ], + "kwargs": [] + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reduntant-split-duplicate][add-split].png b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reduntant-split-duplicate][add-split].png deleted file mode 100644 index 9712dd9a..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reduntant-split-duplicate][add-split].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reduntant-split-duplicate][before].json b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reduntant-split-duplicate][before].json new file mode 100644 index 00000000..9e7f47cd --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reduntant-split-duplicate][before].json @@ -0,0 +1,205 @@ +{ + "index": null, + "node": { + "filename": "tmp.mp4", + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video", + "video", + "video" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "reverse", + "output_typings": [ + "video" + ] + } + } + ], + "kwargs": [ + [ + "outputs", + 2 + ] + ], + "name": "split", + "output_typings": [ + "video", + "video" + ] + } + } + ], + "kwargs": [ + [ + "outputs", + 2 + ] + ], + "name": "split", + "output_typings": [ + "video", + "video" + ] + } + }, + { + "index": 1, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "reverse", + "output_typings": [ + "video" + ] + } + } + ], + "kwargs": [ + [ + "outputs", + 2 + ] + ], + "name": "split", + "output_typings": [ + "video", + "video" + ] + } + } + ], + "kwargs": [ + [ + "outputs", + 2 + ] + ], + "name": "split", + "output_typings": [ + "video", + "video" + ] + } + }, + { + "index": 1, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "reverse", + "output_typings": [ + "video" + ] + } + } + ], + "kwargs": [ + [ + "outputs", + 2 + ] + ], + "name": "split", + "output_typings": [ + "video", + "video" + ] + } + } + ], + "kwargs": [ + [ + "n", + 3 + ] + ], + "name": "concat", + "output_typings": [ + "video" + ] + } + } + ], + "kwargs": [] + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reduntant-split-duplicate][before].png b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reduntant-split-duplicate][before].png deleted file mode 100644 index 1d23598c..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reduntant-split-duplicate][before].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reduntant-split-duplicate][remove-split].json b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reduntant-split-duplicate][remove-split].json new file mode 100644 index 00000000..ad1d8ffb --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reduntant-split-duplicate][remove-split].json @@ -0,0 +1,100 @@ +{ + "index": null, + "node": { + "filename": "tmp.mp4", + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video", + "video", + "video" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "reverse", + "output_typings": [ + "video" + ] + } + }, + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "reverse", + "output_typings": [ + "video" + ] + } + }, + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "reverse", + "output_typings": [ + "video" + ] + } + } + ], + "kwargs": [ + [ + "n", + 3 + ] + ], + "name": "concat", + "output_typings": [ + "video" + ] + } + } + ], + "kwargs": [] + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reduntant-split-duplicate][remove-split].png b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reduntant-split-duplicate][remove-split].png deleted file mode 100644 index 2419863e..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reduntant-split-duplicate][remove-split].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reduntant-split-outputs-1][add-split].json b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reduntant-split-outputs-1][add-split].json new file mode 100644 index 00000000..5b687fbe --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reduntant-split-outputs-1][add-split].json @@ -0,0 +1,32 @@ +{ + "index": null, + "node": { + "filename": "tmp.mp4", + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "reverse", + "output_typings": [ + "video" + ] + } + } + ], + "kwargs": [] + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reduntant-split-outputs-1][add-split].png b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reduntant-split-outputs-1][add-split].png deleted file mode 100644 index 46991d4e..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reduntant-split-outputs-1][add-split].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reduntant-split-outputs-1][before].json b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reduntant-split-outputs-1][before].json new file mode 100644 index 00000000..569f3cef --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reduntant-split-outputs-1][before].json @@ -0,0 +1,52 @@ +{ + "index": null, + "node": { + "filename": "tmp.mp4", + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "reverse", + "output_typings": [ + "video" + ] + } + } + ], + "kwargs": [ + [ + "outputs", + 1 + ] + ], + "name": "split", + "output_typings": [ + "video" + ] + } + } + ], + "kwargs": [] + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reduntant-split-outputs-1][before].png b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reduntant-split-outputs-1][before].png deleted file mode 100644 index 9ace62be..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reduntant-split-outputs-1][before].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reduntant-split-outputs-1][remove-split].json b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reduntant-split-outputs-1][remove-split].json new file mode 100644 index 00000000..5b687fbe --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reduntant-split-outputs-1][remove-split].json @@ -0,0 +1,32 @@ +{ + "index": null, + "node": { + "filename": "tmp.mp4", + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input1.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "reverse", + "output_typings": [ + "video" + ] + } + } + ], + "kwargs": [] + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reduntant-split-outputs-1][remove-split].png b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reduntant-split-outputs-1][remove-split].png deleted file mode 100644 index 46991d4e..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reduntant-split-outputs-1][remove-split].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reuse-input][add-split].json b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reuse-input][add-split].json new file mode 100644 index 00000000..79224bd7 --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reuse-input][add-split].json @@ -0,0 +1,46 @@ +{ + "index": null, + "node": { + "filename": "tmp.mp4", + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video", + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input.mp4", + "inputs": [], + "kwargs": [] + } + }, + { + "index": null, + "node": { + "filename": "input.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [ + [ + "n", + 2 + ] + ], + "name": "concat", + "output_typings": [ + "video" + ] + } + } + ], + "kwargs": [] + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reuse-input][add-split].png b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reuse-input][add-split].png deleted file mode 100644 index 3371750e..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reuse-input][add-split].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reuse-input][before].json b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reuse-input][before].json new file mode 100644 index 00000000..79224bd7 --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reuse-input][before].json @@ -0,0 +1,46 @@ +{ + "index": null, + "node": { + "filename": "tmp.mp4", + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video", + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input.mp4", + "inputs": [], + "kwargs": [] + } + }, + { + "index": null, + "node": { + "filename": "input.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [ + [ + "n", + 2 + ] + ], + "name": "concat", + "output_typings": [ + "video" + ] + } + } + ], + "kwargs": [] + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reuse-input][before].png b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reuse-input][before].png deleted file mode 100644 index 3371750e..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reuse-input][before].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reuse-input][remove-split].json b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reuse-input][remove-split].json new file mode 100644 index 00000000..79224bd7 --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reuse-input][remove-split].json @@ -0,0 +1,46 @@ +{ + "index": null, + "node": { + "filename": "tmp.mp4", + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video", + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input.mp4", + "inputs": [], + "kwargs": [] + } + }, + { + "index": null, + "node": { + "filename": "input.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [ + [ + "n", + 2 + ] + ], + "name": "concat", + "output_typings": [ + "video" + ] + } + } + ], + "kwargs": [] + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reuse-input][remove-split].png b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reuse-input][remove-split].png deleted file mode 100644 index 3371750e..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reuse-input][remove-split].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reuse-stream][add-split].json b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reuse-stream][add-split].json new file mode 100644 index 00000000..4e753778 --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reuse-stream][add-split].json @@ -0,0 +1,118 @@ +{ + "index": null, + "node": { + "filename": "tmp.mp4", + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video", + "video" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "reverse", + "output_typings": [ + "video" + ] + } + } + ], + "kwargs": [ + [ + "outputs", + 2 + ] + ], + "name": "split", + "output_typings": [ + "video", + "video" + ] + } + }, + { + "index": 1, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "reverse", + "output_typings": [ + "video" + ] + } + } + ], + "kwargs": [ + [ + "outputs", + 2 + ] + ], + "name": "split", + "output_typings": [ + "video", + "video" + ] + } + } + ], + "kwargs": [ + [ + "n", + 2 + ] + ], + "name": "concat", + "output_typings": [ + "video" + ] + } + } + ], + "kwargs": [] + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reuse-stream][add-split].png b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reuse-stream][add-split].png deleted file mode 100644 index afd5730d..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reuse-stream][add-split].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reuse-stream][before].json b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reuse-stream][before].json new file mode 100644 index 00000000..526a9f67 --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reuse-stream][before].json @@ -0,0 +1,76 @@ +{ + "index": null, + "node": { + "filename": "tmp.mp4", + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video", + "video" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "reverse", + "output_typings": [ + "video" + ] + } + }, + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "reverse", + "output_typings": [ + "video" + ] + } + } + ], + "kwargs": [ + [ + "n", + 2 + ] + ], + "name": "concat", + "output_typings": [ + "video" + ] + } + } + ], + "kwargs": [] + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reuse-stream][before].png b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reuse-stream][before].png deleted file mode 100644 index ceb9a20f..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reuse-stream][before].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reuse-stream][remove-split].json b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reuse-stream][remove-split].json new file mode 100644 index 00000000..526a9f67 --- /dev/null +++ b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reuse-stream][remove-split].json @@ -0,0 +1,76 @@ +{ + "index": null, + "node": { + "filename": "tmp.mp4", + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video", + "video" + ], + "inputs": [ + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "reverse", + "output_typings": [ + "video" + ] + } + }, + { + "index": 0, + "node": { + "input_typings": [ + "video" + ], + "inputs": [ + { + "index": null, + "node": { + "filename": "input.mp4", + "inputs": [], + "kwargs": [] + } + } + ], + "kwargs": [], + "name": "reverse", + "output_typings": [ + "video" + ] + } + } + ], + "kwargs": [ + [ + "n", + 2 + ] + ], + "name": "concat", + "output_typings": [ + "video" + ] + } + } + ], + "kwargs": [] + } +} diff --git a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reuse-stream][remove-split].png b/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reuse-stream][remove-split].png deleted file mode 100644 index ceb9a20f..00000000 Binary files a/src/ffmpeg/dag/tests/__snapshots__/test_validate/test_rebuild_graph[reuse-stream][remove-split].png and /dev/null differ diff --git a/src/ffmpeg/dag/tests/test_schema.py b/src/ffmpeg/dag/tests/test_schema.py index 2d9371ce..ea86371b 100644 --- a/src/ffmpeg/dag/tests/test_schema.py +++ b/src/ffmpeg/dag/tests/test_schema.py @@ -3,7 +3,6 @@ import pytest from syrupy.assertion import SnapshotAssertion -from syrupy.extensions.image import PNGImageSnapshotExtension from syrupy.extensions.json import JSONSnapshotExtension from ...utils.snapshot import DAGSnapshotExtenstion @@ -99,24 +98,23 @@ def test_replace( for node, replaced_node in replace_pattern: new_g = graph.replace(node, replaced_node) assert snapshot(name=f"replace {node} -> {replaced_node}", extension_class=DAGSnapshotExtenstion) == new_g - assert snapshot(name=f"replace {node} -> {replaced_node}", extension_class=JSONSnapshotExtension) == asdict( - new_g - ) +@pytest.mark.skip("Not stable") def test_stream_view(snapshot: SnapshotAssertion) -> None: a = SimpleNode(name="A") b = SimpleNode(name="B", inputs=(Stream(node=a),)) c = SimpleNode(name="C", inputs=(Stream(node=b), Stream(node=a))) d = SimpleNode(name="D", inputs=(Stream(node=c), Stream(node=b))) stream = Stream(node=d) - png = stream.view() + stream.view() # test node.view() stream.node.view() - with open(png, "rb") as ifile: - assert snapshot(extension_class=PNGImageSnapshotExtension) == ifile.read() + # png results it not stable + # with open(png, "rb") as ifile: + # assert snapshot(extension_class=PNGImageSnapshotExtension) == ifile.read() # SVG and Dot Result is not stable # svg = stream.view(format="svg") diff --git a/src/ffmpeg/tests/__snapshots__/test_ffmpeg/test_typed_ffmpeg.json b/src/ffmpeg/tests/__snapshots__/test_ffmpeg/test_typed_ffmpeg.json index d5eac893..976b28ac 100644 --- a/src/ffmpeg/tests/__snapshots__/test_ffmpeg/test_typed_ffmpeg.json +++ b/src/ffmpeg/tests/__snapshots__/test_ffmpeg/test_typed_ffmpeg.json @@ -23,6 +23,10 @@ "exceptions", "filter_multi_output", "filters", + "get_codecs", + "get_decoders", + "get_encoders", + "info", "input", "merge_outputs", "output", diff --git a/src/ffmpeg/utils/snapshot.py b/src/ffmpeg/utils/snapshot.py index 8f2cc49f..d233dda7 100644 --- a/src/ffmpeg/utils/snapshot.py +++ b/src/ffmpeg/utils/snapshot.py @@ -1,12 +1,13 @@ +from dataclasses import asdict from typing import Optional -from syrupy.extensions.image import PNGImageSnapshotExtension +from syrupy.extensions.json import JSONSnapshotExtension from syrupy.types import PropertyFilter, PropertyMatcher, SerializableData, SerializedData from ..dag.schema import Stream -class DAGSnapshotExtenstion(PNGImageSnapshotExtension): +class DAGSnapshotExtenstion(JSONSnapshotExtension): """ A snapshot extension for the DAG. This extension is used to serialize and match the DAG. """ @@ -20,7 +21,5 @@ def serialize( matcher: Optional["PropertyMatcher"] = None, ) -> "SerializedData": stream = Stream(node=data) - graph_path = stream.view() - with open(graph_path, "rb") as ifile: - return super().serialize(ifile.read()) + return super().serialize(asdict(stream))