Standalone Emergency Alerting CAP Player

From Open Broadcaster
Jump to: navigation, search

OBPlayer can be set up as a standalone CAP alert broadcaster. Install OBPlayer in-line with your broadcast audio\video chain and it will automatically interrupt the regular broadcast when it receives a valid CAP formated alert. Use the RS232 GPIO to trigger relays to cut into scheduled programming.

Start OBPlayer and login to Dashboard

Sync/Media Tab

Uncheck 'Enable Scheduler', and 'Enable Fallback Media Player'. This disables all other media settings.

Audio/Visualizations Tab

Audio Output "Auto Detect" Defaults to Pulse audio

Audio Input "Auto Detect" Defaults to Pulse audio

Video/Image Tab

Leave this unchecked when using in a radio\audio application

Emergency Alerts Tab

Enable Emergency Alerts

Select Primary and Secondary languages in order preference with accompanying language voice. Use a voice starting with 'mb-' if mbrola voices are installed.

Enter SGC code for your region. Obtain your SGC CODE More than one SGC can be entered, separated by commas.

Alert Repeat Duration = Default 30 minutes.

NAAD Streams. Enter in 2 of your Countries NAAD Streams and Archive URL

Play Moderate and Advisory Alerts. Check if you want these to play. Default = No

Truncate long messages. Default = No

Moderate CAP advisory messages have all the concise info contained in first line. Not selecting this, could mean long messages might go on several minutes reading out unrecognizable TTS translations of websites and URLs.

NOTE: Broadcast Intrusive messages are unaffected.

Play Test Alerts. Default = No Normally the play test messages option is for playing messages marked as Test, which normally shouldn't be played to the public. The test messages for public distribution do not have the status value "Test". They are like normal alerts

On board CAP Alert Testing

4 Modes of testing are available

  1. Simple Test. Generates an internal CAP formated message and plays using onboard TTS
  2. Embedded Audio Test. Generates an internal CAP message and plays a supplied MP3 file instead of TTS.
  3. External Audio Test. Generates an internal CAP alert message, fetches and plays a test MP3 file from Pelmorex NAAD.
  4. Embedded Audio and Image Test. Generates an internal CAP-CP test the displays a JPG image and plays audio recording.

NOTE English and French are presently the only supported language for on board testing with Audio and Visual alerting

Configuring Audio Line In

Status Tab VU Meter shows levels of line in source signal

Monitoring Dual NAAD Feeds with Duplicates

Monitoring two NAAD streams and the same alert comes in on both streams. If by chance a CAP alert came in on different feeds, the alert would be treated as one alert. OBPlayer is smart enough to detect and not play duplicates.

RS232 GPIO Trigger

GPIO Trigger with RS-232 DTR on CAP-CP Alerts. When enabled and a matching CAP message is broadcast, an alert cycle starts, the serial port will be opened and the DTR line will be set. After the alert cycle has completed, the DTR line will be cleared and a relay will be closed.

Install the package 'python-serial' in order to use the RS-232 feature.

"Lead-In Delay (in seconds)". This is the number of seconds of silence that will be inserted at the beginning of each alert cycle before the first alert starts playing, but after the DTR/icecast stream notifies that an alert cycle has started. The default is 1 second. Always leave it at 1 or greater. Setting this to 5 or so seconds will give time for buffering to occur.

"Trigger RS-232 DTR on Alerts" checkbox, when checked, will show the "RS-232 Device Filename" option. The device filename should be something like /dev/ttyS0, or /dev/ttyUSB0 if using a USB-to-Serial adapter. For initial setup, disable all RS-232 ports so there is only one available.

The "Trigger Icecast Stream on Alerts" setting will start and stop the icecast streamer module (in the streaming tab) the same as the serial port. In addition to this setting, you must also uncheck the "Play Stream on Startup" option on the streaming tab, or else the streamer will start playing when obplayer starts.

Dialout Group

whoami output will be your username

Serial ports on Ubuntu / Debian builds of Linux need to have a user account to have access to the serial port and the user needs to be a member of the dialout group.

sudo usermod -a -G dialout <username>

Log out / log back in (or reboot). User now has access to the serial port and all its control lines.

Check group membership

groups <username>

If 'dialout' appears in the output you are in the dialout group.

Additional documentation for CAP Alert Player