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
913 stars 268 forks source link

Audio Cracklings #326

Closed deedos closed 9 years ago

deedos commented 9 years ago

Bug related to this thread http://casparcg.com/forum/viewtopic.php?f=12&t=1567

I'm having a similar issue described in the thread, audio cracklng with decklink card and ffmpeg producer. is this related to this bug ? https://github.com/CasparCG/Server/issues/288 . anyway.. Robert says that it has a failsafe (would be a workaround ?) for the issue.. What would it be ? strange that sometimes the problem just do not happen.. and changing the channel to 720p60 and 1080i60, make it work as it should, without crackling and the error messages.

That's the only thing missing for news VT playout to be implemented in one production at TV Brasil (http://www.tvbrasil.ebc.com.br ), the brazilian public Tv channel. that will be such a happening around here.. ;)

below the trace

[2014-11-19 16:16:48.624] [00FAABF8] [info]    Sent message to 10.2.0.93: 202 PLAY OK\r\n
[2014-11-19 16:16:48.624] [00FAABF8] [trace]   Ready for a new command
[2014-11-19 16:16:48.635] [00FA9FC8] [info]    transition[ffmpeg[14957371_0003.MOV|1920x1080i59.94|2121/2122]=>ffmpeg[0007_.MXF|1920x1080i59.94|0/1297]] End Of File.
[2014-11-19 16:16:48.648] [00FA9FC8] [error]   [ffmpeg] [mpeg2video @ 030B0F00] warning: first frame is no keyframe
[2014-11-19 16:16:48.654] [00FA9FC8] [error]   [ffmpeg] [mpeg2video @ 030B0F00] warning: first frame is no keyframe
[2014-11-19 16:16:48.659] [00FA9FC8] [trace]   transition[ffmpeg[14957371_0003.MOV|1920x1080i59.94|2121/2122]=>ffmpeg[0007_.MXF|1920x1080i59.94|1/1297]] Uninitializing.
[2014-11-19 16:16:48.659] [00FA9FC8] [info]    transition[ffmpeg[14957371_0003.MOV|1920x1080i59.94|2121/2122]=>ffmpeg[0007_.MXF|1920x1080i59.94|1/1297]] Uninitialized.
[2014-11-19 16:16:48.659] [00FAA598] [trace]   ffmpeg[14957371_0003.MOV|1920x1080i59.94|2121/2122] Destroying on asynchronous destruction thread.
[2014-11-19 16:16:48.659] [00FAA598] [info]    Released ffmpeg tbb context.
[2014-11-19 16:16:48.707] [00FAA3E8] [trace]   [audio_mixer] Incorrect frame audio cadence detected.
[2014-11-19 16:16:48.707] [00FAA3E8] [trace]   [audio_mixer] Appended zero samples
[2014-11-19 16:16:48.875] [00FAA3E8] [trace]   [audio_mixer] Incorrect frame audio cadence detected.
[2014-11-19 16:16:48.875] [00FAA3E8] [trace]   [audio_mixer] Appended zero samples
[2014-11-19 16:16:49.042] [00FAA3E8] [trace]   [audio_mixer] Incorrect frame audio cadence detected.
[2014-11-19 16:16:49.042] [00FAA3E8] [trace]   [audio_mixer] Appended zero samples
[2014-11-19 16:16:49.211] [00FAA3E8] [trace]   [audio_mixer] Incorrect frame audio cadence detected.
[2014-11-19 16:16:49.211] [00FAA3E8] [trace]   [audio_mixer] Appended zero samples
[2014-11-19 16:16:49.379] [00FAA3E8] [trace]   [audio_mixer] Incorrect frame audio cadence detected.
[2014-11-19 16:16:49.379] [00FAA3E8] [trace]   [audio_mixer] Appended zero samples
[2014-11-19 16:16:49.541] [00FAA3E8] [trace]   [audio_mixer] Incorrect frame audio cadence detected.
[2014-11-19 16:16:49.542] [00FAA3E8] [trace]   [audio_mixer] Appended zero samples
[2014-11-19 16:16:49.711] [00FAA3E8] [trace]   [audio_mixer] Incorrect frame audio cadence detected.
[2014-11-19 16:16:49.711] [00FAA3E8] [trace]   [audio_mixer] Appended zero samples
[2014-11-19 16:16:49.877] [00FAA3E8] [trace]   [audio_mixer] Incorrect frame audio cadence detected.
deedos commented 9 years ago

any chance for this bug to be assigned ? thanks in advance

K4T commented 9 years ago

Hi, we have same problem here with the newest version of CasparCG but in our logs there is no info about Incorrect frame audio...

CasparCG config file:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <paths>
    <media-path>Z:\</media-path>
    <log-path>Z:\casparcg\log\</log-path>
    <data-path>Z:\casparcg\data\</data-path>
    <template-path>Z:\casparcg\templates\</template-path>
    <thumbnails-path>Z:\casparcg\thumbnails\</thumbnails-path>
  </paths>
  <channels>
    <channel>
      <video-mode>720p5000</video-mode>
      <consumers>
        <decklink>
          <device>2</device>
          <embedded-audio>true</embedded-audio>
          <keyer>default</keyer>
        </decklink>
      </consumers>
    </channel>
    <channel>
      <video-mode>720p5000</video-mode>
      <consumers>
        <decklink>
          <device>1</device>
          <embedded-audio>true</embedded-audio>
          <keyer>default</keyer>
        </decklink>
      </consumers>
    </channel>
    <channel>
      <video-mode>720p5000</video-mode>
      <consumers />
    </channel>
  </channels>
  <controllers>
    <tcp>
        <port>5250</port>
        <protocol>AMCP</protocol>
    </tcp>
  </controllers>
</configuration>

<!--
<log-level>       trace [trace|debug|info|warning|error]</log-level>
<channel-grid>    false [true|false]</channel-grid>
<mixer>
    <blend-modes>          false [true|false]</blend-modes>
    <straight-alpha>       false [true|false]</straight-alpha>
    <chroma-key>           false [true|false]</chroma-key>
    <mipmapping_default_on>false [true|false]</mipmapping_default_on>
</mixer>
<auto-deinterlace>true  [true|false]</auto-deinterlace>
<auto-transcode>  true  [true|false]</auto-transcode>
<pipeline-tokens> 2     [1..]       </pipeline-tokens>
<template-hosts>
    <template-host>
        <video-mode/>
        <filename/>
        <width/>
        <height/>
    </template-host>
</template-hosts>
<flash>
    <buffer-depth>auto [auto|1..]</buffer-depth>
</flash>
<thumbnails>
    <generate-thumbnails>false [true|false]</generate-thumbnails>
    <width>256</width>
    <height>144</height>
    <video-grid>2</video-grid>
    <scan-interval-millis>5000</scan-interval-millis>
    <generate-delay-millis>2000</generate-delay-millis>
    <video-mode>720p2500</video-mode>
    <mipmap>false</mipmap>
</thumbnails>
<channels>
    <channel>
        <video-mode> PAL [PAL|NTSC|576p2500|720p2398|720p2400|720p2500|720p5000|720p2997|720p5994|720p3000|720p6000|1080p2398|1080p2400|1080i5000|1080i5994|1080i6000|1080p2500|1080p2997|1080p3000|1080p5000|1080p5994|1080p6000|1556p2398|1556p2400|1556p2500|dci1080p2398|dci1080p2400|dci1080p2500|2160p2398|2160p2400|2160p2500|2160p2997|2160p3000|dci2160p2398|dci2160p2400|dci2160p2500] </video-mode>
        <channel-layout>stereo [mono|stereo|dts|dolbye|dolbydigital|smpte|passthru]</channel-layout>
        <straight-alpha-output>false [true|false]</straight-alpha-output>
        <consumers>
            <decklink>
                <device>[1..]</device>
                <key-device>device + 1 [1..]</key-device>
                <embedded-audio>false [true|false]</embedded-audio>
                <channel-layout>stereo [mono|stereo|dts|dolbye|dolbydigital|smpte|passthru]</channel-layout>
                <latency>normal [normal|low|default]</latency>
                <keyer>external [external|external_separate_device|internal|default]</keyer>
                <key-only>false [true|false]</key-only>
                <buffer-depth>3 [1..]</buffer-depth>
                <custom-allocator>true [true|false]</custom-allocator>
            </decklink>
            <bluefish>
                <device>[1..]</device>
                <embedded-audio>false [true|false]</embedded-audio>
                <channel-layout>stereo [mono|stereo|dts|dolbye|dolbydigital|smpte|passthru]</channel-layout>
                <key-only>false [true|false]</key-only>
            </bluefish>
            <system-audio></system-audio>
            <screen>
                <device>[0..]</device>
                <aspect-ratio>default [default|4:3|16:9]</aspect-ratio>
                <stretch>fill [none|fill|uniform|uniform_to_fill]</stretch>
                <windowed>false [true|false]</windowed>
                <key-only>false [true|false]</key-only>
                <auto-deinterlace>true [true|false]</auto-deinterlace>
                <vsync>false [true|false]</vsync>
                <name>[Screen Consumer]</name>
                <borderless>false [true|false]</borderless>
            </screen>
            <newtek-ivga>
              <channel-layout>stereo [mono|stereo|dts|dolbye|dolbydigital|smpte|passthru]</channel-layout>
              <provide-sync>true [true|false]</provide-sync>
            </newtek-ivga>
            <file>
                <path></path>
                <vcodec>libx264 [libx264|qtrle]</vcodec>
                <separate-key>false [true|false]</separate-key>
            </file>
            <stream>
                <path></path>
                <args></args>
            </stream>
        </consumers>
    </channel>
</channels>
<osc>
  <default-port>6250</default-port>
  <predefined-clients>
    <predefined-client>
      <address>127.0.0.1</address>
      <port>5253</port>
    </predefined-client>
  </predefined-clients>
</osc>
<audio>
  <channel-layouts>
    <channel-layout>
      <name>mono</name>
      <type>1.0</type>
      <num-channels>1</num-channels>
      <channels>C</channels>
    </channel-layout>
    <channel-layout>
      <name>stereo</name>
      <type>2.0</type>
      <num-channels>2</num-channels>
      <channels>L R</channels>
    </channel-layout>
    <channel-layout>
      <name>dts</name>
      <type>5.1</type>
      <num-channels>6</num-channels>
      <channels>C L R Ls Rs LFE</channels>
    </channel-layout>
    <channel-layout>
      <name>dolbye</name>
      <type>5.1+stereomix</type>
      <num-channels>8</num-channels>
      <channels>L R C LFE Ls Rs Lmix Rmix</channels>
    </channel-layout>
    <channel-layout>
      <name>dolbydigital</name>
      <type>5.1</type>
      <num-channels>6</num-channels>
      <channels>L C R Ls Rs LFE</channels>
    </channel-layout>
    <channel-layout>
      <name>smpte</name>
      <type>5.1</type>
      <num-channels>6</num-channels>
      <channels>L R C LFE Ls Rs</channels>
    </channel-layout>
    <channel-layout>
      <name>passthru</name>
      <type>16ch</type>
      <num-channels>16</num-channels>
      <channels />
    </channel-layout>
  </channel-layouts>
  <mix-configs>
    <mix-config>
      <from>1.0</from>
      <to>2.0</to>
      <mix>add</mix>
      <mappings>
        <mapping>C L 1.0</mapping>
        <mapping>C R 1.0</mapping>
      </mappings>
    </mix-config>
    <mix-config>
      <from>1.0</from>
      <to>5.1</to>
      <mix>add</mix>
      <mappings>
        <mapping>C L 1.0</mapping>
        <mapping>C R 1.0</mapping>
      </mappings>
    </mix-config>
    <mix-config>
      <from>1.0</from>
      <to>5.1+stereomix</to>
      <mix>add</mix>
      <mappings>
        <mapping>C L    1.0</mapping>
        <mapping>C R    1.0</mapping>
        <mapping>C Lmix 1.0</mapping>
        <mapping>C Rmix 1.0</mapping>
      </mappings>
    </mix-config>
    <mix-config>
      <from>2.0</from>
      <to>1.0</to>
      <mix>add</mix>
      <mappings>
        <mapping>L C 1.0</mapping>
        <mapping>R C 1.0</mapping>
      </mappings>
    </mix-config>
    <mix-config>
      <from>2.0</from>
      <to>5.1</to>
      <mix>add</mix>
      <mappings>
        <mapping>L L 1.0</mapping>
        <mapping>R R 1.0</mapping>
      </mappings>
    </mix-config>
    <mix-config>
      <from>2.0</from>
      <to>5.1+stereomix</to>
      <mix>add</mix>
      <mappings>
        <mapping>L L    1.0</mapping>
        <mapping>R R    1.0</mapping>
        <mapping>L Lmix 1.0</mapping>
        <mapping>R Rmix 1.0</mapping>
      </mappings>
    </mix-config>
    <mix-config>
      <from>5.1</from>
      <to>1.0</to>
      <mix>average</mix>
      <mappings>
        <mapping>L  C 1.0</mapping>
        <mapping>R  C 1.0</mapping>
        <mapping>C  C 0.707</mapping>
        <mapping>Ls C 0.707</mapping>
        <mapping>Rs C 0.707</mapping>
      </mappings>
    </mix-config>
    <mix-config>
      <from>5.1</from>
      <to>2.0</to>
      <mix>average</mix>
      <mappings>
        <mapping>L  L 1.0</mapping>
        <mapping>R  R 1.0</mapping>
        <mapping>C  L 0.707</mapping>
        <mapping>C  R 0.707</mapping>
        <mapping>Ls L 0.707</mapping>
        <mapping>Rs R 0.707</mapping>
      </mappings>
    </mix-config>
    <mix-config>
      <from>5.1</from>
      <to>5.1+stereomix</to>
      <mix>average</mix>
      <mappings>
        <mapping>L   L   1.0</mapping>
        <mapping>R   R   1.0</mapping>
        <mapping>C   C   1.0</mapping>
        <mapping>Ls  Ls  1.0</mapping>
        <mapping>Rs  Rs  1.0</mapping>
        <mapping>LFE LFE 1.0</mapping>

        <mapping>L  Lmix 1.0</mapping>
        <mapping>R  Rmix 1.0</mapping>
        <mapping>C  Lmix 0.707</mapping>
        <mapping>C  Rmix 0.707</mapping>
        <mapping>Ls Lmix 0.707</mapping>
        <mapping>Rs Rmix 0.707</mapping>
      </mappings>
    </mix-config>
    <mix-config>
      <from>5.1+stereomix</from>
      <to>1.0</to>
      <mix>add</mix>
      <mappings>
        <mapping>Lmix C 1.0</mapping>
        <mapping>Rmix C 1.0</mapping>
      </mappings>
    </mix-config>
    <mix-config>
      <from>5.1+stereomix</from>
      <to>2.0</to>
      <mix>add</mix>
      <mappings>
        <mapping>Lmix L 1.0</mapping>
        <mapping>Rmix R 1.0</mapping>
      </mappings>
    </mix-config>
    <mix-config>
      <from>5.1+stereomix</from>
      <to>5.1</to>
      <mix>add</mix>
      <mappings>
        <mapping>L   L   1.0</mapping>
        <mapping>R   R   1.0</mapping>
        <mapping>C   C   1.0</mapping>
        <mapping>Ls  Ls  1.0</mapping>
        <mapping>Rs  Rs  1.0</mapping>
        <mapping>LFE LFE 1.0</mapping>
      </mappings>
    </mix-config>
  </mix-configs>
</audio>
-->

Machine specs:

Supermicro SYS-7047R-TRF
Intel Xeon CPU E5-2637 v2@3.50GHz,
8GB RAM,
2x SSD ~120GB in RAID1,
GPU NVIDIA Quadro K2000D 2GB,
Windows 7 Ultimate x64,
2x Decklink Mini Monitor

Diagnostic window:

image

I also created topic on official forum: http://casparcg.com/forum/viewtopic.php?f=12&t=2876

Any ideas? It is a breaker for our TV ;/.

K4T commented 9 years ago

I updated machine specs. Robert Nagy said me that he probably know what can cause that problem but I dont know if he will fix it. Can we have any information about that problem from official developers?

respectTheCode commented 9 years ago

I am having the same problem as @K4T. Any progress on this?

deedos commented 9 years ago

+1 to hear news about this issue. thanks

2015-06-07 11:33 GMT-03:00 Kevin Smith notifications@github.com:

I am having the same problem as @K4T https://github.com/K4T. Any progress on this?

— Reply to this email directly or view it on GitHub https://github.com/CasparCG/Server/issues/326#issuecomment-109761690.

Daniel Roviriego (21) 35920701 (21) 99561654

deedos commented 9 years ago

We did solve the issue using a 1080p2997. Hope it helps

ronag commented 9 years ago

Fix suggested: https://github.com/CasparCG/Server/issues/387

HellGore commented 9 years ago

Fixed