Enable/Disable last-frame-shown option programmatically

Posted:
Sun Nov 08, 2015 9:21 pm
by Mitra Mahmoodzadeh
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
Re: Enable/Disable last-frame-shown option programmatically

Posted:
Tue Nov 10, 2015 12:16 am
by Nicholas Gill
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.
Re: Enable/Disable last-frame-shown option programmatically

Posted:
Tue Nov 10, 2015 2:58 pm
by Mitra Mahmoodzadeh
Thank you very much for your answer and explanations.
Also thanks to all of the Blackmagic Design team.