You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A freshly imported video or image shows 0:00.0 on its Media card until it is placed on the timeline #1663
A video or image imported from the Media tab shows 0:00.0 on its card. The card only shows the real length once the asset has been placed on the timeline.
Steps
Open a project, go to Media, then Import media.
Pick a video (a 15 s H.264 MP4 here) or a PNG.
The new card reads clipB.mp4 · 0:00.0 · 11 MB (or still.png · 0:00.0), and stays that way.
Click the card, then Add to timeline. The clip has the right length, and only now does the card read 0:15.0 (0:05.0 for the image).
Expected: the card shows the asset's length as soon as the import finishes, as a recording's card does.
Seen on 2.4.0-rc.1, macOS 27.0.1 (Mac mini M1) and Ubuntu 24.04 GNOME Wayland. The cause below does not depend on the platform.
Why
The card renders formatSeconds(asset.durationSec ?? 0) (MediaStage.tsx#L220), and the import never sets durationSec, as the comment at useTimeline.ts#L1528-L1533 says. Only placing a clip starts the background probe (probeAndCorrectClip), which writes the duration back to the asset.
Fix direction
Probe the duration once at import, with the same probe and history: false. The card and the first placement then both have it. An image's still video is generated at import with a known length, so it needs no probe.
Activity
fix(editor): keep edits saved while the import duration probe runs
fix(editor): keep dirty and a deleted asset across the import duratio…
fix(editor): probe an imported video's duration at import
fix(editor): keep edits saved while the import duration probe runs
fix(editor): keep dirty and a deleted asset across the import duratio…
fix(editor): keep a live edit made while the import duration save is …
fix(editor): install an imported asset before its duration probe
fix(editor): skip the import duration save while an asset removal is …
fix(editor): probe an imported video's duration at import
fix(editor): keep edits saved while the import duration probe runs
fix(editor): keep dirty and a deleted asset across the import duratio…
fix(editor): keep a live edit made while the import duration save is …
fix(editor): install an imported asset before its duration probe
fix(editor): skip the import duration save while an asset removal is …
fix(store): keep the live document when a live edit lands during the …