Skip to content

Fix Volcengine Seedance video references - #156

Open
2973873423 wants to merge 2 commits into
hero8152:mainfrom
2973873423:fix/volcengine-seedance-video-reference
Open

Fix Volcengine Seedance video references#156
2973873423 wants to merge 2 commits into
hero8152:mainfrom
2973873423:fix/volcengine-seedance-video-reference

Conversation

@2973873423

@2973873423 2973873423 commented Jul 9, 2026

Copy link
Copy Markdown

Summary

  • preserve public and asset:// Seedance video inputs as video_url / reference_video content instead of extracting still frames
  • upload local canvas video and audio files before submission so Volcengine receives usable public URLs
  • keep video and audio previews connected when prompt edits refresh generator inputs
  • automatically use reference_image roles whenever video/audio omni references are present, while retaining first_frame behavior for image-only requests
  • count only submitted media when adding trusted-asset prompt indexes

Root cause

refreshGeneratorInputViews() rebuilt video-node previews from image-only references, so connecting or editing a prompt made an already-connected video appear removed. The backend then converted public video references into image frames and mixed first-frame roles with reference media, losing Seedance 2.0 omni-reference semantics.

Testing

  • node tests/test_canvas_video_input_refresh.cjs
  • python tests/test_volcengine_video_reference.py
  • python -m py_compile main.py tests/test_volcengine_video_reference.py
  • git diff --check

@2973873423
2973873423 force-pushed the fix/volcengine-seedance-video-reference branch from 31fa3df to 5e0729e Compare July 10, 2026 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant