Project

General

Profile

Bug #617

Tvheadend + xmbc -> lag during initial scan

Added by Romain Aviolat almost 11 years ago. Updated almost 10 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-07-28
Due date:
% Done:

0%

Estimated time:
Found in version:
2.12.99~git20110521.8281379~odk2~maverick
Affected Versions:

Description

Hi,

I'm running tvheadend in the same box as XBMC (AMD Athlon(tm) 64 Processor 3200+ / 2GB DDR). The Tuner is a Avermedia a867r DVBT usb stick.

Every time I start my computer, tvheadend starts and then XBMC. During the first ~10 minutes, tvheadend do an initialscan on all my multiplexes. During this initialscan XBMC every ~30 seconds I've got a small lag. If I play a MP3 the sound hang for 1 second, the same if I watch a movie. When the initialscan ends everything works normally I'm 100% sure it has to do with this initial scan. Another example: If I stop tvheadend during the initialscan (/etc/init.d/tvheadend stop) the lag disappear immediately.

Running:
- Ubuntu 10.10 32bits
- TVheadend 2.12.99~git20110521.8281379~odk2~maverick
- XBMC 2:11.0-pvr+odk42~git20110718.b485416-0ubuntu1~ppa+odk42~maverick

Someone experienced the same behaviour ?

It'll be nice if we could choose to disable the initialscan it's not needed in all cases (Few TNT channels in Switzerland)

History

#1

Updated by Magnus Pfeffer almost 11 years ago

Hi,

I have noticed the same problem. As waiting for over 500 muxes is not an option, I simply commented the bit of code responsible for the initial scan:

    //dvb_fe_tune(tdmi, "Initial autoscan");

in dvb_adapter.c and recompiled.

#2

Updated by David Hewings over 10 years ago

Hi

I have exactly the same problem, but not too sure how to add that line and then recompile.

Could anyone please help.

Thanks

#3

Updated by Adam Sutton almost 10 years ago

  • Status changed from New to Rejected

The latest git source includes a "skip initial scan" option that can be used to bypass the initial scan (as long as its been completed once, note: it will have to do one scan with new code to log the fact).

In the future Andreas plans to remove the initial scan completely and do something better.

Also available in: Atom PDF