> ## Content Index
> Fetch the complete content index at: https://itsfoss.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Record Windows and Cropped Area in OBS Studio
- URL: https://itsfoss.com/obs-record-window-area/
- Published: 2025-03-06T03:09:13.000Z
- Updated: 2025-03-06T03:09:13.000Z
- Description: Learn how to screen record application windows and selected area with OBS Studio in this tutorial.
- Author: Sreenath
- Tags: OBS

When it comes to [screen recording in Linux](https://itsfoss.com/best-linux-screen-recorders/) or any other operating system, OBS Studio becomes he go-to choice.

It offers all the features baked in for users, ranging from casual screen recorders to advanced streamers.

One such useful feature is to record a part of the screen in OBS Studio. I'll share the detailed steps for Linux users in this tutorial.

🚧

The method mentioned is based on a Wayland session. Also, this is a personal workflow, and if readers have better options, feel free to comment, so that I can improve the article for everyone.

## Record an application window in OBS Studio

Before starting, first click on File → Settings from OBS Studio main menu. Here, in the Settings window, go to the Video section and note the **Canvas resolution** and **Output scale** resolution for your system.

![Note the canvas size and output scale size in OBS Studio video settings.](https://itsfoss.com/content/images/2025/01/revert-the-size-to-normal.png)

Note Canvas and Output Scale values

This will be helpful when you are reverting in a later step.

### Step 1: Create a new source

First, let's create a new source for our recording. Click on the “+” icon on the OBS Studio home screen as shown in the screenshot below. Select “Screen Capture (Pipewire)” option.

📋

For X11 system, this may be **Display Capture (XSHM)*.

![Click on the plus button to add a new source in OBS Studio. From the menu, select Screen Capture/Display Capture option.](https://itsfoss.com/content/images/2025/01/click-on-plus-to-add-a-new-source.webp)

Click on "+" to add a new source

On the resulting window, give a name to the source and then click OK.

![Give a name to the source in OBS Source screen. Make the source visible and click OK.](https://itsfoss.com/content/images/2025/01/give-a-name-to-the-source.png)

Give a name to the source

Once you press OK, you will be shown a dialog box to select the record area.

### Step 2: Select the window to record

Here, select the **Window** option from the top bar.

![Select the window to be recorded.](https://itsfoss.com/content/images/2025/01/select-the-window-to-be-recorded.png)

Select the window to be recorded.

Once you click on the Window option, you will be able to see all the open windows listed. Select a window that you want to record from the list, as shown in the screenshot above.

This will give you a dialog box, with a preview of the window being recorded.

Enable the cursor recording (if needed) and click OK.

![Selected window is shown as a preview.](https://itsfoss.com/content/images/2025/01/the-selected-window-is-in-the-preview.png)

Selected window in preview

### Step 3: Crop the video to window size

Now, in the main OBS window, you can see that the application you have selected is not filling the full canvas, in my case 1920×1080.

![Canvas is not filled with the selected window.](https://itsfoss.com/content/images/2025/01/canvas-is-not-full-with-the-selected-window.webp)

Empty space in canvas

The output will contain this window and the rest of the canvas in black if you keep recording with this setting.

You need to crop the area so that only the necessary part is present on the output file.

For this, right-click on our source and select **Resize Output (Source Size)** option, as shown below:

![Right-click on the source and select "Resize Output (Source Size)" option.](https://itsfoss.com/content/images/2025/01/resize-output-source-size.png)

Resize output source size

Click on Yes, when prompted.

![Click on Yes to confirm the choice.](https://itsfoss.com/content/images/2025/01/accept-confirmation.png)

Accept Confirmation

As soon as you click Yes, you can see that the canvas is now reduced to the size of the window.

![Canvas is resized to the window size.](https://itsfoss.com/content/images/2025/01/canvas-resized-to-window-size.webp)

Canvas Resized

### Step 4: Record the video

You can now start recording the video using the Record button.

![Start recording the video by clicking on the Start recording button.](https://itsfoss.com/content/images/2025/01/start-recording-by-clicking-on-record-button.png)

Start video recording

Once finished, stop recording, and the saved video file won't contain any other part, except the window.

### Step 5: Delete the video source

Now that you have recorded the video, let's remove this particular source.

Right-click on the source and select **Remove**.

![Remove the source after recording is completed.](https://itsfoss.com/content/images/2025/01/remove-the-source-after-recording.png)

Remove the source

### Step 6: Revert the canvas and output scale

While we were resizing the canvas to the window, the setting has been also changed on your OBS Studio video settings. If left unchanged, your future videos will also be recorded with the reduced size.

So, click on *File* in the OBS Studio main menu and select *Settings*.

![Click on File and then select Settings](https://itsfoss.com/content/images/2025/01/click-on-file-and-settings.png)

Click on File → Settings

On the Settings window, go to **Videos** and revert the **Base Canvas Resolution** and **Output Scaled Resolution** to your preferred normal values. Then click **Apply**.

![Revert the base canvas and output scale resolution to normal values.](https://itsfoss.com/content/images/2025/01/revert-the-size-to-normal-1.png)

Revert Canvas Size to normal

## Record an area on the screen in OBS Studio

This is the same process as the one described above, except for the area selection.

### Step 1: Create a new source

Click on the plus button on the Sources section in OBS Studio and select Screen Capture.

![Click on the plus button to add a new source in OBS Studio. From the resulting menu, select Screen Capture/Display Capture option.](https://itsfoss.com/content/images/2025/01/click-on-plus-to-add-a-new-source-1.webp)

Select Screen Capture

Name the source and click OK.

### Step 2: Select a region

On the area selection dialog box, click on **Region**. From the section, select **Select Region** option.

![Click on Region, then Select Region.](https://itsfoss.com/content/images/2025/01/click-on-region-select-region.png)

Select Region

Notice the cursor has now changed to a plus sign. Drag the area you want to record.

![Select an area to record by dragging and dropping.](https://itsfoss.com/content/images/2025/01/select-the-area-to-record.webp)

Select Area to Record

You can see that the preview now has the selected area. Don't forget to enable the cursors, if needed.

It is normal that the canvas is way too big and your video occupies only a part of it.

![Canvas size mismatch in OBS Studio.](https://itsfoss.com/content/images/2025/01/the-canvas-size-mismatch.webp)

Canvas Size Mismatch

### Step 3: Resize the source

Like in the previous section, right-click on the source and select Resize output option.

![Resize the output in the area capture scenario.](https://itsfoss.com/content/images/2025/01/resize-output-to-area-capture.png)

Resize Output to Area Capture

### Step 4: Record and revert the settings

Start recording the video. Once it is completed, save the recording and remove the source. **Revert the canvas and output scale settings, as shown in *step 6* of the previous section**.

💬 *Hope this guide has helped you record with OBS Studio. Please let me know if this tutorial helped you or if you need further help.*