Speed and trim tools can't open WebM files without a duration, including the speed tool's own output
Maintainer antworten meist innerhalb von 1 Tag
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 25/100
- Issue-Typ
- Bug
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- typescript, web-dev
- Bereich
- frontend
Rechercherichtung
Start by reading the speed tool at cap.so/tools/video-speed-controller and the trim tool at cap.so/tools/trim, focusing on how each handles WebM duration and loading or recording completion. Reproduce with a WebM recorded using MediaRecorder.start(timeslice); done means both tools read its real duration and can process it. Pull request #3863 is already open against this issue.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Description
WebM recorded with MediaRecorder.start(timeslice) has no duration in its header, so a video element reports Infinity until playback reaches the end. Chrome only writes the duration when no timeslice is used. cap.so's speed and trim tools both record with a timeslice (start(1000) and start(100)), so the speed tool's WebM output is one of these files.
- Speed tool (cap.so/tools/video-speed-controller): shows
Duration: 0:00andEstimated output duration: 0:00. Speed Up then reports "Video sped up successfully!" after about a quarter of a second, and the download is 0 bytes. The safety timeout isvideo.duration / speed * 1000 + 5000, which is Infinity, andsetTimeouttreats that as 0, so the recorder stops at once. - Trim tool (cap.so/tools/trim): stays on "Loading video..." for good.
handleVideoLoadedreturns early when the duration is Infinity and never clears the loading state.
So a WebM sped up with the speed tool can't then be trimmed with the trim tool, or sped up again.
Reproduction
- Speed up a WebM in cap.so's speed tool and download the result.
- Open that file in cap.so/tools/trim: "Loading video..." never goes away.
- Open it in cap.so/tools/video-speed-controller: the duration reads 0:00, and speeding it up gives a 0-byte file.
Seen on cap.so on 4 Nov in Chrome 152 with a 4 s VP9/Opus clip recorded in 1 s chunks.
Expected
Both tools read the real duration and work as they do for files that have one.
- Vorherrschende Sprache
- Rust
- Sterne
- 24.2k
- Forks
- 2.2k
- Ø Merge
- 1 T. 10 Std.
- Gemergte PRs (30 T.)
- 689
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus CapSoftware/Cap
-
Download, FAQ, privacy and terms pages have no meta descriptionEvtl. vergeben @patrickballard hat das vor 3 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
CapSoftware/Cap#3675 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
self hosting
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
CapSoftware/Cap#2384 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Dashboard pagination causes full page reloads on self-hosted CapEvtl. vergeben @DipanshuAmbilkar03 hat das vor 2 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
CapSoftware/Cap#2305 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
CapSoftware/Cap#1714 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Onboarding error when upgrading to 0.6.2: "Could not save onboarding progress. Please try again."Evtl. vergeben @yashranaway hat das vor 1 Tag übernommen. Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
CapSoftware/Cap#3770 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in CapSoftware/Cap
Ähnliche Issues
-
bug: merge_insert does not detect concurrent inserts of the same FixedSizeBinary primary keyEvtl. vergeben @lance-gatefixer hat das heute übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
lance-format/lance#10811 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
provider testing
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
mishraprafful/multihull#234 ·
Maintainer antworten meist innerhalb von 1 Tag
-
comp-documentation
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 84/100
ClickHouse/ClickHouse#129829 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug needs triage python
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
Maintainer antworten meist innerhalb von 1 Tag
-
state:needs triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 87/100
zed-industries/zed#66628 ·
Maintainer antworten meist innerhalb von 1 Tag