Repository navigation
Description
Describe the bug
Export fails after trimming a valid, sparse screen recording, although the recording plays normally. On macOS, static screen captures can have roughly one second between screen updates.
The installed 2.2.1 app fails with:
Cannot export clip 2: the screen video has no readable frame at the clip's start.
The export dialog localizes this as “the screen video cannot be read at the clip’s start.”
Expected behavior
When a cut is close to a valid preceding frame, hold that frame until the next screen update is due. The edit should export without moving the cut or re-encoding the recording. Larger unreadable gaps and genuinely missing camera footage should still fail.
Reproduce with synthetic media
Generate a four-second recording with one video update each second (an equivalent H.264 encoder works):
ffmpeg -f lavfi -i "testsrc2=size=640x360:rate=60:duration=4" \
-vf "select='not(mod(n,60))'" -fps_mode vfr \
-c:v libopenh264 -g 60 -pix_fmt yuv420p sparse.mp4Save this project next to the media, substituting the absolute path to sparse.mp4:
{
"version": 2,
"media": { "screenVideoPath": "/absolute/path/sparse.mp4" },
"editor": {
"trimRegions": [
{ "id": "cut1", "startMs": 500, "endMs": 1250 },
{ "id": "cut2", "startMs": 2500, "endMs": 4000 }
]
}
}Export with the desktop app, or:
openscreen export repro.openscreen -o out.mp4 --quality medium --fps 30 --jsonClip 2 starts at 1.25 s, between valid frames at 1.0 s and 2.0 s. The forward seek lands at 2.0 s, 0.75 s ahead, and clip-start validation rejects it despite a usable frame only 0.25 s before the cut.
Environment and evidence
- OpenScreen 2.2.1, macOS 27.0.1, Apple Silicon.
- Reproduced with the installed CLI and a new native integration test on main at 290bd3a.
- The native regression fails at frame inspection with the same screen-video error before the fix.
- Moving the cut slightly later allows the original affected recording to export, but changes the user's edit.
- Related to fix(export): bound a clip by the container duration, not a one-frame video stream #1418. Its prior-frame tail hold does not recover a nearby preceding frame when the first seek instead lands far into the future.
All reproduction material above is synthetic; no private recording or project is attached.
Activity
github-actions commentedon Nov 4, 2026
Fixed by #1480 and merged into
main.This change is assigned to the
Next Releaserelease milestone and is not necessarily available in the latest downloadable desktop release yet. It is currently marked asstatus: pending releaseuntil a packaged release containing it is published.EtienneLescot commentedon Nov 4, 2026
Moved into
v2.2.2as part of the pre-release cut.EtienneLescot commentedon Nov 4, 2026
Fixed in v2.2.2 via #1480. Thanks @juliogargue for the report and the fix. Verified with the release candidate on macOS, Windows and Linux: the synthetic project from this issue and a real ScreenCaptureKit recording cut during a still stretch both export again, holding the frame before the cut.
juliogargue commentedon Nov 5, 2026
Wow dude... pretty surreal for a designer. My first contribution to an open-source project, and it started with trying to export a video 😄 Thanks for reviewing the fix and for all the work you put into OpenScreen. Really happy I could contribute! @EtienneLescot