A freshly imported video or image shows 0:00.0 on its Media card until it is placed on the timeline
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 75/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- electron, react, typescript
- Área
- frontend
Línea de trabajo
Empieza en src/components/ai-edition/v4/MediaStage.tsx alrededor de la línea 220 para ver el render de la duración en la tarjeta, luego lee el comentario en src/lib/ai-edition/store/useTimeline.ts líneas 1528-1533 que explica por qué las importaciones no llevan durationSec. Sigue la acción de importación hasta el store y la ruta existente probeAndCorrectClip que se usa al colocar en la línea de tiempo, y llama a la misma sonda una vez en la importación con history: false, omitiéndola para imágenes cuyo video fijo ya tiene una longitud conocida. Hecho significa que importar un video o PNG muestra la longitud correcta en la tarjeta antes de cualquier colocación en la línea de tiempo.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 3.7k
- Forks
- 231
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 150
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de getopenscreen/openscreen
-
macOS: the Save Diagnostics panel goes behind the editor after an app switch and can't be reachedAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
getopenscreen/openscreen#1667 ·
Los mantenedores suelen responder en 1 día
-
Native review wanted: machine-translated recording bar tooltips (14 locales)Posiblemente ocupada @auberginewly la tomó hace 45 días. Abiertogood first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
getopenscreen/openscreen#913 · 5 comentarios ·
Los mantenedores suelen responder en 1 día
-
Small papercuts from the 2.4.0-rc.1 end-to-end passPosiblemente ocupada @EtienneLescot la tomó hoy. Abiertobug
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
getopenscreen/openscreen#1668 ·
Los mantenedores suelen responder en 1 día
-
GNOME Wayland: the Notes window does not stay on topPosiblemente ocupada @EtienneLescot la tomó hoy. Abiertobug
Dificultad 4/5 3-5 días Aptitud para principiantes 28/100
getopenscreen/openscreen#1666 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 3/5 1-2 días Aptitud para principiantes 64/100
getopenscreen/openscreen#1665 ·
Los mantenedores suelen responder en 1 día
Todos los issues de getopenscreen/openscreen
Issues similares
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
lingdojo/kana-dojo#34545 · 1 comentario · 5 reacciones ·
Los mantenedores suelen responder en 1 día
-
Blocklist addition requestAbiertoblocklist addition
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
MetaMask/eth-phishing-detect#315455 ·
Los mantenedores suelen responder en 1 día
-
area: telegram bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
griffinwork40/agent-afk#5275 ·
Los mantenedores suelen responder en 1 día
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
erkamyaman/rust-anything#371 ·
Los mantenedores suelen responder en 1 día
-
Widget: match the chat bubble color to the rest of the widgetPosiblemente ocupada @sethr07 la tomó hoy. Abiertoenhancement frontend help wanted
Dificultad 2/5 Medio día Aptitud para principiantes 75/100
DeadantCo/answerLoopsdev#68 · 3 comentarios ·