Project

General

Profile

Actions

Bug #2754

closed

Video and Audio badly out of Sync

Added by ullix tv about 10 years ago. Updated about 9 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
Category:
PVR / DVR
Target version:
-
Start date:
2015-04-01
Due date:
% Done:

100%

Estimated time:
Found in version:
tvheadend: version 3.9.2665~g3b92536~precise
Affected Versions:

Description

After recording with tvh and replaying via Kodi, the video and audio are sometimes very badly out of sync. The difference of audio first and matching video later can be as much as 2 seconds!

This has nothing to do with any network delay, as this happens even when the replay is done on the same machine that hosts the tvh-server and the disk, and the computer is powerful (Haswell i7 CPU, 32GBMemory, SATAIII locally connected hdds, Ubuntu 12.04).

The files are recorded from my 8 tuner SAT>IP device, and tvheadend 3.9.x as either stream-profile "pass", so files are stored with *.ts ending, or when recorded as stream-profile "matroska", so files endig with *.mkv.

These files play perfectly fine with VLC; yet with Kodi I get this video delay on playback.

After converting such a file with (xyz being either ts or mkv):

/usr/bin/HandBrakeCLI --preset 'Normal' -O -i /video.xyz -o video.mkv

they do play fully in sync on both vlc and Kodi.

I don't know where in the chain the problem lies. Currently I use tvheadend 3.9.2665~g3b92536~precise, Op-den-Kamp tvh-pvr for Kodi 1.9.40, Kodi 14.2. However, while the 2 sec delay is now a record I have this delay for a long time, always using 3.9.x, also with pvr 1.9.39, and all kodi 14.x and also late xbmc versions.

It does seem to occur an all channels and all resolution like SD, HD-, Full-HD, though the amount of delay varies, although I don't see a pattern.

Actions

Also available in: Atom PDF