Skip to content

[Bug]: Export rejects a cut between valid updates in a sparse screen recording #1479

Closed

Description

@juliogargue

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.mp4

Save 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 --json

Clip 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

  1. added
    status: fixed in main
    status: pending release
    on Nov 4, 2026
  2. added this to the Next Release milestone on Nov 4, 2026
  3. github-actions commented on Nov 4, 2026

    @github-actions
    Contributor

    Fixed by #1480 and merged into main.

    This change is assigned to the Next Release release milestone and is not necessarily available in the latest downloadable desktop release yet. It is currently marked as status: pending release until a packaged release containing it is published.

  4. EtienneLescot commented on Nov 4, 2026

    @EtienneLescot
    Member

    Moved into v2.2.2 as part of the pre-release cut.

  5. EtienneLescot commented on Nov 4, 2026

    @EtienneLescot
    Member

    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.

  6. juliogargue commented on Nov 5, 2026

    @juliogargue
    ContributorAuthor

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: fixed in mainstatus: pending release

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions