From 76a5eca2b459122d385cd6ebfa4ecededcb73aff Mon Sep 17 00:00:00 2001 From: yuvraj Date: Fri, 16 Feb 2024 12:56:07 +0400 Subject: [PATCH] update e.g workflow DYV --- example_workflows/download_youtube_video.json | 243 ++++++++++++++++++ 1 file changed, 243 insertions(+) create mode 100644 example_workflows/download_youtube_video.json diff --git a/example_workflows/download_youtube_video.json b/example_workflows/download_youtube_video.json new file mode 100644 index 0000000..be15768 --- /dev/null +++ b/example_workflows/download_youtube_video.json @@ -0,0 +1,243 @@ +{ + "last_node_id": 34, + "last_link_id": 59, + "nodes": [ + { + "id": 21, + "type": "VHS_LoadVideoPath", + "pos": [ + 581, + 357 + ], + "size": [ + 317.4000244140625, + 194 + ], + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [ + { + "name": "batch_manager", + "type": "VHS_BatchManager", + "link": null + }, + { + "name": "video", + "type": "STRING", + "link": 34, + "widget": { + "name": "video" + }, + "slot_index": 1 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 59 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "frame_count", + "type": "INT", + "links": null, + "shape": 3 + }, + { + "name": "audio", + "type": "VHS_AUDIO", + "links": [ + 36 + ], + "shape": 3, + "slot_index": 2 + } + ], + "properties": { + "Node name for S&R": "VHS_LoadVideoPath" + }, + "widgets_values": { + "video": "X://insert/path/here.mp4", + "force_rate": 0, + "force_size": "Disabled", + "custom_width": 512, + "custom_height": 512, + "frame_load_cap": 0, + "skip_first_frames": 0, + "select_every_nth": 1, + "videopreview": { + "hidden": false, + "paused": false, + "params": { + "frame_load_cap": 0, + "skip_first_frames": 0, + "force_rate": 0, + "filename": "X://insert/path/here.mp4", + "type": "path", + "format": "video/mp4", + "select_every_nth": 1, + "force_size": "Disabled" + } + } + } + }, + { + "id": 23, + "type": "DownloadYoutubeVideo", + "pos": [ + 147, + 399 + ], + "size": { + "0": 315, + "1": 102 + }, + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "video_path", + "type": "STRING", + "links": [ + 34 + ], + "shape": 3 + }, + { + "name": "frame_rate", + "type": "INT", + "links": [ + 39 + ], + "shape": 3, + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "DownloadYoutubeVideo" + }, + "widgets_values": [ + "https://www.youtube.com/shorts/SXHMnicI6Pg", + "output/youtube" + ] + }, + { + "id": 24, + "type": "VHS_VideoCombine", + "pos": [ + 1016, + 338 + ], + "size": [ + 315, + 823.1527093596059 + ], + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 59, + "slot_index": 0 + }, + { + "name": "audio", + "type": "VHS_AUDIO", + "link": 36 + }, + { + "name": "batch_manager", + "type": "VHS_BatchManager", + "link": null, + "slot_index": 2 + }, + { + "name": "frame_rate", + "type": "INT", + "link": 39, + "widget": { + "name": "frame_rate" + } + } + ], + "outputs": [ + { + "name": "Filenames", + "type": "VHS_FILENAMES", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "VHS_VideoCombine" + }, + "widgets_values": { + "frame_rate": 24, + "loop_count": 0, + "filename_prefix": "Youtube", + "format": "video/h264-mp4", + "pix_fmt": "yuv420p", + "crf": 19, + "save_metadata": false, + "pingpong": false, + "save_output": false, + "videopreview": { + "hidden": false, + "paused": false, + "params": { + "filename": "AnimateDiff_00015-audio.mp4", + "subfolder": "", + "type": "output", + "format": "video/h264-mp4" + } + } + } + } + ], + "links": [ + [ + 34, + 23, + 0, + 21, + 1, + "STRING" + ], + [ + 36, + 21, + 2, + 24, + 1, + "VHS_AUDIO" + ], + [ + 39, + 23, + 1, + 24, + 3, + "INT" + ], + [ + 59, + 21, + 0, + 24, + 0, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": {}, + "version": 0.4 +} \ No newline at end of file