5acaffab92
Adapted from HunyuanVideo-FoleyTune for the audio-SR workflow: - UniverSR Load Video Audio: extract a video's audio track via ffmpeg (WAV pipe + soundfile, no torchcodec) and carry a UNIVERSR_VIDEO reference forward, with an inline video preview. - UniverSR Video Combiner: mux the enhanced audio back onto the source video without re-encoding video (-c:v copy), trim-aware, with output auto-increment and preview. Both registered alongside the SR nodes; ffmpeg + soundfile required only for these. Adds README docs and an example video workflow. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
85 lines
2.4 KiB
JSON
85 lines
2.4 KiB
JSON
{
|
|
"last_node_id": 4,
|
|
"last_link_id": 5,
|
|
"nodes": [
|
|
{
|
|
"id": 1,
|
|
"type": "UniverSRLoadVideoAudio",
|
|
"pos": [100, 200],
|
|
"size": [360, 150],
|
|
"flags": {},
|
|
"order": 0,
|
|
"mode": 0,
|
|
"inputs": [],
|
|
"outputs": [
|
|
{"name": "audio", "type": "AUDIO", "links": [1], "slot_index": 0},
|
|
{"name": "video", "type": "UNIVERSR_VIDEO", "links": [2], "slot_index": 1}
|
|
],
|
|
"properties": {"Node name for S&R": "UniverSRLoadVideoAudio"},
|
|
"widgets_values": ["/path/to/video.mp4", "(none)", 0.0, 0.0]
|
|
},
|
|
{
|
|
"id": 2,
|
|
"type": "UniverSRModelLoader",
|
|
"pos": [100, 400],
|
|
"size": [360, 130],
|
|
"flags": {},
|
|
"order": 1,
|
|
"mode": 0,
|
|
"inputs": [],
|
|
"outputs": [
|
|
{"name": "model", "type": "UNIVERSR_MODEL", "links": [3], "slot_index": 0}
|
|
],
|
|
"properties": {"Node name for S&R": "UniverSRModelLoader"},
|
|
"widgets_values": ["universr-audio", "auto", "", ""]
|
|
},
|
|
{
|
|
"id": 3,
|
|
"type": "UniverSRSampler",
|
|
"pos": [520, 200],
|
|
"size": [340, 320],
|
|
"flags": {},
|
|
"order": 2,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{"name": "audio", "type": "AUDIO", "link": 1},
|
|
{"name": "model", "type": "UNIVERSR_MODEL", "link": 3}
|
|
],
|
|
"outputs": [
|
|
{"name": "audio", "type": "AUDIO", "links": [4], "slot_index": 0},
|
|
{"name": "spectrogram", "type": "IMAGE", "links": [], "slot_index": 1}
|
|
],
|
|
"properties": {"Node name for S&R": "UniverSRSampler"},
|
|
"widgets_values": [16000, "midpoint", 4, 2.0, 0, "randomize", 10.0, 0.5, 1.0, false, true]
|
|
},
|
|
{
|
|
"id": 4,
|
|
"type": "UniverSRVideoCombiner",
|
|
"pos": [920, 200],
|
|
"size": [340, 170],
|
|
"flags": {},
|
|
"order": 3,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{"name": "video", "type": "UNIVERSR_VIDEO", "link": 2},
|
|
{"name": "audio", "type": "AUDIO", "link": 4}
|
|
],
|
|
"outputs": [
|
|
{"name": "output_path", "type": "STRING", "links": [], "slot_index": 0}
|
|
],
|
|
"properties": {"Node name for S&R": "UniverSRVideoCombiner"},
|
|
"widgets_values": ["UniverSR", "aac", true]
|
|
}
|
|
],
|
|
"links": [
|
|
[1, 1, 0, 3, 0, "AUDIO"],
|
|
[2, 1, 1, 4, 0, "UNIVERSR_VIDEO"],
|
|
[3, 2, 0, 3, 1, "UNIVERSR_MODEL"],
|
|
[4, 3, 0, 4, 1, "AUDIO"]
|
|
],
|
|
"groups": [],
|
|
"config": {},
|
|
"extra": {},
|
|
"version": 0.4
|
|
}
|