This guide explains how to record your screen using built-in Windows tools and compress large recordings with FFmpeg.
Xbox Game Bar is convenient for recording an application or game window.
- Open the application you want to record.
- Press
Win + Gto open Xbox Game Bar. - In the Capture panel, click Start recording.
Useful shortcuts:
Win + Alt + R— start or stop recordingWin + Alt + M— enable or disable the microphoneWin + G— open Xbox Game Bar
Recordings are normally saved as MP4 files in:
C:\Users\<username>\Videos\Captures
Official documentation:
Snipping Tool is useful when you need to record a specific region of the screen.
- Press
Win + Shift + R. - Select the area you want to record.
- Click Start.
- When finished, click Stop and save the video.
On supported Windows 11 versions, recordings are automatically saved in:
C:\Users\<username>\Videos\Screen Recordings
Official documentation:
Open PowerShell or Windows Terminal and run:
winget install --id Gyan.FFmpeg.Shared -eAfter installation, close and reopen PowerShell. Verify that FFmpeg is available:
ffmpeg -versionOfficial documentation:
Open PowerShell in the folder containing the video.
A quick way to do this is to open the folder in File Explorer, click the address bar, type powershell, and press Enter.
Run:
ffmpeg -i ".\input video.mp4" -c:v libx264 -crf 28 -preset slow -pix_fmt yuv420p -c:a aac -b:a 96k -movflags +faststart ".\compressed video.mp4"Replace:
input video.mp4with the original filenamecompressed video.mp4with the desired output filename
Quotation marks are required when filenames contain spaces.
The -crf value controls the balance between quality and file size:
- 23 — higher quality and a larger file
- 26–28 — good balance for most screen recordings
- 29–32 — smaller file with more visible quality loss
Lower CRF values produce higher quality and larger files. Higher values produce smaller files.
For example, use CRF 30 for stronger compression:
ffmpeg -i ".\input video.mp4" -c:v libx264 -crf 30 -preset slow -pix_fmt yuv420p -c:a aac -b:a 96k -movflags +faststart ".\compressed video.mp4"For tutorials, bug reports, and mostly static screen content, reducing the frame rate to 30 FPS and limiting the width to 1920 pixels can save additional space:
ffmpeg -i ".\input video.mp4" -vf "fps=30,scale='min(1920,iw)':-2" -c:v libx264 -crf 28 -preset slow -pix_fmt yuv420p -c:a aac -b:a 96k -movflags +faststart ".\compressed video.mp4"Compressing a recording from several gigabytes to only a few dozen megabytes is sometimes possible for short recordings with mostly static content. The final size depends on:
- Video duration
- Resolution
- Frame rate
- Amount of movement
- Selected CRF value
- Audio bitrate
Keep the original recording until you have checked that the compressed version is readable and contains the expected audio.