Resource icon

Control Visca-over-IP based cameras 2.7

Lawrence_SoCal

Active Member
You are welcome. I contacted Canon with a request for the Visca technical documentation. I'm curious whether they will actually share this.
You can always feel free to embarrass Canon with a comment that Panasonic provides complete documentation for their PTZ cameras ;^)
 

nikantonio1408

New Member
Hello, thanks for your plugin.
Could you some help.
PTZ Cam - Minrray 430E0
I need make: atrack on/track off
I don’t understand where to write this command:
81 0A 01 32 00 00 02 00 FF
Thanks for your answer.
1720022893141.png
 

vwout

Member
You're welcome, thank you! :)
The dialog you are showing is the configuration of the camera. You entered code in the 'preset' list, but that's not where it goes. The preset list is to configure presets (recall a preset on the camera using a preset number). To send a command, like tracking on/off, you need to configure an action, in the source configuration for a visca action and select the action Custom Command:
1720039823065.png


In the Start command field you enter the Tracking ON command listed in the manual, but without the address 81 and the termination FF, so: 0A 01 32 00 00 02 00. To stop tracking, either fill it in as Stop command, which means tracking will be disabled when the scene is deactivated (the camera is no longer active), or in a separate scene using the same camera, but a different Visca command, where the Tracking OFF command is filled in in the Start command field.
 

nikantonio1408

New Member
Пожалуйста, спасибо! :)
Диалог, который вы показываете, — это конфигурация камеры. Вы ввели код в список «предустановок», но он не там. Список предустановок предназначен для настройки предустановок (вызов предустановки на камере с помощью номера предустановки). Чтобы отправить команду, например, включение/выключение отслеживания, вам нужно настроить действие в исходной конфигурации для действия visca и выбрать действие Custom Command :
View attachment 105082

В поле Start command (Команда запуска) вы вводите команду Tracking ON (ВКЛ. отслеживание) , указанную в руководстве, но без адреса 81 и окончания FF , то есть: 0A 01 32 00 00 02 00. Чтобы остановить отслеживание, либо заполните ее как Stop command (Команда остановки ), что означает, что отслеживание будет отключено, когда сцена деактивирована (камера больше не активна), либо в отдельной сцене с использованием той же камеры, но другой команды Visca, где в поле Start command (Команда запуска ) заполнена команда Tracking OFF ( ВЫКЛ. отслеживание ).
Thanks, it is in OBS input option. So, if i need always camera attive, but when i need on/off track, it mysu be different scenes with different inputs. Right?
 

vwout

Member
You can do this in two ways:
- Use two scenes: One scene to enable tracking (as custom 'start' command), one scene to disable tracking (as custom 'start' command)
- Use a scene with tracking on and off as start and stop command
It depends on the rest of the scenes which is most suitable
 

vwout

Member
Hi

Thank you very much for your detailed replay. Our cameras are updated to the newest available firmare (Version 1.4.0).
Thats a very good input, i will try, as soon as i have some free time to play with it, to test some different formats of the command.
As soon as i figured out someting, i will post it here.
Hi @bawunderl, I send you a private message requesting specific details. I may have found the cause for the issue (something related to different Visca protocol variants). If there is anyone else with a Canon CR-* camera that is willing to perform some test, please contact me.
 

vwout

Member
You can always feel free to embarrass Canon with a comment that Panasonic provides complete documentation for their PTZ cameras ;^)
I have received full Visca documentation from Canon. The specification is based on Sony C456-100-13(1) command List for BRC-X1000/H800/H78. The main difference is that an additional byte is used for the pan position. The latest code at github.com/vwout/obs-visca-control contains (untested, by lack of a camera) support.
 

vwout

Member
vwout updated Control Visca-over-IP based cameras with a new update entry:

Release 2.6

This release adds better support for Canon PTZ camera's and it probably also improves this on other camera brands. The are are two command variants specified by Sony Visca protocol specifications. This script now supports both. This is expected to implement support for at least Canon CR-N300.

In case the script does not fully work with your camera, debugging became easier. Both verbose and debug logging can now be activated from the script configuration dialog; no need to modify code...

Read the rest of this update entry...
 

vwout

Member

UroDoc

New Member
I am have been using this script for several years with great success streaming our church service. Camera position and zoom are set by a PowerPoint slide section name using the PowerPoint macro on the OBS site. I need to adjust camera settings (Canon CR-N300) based on the scene. We have both front lit scenes and back lit scenes due to large stained glass windows in the front and sides of the altar. Can you post the Canon CR-N300 Visca codes document for download? I need to change between full auto camera exposure settings, spotlight vs standard vs backlight etc. Any help would be appreciated. I am more than willing to help with testing of proposed script changes with my Canon CR-N300 setup.
 

vwout

Member
The pan-tilt-zoom command with special handling for the Canon protocol variant is included in the last release(s), so available for you to test. The Canon protocol specification is attached. Let me know in case there are customizations required for other standard commands.
 

Attachments

  • Canon Command_List_for_Std_Comm_005.pdf
    526 KB · Views: 16

UroDoc

New Member
I would like to explain my setup current setup and my current issue which is with the camera exposure settings.

Canon CR-N300

PTZOptics Superjoy joystick (Controls the Canon PTZ functions without issue)

Atem Mini Pro

Atlona HDMI splitter

Intel i7700

32GB Ram

The PowerPoint macro from the OBS Scripts site controls the Canon CR-N300 PTZ functions and focus. The section name in the PowerPoint calls an OBS hotkey which calls the scene.

We have issues with the exposure in the scenes. We have strong front lighting for certain scenes, and strong rear lighting 2nd to large stain glass windows behind the altar and on the side walls for other scenes.

What I would like to do is to create a Visca Camera Control which would select a certain preconfigured exposure preset in the Canon exposure settings area. It is possible to create up to 63 individual presets with the Canon CR-N300.

I reviewed the Canon document you posted but I am not clear on the syntax that would be required to execute the steps.
Preset recall "8x 01 04 3F 02 pp FF" Replace FF with 01 or 02 for Prest 1, Prest 2 etc?

I had performed a test where I had OBS open on a scene, and I also had access to the Canon through IP access. I opened settings, then selected exposure, selected manual, then selected front lighting. This immediately changed the exposure to what I needed. I did not need to reboot the camera. However, when I changed to another scene, the exposure changed back to the original which was full auto exposure. When I returned back to the scene which I had changed, it reverted to original full auto exposure.

I had not tried to setup and save a preset. Reviewing the Canon manual, it appears that creating a preset involves setting PTZF settings and camera settings (color etc.). I will attempt to create a preset without PTZF settings and see if it works.

Thank you for your help.

This script is fantastic.
 

UroDoc

New Member
Correction and addition to last post:
Preset recall "01 04 3F 02 pp " Replace pp with 01 or 02 for Preset 1, Preset 2 etc? Drop 8x and FF?
Do I need a start and stop command since there is no camera movement from this script. Should this command be located before or after the separate visca camera control which moves the camera position?
 

vwout

Member
Hi @UroDoc, I think you are trying to combine a few things in a way that is not intended:
- Typically camera preset as stored in the camera includes 'all' settings (what 'all' means differs from camera to camera). Storing only exposure is independent parameter is not possible with any camera I have worked with
- The Visca over IP plugin is able to recall a preset stored in the camera, not adjust parameters for it; when the plugin recalls a preset, the camera will apply all settings (see first item) associated with it

If you want to recall a preset, you can manually compose a Visca comment, but the easier way is to list the presets under the plugin settings in the Script dialog (see the documentation: https://github.com/vwout/obs-visca-control?tab=readme-ov-file#camera-settings).

If you only want to change exposure, to need to send the command that reflect the settings you want, see the respective section of the Canon instructions:
1742756487421.png


You probably need to send at least two commands:
- Send the exposure mode to manual or Shutter/Iris priority
- Set the desired parameters

Probably closing your Iris (setting the value to e.g. f/8.0) and let the camera automatically adjust shutter and gain will do the trick. In that case you will need to add two custom commands (https://github.com/vwout/obs-visca-...file#custom-command-action-execution-overview) where you only fill in the Start command:
- To set expose mode to 'Iris priority', set 'Start command' to:
Code:
01 04 39 0B
1742757339934.png

- To set the (direct) set the Iris Position, set 'Start command' to:
Code:
01 04 4B 00 00 00 05
(05 means F8.0 according documentation)
1742757381652.png


Make sure the order of the sources is to set the exposure mode first and iris priority later, so the iris priority source needs to be on top. Alternatively (or additionally) add a small delay to the Iris Priority command, to make sure it is always executed after setting the Exposure Mode.
1742757620057.png

It could be the camera automatically configures 'iris priority' when the 'Iris Position' command is set, in that case you don't need to set the exposure mode. It requires testing to find this out.
 
Top