Layer outputs

I’m looking for a solution to out put some open captions. I’m taking two separate open caption feeds from an HTML web page sources. and I would like to play them back from one instance of CasparCG using a separate channels on my deck link card.

so channel channel 1 would have layer 21 with the english open captions HTML page, and layer 25 would have the french captions HTML page going to output 2 on the deck link card.

has anyone set up something like this and how would you configure it. or would it be better to just use two servers.

Hello,
This is totally possible.
You have just to do as you said playing the templates in parallel to two different channels.

The capture of the screen can be done either with FFMPG or with NDI (from another thread on this forum). I have actually never needed to do that so I cannot give you that code
If you use two different channels you do not need to use different layers.
The 2 channels are completely independent from each others!

Server config should be as the following.

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <log-level>debug</log-level>
  <paths>
    <media-path>media/</media-path>
    <log-path>log/</log-path>
    <data-path>data/</data-path>
    <font-path>font/</font-path>
    <template-path>your template directory>
  </paths>
  <lock-clear-phrase>secret</lock-clear-phrase>
  <channels>
    <channel>
      <video-mode>720p5000</video-mode>
      <consumers>
        <decklink>
          <device>1</device>
          <key-device>2</key-device>
          <embedded-audio>false</embedded-audio>
          <latency>normal</latency>
          <keyer>external</keyer>
          <key-only>false</key-only>
          <buffer-depth>3</buffer-depth>
        </decklink>
      </consumers>
    </channel>
    <channel>
      <video-mode>1080i5000</video-mode>
      <consumers>
        <decklink>
          <device>1</device>
          <key-device>2</key-device>
          <embedded-audio>false</embedded-audio>
          <latency>normal</latency>
          <keyer>external</keyer>
          <key-only>false</key-only>
          <buffer-depth>3</buffer-depth>
        </decklink>
      </consumers>
    </channel>
  </channels>
  <controllers>
    <tcp>
      <port>5250</port>
      <protocol>AMCP</protocol>
    </tcp>
  </controllers>
  <amcp>
    <media-server>
      <host>localhost</host>
      <port>8000</port>
    </media-server>
  </amcp>
  <flash>
    <buffer-depth>auto</buffer-depth>
    <enabled>false</enabled>
  </flash>
  <html>
    <remote-debugging-port>0</remote-debugging-port>
    <enable-gpu>false</enable-gpu>
  </html>
  <ffmpeg>
    <producer>
      <auto-deinterlace>interlaced</auto-deinterlace>
      <threads>4</threads>
    </producer>
  </ffmpeg>
  <ndi>
    <auto-load>false</auto-load>
  </ndi>
  <osc>
    <default-port>6250</default-port>
    <disable-send-to-amcp-clients>false</disable-send-to-amcp-clients>
    <predefined-clients />
  </osc>
</configuration>

Hope it helps

thanks this does help, I’m using the official Client 2.0.8 so I am going to bring the HTML page with the captions in with the HTLM page command. I am still having trouble getting the server to output two channels. the configuration you have doesn’t seem to work for me I can’t get the client to recognize a second video channel I checked to make sure its not locked and the box is not checked. I also tried changing the device numbering but still no dice.

You should have a Decklink card that supports at least two channels, otherwise it will never work. The config @fdeigiudici posted does also not look correct. I would change the channels section like so:

  <channels>
    <channel>
      <video-mode>720p5000</video-mode>
      <consumers>
        <decklink>
          <device>1</device>
          <embedded-audio>false</embedded-audio>
          <latency>normal</latency>
          <keyer>external</keyer>
          <buffer-depth>3</buffer-depth>
        </decklink>
      </consumers>
    </channel>
    <channel>
      <video-mode>1080i5000</video-mode>
      <consumers>
        <decklink>
          <device>2</device>
          <embedded-audio>false</embedded-audio>
          <latency>normal</latency>
          <keyer>external</keyer>
          <buffer-depth>3</buffer-depth>
        </decklink>
      </consumers>
    </channel>
  </channels>
1 Like

Thanks this is closer to my original config file. I’m using a decklink duo 2 so it should be able to do the 2 channels. I’m able to get multiple outputs of a single channel. But for some reason the 2 channel config didn’t want to work but I give you changes a try. Thanks for your input

Hm, no. What do you mean?

I can output the same template across the 4 outputs if if I put them all on the same channel

Ohi!
I did not notice this <device>1</device> twice…
Weird still is working correctly… mmm I will double check it.
Thanks Didi

Thanks Didi fixing it did the trick