Skip to content

Commit

Permalink
bw/bundles/voctcore: add metadata option to configure blinder video
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunsi committed Jan 12, 2025
1 parent 5142285 commit b7869f6
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 9 deletions.
15 changes: 15 additions & 0 deletions bundlewrap/bundles/voctocore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,18 @@ program = "fb" # playout program to framebuffer

**Caution:** Playout to decklink outputs requires having a ffmpeg build
with decklink support compiled in. C3VOC currently does not provide that.

### blinder
You can configure the blinder like any other source, overriding the default
of using `/opt/voc/share/pause.ts`. This allows you to use a decklink source,
for example.

Options are passed verbatim to the voctocore config. There is no additional
processing happening. **Keep in mind that this source is video only.**
```toml
[metadata.voctocore.blinder]
kind = "decklink"
devicenumber = 5
video_connection = "SDI"
video_mode = "1080p25"
```
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ kind=test
pattern=black
composites=fs

[source.break]
kind=file
location=/opt/voc/share/pause.ts

[previews]
; disable if ui & server run on the same computer and can exchange uncompressed video frames
enabled=true
Expand Down Expand Up @@ -84,6 +80,11 @@ audio.${aname} = ${aconfig['streams']}
kind=file
location=/opt/voc/share/pause-music.mp3

[source.break]
% for k, v in sorted(blinder.items()):
${k}=${v}
% endfor

[overlay]
path=/opt/voc/overlays
% if has_schedule:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ kind=test
pattern=black
composites=fs

[source.break]
kind=file
location=/opt/voc/share/pause.ts

[previews]
; disable if ui & server run on the same computer and can exchange uncompressed video frames
enabled=true
Expand Down Expand Up @@ -84,6 +80,11 @@ audio.${aname} = ${aconfig['streams']}
kind=file
location=/opt/voc/share/pause-music.mp3

[source.break]
% for k, v in sorted(blinder.items()):
${k}=${v}
% endfor

[overlay]
path=/opt/voc/overlays
% if has_schedule:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ kind=test
pattern=black
composites=fs

[source.break]
kind=file
location=/opt/voc/share/pause.ts

Expand All @@ -79,6 +78,11 @@ audio.${aname} = ${aconfig['streams']}
kind=file
location=/opt/voc/share/pause-music.mp3

[source.break]
% for k, v in sorted(blinder.items()):
${k}=${v}
% endfor

[overlay]
path=/opt/voc/overlays
% if has_schedule:
Expand Down
6 changes: 6 additions & 0 deletions bundlewrap/bundles/voctocore/items.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
"program": 11000,
}

DEFAULT_BLINDER = {
'kind': 'file',
'location': '/opt/voc/share/pause.ts',
}

SHOULD_BE_RUNNING = node.metadata.get("voctocore/should_be_running", True)

voctomix_version = node.metadata.get("voctomix2/rev")
Expand Down Expand Up @@ -99,6 +104,7 @@
"source": f"voctocore-config-by-version/{voctomix_version}.ini",
"context": {
"audio": node.metadata.get("voctocore/audio", {}),
"blinder": node.metadata.get("voctocore/blinder", DEFAULT_BLINDER),
"event": node.metadata.get("event/slug"),
"has_schedule": node.metadata.get("event/schedule_json", ""),
"keyboard_shortcuts": KEYBOARD_SHORTCUTS,
Expand Down

0 comments on commit b7869f6

Please sign in to comment.