This tutorial will show you how to set the duration for recordings you start for gaming captures for your account in Windows 11.
The Xbox Game Bar app is built into Windows 11 so you can record games to capture videos and screenshots while playing PC games. You can press the Windows

You can choose the maximum recording time of 30 minutes, 1 hour, 2 hours (default), or 4 hours for a clip so that it automatically stops recording and saves when it reaches that length.
Game clips (recordings) will save as a MP4 file to your account's %UserProfile%\Videos\Captures folder by default.
References:
Xbox Support

How to Record Your Screen on Windows 11 | Microsoft Windows
Follow these steps to record your screen on Windows 11. Create step-by-step instructional videos, vivid social media content, gaming recordings, and more!
www.microsoft.com
Contents
- Option One: Change Max Recording Length for Gaming Captures in Settings
- Option Two: Change Max Recording Length for Gaming Captures using REG file
EXAMPLE: "Start recording"/"Stop recording" (Win+ALT+R) button on Capture widget for Xbox Game Bar (Win+G)
1 Open Settings (Win+I).
2 Click/tap on Gaming on the left side, and click/tap on Captures on the right side. (see screenshot below)
3 Select 30 minutes, 1 hour, 2 hours (default), or 4 hours for what you want in the Max recording length drop menu. (see screenshot below)
4 You can now close Settings if you like.
1 Do step 2 (30 minutes), step 3 (1 hour), step 4 (2 hours), or step 5 (4 hours) below for what you want.
2 Set Max Recording Length to "30 minutes" for Gaming Captures
A) Click/tap on the Download button below to download the REG file below, and go to step 6 below.
30-minutes_max_recording_length_of_game_clips.reg
(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\GameDVR]
"MaximumRecordLength"=hex(b):00,34,e2,30,04,00,00,00
3 Set Max Recording Length to "1 hour" for Gaming Captures
A) Click/tap on the Download button below to download the REG file below, and go to step 6 below.
1-hour_max_recording_length_of_game_clips.reg
(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\GameDVR]
"MaximumRecordLength"=hex(b):00,68,c4,61,08,00,00,00
4 Set Max Recording Length to "2 hours" for Gaming Captures
This is the default setting.
A) Click/tap on the Download button below to download the REG file below, and go to step 6 below.
2-hours_max_recording_length_of_game_clips.reg
(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\GameDVR]
"MaximumRecordLength"=hex(b):00,d0,88,c3,10,00,00,00
5 Set Max Recording Length to "4 hours" for Gaming Captures
A) Click/tap on the Download button below to download the REG file below, and go to step 6 below.
4-hours_max_recording_length_of_game_clips.reg
(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\GameDVR]
"MaximumRecordLength"=hex(b):00,a0,11,87,21,00,00,00
6 Save the .reg file to your desktop.
7 Double click/tap on the downloaded .reg file to merge it.
8 When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.
9 You can now delete the downloaded .reg file if you like.
That's it,
Shawn Brink
Attachments
-
Video_playback.png7.2 KB · Views: 7
-
1-hour_max_recording_length_of_game_clips.reg678 bytes · Views: 8
-
2-hours_max_recording_length_of_game_clips.reg678 bytes · Views: 8
-
4-hours_max_recording_length_of_game_clips.reg678 bytes · Views: 12
-
30-minutes_max_recording_length_of_game_clips.reg678 bytes · Views: 13
Last edited: