A freshly imported video or image shows 0:00.0 on its Media card until it is placed on the timeline
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 75/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- electron, react, typescript
- Domain
- frontend
Research direction
Start at src/components/ai-edition/v4/MediaStage.tsx around line 220 to see the card's duration render, then read the comment at src/lib/ai-edition/store/useTimeline.ts lines 1528-1533 explaining why imports carry no durationSec. Follow the import action into the store and the existing probeAndCorrectClip path used on timeline placement, and call the same probe once at import with history: false, skipping it for images whose still video already has a known length. Done means importing a video or PNG shows the correct length on the card before any timeline placement.
Written by the indexing model from the issue text.
Description
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(orstill.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.
- Dominant language
- TypeScript
- Stars
- 3.7k
- Forks
- 231
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 150
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from getopenscreen/openscreen
-
macOS: the Save Diagnostics panel goes behind the editor after an app switch and can't be reachedOpenbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
getopenscreen/openscreen#1667 ·
Maintainers usually reply within 1 day
-
Native review wanted: machine-translated recording bar tooltips (14 locales)Possibly taken @auberginewly claimed this 45 days ago. Opengood first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
getopenscreen/openscreen#913 · 5 comments ·
Maintainers usually reply within 1 day
-
Small papercuts from the 2.4.0-rc.1 end-to-end passPossibly taken @EtienneLescot claimed this today. Openbug
Difficulty 3/5 1-2 days Newbie friendliness 52/100
getopenscreen/openscreen#1668 ·
Maintainers usually reply within 1 day
-
GNOME Wayland: the Notes window does not stay on topPossibly taken @EtienneLescot claimed this today. Openbug
Difficulty 4/5 3-5 days Newbie friendliness 28/100
getopenscreen/openscreen#1666 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 64/100
getopenscreen/openscreen#1665 ·
Maintainers usually reply within 1 day
All issues in getopenscreen/openscreen
Similar issues
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 92/100
lingdojo/kana-dojo#34545 · 1 comment · 5 reactions ·
Maintainers usually reply within 1 day
-
blocklist addition
Difficulty 1/5 Under an hour Newbie friendliness 82/100
MetaMask/eth-phishing-detect#315455 ·
Maintainers usually reply within 1 day
-
area: telegram bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
griffinwork40/agent-afk#5275 ·
Maintainers usually reply within 1 day
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
erkamyaman/rust-anything#371 ·
Maintainers usually reply within 1 day
-
Widget: match the chat bubble color to the rest of the widgetPossibly taken @sethr07 claimed this today. Openenhancement frontend help wanted
Difficulty 2/5 Half a day Newbie friendliness 75/100
DeadantCo/answerLoopsdev#68 · 3 comments ·