Windows Defender 等杀毒软件可能误报;软件 HEVC 编码需从商店安装 HEVC Video Extensions 且仅支持 8-bit;禁用鼠标光标捕获需 Windows 10 2004(20H1)及以上。
下载 wcap-x64.exe 或 wcap-arm64.exe 直接运行;从源码构建需装 Visual Studio 后运行 build.cmd需 Windows 10 1903(19H1)及以上或 Windows 11;默认用 GPU 硬件编码,驱动过旧可改用软件编码;README 未说明具体显存要求。
Windows 上的轻量屏幕录制工具,用系统原生捕获和硬件编码,几乎不占 CPU
Windows 10/11 上的轻量高效屏幕录制小工具,基于 C 语言实现,可把屏幕画面直接录成 H.264/HEVC 编码的 MP4 文件。
核心能力
- 用 Windows.Graphics.Capture 捕获窗口或整屏
- 通过 Media Foundation 硬件编码输出 mp4
- 支持 H264、H265、AV1 视频与 AAC、FLAC 音频
- 窗口录制可只录应用本地音频
- 可限制时长、文件大小、分辨率与帧率
容易踩的坑
暂无 release 数据(可能没有发版,或尚未同步)。
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
wcap
Simple and efficient screen recording utility for Windows.
Get latest binary here: wcap-x64.exe or wcap-arm64.exe
WARNING: Windows Defender or other AV software might report false positive detection
Features
- press Ctrl + PrintScreen to start recording current monitor (where mouse cursor currently is positioned)
- press Ctrl + Win + PrintScreen to start recording currently active window
- press Ctrl + Shift + PrintScreen to select & record fixed region on current monitor
- press any of previous combinations to stop recording
- right or double-click on tray icon to change settings
- video encoded using H264/AVC, H265/HEVC or AV1, with 10-bit support for HEVC and AV1
- audio encoded using AAC or FLAC
- for window capture record full window area (including title bar/borders) or just the client area
- window capture can record application local audio, no other system/process audio included
- options to exclude mouse cursor from capture, disable recording indication borders, or rounded window corners
- can limit recording length in seconds or file size in MB's
- can limit max width, height or framerate - captured frames will be automatically downscaled
- when limiting max width/height - can perform gamma correct resize
- optional improved color conversion - adjust output YUV values to better match brightness to original RGB input
Details
wcap uses Windows.Graphics.Capture API available since Windows 10 version 1903, May 2019 Update (19H1) to capture contents of window or whole monitor. Captured texture is submitted to Media Foundation to encode video to mp4 file with hardware accelerated codec. Using capture from compositor and hardware accelerated encoder allows it to consume very little CPU and memory.
You can choose in settings to capture only client area or full size of window - client area will not include title bar and borders for standard windows style. Recorded video size is determined by initial window size.
By default hardware encoder is enabled, you can disable it in settings Make sure your GPU drivers are updated if something is not working with hardware video encoding. Then video will be encoded using Microsoft Media Foundation H264 software encoder. You might want to explicitly use software encoder on older GPU's as their hardware encoder quality is not great.
Audio is captured using WASAPI loopback recording and encoded using Microsoft Media Foundation AAC encoder, or undocumented Media Foundation FLAC encoder (it seems it always is present in Windows 10 and 11).
Recorded mp4 file can be set to use fragmented mp4 format in settings (only for H264 codec). Fragmented mp4 file does not require "finalizing" it. Which means that in case application or GPU driver crashes or if you run out of disk space then the partial mp4 file will be valid for playback. The disadvantage of fragmented mp4 file is that it is a bit larger than normal mp4 format, and seeking is slower.
You can use settings dialog to restrict max resolution of video - captured image will be scaled down to keep aspect ratio if you set any of max width/height settings to non-zero value. Similarly framerate of capture can be reduced to limit maximum amount of frames per second. Setting it to zero will use compositor framerate which is typically monitor refresh rate. Lower video framerate will give higher quality video for same bitrate and reduced GPU usage. If you notice too many dropped frames during recording, try reducing video resolution and framerate.
Capture of mouse cursor can be disabled only when using Windows 10 version 2004, May 2020 Update (20H1) or newer.
On Windows 11 you can disable yellow recording borders, or rounded window corners. On Windows 11 24H2 version can enable secondary window capture, when they intersect main window in window-only capture mode - for popups & tool windows like "Open File" dialog.
HEVC Software Encoding
HEVC encoding in software (on CPU) will require installing HEVC Video Extensions from Windows Store. It will support only 8-bit encoding. You can get direct download to installer package without using Windows Store application with following steps:
- open https://store.rg-adguard.net/
- search
https://www.microsoft.com/store/productId/9n4wgh0z6vhqforRetailchannel - download & run .appxbundle package it gives you
Creating gif from mp4
If you want to create gif file out of recorded mp4 file, you can use following .bat file:
ffmpeg.exe -hide_banner -nostdin -loglevel fatal -stats -y -i %1 -filter_complex "[0]fps=15,split[v0][v1];[v0]palettegen=stats_mode=full[p];[v1][p]paletteuse" %~n1.gif
Or to create new palette every frame for more colors, but larger file size:
ffmpeg.exe -hide_banner -nostdin -loglevel fatal -stats -y -i %1 -filter_complex "[0]fps=15,split[v0][v1];[v0]palettegen=stats_mode=single[p];[v1][p]paletteuse=new=1" %~n1.gif
Put this line in make_gif.bat file, place ffmpeg executable next to it and then simply drag & drop .mp4 file on top of it.
Change fps=15 to desired gif fps (or remove to use original video fps). Check the paletteuse filter arguments for
different dither methods.
Building
To build the binary from source code, have Visual Studio installed, and simply run build.cmd.
License
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.