From 3bd1c89f2f3bce4d8569201ea1d55a78be8b3d32 Mon Sep 17 00:00:00 2001 From: Codex Date: Wed, 2 Dec 2026 02:08:21 +0800 Subject: [PATCH 1/5] [feat] character-replacement (6/N): submit FastH3 segments with native guides --- apps/api/src/opendirector_api/localization.py | 5 + .../fasth3-segment-guide/fixture.mp4 | Bin 0 -> 3397 bytes .../multipart-receipts.json | 107 +++++++++++ .../provider-double-output.mp4 | Bin 0 -> 3397 bytes .../application/creation_generation.py | 21 ++- .../application/model_availability.py | 4 +- .../domain/creation/generation.py | 53 +++++- .../opendirector/domain/video_capabilities.py | 23 +++ .../infrastructure/model_configs.py | 21 ++- .../opendirector/integrations/providers.py | 8 +- .../integrations/reference_inputs.py | 20 ++- .../opendirector/integrations/vllm_omni.py | 42 ++++- .../core/src/opendirector/media/processing.py | 15 ++ src/contracts/creation.schema.json | 166 ++++++++++++++++++ src/contracts/generated.ts | 16 ++ tests/test_h3_keyframes.py | 4 +- tests/test_vllm_omni_h3.py | 133 ++++++++++++++ 17 files changed, 611 insertions(+), 27 deletions(-) create mode 100644 feature-assets/fasth3-segment-guide/fixture.mp4 create mode 100644 feature-assets/fasth3-segment-guide/multipart-receipts.json create mode 100644 feature-assets/fasth3-segment-guide/provider-double-output.mp4 diff --git a/apps/api/src/opendirector_api/localization.py b/apps/api/src/opendirector_api/localization.py index fd3d72d25..db80807e4 100644 --- a/apps/api/src/opendirector_api/localization.py +++ b/apps/api/src/opendirector_api/localization.py @@ -16,6 +16,11 @@ from opendirector.domain.capability_messages import english_capability_message, missing_tool_model_message ENGLISH_BY_CODE = { + "h3_timeline_guides_single_model": "Configure native timeline guides for one FastH3 model at a time.", + "h3_timeline_guides_mixed": "Use either generated-video guides or standalone keyframes for this segment.", + "h3_timeline_guides_unsupported": "This deployment or video mode does not support H3 segment timeline guides.", + "h3_timeline_guides_deployment": "Native timeline guide settings require a compatible self-hosted FastH3 endpoint.", + "h3_timeline_guides_source_limit": "Use only one source video for an H3 segment.", 'keyframe_unsupported': 'This model or mode does not support keyframes. Clear the keyframe times or choose another model.', 'keyframe_mode': 'Keyframes work in Universal reference mode only, not with first/last frames, continuation or structure control.', 'keyframe_kind': 'A keyframe must be an image.', diff --git a/feature-assets/fasth3-segment-guide/fixture.mp4 b/feature-assets/fasth3-segment-guide/fixture.mp4 new file mode 100644 index 0000000000000000000000000000000000000000..b4bf2969e9db4c4bcd31ea004c3822dcd6d1e023 GIT binary patch literal 3397 zcmc&%c~}$I7N4+*prXZH#6i$jA4?Jff*K|85Ltp?MZqmjCX+=n$z(EYp;Q!bsi>4n zEx4dyMJi&oE?`k;MYP(7Lah}QaaZ(JacM=W^3F}*>GSLV?|iv)_TM@8-kI;-U>Jrg zxim&&)YBMdg&__@NFrEr12AI|y;g+g5J>*vq+Bfv4!8v=Z!F`;2zB3v>z1R@m_362mw zlcuGV94_SZeZ7Qyp&uC49LG%d@kvQZ@lMt#D7}`@dFxq~531s==4dU%=owC<*BK|{ zBq1kAu>fZ&rPvo&P;#xFOcVN}aADiHYMG$mG3skkvo4$>r? zF{VK(JY}pxEb!(-5fl!$AI!Y`QcnSo#k}z^I#+ayKP=p1*z{vDUrIF&qUP7Exvyg#+w0eCa zp$0|v)@IadNa&^4z{hp0xdy4B2@dt4(Qy>3B_Igwa%~bzq{&D<%@7>uBrFlf5*i&q zKp;z?7$r;4lo1w7E@RR_)+ofVS299DFlZKXnOs8{Q4tMGndg;4X;f-X4n93Y>0~NB z173@ffz(7Q4Y0*RKYouWqcu9QP=p&vN=K1NoLIz1ZL$PfQkF8RA)O^<|D7)Kv!s}0 zl{hVjbw$$xMJ)97=Hmu588P46A4CQLn>mpx_74Puk)s%~2-h&MN$^6z9s(9&fc;0i ziDhD#bsM!h8!K*6MTPyAvi;!I&3zKKE+3F=r`>g>ChEA%RK9m>dP80Gv@aS@Osbu; z{aW4!1s5NE!)|#Hds!MZCe7NFFtk7F`XGaQ5sz+sOb%x+xc}&$;iOMxCv8Zf@)tEMJsi8`rV9Q zHL%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_*h)MInPV2(6VL;9_SXNJE-OJ8oJ^ZR-)-ANVez>r;P6Mu zK*--OiPhp3*-B>QUB?!8m2_hPZctfHf-e2e~5O@pV z7N^z7(T&mKG(U%TcLVo>s1Tk4bLhT-4OaoLX!&P4Zy+obh91_~ld%a)c$l5~;jOb{ z>t1(uqTGQDVPt@#HqaOh7nPnho`HjoXtWKH~%#GHg=fB z4tr$wJM{2g9jPeKj0ODv?YBq$Kr`lkTwrb_G640?4d!i@Iq;zmx0k?fR{+W^82w@N z>*3zO2lU9uj<&p4M=^ddoM80EPwmlrV?05Joik&?T9bN^5utwgFo+}tM*vTtDKiHV sb9?vwhHru;7)Fa6z2vE}d_*4QoE`zX!2cfvfPx# literal 0 HcmV?d00001 diff --git a/feature-assets/fasth3-segment-guide/multipart-receipts.json b/feature-assets/fasth3-segment-guide/multipart-receipts.json new file mode 100644 index 000000000..72579ef65 --- /dev/null +++ b/feature-assets/fasth3-segment-guide/multipart-receipts.json @@ -0,0 +1,107 @@ +{ + "provider": "in-process double returning the synthetic fixture bytes", + "runs": { + "anchor": { + "sourceFrames": null, + "requestFields": { + "model": "FastH3-Omni", + "prompt": "Preserve the motion of the synthetic test pattern.\nsource.mp4\ufffd\ufffd\ufffd