Commit 842deb20 authored by Stefano Rivera's avatar Stefano Rivera

Break the opsis role into 2

1 with opsis supporting infrastructure.
1 that feeds video into a voctomix.

Sometimes you want to be able to work with an opsis, without having
ingest start up automatically.
parent a1532b09
# opsis-ingest
Depends on the `opsis` role.
Feed video from an Opsis into a voctomix.
## Tasks
Everything is in the `tasks/main.yml` file.
## Available variables
Main variables are:
* `voctomix.host`: Hostname or IP of the voctomix machine.
* `voctomix.port`: Incoming port the voctomix machine listens to.
* `alsa_device`: ALSA device used for USB audio capture.
* `audio_delay`: Delay in ms for the audio capture.
* `video_delay`: Delay in ms for the video capture.
---
voctomix:
host: localhost
port: 10000
# For USB audio capture:
# alsa_device: hw:1,0
# audio_delay: 800
---
- name: push videoteam-ingest script
template:
src: templates/videoteam-ingest.j2
dest: /usr/local/bin/videoteam-ingest
mode: 0755
- name: push systemd videoteam-ingest.service
copy:
src: files/videoteam-ingest.service
dest: /etc/systemd/system/videoteam-ingest.service
- name: push systemd videoteam-ingest.path
copy:
src: files/videoteam-ingest.path
dest: /etc/systemd/system/videoteam-ingest.path
- name: enable videoteam-ingest.path
systemd:
name: videoteam-ingest.path
enabled: yes
tags:
- no_unit_test
...@@ -24,14 +24,4 @@ Main variables are: ...@@ -24,14 +24,4 @@ Main variables are:
The first one listed will be used for the `opsis` command The first one listed will be used for the `opsis` command
used to connect to the opsis board. used to connect to the opsis board.
* `voctomix.host`: Hostname or IP of the voctomix machine.
* `voctomix.port`: Incoming port the voctomix machine listens to.
* `alsa_device`: ALSA device used for USB audio capture.
* `audio_delay`: Delay in ms for the audio capture.
* `video_delay`: Delay in ms for the video capture.
* `debian_version`: Version of Debian, when using Debian. * `debian_version`: Version of Debian, when using Debian.
...@@ -10,12 +10,4 @@ serial_terminal: ...@@ -10,12 +10,4 @@ serial_terminal:
- tio - tio
- cu - cu
voctomix:
host: localhost
port: 10000
debian_version: stretch debian_version: stretch
# For USB audio capture:
# alsa_device: hw:1,0
# audio_delay: 800
...@@ -33,29 +33,6 @@ ...@@ -33,29 +33,6 @@
dest: /usr/local/bin/opsis dest: /usr/local/bin/opsis
mode: 0755 mode: 0755
- name: push videoteam-ingest script
template:
src: templates/videoteam-ingest.j2
dest: /usr/local/bin/videoteam-ingest
mode: 0755
- name: push systemd videoteam-ingest.service
copy:
src: files/videoteam-ingest.service
dest: /etc/systemd/system/videoteam-ingest.service
- name: push systemd videoteam-ingest.path
copy:
src: files/videoteam-ingest.path
dest: /etc/systemd/system/videoteam-ingest.path
- name: enable videoteam-ingest.path
systemd:
name: videoteam-ingest.path
enabled: yes
tags:
- no_unit_test
- name: configure minicom for hdmi2usb - name: configure minicom for hdmi2usb
copy: copy:
src: files/minirc.dfl src: files/minirc.dfl
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
- hosts: opsis - hosts: opsis
roles: roles:
- opsis - opsis
- opsis-ingest
- hosts: voctomix - hosts: voctomix
roles: roles:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment