Add reference-aware no-reencode video joining
This commit is contained in:
@@ -22,8 +22,23 @@ class DumasVideoNodeTests(unittest.TestCase):
|
||||
|
||||
def test_standalone_node_exposes_full_and_complete_outputs(self):
|
||||
node = self.module.DumasStandaloneVideoNode
|
||||
self.assertEqual(node.RETURN_NAMES, ("full_clip", "complete_clip", "complete_frames", "duration"))
|
||||
self.assertEqual(
|
||||
node.RETURN_NAMES,
|
||||
("full_clip", "complete_clip", "complete_frames", "duration", "reference_frames"),
|
||||
)
|
||||
self.assertIn("overlap_frames", node.INPUT_TYPES()["required"])
|
||||
self.assertIn("reference_frames", node.INPUT_TYPES()["required"])
|
||||
|
||||
def test_join_exposes_reference_frame_inputs(self):
|
||||
optional = self.module.DumasJoinVideoClipsNode.INPUT_TYPES()["optional"]
|
||||
self.assertEqual(optional["clip_2_reference_frames"][1]["default"], 0)
|
||||
self.assertEqual(optional["clip_6_reference_frames"][1]["max"], 4096)
|
||||
|
||||
def test_video_fps_parses_frame_rate(self):
|
||||
self.assertEqual(
|
||||
self.module._video_fps({"streams": [{"codec_type": "video", "r_frame_rate": "24/1"}]}),
|
||||
24.0,
|
||||
)
|
||||
|
||||
def test_join_signature_contains_stream_compatibility_fields(self):
|
||||
signature = self.module._join_signature(
|
||||
|
||||
Reference in New Issue
Block a user