# 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:
Ctrl + 1 Enable / disable PTZ in first video
Ctrl + 2 Enable / disable PTZ in second video
Ctrl + 3 Enable / disable PTZ in third video
Ctrl + 4 Enable / disable PTZ in fourth video
Numerical keypad 1 Move camera left-down
Numerical keypad 2 Move camera down
Numerical keypad 3 Move camera right-down
Numerical keypad 4 Move camera left
Numerical keypad 6 Move camera right
Numerical keypad 7 Move camera left-up
Numerical keypad 8 Move camera up
Numerical keypad 9 Move camera right-up
Numerical keypad + Zoom in
Numerical keypad - Zoom out
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 in [Select ONVIF cameras in MediaRecorder](https://bookstack.noldus.com/link/487#bkmrk-page-title) in **Set up IP cameras** ## 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 **<PtzType>1</PtzType>** 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. **Important ** 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.