Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#7393·screenpipe

[feature] decouple capture/OCR resolution from stored resolution (MP4 or JPG)

Author: liujoshuaCreated Sep 30, 2026Updated Sep 30, 2026
Labelsbugenhancementgood first issue

AI assistance and human ownership read the AI-assisted contribution policy.

  • AI tool(s) used (none if not used): Claude Code
  • autonomy level (none, autocomplete, chat, or agent): agent (read the source, measured my data dir, ran test encodes)
  • what you personally verified: resolution, storage size, quality of JPEGs and MP4s
  • I personally submitted this issue; its problem statement and rationale are my own.

describe the feature

Enable screen image capture at higher resolution for OCR, followed by compaction or downscaling for what is retained on disk. This works the same with compaction on or off, because --video-quality always governs what is stored and the new flag governs what is temporarily captured for OCR purposes.

stage current desired
capture + OCR --video-quality width cap new --capture-max-width, default native
JPEG written to disk --video-quality --video-quality (downscaled from the in-memory frame after OCR)
MP4 archive (compaction on) --video-quality --video-quality

why is this needed? Today, legible OCR seems increasingly important due to growth in UIs that don't expose their content through accessibility, such as canvas-rendered apps, terminals, remote desktops and video.

My case: a 6016×3384 display is captured at 1920 on balanced, and small-text OCR suffers. high fixes that, but by my estimate it multiplies screen storage 3 to 6 times.

alternatives considered

  • high or max: fixes OCR but inflates storage.
  • --disable-snapshot-compaction: about 16× the disk.
  • Tie capture resolution to compaction mode (native when compaction is on): simpler, but it leaves OCR capped when compaction is off.

additional context

  • Trade-off: native capture costs more CPU, GPU and battery, which is why --capture-max-width is a setting rather than always native.
  • Related bug, not a duplicate: #6650.
  • Separately: in a small test, x265 -preset medium -crf 18 -pix_fmt yuv444p was about the same size as the current compaction encode (ultrafast, CRF 23, 4:2:0), with far higher fidelity (PSNR 56 to 64 dB versus 43 dB). A 4:4:4 option could be a cheap win for text.

Source: screenpipe/screenpipe

View original on GitHubView discussion on GitHub