> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Screen-capture tool (wdcapture.exe)

> Screen-capture tool (wdcapture.exe)

Use this tool to capture a screenshot or a video clip of anything that currently appears on the console's output.

<Note>
  You can also use the [XBOX Manager](/tools/tools-console/xbom/xbom) tool to capture screenshots.
</Note>

| Command                             | Description                                                                               |
| ----------------------------------- | ----------------------------------------------------------------------------------------- |
| [screenshot](#wdcapture_screenshot) | Takes a screenshot and saves it in the PNG (SDR) file format or the JXR (HDR) file format |
| [video]()                           | Records the last several seconds of video in the MP4 file format                          |

<a id="wdcapture_screenshot" />

## wdcapture screenshot

Takes a screenshot and saves it in the PNG (SDR) file format or the JXR (HDR) file format. If an HDR screenshot is requested but the console isn't in HDR mode, the screenshot fails. If game-screen only is specified, the resulting screenshot mimics a retail screenshot.

`wdcapture screenshot [<filename>] [hdr] [gameScreenOnly]`

| Option           | Description                                                          |
| ---------------- | -------------------------------------------------------------------- |
| `filename`       | The name of the output file                                          |
| `hdr`            | Specifies that the screenshot should be saved in the HDR file format |
| `gameScreenOnly` | Mimics a retail screenshot                                           |

<a id="wdcapture_video" />

## wdcapture video

Records the last several seconds of video in the MP4 file format. The duration must be specified and must be between 6 and 300 seconds.

`wdcapture video <duration> [<filename>]`

| Option     | Description                               |
| ---------- | ----------------------------------------- |
| `duration` | The duration in seconds of the video clip |
| `filename` | The name of the output file               |

## See also

[Console Command-line tools](/tools/tools-console/console_commandlinetools/consolecommandlinetools)

[XTF transport errors](/tools/tools-console/commandlinetools/xtf-transport-errors)


## Related topics

- [Console-based command-line tools for XBOX](/tools/tools-console/console_commandlinetools/index.md)
- [Screen Capture (wdcapture.exe)](/tools/tools-pc/commandlinetools/gr-wdCapture.md)
- [Command-line tools for PC development](/tools/tools-pc/commandlinetools/gr-commandlinetools-toc.md)
- [Commandlinetools](/tools/tools-pc/commandlinetools/index.md)
- [Video Capture (wdcapturesession.exe)](/tools/tools-pc/commandlinetools/gr-wdcapturesession.md)
