[feat] assets: Import media by reference
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 15/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- typescript
Piste de recherche
Start with the existing Asset schema where the project-relative assets/{id} path is required, and with the shared media service that resolves asset IDs for preview, timeline and export. Read the Host side that handles desktop file selection and authorization, since the new binding record lives there. Acceptance criteria are end-to-end scenarios (10 GB reference import, offline relink by SHA-256, portable archive, English and Chinese flows) rather than a single file to edit, and the open decisions on verification state and platform grants need maintainer input before any code is written.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Related: Desktop RFC #362 and canvas roadmap #262.
Example scenario
A travel vlogger returns with dozens of camera and drone clips stored on an external drive or a mounted NAS share. Individual clips can be as large as 10 GB. Copying the entire batch into each project takes time and consumes extra disk space. The editor selects Reference in place for the batch, then browses, seeks, and cuts the clips directly from their existing storage.
Goal and scope
Let desktop users import large local media without duplicating the source file. Offer Copy into project and Reference in place when importing a local file. Keep copying as the default and retain the browser upload flow.
User flow and rules
- The desktop host obtains read-only access to the file selected by the user. Keep its location and content fingerprint in host-managed storage. The canvas, timeline, and Agent use the same project asset ID.
- If the file moves or a drive disconnects, show the asset as offline and retain its timeline edits and references. Let the user relink a matching file by SHA-256 without changing the asset ID. If the bytes differ, require an explicit replacement and preserve earlier execution records.
- Read the linked source for preview, editing, generation, and export through shared media services. Apply the existing model input limits when submitting generation.
- Let users copy linked media into the project for portable archives. Identify offline files before creating a self-contained archive. Removing a linked asset leaves the original file on disk.
Proposed reference structure
- Project asset. Keep the existing asset ID, immutable fingerprint, verified media metadata and provenance. Canvas nodes, timeline clips and Agent operations keep referencing the same project asset. Today the Asset schema requires a project-relative
assets/{id}path. Extend the storage contract to distinguish managed bytes from a desktop link, and resolve both through the shared media service. - Desktop file binding. Store the authorized file location in a Host-local record keyed by project and asset ID. An authorized root plus a relative path can support batch relinking when a drive letter, mount point or NAS share changes. Keep machine-specific paths and grants out of portable archives. A project opened elsewhere can retain its asset records and ask the user to bind the files again.
- Availability and identity. Derive availability from the current binding and access checks. Distinguish an unavailable source from a source whose bytes changed. Use filename, size and folder layout to find candidates. Verify SHA-256 before accepting a candidate as the same asset. Relinking changes the binding only. Replacing different bytes requires explicit adoption of a new immutable asset and preserves existing execution records.
- Read and export. Resolve by asset ID under the current project authorization and stream or seek through the Host. Verify source identity at the execution boundary. Operations that require durable inputs, such as accepted generation jobs, need a validated snapshot or must report that the source cannot be safely used. An explicit portable archive copies verified bytes into managed storage and reports unavailable assets before export.
References and trade-offs
- Final Cut Pro informs the import choice and the workflow for reconnecting source media. Apple media management guide
- Adobe Premiere informs one-file and batch relinking when the folder structure is intact. Use these matches to find candidates and verify their content before reconnecting. Adobe relinking guide
- OpenTimelineIO separates a clip's media reference from its available time range. OpenDirector also needs Host-local authorization and immutable content identity. OpenTimelineIO schema
Decisions to confirm
- For large batches, propose registering links with an explicit verification state and computing full SHA-256 in the background with bounded concurrency. Decide when unverified files may be previewed and how generation and export wait for verification. Measure first-preview latency and NAS reads using the 10 GB case.
- Start with file selection and an explicit folder selection for batch relinking. Confirm which platform access grants survive restart and how the app requests access again.
Acceptance criteria
- Import a batch of dozens of clips by reference from an external drive and repeat on a mounted NAS share. Include a 10 GB clip in each run. Verify that the project creates no full-size copies of the source clips. Reopen the project, seek in the large clip, add it to the timeline, and reference it from the Agent.
- Move the file or disconnect its drive. Verify the offline state, then relink an identical file and confirm the asset ID, nodes, and timeline edits survive.
- Change the contents at the original path. Verify that the project requires explicit replacement before using the new bytes.
- Export a timeline that uses linked media. Copy the media into the project, archive it, and verify playback on another machine without access to the source path.
- Remove a linked asset and verify the source file remains intact. Verify import and recovery flows in English and Chinese.
- Langage dominant
- TypeScript
- Étoiles
- 119
- Forks
- 16
- Merge moyen
- 16 h 13 min
- PR mergées (30 j)
- 195
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de ThinkFlowLab/OpenDirector
-
area:provider
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
ThinkFlowLab/OpenDirector#477 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
area:ci
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
ThinkFlowLab/OpenDirector#411 ·
Les mainteneurs répondent en général sous 1 jour
-
[bug] agent: 长素材名在对话气泡中溢出,遮挡正文与素材栏Peut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouvertearea:agent
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
ThinkFlowLab/OpenDirector#348 ·
Les mainteneurs répondent en général sous 1 jour
-
area:provider
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
ThinkFlowLab/OpenDirector#311 ·
Les mainteneurs répondent en général sous 1 jour
-
area:desktop area:install help wanted
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
ThinkFlowLab/OpenDirector#475 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de ThinkFlowLab/OpenDirector
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
primer/primitives#1426 ·
-
Sign-in-only setup dialog describes API-key verificationPeut-être pris @roboclaw-bot l’a pris aujourd’hui. Ouverteclawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
Difficulté 1/5 Moins d'une heure Accessibilité débutants 78/100
openclaw/openclaw#204323 · 1 commentaire · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
virtue-initiative/virtue-initiative#953 ·
Les mainteneurs répondent en général sous 1 jour
-
needs-area-label
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
fumicode/bublys-org#261 ·
Les mainteneurs répondent en général sous 12 jours