# Pan, Tilt, Zoom control with IP cameras

## Aim

To change the camera view in MediaRecorder.

- Prerequisites
- Your IP camera supports ONVIF Profile S.
- Your IP camera can Pan, Tilt and Zoom.
- The camera is selected in MediaRecorder.
- See [Select a video device](https://bookstack.noldus.com/link/421#bkmrk-page-title)

## Procedure

Hover with your mouse over the camera image. Two buttons appear in the top-right corner of your window.

1. Enable or disable PTZ control.  
    [![image.png](https://bookstack.noldus.com/uploads/images/gallery/2023-11/scaled-1680-/Y2V5RHY09ltMFTGf-image.png)](https://bookstack.noldus.com/uploads/images/gallery/2023-11/Y2V5RHY09ltMFTGf-image.png)
2. Open the PTZ preset menu.

[![image.png](https://bookstack.noldus.com/uploads/images/gallery/2023-11/scaled-1680-/LjTnDgjnbBRSrcUx-image.png)](https://bookstack.noldus.com/uploads/images/gallery/2023-11/LjTnDgjnbBRSrcUx-image.png)

## PTZ control

1. Click the **Enable PTZ button** in the image you want to adjust. A four-arrow cross appears in the middle of the image and your mouse pointer becomes a small point.
2. Click the camera image and keep your left mouse button pressed to control the camera. The cross now becomes connected to the point and the camera image moves in the direction of the point. The further away from the center cross you click, the faster the camera moves.   
    [![image.png](https://bookstack.noldus.com/uploads/images/gallery/2023-11/scaled-1680-/eOMClqKQ4jfyeD5z-image.png)](https://bookstack.noldus.com/uploads/images/gallery/2023-11/eOMClqKQ4jfyeD5z-image.png)
3. Zoom in and out with your mouse wheel.

## Save camera position

If you are satisfied with the position of your camera, you can save this as a PTZ preset. Hover over the camera image and click the button that opens the PTZ menu.

[![image.png](https://bookstack.noldus.com/uploads/images/gallery/2023-11/scaled-1680-/LjTnDgjnbBRSrcUx-image.png)](https://bookstack.noldus.com/uploads/images/gallery/2023-11/LjTnDgjnbBRSrcUx-image.png)

The following buttons now appear. The Save as buttons appear when you hover over the Return to PTZ preset buttons.

- Save as first PTZ preset.  
    [![image.png](https://bookstack.noldus.com/uploads/images/gallery/2023-11/scaled-1680-/8HT2jhY3AounShES-image.png)](https://bookstack.noldus.com/uploads/images/gallery/2023-11/8HT2jhY3AounShES-image.png)
- Save as second PTZ preset.  
    [![image.png](https://bookstack.noldus.com/uploads/images/gallery/2023-11/scaled-1680-/8AYMS65FdV5edhgA-image.png)](https://bookstack.noldus.com/uploads/images/gallery/2023-11/8AYMS65FdV5edhgA-image.png)
- Return to first PTZ preset.  
    [![image.png](https://bookstack.noldus.com/uploads/images/gallery/2023-11/scaled-1680-/JNMptZy2ohs8x5gT-image.png)](https://bookstack.noldus.com/uploads/images/gallery/2023-11/JNMptZy2ohs8x5gT-image.png)
- Return to second PTZ preset  
    [![image.png](https://bookstack.noldus.com/uploads/images/gallery/2023-11/scaled-1680-/x95T77lvGRkjPSUo-image.png)](https://bookstack.noldus.com/uploads/images/gallery/2023-11/x95T77lvGRkjPSUo-image.png)

## PTZ keyboard shortcuts

The following keyboard shortcuts can be used to control PTZ:

<div align="left" id="bkmrk-ctrl-%2B-1-enable-%2F-di" width="100%"><table cellspacing="0px" class="table0 ShadedAlternatingRows" dir="ltr"><tbody><tr class="t1Row"><td>Ctrl + 1

</td><td>Enable / disable PTZ in first video

</td></tr><tr class="t2Row"><td>Ctrl + 2

</td><td>Enable / disable PTZ in second video

</td></tr><tr class="t1Row"><td>Ctrl + 3

</td><td>Enable / disable PTZ in third video

</td></tr><tr class="t2Row"><td>Ctrl + 4

</td><td>Enable / disable PTZ in fourth video

</td></tr><tr class="t1Row"><td>Numerical keypad 1

</td><td>Move camera left-down

</td></tr><tr class="t2Row"><td>Numerical keypad 2

</td><td>Move camera down

</td></tr><tr class="t1Row"><td>Numerical keypad 3

</td><td>Move camera right-down

</td></tr><tr class="t2Row"><td>Numerical keypad 4

</td><td>Move camera left

</td></tr><tr class="t1Row"><td>Numerical keypad 6

</td><td>Move camera right

</td></tr><tr class="t2Row"><td>Numerical keypad 7

</td><td>Move camera left-up

</td></tr><tr class="t1Row"><td>Numerical keypad 8

</td><td>Move camera up

</td></tr><tr class="t2Row"><td>Numerical keypad 9

</td><td>Move camera right-up

</td></tr><tr class="t1Row"><td>Numerical keypad +

</td><td>Zoom in

</td></tr><tr class="t2Row"><td>Numerical keypad -

</td><td>Zoom out

</td></tr></tbody></table>

</div>Notes

- If you use the CH products RS Desktop joystick for PTZ control, make sure it is connected before you start MediaRecorder.
- To reverse the camera pan or tilt direction, open the **Advanced Video Settings** window and select the checkbox **Flip Pan axis** or **Flip Tilt axis**   
    See step 11 <span style="font-family: 'Open Sans', 'Trebuchet MS', Helvetica, sans-serif;">in [Select ONVIF cameras in MediaRecorder](https://bookstack.noldus.com/link/487#bkmrk-page-title) </span><span style="font-family: 'Open Sans', 'Trebuchet MS', Helvetica, sans-serif;">in **Set up IP cameras** </span>

## To change the PTZ method

MediaRecorder has two PTZ methods. The default method is described above. it is also possible to let the camera center its camera view to the point that you click with your mouse.

[![image.png](https://bookstack.noldus.com/uploads/images/gallery/2023-11/scaled-1680-/qoevUhxqNsV25qCe-image.png)](https://bookstack.noldus.com/uploads/images/gallery/2023-11/qoevUhxqNsV25qCe-image.png)

### Procedure

1. Open MediaRecorder and select your IP cameras.   
    See [Select ONVIF cameras in MediaRecorder](https://bookstack.noldus.com/link/487#bkmrk-page-title)
2. Close MediaRecorder. This saves settings for the IP cameras in the file **Current Settings.mrs**.
3. Create a backup of the file **Default Settings.mrs** that is present in the folder C:\\Users\\Public\\Public Documents\\Noldus\\MediaRecorder.
4. Open the file **Current Settings.mrs** from the same folder with Notepad.
5. Locate the line **&lt;PtzType&gt;1&lt;/PtzType&gt;** and change 1 to 0. There is a line for each PTZ camera that you selected in MediaRecorder. Change the line for each PTZ camera.   
    **I<span class="FM_All_caps">mportant </span>** When you selected the same camera multiple times in MediaRecorder, use the same method for pan and tilt in each camera. So for each camera, use either 1 or 0.
6. Save the file as **Default Settings.mrs**. These settings are used when the file Current Settings.mrs is not found.
7. Delete the file **Current Settings.mrs** from the folder C:\\Users\\Public\\Public Documents\\Noldus\\MediaRecorder.
8. Re-open MediaRecorder. MediaRecorder opens with configuration file **Default Settings.**mrs and creates a new file **Current Settings.mrs** with the edited settings. The new PTZ method is now available.

### To Pan and Tilt the camera view

1. Click the **Enable PTZ** button in the image you want to adjust.
2. A white cross appears. The camera moves to the point that you click with your mouse.