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
904 stars 269 forks source link

Audio always 1 frame offsync with video playback #114

Closed TKooijmans closed 6 years ago

TKooijmans commented 11 years ago

I have tested with a Decklink Studio2 and CasperCG 2.03 and playback of HD mpeg 1080i25 and Pal Dv25 files to see if every thing stays in sync.

Test setup is as follows, Render the countdown in Premiere Pro to a HD MPEG2 file. Playback this file with CasparCG + Studio Decklink2 capture SDI output of Studio2 to a second system compare the original with the capture in a Premiere Pro timeline by mixing the video to a match, look to the audiowaveform to see the offset.

I don't use the SEEK command, so when I start from the beginning of the file, I always get 1 frame audio offset. Audio is 1 frame early. The offset keeps constant during a longer playback period. System audio is not used.

The same goes with Pal DV25 files.
What can I do about this?

This is the configfile (I tweaked special characters)

configuration
paths
media-path V: media-path
log-path log\ log-path
data-path data\ data-path
template-path templates\ template-path
paths
channels
channel
video-mode 1080i5000 video-mode
consumers
decklink
device 2 device
embedded-audio true embedded-audio
keyer internal keyer
latency normal latency
buffer-depth 3 buffer-depth
decklink
consumers
channel
channels
auto-deinterlace true auto-deinterlace
controllers
tcp
port 5250 port
protocol AMCP protocol
tcp
controllers
configuration

Hardware
Intel i7 3.2 GHZ +8 GB ram and Win7-64
Nvidia GTX470
Decklink Studio 2

regards,
premultiply commented 11 years ago

I can confirm this with professional measurement equipment (Vistek Valid Generator and Reader). Decklink Input has the same issue. So it seems to be a problem in the decklink consumer.

premultiply commented 11 years ago

Audio is advanced 1 frame related to the video. So audio should be delayed by 1 frame to match.

Measurement setup:

[VISTEK Valid Generator] ===HD-SDI===> [Decklink Producer -> Decklink Consumer] ===HD-SDI===> [VISTEK Vaild Reader]

Result: wfm7120_1e994b_2013-jun-13_13-18-27

premultiply commented 11 years ago

Seems to be fixed (only) in new blocking-decklink-consumer!

TKooijmans commented 10 years ago

There still seems to be there a problem with audio sync. I tested with build 2.04 with HD mpeg 25 mbit, MXF HD 50 mbit en PAL DV. All still give one frame audio offset ( audio is -1 frame)

hummelstrand commented 10 years ago

Please test this in the released version of 2.0.6 and 2.07b1 and report back. Thanks!

TKooijmans commented 10 years ago

Hi Jonas, just tested the 2.06 version. With this version, sync offset seems the same as with v2.04. So using Blocking Decklink, Pal DV is in sync HD mpeg is in sync HD MXF 422 50 mbit is in sync HD MXF 420 35 mbit is in sync

When not using Blocking Decklink all offsets are -1 frame with audio.

TKooijmans commented 9 years ago

Hi folks, Yesterday I had a bigscreen film event with playback from Casper server 2.07 (release) and HD MXF 422 HDCAM 50. playback of audio was still one frame off, audio plays one frame early. With big screens this unacceptable. I had to switch to H264 to fix it but datarate has to be reduced then. I have not tested it yet with blocking decklink, but that function becomes obsolete?

TKooijmans commented 9 years ago

I did some tests with playback of DV 25 files and I found out that audio is in sync with the playback of a single file. When I use loadBG to run down a playlist always the second and following clips play 1 frame of sync (audio -1 frame)

steps to repro create with Premiere a dv25 countdown avi put this twice or more in a playlist playback with Casper and use LOADBG to play all and capture result compare result with original

Tested with latest Deckilnk drivers and Casper 207

ronag commented 6 years ago

2.2