feat(decklink-input): expose profile, persistent-id, do-timestamp#551
Closed
feat(decklink-input): expose profile, persistent-id, do-timestamp#551
Conversation
Three new properties on the DeckLink Input block, all defaults preserved so existing flows are unaffected: - **profile**: sub-device profile selection (one-sub-device-full / one-sub-device-half / two-sub-devices-full / two-sub-devices-half / four-sub-devices-half). Default `default` keeps whatever profile Desktop Video Setup has configured. Lets a flow control sub-device layout on Quad 2 / Duo 2 / 8K Pro cards without requiring manual GUI changes on the host. - **persistent_id**: DeckLink persistent device ID (i64). Stable across reboots, profile changes, and PCIe re-enumeration. Higher priority than `device_number` when set to a non-default value. Default `-1` keeps current device-number behaviour. - **do_timestamp**: when true, the source applies the pipeline clock to each buffer's PTS at capture. Required for absolute-timestamp setups (TAI pipeline clock + EFP/SRT 64-bit absolute timestamps). Default `false` preserves GStreamer's standard stream-time behaviour. Applied to both `decklinkvideosrc` and `decklinkaudiosrc` where each property exists. `profile` is video-only (audiosrc doesn't expose it). A new `DECKLINK_PROFILES` constant + `decklink_profile_enum_values()` helper live in `strom-types/block.rs`, matching the existing `DECKLINK_VIDEO_FORMATS` pattern. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Three new properties on the DeckLink Input block, all defaults preserved so existing flows are unaffected:
defaultkeeps Desktop Video Setup config. Lets a flow control sub-device layout on Quad 2 / Duo 2 / 8K Pro cards without manual GUI changes.device_numberwhen non-default. Default-1falls back to device-number.false.Applied to both
decklinkvideosrcanddecklinkaudiosrcwhere each property exists.profileis video-only (audiosrc doesn't expose it).DECKLINK_PROFILESconstant +decklink_profile_enum_values()helper added tostrom-types/block.rs, matching the existingDECKLINK_VIDEO_FORMATSpattern.Test plan
cargo checkcleancargo test— all 408 pass (one volume-ramp flake re-passes in isolation, unrelated)cargo test --test openapi_testcleanstrhost: set profile from a flow definition and confirm the active card profile changes; set do_timestamp=true and confirm buffer PTS uses pipeline clock🤖 Generated with Claude Code