[no Bug] DVB IP scanning takes too long (1 Viewer)

georgius

Retired Team Member
  • Premium Supporter
  • October 31, 2010
    1,376
    654
    Bratislava
    Home Country
    Slovakia Slovakia
    MediaPortal Version: 1.2.0 Beta (TvServer - SVN 28008, MP - SVN 28008)
    MediaPortal Skin: DefaultWide
    Windows Version: Windows 7 Ultimate 32-bit SP1
    CPU Type: Intel Core 2 E6600
    HDD: 2x WD WD3200YS, 320 GB
    Memory: 2x 1024 MB, Kingston
    Motherboard: Foxconn P9657AA-8KS2H
    Video Card: NVIDIA GeForce 8800 GTS
    Video Card Driver: 257.21
    Sound Card: Realtek, HDA
    Sound Card AC3:
    Sound Card Driver: 6.1.7600.16385, Microsoft
    1. TV Card:
    1. TV Card Type:
    1. TV Card Driver:
    2. TV Card:
    2. TV Card Type:
    2. TV Card Driver:
    3. TV Card:
    3. TV Card Type:
    3. TV Card Driver:
    4. TV Card:
    4. TV Card Type:
    4. TV Card Driver:
    MPEG2 Video Codec: MPC - MPEG2 Video Decoder (Gabest)
    MPEG2 Audio Codec: ffdshow Audio Decoder
    h.264 Video Codec: ffdshow DXVA Video Decoder
    Satelite/CableTV Provider:
    HTPC Case:
    Cooling:
    Power Supply:
    Remote:
    TV:
    TV - HTPC Connection:

    Hi,

    I've downloaded latest MP from SVN (28008). Rebuilded all release components and builded new installation packages. I removed old installation of MP 1.2.0 (MP, TvServer, configuration, database). Then I installed latest MP 1.2.0 Beta (SVN 28008). I replaced old DVB-IP MediaPortal IPTV Source Filter with newer one.

    I scanned for few channels, but scanning of each channel takes too long - approx. 20 seconds per channel. I have 129 channels - so total time of scanning will be at least 2580 seconds (43 minutes).
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,544
    8,236
    Home Country
    New Zealand New Zealand
    Hi georgius

    The scan seems to be taking exactly the length of the SDT/VCT timeout in TV Server configuration ("general" section, "scan" tab). Does your provider broadcast SDT?

    mm
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,544
    8,236
    Home Country
    New Zealand New Zealand
    Just to give you some extra info...

    The code conditions for finishing scan are:

    Code:
    	if (m_nitDecoder.Ready()==false) 
    	{
    		//LogDebug("nit not ready");
    		return FALSE;
    	}
      
    	int x=0;
    	for (itChannels it=m_mapChannels.begin(); it !=m_mapChannels.end();++it)
      {
    		CChannelInfo& info=it->second;
    		if (!info.PmtReceived || !info.SdtReceived) 
    		{
    			//LogDebug("ch:%d pmt:%d sdt:%d othermux:%d %s onid:%x tsid:%x sid:%x",
    			//	x,info.PmtReceived,info.SdtReceived,info.OtherMux,info.ServiceName,
    			//	info.NetworkId,info.TransportId,info.ServiceId);
    			return FALSE;
    		}
    		x++;
    	}
    	m_finished=true;
    	return TRUE;

    The m_nitDecoder.Ready() returns true after a fixed time (5 seconds). After that, the scan can finish as soon as PMT and SDT info have been received for each channel. If the scan reaches the SDT/VCT timeout then TV Server stops waiting for TsWriter and just takes the channels that have been found at that time. Since the timeout is being triggered, either the PMT or SDT is not being received for your channels. This is the fault of your provider. The scan speed will depend entirely on the SDT/VCT timeout that you set, with a minimum scan time of 5 seconds (for the NIT).

    mm
     

    georgius

    Retired Team Member
  • Premium Supporter
  • October 31, 2010
    1,376
    654
    Bratislava
    Home Country
    Slovakia Slovakia
    Thanks for identifying problem. When I saved raw TS stream and try to find SDT packet, I found that no SDT packet is in stream. I shorten SDT/VCT timeout value and scanning was much more faster. This thread can be marked as no bug.
     

    Users who are viewing this thread

    Top Bottom