You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Trim tool drops the audio from every trim after the first #3432
On https://cap.so/tools/trim, the first trim of a video keeps its audio, but every later trim in the same visit comes out silent, both after "Trim Again" on the same video and after "Choose Different Video" with a new one. The page shows "Video trimmed successfully!" either way.
Trimming a 6-second MP4 with a 440 Hz tone (H.264 + AAC) on cap.so today, full length each time:
trim
tracks in the download
first
H.264 video + Opus audio
after Trim Again
H.264 video only
after Choose Different Video
H.264 video only
processTrim in apps/web/components/tools/TrimmingTool.tsx routes the preview's audio into the recording by calling audioContext.createMediaElementSource(video) on every trim. The preview <video> stays mounted for the whole visit, and a media element can only ever be connected to one MediaElementAudioSourceNode, so from the second trim on that call throws InvalidStateError. The catch around it logs the error and the recording goes ahead without audio.
Activity
linear commentedon Oct 26, 2026
CAP-940