iD Input in 8.1 SDK

Ask software engineering and SDK questions for developers working on Mac OS X, Windows or Linux.
  • Author
  • Message
Offline

daviddwr

  • Posts: 2
  • Joined: Mon Jun 06, 2022 9:05 pm
  • Real Name: David Carvalho

iD Input in 8.1 SDK

PostMon Jun 06, 2022 9:08 pm

Good night.



I would like to know what is the ID of MP1 in BMDSwitcherInputId argument.


Thanks in advance.
Offline

Ian Morrish

  • Posts: 580
  • Joined: Sun Jan 18, 2015 9:24 pm
  • Location: New Zealand

Re: iD Input in 8.1 SDK

PostThu Jun 09, 2022 9:35 am

MP1 = 3010
MP2 = 3020
Regards,
Ian Morrish
Video Integrated Scripting Environment
(Windows PowerShell with ATEM driver + more)
https://ianmorrish.wordpress.com
Offline

tautin

  • Posts: 109
  • Joined: Thu Oct 18, 2018 3:11 pm
  • Real Name: Tim Autin

Re: iD Input in 8.1 SDK

PostThu Jun 09, 2022 2:04 pm

Here's what I got using Wireshark (you are looking for the last numbe of each line):

"0000", // 41 - Black 081880 01 000000000000 0090 000c66 7443417553 01 00 0000 // 0

"03e8", // 42 - Color Bars 081880 01 000000000000 775d 000c66 7443417553 01 00 03e8 // 1000

"07d1", // 43 - Color 1 081880 01 000000000000 7766 000c66 7443417553 01 00 07d1 // 2001
"07d2", // 44 - Color 2 081880 01 000000000000 776c 000c66 7443417553 01 00 07d2 // 2002

"0bc2", // 45 - Media Player 1 081880 01 000000000000 77bc 000c66 7443417553 01 00 0bc2 // 3010
"0bc3", // 46 - Media Player 1 Key 081880 01 000000000000 77c3 000c66 7443417553 01 00 0bc3 // 3011
"0bcc", // 47 - Media Player 2 081880 01 000000000000 77c9 000c66 7443417553 01 00 0bcc // 3020
"0bcd", // 48 - Media Player 2 Key 081880 01 000000000000 77cf 000c66 7443417553 01 00 0bcd // 3021
"0bd6", // 49 - Media Player 3 081880 01 000000000000 78ae 000c66 7443417553 01 00 0bd6 // 3030
"0bd7", // 50 - Media Player 3 Key 081880 01 000000000000 78b6 000c66 7443417553 01 00 0bd7 // 3031
"0be0", // 51 - Media Player 4 081880 01 000000000000 78bc 000c66 7443417553 01 00 0be0 // 3040
"0be1", // 52 - Media Player 4 Key 081880 01 000000000000 78c2 000c66 7443417553 01 00 0be1 // 3041

"0faa", // 53 - ME 1 Key 1 Mask 081880 01 000000000000 7a21 000c66 7443417553 01 00 0faa // 4010
"0fb4", // 54 - ME 1 Key 2 Mask 081880 01 000000000000 7a29 000c66 7443417553 01 00 0fb4 // 4020
"0fbe", // 55 - ME 1 Key 3 Mask 081880 01 000000000000 7a2e 000c66 7443417553 01 00 0fbe // 4030
"0fc8", // 56 - ME 1 Key 4 Mask 081880 01 000000000000 7a3a 000c66 7443417553 01 00 0fc8 // 4040
"0fd2", // 57 - ME 2 Key 1 Mask 081880 01 000000000000 7a44 000c66 7443417553 01 00 0fd2 // 4050
"0fdc", // 58 - ME 2 Key 2 Mask 081880 01 000000000000 7a48 000c66 7443417553 01 00 0fdc // 4060
"0fe6", // 59 - ME 2 Key 3 Mask 081880 01 000000000000 7a4c 000c66 7443417553 01 00 0fe6 // 4070
"0ff0", // 60 - ME 2 Key 4 Mask 081880 01 000000000000 7a50 000c66 7443417553 01 00 0ff0 // 4080
"0ffa", // 61 - ME 3 Key 1 Mask 081880 01 000000000000 7b12 000c66 7443417553 01 00 0ffa // 4090
"1004", // 62 - ME 3 Key 2 Mask 081880 01 000000000000 7b18 000c66 7443417553 01 00 1004 // 4100
"100e", // 63 - ME 3 Key 3 Mask 081880 01 000000000000 7b1d 000c66 7443417553 01 00 100e // 4110
"1018", // 64 - ME 3 Key 4 Mask 081880 01 000000000000 7b23 000c66 7443417553 01 00 1018 // 4120
"1022", // 65 - ME 4 Key 1 Mask 081880 01 000000000000 7b28 000c66 7443417553 01 00 1022 // 4130
"102c", // 66 - ME 4 Key 2 Mask 081880 01 000000000000 7b30 000c66 7443417553 01 00 102c // 4140
"1036", // 67 - ME 4 Key 3 Mask 081880 01 000000000000 7b36 000c66 7443417553 01 00 1036 // 4150
"1040", // 68 - ME 4 Key 4 Mask 081880 01 000000000000 7b3d 000c66 7443417553 01 00 1040 // 4160

"1392", // 69 - DSK 1 Mask 081880 01 000000000000 7da4 000c66 7443417553 01 00 1392 // 5010
"139c", // 70 - DSK 2 Mask 081880 01 000000000000 7dab 000c66 7443417553 01 00 139c // 5020
"13a6", // 71 - DSK 3 Mask 081880 01 000000000000 7db0 000c66 7443417553 01 00 13a6 // 5030
"13b0", // 72 - DSK 4 Mask 081880 01 000000000000 7db6 000c66 7443417553 01 00 13b0 // 5040

"1770", // 73 - SuperSource 1 081880 01 000000000000 7dbe 000c66 7443417553 01 00 1770 // 6000
"1771", // 74 - SuperSource 2 081880 01 000000000000 7dc3 000c66 7443417553 01 00 1771 // 6001

"1b59", // 75 - CleanFeed 1 081880 01 000000000000 7eaf 000c66 7443417553 01 00 1b59 // 7001
"1b5a", // 76 - CleanFeed 2 081880 01 000000000000 7eb5 000c66 7443417553 01 00 1b5a // 7002
"1b5b", // 77 - CleanFeed 3 081880 01 000000000000 7ebd 000c66 7443417553 01 00 1b5b // 7003
"1b5c", // 78 - CleanFeed 4 081880 01 000000000000 7ec4 000c66 7443417553 01 00 1b5c // 7004

"271a", // 79 - ME 1 081880 01 000000000000 7514 000c66 7443417553 01 00 271a // 10010
"271b", // 80 - ME 1 PVW 081880 01 000000000000 7519 000c66 7443417553 01 00 271b // 10011
"2724", // 81 - ME 2 081880 01 000000000000 751f 000c66 7443417553 01 00 2724 // 10020
"2725", // 82 - ME 2 PVW 081880 01 000000000000 7526 000c66 7443417553 01 00 2725 // 10021
"272e", // 83 - ME 3 081880 01 000000000000 752d 000c66 7443417553 01 00 272e // 10030
"272f", // 84 - ME 3 PVW 081880 01 000000000000 7533 000c66 7443417553 01 00 272f // 10031
"2738", // 85 - ME 4 081880 01 000000000000 7539 000c66 7443417553 01 00 2738 // 10040
"2739", // 86 - ME 4 PVW 081880 01 000000000000 753d 000c66 7443417553 01 00 2739 // 10041

"14f1", // 87 - Output 1 081880 04 000000000000 0c78 000cef 55434d7649 02 0f 14f1 // 8001
"1f42", // 88 - Output 1 081880 04 000000000000 0c78 000cef 55434d7649 02 0f 1f42 // 8002
"1f43", // 89 - Output 3 081880 04 000000000000 0c78 000cef 55434d7649 02 0f 1f43 // 8003
"1f44", // 90 - Output 4 081880 04 000000000000 0c78 000cef 55434d7649 02 0f 1f44 // 8004
"1f45", // 91 - Output 5 081880 04 000000000000 0c78 000cef 55434d7649 02 0f 1f45 // 8005
"1f46", // 92 - Output 6 081880 04 000000000000 0c78 000cef 55434d7649 02 0f 1f46 // 8006
"1f47", // 93 - Output 7 081880 04 000000000000 0c78 000cef 55434d7649 02 0f 1f47 // 8007
"1f48", // 94 - Output 8 081880 04 000000000000 0c78 000cef 55434d7649 02 0f 1f48 // 8008
"1f49", // 95 - Output 9 081880 04 000000000000 0c78 000cef 55434d7649 02 0f 1f49 // 8009
"1f4a", // 96 - Output 10 081880 04 000000000000 0c78 000cef 55434d7649 02 0f 1f4a // 8010
"1f4b", // 97 - Output 11 081880 04 000000000000 0c78 000cef 55434d7649 02 0f 1f4b // 8011
"1f4c", // 98 - Output 12 081880 04 000000000000 0c78 000cef 55434d7649 02 0f 1f4c // 8012
"1f4d", // 99 - Output 13 081880 04 000000000000 0c78 000cef 55434d7649 02 0f 1f4d // 8013
"1f4e", // 100 - Output 14 081880 04 000000000000 0c78 000cef 55434d7649 02 0f 1f4e // 8014
"1f4f", // 101 - Output 15 081880 04 000000000000 0c78 000cef 55434d7649 02 0f 1f4f // 8015
"1f50", // 102 - Output 16 081880 04 000000000000 0c78 000cef 55434d7649 02 0f 1f50 // 8016
"1f51", // 103 - Output 17 081880 04 000000000000 0c78 000cef 55434d7649 02 0f 1f51 // 8017
"1f52", // 104 - Output 18 081880 04 000000000000 0c78 000cef 55434d7649 02 0f 1f52 // 8018
"1f53", // 105 - Output 19 081880 04 000000000000 0c78 000cef 55434d7649 02 0f 1f53 // 8019
"1f54", // 106 - Output 20 081880 04 000000000000 0c78 000cef 55434d7649 02 0f 1f54 // 8020
"1f55", // 107 - Output 21 081880 04 000000000000 0c78 000cef 55434d7649 02 0f 1f55 // 8021
"1f56", // 108 - Output 22 081880 04 000000000000 0c78 000cef 55434d7649 02 0f 1f56 // 8022
"1f57", // 109 - Output 23 081880 04 000000000000 0c78 000cef 55434d7649 02 0f 1f57 // 8023
"1f58", // 110 - Output 24 081880 04 000000000000 0c78 000cef 55434d7649 02 0f 1f58 // 8024
Offline

Cameron Nichols

Blackmagic Design

  • Posts: 443
  • Joined: Mon Sep 04, 2017 4:05 am

Re: iD Input in 8.1 SDK

PostFri Jun 10, 2022 5:51 am

Hi David.

Programmatically, you can perform the following steps to determine the ID:
  • Obtain a IBMDSwitcherInputIterator object by calling IBMDSwitcher::CreateIterator on your IBMDSwitcher object. [1]
  • Iterate through each IBMDSwitcherInput by calling IBMDSwitcherInputIterator::Next. [2]
  • Filter the list for media player input types (bmdSwitcherPortTypeMixEffectBlockOutput) by calling IBMDSwitcherInput::GetPortType. [3][4]
  • Get the ID of the media player input(s) with IBMDSwitcherInput::GetInputId. [5]
Please also refer to the SDK sample DeviceInfo, which will display the switcher inputs and other details of the connected switcher.

Regards
Cameron

References (ATEM Switchers SDK Manual)
[1] 2.3.2.30 IBMDSwitcher::CreateIterator method
[2] 2.3.4.1 IBMDSwitcherInputIterator::Next method
[3] 2.3.5.4 IBMDSwitcherInput::GetPortType method
[4] 2.2.8 Switcher Port Types
[5] 2.3.5.3 IBMDSwitcherInput::GetInputId method
Offline

daviddwr

  • Posts: 2
  • Joined: Mon Jun 06, 2022 9:05 pm
  • Real Name: David Carvalho

Re: iD Input in 8.1 SDK

PostFri Jun 10, 2022 5:04 pm

Thank you, thank you, thank you!!!
Offline

tautin

  • Posts: 109
  • Joined: Thu Oct 18, 2018 3:11 pm
  • Real Name: Tim Autin

Re: iD Input in 8.1 SDK

PostFri Jun 10, 2022 6:01 pm

Cameron Nichols wrote:Hi David.

Programmatically, you can perform the following steps to determine the ID:
  • Obtain a IBMDSwitcherInputIterator object by calling IBMDSwitcher::CreateIterator on your IBMDSwitcher object. [1]
  • Iterate through each IBMDSwitcherInput by calling IBMDSwitcherInputIterator::Next. [2]
  • Filter the list for media player input types (bmdSwitcherPortTypeMixEffectBlockOutput) by calling IBMDSwitcherInput::GetPortType. [3][4]
  • Get the ID of the media player input(s) with IBMDSwitcherInput::GetInputId. [5]
Please also refer to the SDK sample DeviceInfo, which will display the switcher inputs and other details of the connected switcher.

Regards
Cameron

References (ATEM Switchers SDK Manual)
[1] 2.3.2.30 IBMDSwitcher::CreateIterator method
[2] 2.3.4.1 IBMDSwitcherInputIterator::Next method
[3] 2.3.5.4 IBMDSwitcherInput::GetPortType method
[4] 2.2.8 Switcher Port Types
[5] 2.3.5.3 IBMDSwitcherInput::GetInputId method


Hi Cameron,

Do you know (and can you tell) if there are plans to make the SDK available on Linux?

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 12 guests