server icon indicating copy to clipboard operation
server copied to clipboard

Sound crackle problem

Open MehdiRaash opened this issue 3 years ago • 12 comments

please watch the issue

In our case, we have been facing a kind of "crackle" sound problem.

It happens when: about 1 hour or so after connecting to the reference the normal playing sound becomes weak and turns to crackling kind of sound.

In case we run this on Free Run, everything works perfectly fine!

Detailed configuration:

  • Refrence: Black Burst
  • Card: Blackmagic quad 2
  • OS: windows 10
  • GPU: quadro P4000
  • CPU: 2X GOLD 5118
  • CasparCG version: 2.3.0 LTS RC
  • SDK version: BM 10.8.2

I recorded a video while crackling happened (containing the log file). image

MehdiRaash avatar Aug 11 '20 08:08 MehdiRaash

Oh God I got the same problem!

unxoun avatar Aug 11 '20 10:08 unxoun

Updating to newer decklink drivers might help.

We had similar crackling issues with 10.x.x drivers, albeit on Ubuntu 18.04.

After updating to 11.3+ drivers the issue seems to be gone. Even when running a decklink input for several days.

saltomodules avatar Aug 12 '20 02:08 saltomodules

Hi

I think that BM requires Trilevel not Blackburst for HD.

/olle

5opr4ni avatar Aug 12 '20 04:08 5opr4ni

I think that BM requires Trilevel not Blackburst for HD.

That's correct. Decklink drivers version >= 10.9.x seems to require Trilevel for HD while it works fine with version <= 10.8.x.

dotarmin avatar Aug 12 '20 06:08 dotarmin

@dotarmin @5opr4ni @saltomodules

  • Firstly, we are on SD not HD, and the current version of blackMagic is 10.8.2.
  • Secondly, we have tested all the versions above blackMagic 11.x.x.

The problem hasn't been solved yet, regarding the above sentences

Moreover, it's about 26 hours or so we have been running casparCG 2.2.0 stable, with the same configuration, up to now everything is Okay.

MehdiRaash avatar Aug 12 '20 07:08 MehdiRaash

Hi @MehdiRaash

Firstly, we are on SD not HD, and the current version of blackMagic is 10.8.2.

We are just trying to help you out based on some issues that we have stumbled across. You have not written anywhere that you are on SD and not HD so the tips are based on what we usein our environment and on our experience.

Try to post some logs, a configuration file and even maybe a screenshot from DIAG window and somebody from the community can spot what's wrong.

I noticed you wrote that you use 2X GOLD 5118 for CPU, I'm not sure but I think somebody in the community told me that support for dual CPUs is not working that good in the server as is...(??) @ronag or @Julusian, can it possibly be someone of you that mentioned that a long time ago? Also not sure if this can be related to your issue.

dotarmin avatar Aug 12 '20 11:08 dotarmin

In our case (on Ubuntu 18.04) it's a 2.3 build from commit 45ebbf1f2 (17 march 2020) that is running without crackling.

Perhaps you could test a windows build near that one (the exact commit is not available on the build server), for instance: http://casparcg.com/builds/CasparCG%20Server/master/casparcg-server-2b8a42a125ceaa81faa8458659af46b3f15cfe33-windows.zip

If that build also does run without crackling on Windows, perhaps that could help isolating the issue.

saltomodules avatar Aug 12 '20 14:08 saltomodules

@dotarmin dear Dotarmin, there was no offense, language barrier I guess :-), English are both non-native for us. I am so thankful for the platform you are developing.

MehdiRaash avatar Aug 18 '20 08:08 MehdiRaash

Does any body have any suggestion to solve the problem?

This problem occurs when the Diagnostics window shows DeckLink card has late-frame issue. In the same time the Buffered-Audio goes to minimum level (and cannot raise up when the reference generator is connected.) (My two cents)

It seems the problem relates to buffered audio.

As the @dotarmin noticed about incompatibility may happens on Dual CPU servers we had repeated the test on a server with other specs too and late-frame problem is still there.

  • CPU: Core I9-10920X

  • MotherBoard: PRIME X299-DELUXE II

  • Card: DeckLink 8K Pro

The bellow details is without reference signal and in free running mode.

Sample video of problem (on youtube)

Some screen shots of CasparCG Diagnose screen when problem occurs:

error

error3

CasparCG logs I should mention that we added a log to CasparCG code when the late-frame occurs and compiled it to track the problem with high accuracy

Sample: [2020-09-17 00:24:30.259] [error] DeckLink 8K Pro [1-3|1080i5000] late-frame

caspar_2020-09-17.log

Rancbar avatar Sep 17 '20 10:09 Rancbar

Sounds to me like a "simple" problem with different clocks and missing buffering/resampling for compensation.

To me its still not clear who is the timing master in CasparCG. How is reference input handled? How are different time reference clocks between channels or input and output are handled?

premultiply avatar Sep 17 '20 11:09 premultiply

If you are speaking about the reference signal generator device, we have disconnected it and run CasparCG in free running mode. And also the problem occurs in both of playing file or DeckLink device's input.

If it helps we wrote a simple service to synchronize all servers time (windows clock) every 30 seconds. Can it be the source of problem?

Rancbar avatar Sep 17 '20 11:09 Rancbar

Any fixes?

I have the same problem. 1080i50 works, but in 1080P25 or 1080P50 audio slows down and there is jitter sound in SDI signal. And from system sound the sound cuts of. Decklink duo 2 card with 11.7 drivers.

TuomasJaa avatar Jan 07 '21 13:01 TuomasJaa