IDecklinkIterator does not report some devices randomly

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

altug.simsek

  • Posts: 16
  • Joined: Wed Jan 04, 2017 12:18 pm

IDecklinkIterator does not report some devices randomly

PostWed Nov 18, 2020 6:12 pm

IDecklinkIterator does not report some devices randomly unless persistentId is given.

1x Intensity Pro
1x Mini Recorder
4x Quad2 in HalfDuplex mode
A total of 34 devices.

AMD Threadripper 1900x platform

CentOS Linux release 7.9.2009 (Core)
Linux kernel 3.10.0-1160.2.2.el7.x86_64
Blackmagic_Desktop_Video_Linux_11.6.tar

Drivers for all devices are loaded. No dmesg errors, etc.

All blackmagic devices are present:

crw-rw-rw-. 1 root root 10, 58 Nov 17 13:42 /dev/blackmagic/dv0
crw-rw-rw-. 1 root root 10, 57 Nov 17 13:42 /dev/blackmagic/io0
crw-rw-rw-. 1 root root 10, 56 Nov 17 13:42 /dev/blackmagic/io1
crw-rw-rw-. 1 root root 10, 47 Nov 17 13:42 /dev/blackmagic/io10
crw-rw-rw-. 1 root root 10, 46 Nov 17 13:42 /dev/blackmagic/io11
crw-rw-rw-. 1 root root 10, 45 Nov 17 13:42 /dev/blackmagic/io12
crw-rw-rw-. 1 root root 10, 44 Nov 17 13:42 /dev/blackmagic/io13
crw-rw-rw-. 1 root root 10, 43 Nov 17 13:42 /dev/blackmagic/io14
crw-rw-rw-. 1 root root 10, 42 Nov 17 13:42 /dev/blackmagic/io15
crw-rw-rw-. 1 root root 10, 41 Nov 17 13:42 /dev/blackmagic/io16
crw-rw-rw-. 1 root root 10, 40 Nov 17 13:42 /dev/blackmagic/io17
crw-rw-rw-. 1 root root 10, 39 Nov 17 13:42 /dev/blackmagic/io18
crw-rw-rw-. 1 root root 10, 38 Nov 17 13:42 /dev/blackmagic/io19
crw-rw-rw-. 1 root root 10, 55 Nov 17 13:42 /dev/blackmagic/io2
crw-rw-rw-. 1 root root 10, 37 Nov 17 13:42 /dev/blackmagic/io20
crw-rw-rw-. 1 root root 10, 36 Nov 17 13:42 /dev/blackmagic/io21
crw-rw-rw-. 1 root root 10, 35 Nov 17 13:42 /dev/blackmagic/io22
crw-rw-rw-. 1 root root 10, 34 Nov 17 13:42 /dev/blackmagic/io23
crw-rw-rw-. 1 root root 10, 33 Nov 17 13:42 /dev/blackmagic/io24
crw-rw-rw-. 1 root root 10, 32 Nov 17 13:42 /dev/blackmagic/io25
crw-rw-rw-. 1 root root 10, 31 Nov 17 13:42 /dev/blackmagic/io26
crw-rw-rw-. 1 root root 10, 30 Nov 17 13:42 /dev/blackmagic/io27
crw-rw-rw-. 1 root root 10, 29 Nov 17 13:42 /dev/blackmagic/io28
crw-rw-rw-. 1 root root 10, 28 Nov 17 13:42 /dev/blackmagic/io29
crw-rw-rw-. 1 root root 10, 54 Nov 17 13:42 /dev/blackmagic/io3
crw-rw-rw-. 1 root root 10, 27 Nov 17 13:42 /dev/blackmagic/io30
crw-rw-rw-. 1 root root 10, 26 Nov 17 13:42 /dev/blackmagic/io31
crw-rw-rw-. 1 root root 10, 25 Nov 17 13:42 /dev/blackmagic/io32
crw-rw-rw-. 1 root root 10, 53 Nov 17 13:42 /dev/blackmagic/io4
crw-rw-rw-. 1 root root 10, 52 Nov 17 13:42 /dev/blackmagic/io5
crw-rw-rw-. 1 root root 10, 51 Nov 17 13:42 /dev/blackmagic/io6
crw-rw-rw-. 1 root root 10, 50 Nov 17 13:42 /dev/blackmagic/io7
crw-rw-rw-. 1 root root 10, 49 Nov 17 13:42 /dev/blackmagic/io8
crw-rw-rw-. 1 root root 10, 48 Nov 17 13:42 /dev/blackmagic/io9


Firmware updater sees all devices as OK:

0: /dev/blackmagic/dv0 [Intensity Pro] 0x25 OK
1: /dev/blackmagic/io0 [DeckLink Mini Recorder] 0x55 OK
2: /dev/blackmagic/io1 [DeckLink Quad 2] 0x11b OK
3: /dev/blackmagic/io3 [DeckLink Quad 2] 0x11b OK
4: /dev/blackmagic/io5 [DeckLink Quad 2] 0x11b OK
5: /dev/blackmagic/io7 [DeckLink Quad 2] 0x11b OK
6: /dev/blackmagic/io2 [DeckLink Quad 2] 0x11b OK
7: /dev/blackmagic/io4 [DeckLink Quad 2] 0x11b OK
8: /dev/blackmagic/io6 [DeckLink Quad 2] 0x11b OK
9: /dev/blackmagic/io8 [DeckLink Quad 2] 0x11b OK
10: /dev/blackmagic/io9 [DeckLink Quad 2] 0x11b OK
11: /dev/blackmagic/io11 [DeckLink Quad 2] 0x11b OK
12: /dev/blackmagic/io13 [DeckLink Quad 2] 0x11b OK
13: /dev/blackmagic/io15 [DeckLink Quad 2] 0x11b OK
14: /dev/blackmagic/io10 [DeckLink Quad 2] 0x11b OK
15: /dev/blackmagic/io12 [DeckLink Quad 2] 0x11b OK
16: /dev/blackmagic/io14 [DeckLink Quad 2] 0x11b OK
17: /dev/blackmagic/io16 [DeckLink Quad 2] 0x11b OK
18: /dev/blackmagic/io17 [DeckLink Quad 2] 0x11b OK
19: /dev/blackmagic/io19 [DeckLink Quad 2] 0x11b OK
20: /dev/blackmagic/io21 [DeckLink Quad 2] 0x11b OK
21: /dev/blackmagic/io23 [DeckLink Quad 2] 0x11b OK
22: /dev/blackmagic/io18 [DeckLink Quad 2] 0x11b OK
23: /dev/blackmagic/io20 [DeckLink Quad 2] 0x11b OK
24: /dev/blackmagic/io22 [DeckLink Quad 2] 0x11b OK
25: /dev/blackmagic/io24 [DeckLink Quad 2] 0x11b OK
26: /dev/blackmagic/io25 [DeckLink Quad 2] 0x11b OK
27: /dev/blackmagic/io27 [DeckLink Quad 2] 0x11b OK
28: /dev/blackmagic/io29 [DeckLink Quad 2] 0x11b OK
29: /dev/blackmagic/io31 [DeckLink Quad 2] 0x11b OK
30: /dev/blackmagic/io26 [DeckLink Quad 2] 0x11b OK
31: /dev/blackmagic/io28 [DeckLink Quad 2] 0x11b OK
32: /dev/blackmagic/io30 [DeckLink Quad 2] 0x11b OK
33: /dev/blackmagic/io32 [DeckLink Quad 2] 0x11b OK


After the default installation, no config XML file under /etc/blackmagic.

DeviceConfigure SDK sample can see only 27 of 34 avaiable devices:

You must select a device

Usage: DeviceConfigure -d <device id> [OPTIONS]

-h/?: help
-d <device id>:
0: Intensity Pro
1: DeckLink Mini Recorder
2: DeckLink Quad (1)
3: DeckLink Quad (2)
4: DeckLink Quad (3)
5: DeckLink Quad (4)
6: DeckLink Quad (5)
7: DeckLink Quad (6)
8: DeckLink Quad (7)
9: DeckLink Quad (8)
10: DeckLink Quad (1)
11: DeckLink Quad (1)
12: DeckLink Quad (2)
13: DeckLink Quad (3)
14: DeckLink Quad (4)
15: DeckLink Quad (5)
16: DeckLink Quad (6)
17: DeckLink Quad (7)
18: DeckLink Quad (8)
19: DeckLink Quad (1)
20: DeckLink Quad (2)
21: DeckLink Quad (3)
22: DeckLink Quad (4)
23: DeckLink Quad (5)
24: DeckLink Quad (6)
25: DeckLink Quad (7)
26: DeckLink Quad (8)
No DeckLink device selected


This behaviour was changing with reboots.
I have seen 27-34 devices reported by DeviceConfigure after reboots. Completely random.

I assigned PersistentLabels by issuing
DeviceConfigure -d 15 -n "Decklink-Quad-2-5"
and the XML file under /etc/blackmagic/ was created and everything returned to normal.

Afterwards, I kept on seeing 34 devices reported by the Iterator in DeviceConfigure SDK sample.

Is the absence of XML under /etc/blackmagic after default installation causing this?
Or is it a SDK issue?

Regards...
Offline

altug.simsek

  • Posts: 16
  • Joined: Wed Jan 04, 2017 12:18 pm

Re: IDecklinkIterator does not report some devices randomly

PostWed Nov 18, 2020 6:14 pm

This is what I saw after the default install.
No Profile change was yet carried out for Quad2 devices.
Offline

altug.simsek

  • Posts: 16
  • Joined: Wed Jan 04, 2017 12:18 pm

Re: IDecklinkIterator does not report some devices randomly

PostWed Nov 18, 2020 6:23 pm

Another observation:

When there were missing devices reported by DeviceConfigure SDK sample, DesktopVideo helper daemon was not shutting down properly during a system shutdown.

Screenshot attached.
Attachments
aaaa.jpg
Screenshot during system shutdown.
aaaa.jpg (935.63 KiB) Viewed 121 times
Offline

altug.simsek

  • Posts: 16
  • Joined: Wed Jan 04, 2017 12:18 pm

Re: IDecklinkIterator does not report some devices randomly

PostFri Nov 20, 2020 1:06 pm

This issue seems to have vanished when I upgraded to 11.7

Clean CentOS 7.8 minimal installation.
Update to 7.9 by executing YUM UPDATE
Decklink Driver 11.7
No labels given, no profile changes. Everything at defaults.
No XML under /etc/blackmagic. Even no /etc/blackmagic!

Shutdown/Reboot approx 10-15 times.

Did not observe the issue!

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 5 guests