Video export bug; output does not match what was recorded

Open
#1,787 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
macos
Domain
desktop

Research direction

Reproduce the issue on macOS by recording in Studio Mode and exporting the recording to MP4, then compare the preview with the exported video around the first flickering or stuck frame. Check whether recordings with zooms show the same failure and verify the export matches the preview without stuck frames; the issue does not name a source file or test to start from.

Written by the indexing model from the issue text.

Description

bug
Description

Occasionally, when exporting video from Cap after recording in Studio Mode, the exported video will be rendered incorrectly, with flickering and/or stuck frames. This seems to occur most often in videos that have one or more zooms but has been observed in all types of recordings. When a stuck frame occurs, cursor and zoom effects will still play correctly, but the frame will not update properly for some time.

Forcing FFmpeg decoder reduces the occurrence of flickering frames but does not fix stuck frames on affected recordings. The same frame will always stick at the same point when exporting.

Reproduction
  1. Record video of any duration.
  2. Check playback in preview mode.
  3. Export video to MP4 with any combination of settings.
  4. Compare exported video to preview.
Additional Context
  • Cap version: 0.4.84
  • Operating system, version: macOS Sequoia 15.7.5
  • Device: MacBook Air M2

Edit: Issue also occurs when exporting the same recording bundle on an M5 MacBook Pro with Tahoe 26.4.1.
Edit 2: Issue does NOT occur when exporting the same recording bundle on Windows 10 (LTSC).

Video as shown in Cap's preview (captured by macOS screen recording).

https://github.com/user-attachments/assets/533cc234-5aa1-4ff0-b89f-c0997f90b695

Same section of exported video. Note that the second click event does not correctly show the overlay closing.

https://github.com/user-attachments/assets/0c090bb9-016a-46fd-b395-43f140771d3c

Dominant language
Rust
Stars
25k
Forks
2.4k
Avg merge
1d 8h
Merged PRs (30d)
676

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from CapSoftware/Cap

All issues in CapSoftware/Cap

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.