CasparCG / server

CasparCG Server is a Windows and Linux software used to play out professional graphics, audio and video to multiple outputs. It has been in 24/7 broadcast production since 2006. Ready-to-use downloads are available under the Releases tab https://casparcg.com.
GNU General Public License v3.0
901 stars 269 forks source link

CasparCG slows down with Decklink cards on 1080p5994 #1191

Open kormikk opened 5 years ago

kormikk commented 5 years ago

Expected behaviour

CasparCG should work with no lag / slow down during broadcast.

Current behaviour

After running for 1hour and 15 minutes, CasparCG drastically slows down and all the templates start lagging. This only happens with decklink cards enabled in the config and on 1080p5994. It does not happen on 1080p6000.

Tried multiple windows installations, different CasparCG servers and different decklink drivers.

The issue also happens with one decklink card disabled and with no template running.


Environment


<configuration>
  <paths>
    <media-path>media/</media-path>
    <log-path>log/</log-path>
    <data-path>data/</data-path>
    <template-path>template/</template-path>
    <font-path>font/</font-path>
  </paths>
  <lock-clear-phrase>secret</lock-clear-phrase>
  <log-level>debug</log-level>
  <pipeline-tokens>182</pipeline-tokens>
  <channels>
    <channel>
      <video-mode>1080p5994</video-mode>      
          <consumers>
            <decklink>
              <device>1</device>
              <key-only>false</key-only>
              <embedded-audio>true</embedded-audio>
            </decklink>
            <decklink>
              <device>2</device>
              <key-only>true</key-only>
              <embedded-audio>false</embedded-audio>
            </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>
  <osc>
  <default-port>6250</default-port>
  <disable-send-to-amcp-clients>false</disable-send-to-amcp-clients>
  <predefined-clients>
    <predefined-client>
      <address>192.168.1.162</address>
      <port>6250</port>
    </predefined-client>
  </predefined-clients>
</osc>
</configuration>

Screenshots

screenshot 03-13-2019-085048 After 1 hour

screenshot 03-13-2019-085448 After 1 hour and 10 minutes

screenshot 03-13-2019-090008 After 1 hour and 13 minutes

screenshot 03-13-2019-090528 After 1 hour and 15 minutes

kormikk commented 5 years ago

A temporary solution I found is to put <embedded-audio>false</embedded-audio> on both devices. This doesn't solve our problem though as we can't play videos with audio this way. So the issue definitely comes from the audio source. I wanted to check if I can modify any sound settings but it's locked to 48khz DVD Quality in Windows.