Enable/Disable last-frame-shown option programmatically

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

Mitra Mahmoodzadeh

  • Posts: 71
  • Joined: Wed Sep 02, 2015 2:45 pm

Enable/Disable last-frame-shown option programmatically

PostSun Nov 08, 2015 9:21 pm

Hello everyone

I did not see anything about last-frame-shown option in the decklink SDK.

Please tell me how can I enable/disable last-frame-shown option programmatically.

Thanks

UPDATE :

I found that last-frame-shown option saved in registry :
HKLM\SYSTEM\ControlSet001\Services\DeckLink\Settings\1D482621\IdleVideoOutputOperatio Value= Black/Lastframe

But when I change it manually not affect. Please help me
HiTech Playout is a full-featured, free 8-channel standard SD/HD/UHD playout and recorder.
Link: https://media4dco.com/hitech-playout-en/
Offline

Nicholas Gill

Blackmagic Design

  • Posts: 169
  • Joined: Mon May 04, 2015 10:28 pm

Re: Enable/Disable last-frame-shown option programmatically

PostTue Nov 10, 2015 12:16 am

Hi Mitra,

It is possible to set the 'last-frame-shown' (Idle Output) setting from the DeckLink API.

First query the BMDDeckLinkSupportsIdleOutput attribute [1] via the IDeckLinkAttributes interface [2] to determine if the device supports idle output.

If supported, set the bmdDeckLinkConfigVideoOutputIdleOperation [3] configuration item via IDeckLinkConfiguration [4] to the desired idle setting - BMDIdleVideoOutputOperation [5].

Please note the comment in [4], WriteConfigurationToPreferences must be called if the application wants to save the configuration changes, otherwise any changes made will be reverted when the IDeckLinkConfiguration object is released.

Cheers,

-nick

[1] 2.7.17 DeckLink Attribute ID
[2] 2.5.17 IDeckLinkAttributes Interface
[3] 2.7.18 DeckLink Configuration ID
[4] 2.5.15 IDeckLinkConfiguration Interface
[5] 2.7.41 Idle Video Output Operation
BMDIdleVideoOutputOperation enumerates the possible output modes when idle.
bmdIdleVideoOutputBlack When not playing video, the device will output black frames.
bmdIdleVideoOutputLastFrame When not playing video, the device will output the last frame played.
Offline

Mitra Mahmoodzadeh

  • Posts: 71
  • Joined: Wed Sep 02, 2015 2:45 pm

Re: Enable/Disable last-frame-shown option programmatically

PostTue Nov 10, 2015 2:58 pm

Thank you very much for your answer and explanations.

Also thanks to all of the Blackmagic Design team.
HiTech Playout is a full-featured, free 8-channel standard SD/HD/UHD playout and recorder.
Link: https://media4dco.com/hitech-playout-en/

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 9 guests