execMacroStopRecording not working
mitchellklijs opened this issue · 10 comments
Hi,
When using execMacroStopRecording
, it throws the following error:
ubyte format requires 0 <= number <= 255
setMacroAction(macro_position, ATEMMacroActions.stopRecording)
does work, however.
Hi @mitchellklijs !
That indeed looks like a bug...
Looking at the original protocol dissection I found this in the description of MSRc
(Macro Start Recording)
Seems like bytes 0 and 1 could be combined into an u16
to specify the macro index. This way, both values 0-99
and 0xFFFF
could fit.
This is pure speculation, so I would like to ask you to try the modified code (I already made the change in my repo) and confirm it works.
I created a branch for this (fix-msrc-index-#14) with a single commit to fix the issue.
Could you check if this fixes the issue ?
Hi,
I've checked. Unfortunately it does not fix the issue. The error message is gone, but it doesn't stop recording the macro.
The change in execMacroRecord
does not affect it's functioning. It still works just fine.
Using Wireshark, I see that the ATEM software itself also sends a MAct
to stop recording a Macro (send in this library using setMacroAction
). So maybe sending 0xFFFF
isn't supported (anymore)?
It seems to be a version issue, I'm afraid...
Looking at ATEMProtocol.py
I see that MAct
is tagged as Not implemented: Macro Action
.
Anyway, I just wrote a little script to check protocol version for another issue, please run it and post your results.
import PyATEMMax
import logging
SWITCHER_IP = "192.168.x.xxx"
switcher = PyATEMMax.ATEMMax()
switcher.setLogLevel(logging.DEBUG)
print(f"Connecting to {SWITCHER_IP}")
switcher.connect(SWITCHER_IP)
switcher.waitForConnection()
print("Connected")
version_str = f"{switcher.protocolVersion.major}.{switcher.protocolVersion.minor}"
print(f"Switcher protocol version: {version_str}")
switcher.disconnect()
My output:
$ python3 version-check.py
Connecting to 192.168.1.111
Connected
Switcher protocol version: 2.27
Here is my output:
Connecting to 192.168.10.60
Received UNKNOWN command: [DHVm]
Received UNKNOWN command: [DHVm]
Received UNKNOWN command: [DHVm]
Received UNKNOWN command: [DHVm]
Received UNKNOWN command: [DHVm]
Received UNKNOWN command: [DHVm]
Received UNKNOWN command: [DHVm]
Received UNKNOWN command: [DHVm]
Received UNKNOWN command: [DHVm]
Received UNKNOWN command: [DHVm]
Received UNKNOWN command: [DHVm]
Received UNKNOWN command: [DHVm]
Received UNKNOWN command: [DHVm]
Received UNKNOWN command: [DHVm]
Received UNKNOWN command: [DHVm]
Received UNKNOWN command: [DHVm]
Received UNKNOWN command: [DHVm]
Received UNKNOWN command: [DHVm]
UNKNOWN ATEMClipBanks 2 - processing [MPAS]
Received UNKNOWN command: [MPfM]
Received UNKNOWN command: [MPfM]
Received UNKNOWN command: [MPfM]
Received UNKNOWN command: [MPfM]
Received UNKNOWN command: [MPfM]
Received UNKNOWN command: [MPfM]
Received UNKNOWN command: [MPfM]
Received UNKNOWN command: [MPfM]
Received UNKNOWN command: [MPfM]
Received UNKNOWN command: [MPfM]
Wrong value for ATEMVideoSources: [64736] (<class 'int'>) - processing [SSBP]
Wrong value for ATEMVideoSources: [800] (<class 'int'>) - processing [SSBP]
Wrong value for ATEMVideoSources: [64736] (<class 'int'>) - processing [SSBP]
Wrong value for ATEMVideoSources: [800] (<class 'int'>) - processing [SSBP]
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN ATEMClipBanks 2 - processing [MPAS]
Received UNKNOWN command: [MPfM]
Received UNKNOWN command: [MPfM]
Received UNKNOWN command: [MPfM]
Received UNKNOWN command: [MPfM]
Received UNKNOWN command: [MPfM]
Received UNKNOWN command: [MPfM]
Received UNKNOWN command: [MPfM]
Received UNKNOWN command: [MPfM]
Received UNKNOWN command: [MPfM]
Received UNKNOWN command: [MPfM]
Wrong value for ATEMVideoSources: [64736] (<class 'int'>) - processing [SSBP]
Wrong value for ATEMVideoSources: [800] (<class 'int'>) - processing [SSBP]
Wrong value for ATEMVideoSources: [64736] (<class 'int'>) - processing [SSBP]
Wrong value for ATEMVideoSources: [800] (<class 'int'>) - processing [SSBP]
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
Received UNKNOWN command: [MPfM]
Received UNKNOWN command: [MPfM]
Received UNKNOWN command: [MPfM]
Received UNKNOWN command: [MPfM]
Received UNKNOWN command: [MPfM]
Received UNKNOWN command: [MPfM]
Received UNKNOWN command: [MPfM]
Received UNKNOWN command: [MPfM]
Wrong value for ATEMVideoSources: [64736] (<class 'int'>) - processing [SSBP]
Wrong value for ATEMVideoSources: [800] (<class 'int'>) - processing [SSBP]
Wrong value for ATEMVideoSources: [64736] (<class 'int'>) - processing [SSBP]
Wrong value for ATEMVideoSources: [800] (<class 'int'>) - processing [SSBP]
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
UNKNOWN camera feature (13)
UNKNOWN chip feature (3)
Connected
Switcher protocol version: 2.27
I'm running software version 7.4.
I found this in a project named libqatemcontrol.
I'll give it a try...
Just pushed a new commit to this issue's branch, can you please check if it works for you?
If so, I'll add it to the main branch and publish a new version
Could try it myself and it worked!
It will be available on the next version of the library (I'm planning to fix one or two more things before publishing)
Version 1.0b8 already available.
Hi,
Wasn't able to test it before you did :). But today, I tested it as well and it's all working for me as well!
Yay !!!
Thanks again for the report 👍🏼