A freshly imported video or image shows 0:00.0 on its Media card until it is placed on the timeline
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 75/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- electron, react, typescript
- Ambito
- frontend
Direzione di ricerca
Inizia da src/components/ai-edition/v4/MediaStage.tsx intorno alla riga 220 per vedere il rendering della durata sulla card, poi leggi il commento in src/lib/ai-edition/store/useTimeline.ts righe 1528-1533 che spiega perché gli import non portano durationSec. Segui l'azione di import nello store e il percorso esistente probeAndCorrectClip usato al posizionamento sulla timeline, e chiama la stessa probe una volta all'import con history: false, saltandola per le immagini il cui video statico ha già una lunghezza nota. Fatto significa che importare un video o un PNG mostra la lunghezza corretta sulla card prima di qualsiasi posizionamento sulla timeline.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- TypeScript
- Stelle
- 3.7k
- Fork
- 231
- Merge medio
- 1g 8h
- PR unite (30g)
- 150
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di getopenscreen/openscreen
-
macOS: the Save Diagnostics panel goes behind the editor after an app switch and can't be reachedApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
getopenscreen/openscreen#1667 ·
I maintainer di solito rispondono entro 1 giorno
-
Native review wanted: machine-translated recording bar tooltips (14 locales)Forse già presa @auberginewly l’ha presa 45 giorni fa. Apertagood first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
getopenscreen/openscreen#913 · 5 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Small papercuts from the 2.4.0-rc.1 end-to-end passForse già presa @EtienneLescot l’ha presa oggi. Apertabug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
getopenscreen/openscreen#1668 ·
I maintainer di solito rispondono entro 1 giorno
-
GNOME Wayland: the Notes window does not stay on topForse già presa @EtienneLescot l’ha presa oggi. Apertabug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 28/100
getopenscreen/openscreen#1666 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 64/100
getopenscreen/openscreen#1665 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di getopenscreen/openscreen
Issue simili
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
lingdojo/kana-dojo#34545 · 1 commento · 5 reazioni ·
I maintainer di solito rispondono entro 1 giorno
-
Blocklist addition requestApertablocklist addition
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
MetaMask/eth-phishing-detect#315455 ·
I maintainer di solito rispondono entro 1 giorno
-
area: telegram bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
griffinwork40/agent-afk#5275 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
erkamyaman/rust-anything#371 ·
I maintainer di solito rispondono entro 1 giorno
-
Widget: match the chat bubble color to the rest of the widgetForse già presa @sethr07 l’ha presa oggi. Apertaenhancement frontend help wanted
Difficoltà 2/5 Mezza giornata Idoneità per principianti 75/100
DeadantCo/answerLoopsdev#68 · 3 commenti ·