Streampunk / macadam

Async node.js interface to Blackmagic Design capture and playback devices.
Apache License 2.0
107 stars 24 forks source link

Support DeckLink's automatic format detection #15

Open rezonant opened 5 years ago

rezonant commented 5 years ago

The DeckLink SDK supports automatic detection of video format when using the Capture functionality. Macadam should expose this functionality for applications which find it useful.

Proposed implementation would add videoInputFlags option to Macadam's capture() method as well as expose the appropriate DeckLink SDK video input flags including macadam.bmdVideoInputEnableFormatDetection.

Additionally, an onVideoInputFormatChanged callback would be added to the Capture options, allowing the application to receive the format detection event and reopen the capture session with the appropriate display mode / pixel format and make any adjustments needed for incoming resolution changes.

Work in progress at https://github.com/rezonant/macadam/commits/feat/format-detection