A freshly imported video or image shows 0:00.0 on its Media card until it is placed on the timeline
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 75/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- electron, react, typescript
- Lĩnh vực
- frontend
Hướng nghiên cứu
Bắt đầu tại src/components/ai-edition/v4/MediaStage.tsx khoảng dòng 220 để xem phần hiển thị thời lượng trên thẻ, sau đó đọc chú thích tại src/lib/ai-edition/store/useTimeline.ts dòng 1528-1533 giải thích vì sao các lần nhập không mang durationSec. Theo hành động nhập vào store và đường dẫn probeAndCorrectClip hiện có được dùng khi đặt lên timeline, và gọi cùng phép dò đó một lần lúc nhập với history: false, bỏ qua nó đối với ảnh mà video tĩnh đã có độ dài đã biết. Hoàn thành nghĩa là nhập một video hoặc PNG hiển thị đúng độ dài trên thẻ trước mọi lần đặt lên timeline.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 3.7k
- Fork
- 231
- Merge trung bình
- 1 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 150
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của getopenscreen/openscreen
-
macOS: the Save Diagnostics panel goes behind the editor after an app switch and can't be reachedĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
getopenscreen/openscreen#1667 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Native review wanted: machine-translated recording bar tooltips (14 locales)Có thể đã có người làm @auberginewly đã nhận 45 ngày trước. Đang mởgood first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
getopenscreen/openscreen#913 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Small papercuts from the 2.4.0-rc.1 end-to-end passCó thể đã có người làm @EtienneLescot đã nhận hôm nay. Đang mởbug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
getopenscreen/openscreen#1668 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
GNOME Wayland: the Notes window does not stay on topCó thể đã có người làm @EtienneLescot đã nhận hôm nay. Đang mởbug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 28/100
getopenscreen/openscreen#1666 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 64/100
getopenscreen/openscreen#1665 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của getopenscreen/openscreen
Issue tương tự
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
lingdojo/kana-dojo#34545 · 1 bình luận · 5 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Blocklist addition requestĐang mởblocklist addition
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
MetaMask/eth-phishing-detect#315455 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: telegram bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
griffinwork40/agent-afk#5275 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
erkamyaman/rust-anything#371 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Widget: match the chat bubble color to the rest of the widgetCó thể đã có người làm @sethr07 đã nhận hôm nay. Đang mởenhancement frontend help wanted
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 75/100
DeadantCo/answerLoopsdev#68 · 3 bình luận ·