[Bug] MP2 Native TV ATSC Scanning Error (1 Viewer)

hardcorehire

Portal Pro
April 1, 2008
108
45
OHIO
Home Country
United States of America United States of America
When trying MP2 native TV service the ASTC tuning didn't work correctly. Installed fresh copy of MP2 without MP1 TV service, and found tuning parameters not set correctly. Installed MP1 TV service on same server without having to modify anything and all channels tuned OK.

If I manually set the tuning parameters and check the FTA box the channels do seem to work correctly.
 

Attachments

  • MP1 TV Server Screenshot.jpg
    MP1 TV Server Screenshot.jpg
    252.9 KB
  • MP2 TV Server Screenshot.jpg
    MP2 TV Server Screenshot.jpg
    252.3 KB
  • MP2TVE.zip
    173.2 KB
Last edited:

morpheus_xx

Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Thanks for the logfiles!

    I wanted to take a look into this, but for now the list of changes in TsWriter/TvLibrary are too long to dig into properly...

    What could help us:
    Can you delete the MP2TVE.sdf again, start MP2-Server, do a new channel scan? I would need full tswriter.log (this one is still logged under MP1 folder :confused:) and a full MP2-Server.log?

    Edit: after looking in the MP2-Server.log I can see that the channels are detected correctly be TsWriter, so issue could be inside C# TvLibrary.

    Would you help with a remote debugging session?
     
    Last edited:

    hardcorehire

    Portal Pro
    April 1, 2008
    108
    45
    OHIO
    Home Country
    United States of America United States of America
    I'll try and help anyway I can. How does the remote debugging session work.
     

    hardcorehire

    Portal Pro
    April 1, 2008
    108
    45
    OHIO
    Home Country
    United States of America United States of America
    I'm assuming we may have trouble finding time we are both online. I am only at home online between usually 5:30 PM and 9:30 PM Eastern standard time. I've never done remote debugging, but am willing to help anyway I can or I can try and pull any other logs or testing you need done.
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    I checked your TV database: the tuning details seem to be correctly stored.

    What I am wondering about is the logfile, the graph building seems to build an analogue graph?! Can you post logfiles of MP1 so that I can compare the graph building?

    First it tries to find matching cards: it sees two ATSC cards, but due to "fta=false" they won't be considered:
    [2013-02-25 19:16:04,664] [3116626] [15 ] [DEBUG] - Controller: StartTimeShifting 1
    [2013-02-25 19:16:04,665] [3116627] [15 ] [DEBUG] - Controller: epg stop
    [2013-02-25 19:16:04,670] [3116632] [15 ] [INFO ] - Controller: find free card for channel
    [2013-02-25 19:16:04,676] [3116638] [15 ] [INFO ] - Controller: find card for channel
    [2013-02-25 19:16:05,188] [3117150] [15 ] [INFO ] - Controller: got 1 tuning details for
    [2013-02-25 19:16:05,190] [3117152] [15 ] [INFO ] - Controller: channel #1 ATSC:TV Freq:475250 ONID:0 TSID:0 SID:1377 PMT:0xE3 FTA:False LCN:10000 phys:67 maj:-1 min:-1 mod:Mod256Qam
    [2013-02-25 19:16:05,195] [3117157] [15 ] [INFO ] - Controller: card:1 type:Atsc channel is encrypted but card has no CAM
    [2013-02-25 19:16:05,197] [3117159] [15 ] [INFO ] - Controller: card:2 type:Atsc channel is encrypted but card has no CAM
    [2013-02-25 19:16:05,198] [3117160] [15 ] [INFO ] - Controller: card:3 type:Analog cannot tune to channel
    [2013-02-25 19:16:05,199] [3117161] [15 ] [INFO ] - Controller: card:4 type:Analog cannot tune to channel
    [2013-02-25 19:16:05,200] [3117162] [15 ] [INFO ] - Controller: card:5 type:RadioWebStream cannot tune to channel
    [2013-02-25 19:16:05,205] [3117167] [15 ] [INFO ] - Controller: found 0 card(s) for channel
    [2013-02-25 19:16:05,205] [3117167] [15 ] [INFO ] - AdvancedCardAllocation.GetAvailableCardsForChannel took 530 msec

    Then it tries to build an "analog" graph:
    [2013-02-25 19:17:36,727] [3208688] [15 ] [DEBUG] - analog: build graph
    [2013-02-25 19:17:36,737] [3208698] [15 ] [DEBUG] - analog: AddTvTunerFilter Hauppauge WinTV-7164 Analog TV Tuner
    [2013-02-25 19:17:36,762] [3208723] [15 ] [DEBUG] - analog: Detecting capabilities of the tuner
    [2013-02-25 19:17:36,765] [3208726] [15 ] [DEBUG] - analog: No stored or invalid graph for Crossbar component - Trying to detect
    [2013-02-25 19:17:36,781] [3208742] [15 ] [DEBUG] - analog: AddCrossBarFilter try:Hauppauge WinTV-7164 Analog Xbar 0
    [2013-02-25 19:17:36,789] [3208750] [15 ] [DEBUG] - crossbar pin:0 type:Video_Tuner, related:1
    [2013-02-25 19:17:36,792] [3208753] [15 ] [DEBUG] - crossbar pin:1 type:Audio_Tuner, related:0
    [2013-02-25 19:17:36,794] [3208755] [15 ] [DEBUG] - crossbar pin:2 type:Video_Composite, related:4
    [2013-02-25 19:17:36,795] [3208756] [15 ] [DEBUG] - crossbar pin:3 type:Video_SVideo, related:4
    [2013-02-25 19:17:36,796] [3208757] [15 ] [DEBUG] - crossbar pin:4 type:Audio_Line, related:3
    [2013-02-25 19:17:36,796] [3208757] [15 ] [DEBUG] - crossbar pin:5 type:Video_Composite, related:7
    [2013-02-25 19:17:36,797] [3208758] [15 ] [DEBUG] - crossbar pin:6 type:Video_SVideo, related:7
    [2013-02-25 19:17:36,798] [3208759] [15 ] [DEBUG] - crossbar pin:7 type:Audio_Line, related:6
    [2013-02-25 19:17:36,801] [3208762] [15 ] [DEBUG] - analog: PinDest:name:0: Video Tuner In [6/0] Direction:Input Connected:False
    [2013-02-25 19:17:36,802] [3208763] [15 ] [DEBUG] - analog: pinSource 0:name:Analog Video [11/0] Direction:Output Connected:False
    [2013-02-25 19:17:36,802] [3208763] [15 ] [DEBUG] - analog: pins connected
    [2013-02-25 19:17:36,804] [3208765] [15 ] [DEBUG] - analog: AddCrossBarFilter succeeded
    [2013-02-25 19:17:36,805] [3208766] [15 ] [DEBUG] - analog: No stored graph for TvAudio component - Trying to detect
    [2013-02-25 19:17:36,812] [3208773] [15 ] [DEBUG] - analog: AddTvAudioFilter try:Hauppauge WinTV-7164 Analog TV Audio 0
    [2013-02-25 19:17:36,814] [3208775] [15 ] [DEBUG] - analog: AddTvAudioFilter succeeded:Hauppauge WinTV-7164 Analog TV Audio
    [2013-02-25 19:17:36,815] [3208776] [15 ] [DEBUG] - analog: No stored or invalid graph for Capture component - Trying to detect
    [2013-02-25 19:17:36,824] [3208785] [15 ] [DEBUG] - analog: AddTvCaptureFilter try:Hauppauge WinTV-7164 Analog Capture 0
    [2013-02-25 19:17:36,829] [3208790] [15 ] [DEBUG] - analog: PinSource:name:0: Video Decoder Out [14/0] Direction:Output Connected:False
    [2013-02-25 19:17:36,830] [3208791] [15 ] [DEBUG] - analog: pinDest 0:name:Analog Video In [6/0] Direction:Input Connected:False
    [2013-02-25 19:17:36,831] [3208792] [15 ] [DEBUG] - analog: pins connected
    [2013-02-25 19:17:36,832] [3208793] [15 ] [DEBUG] - analog: AddTvCaptureFilter connected video to crossbar successfully
    [2013-02-25 19:17:36,832] [3208793] [15 ] [DEBUG] - analog: PinSource:name:1: Audio Decoder Out [15/0] Direction:Output Connected:False
    [2013-02-25 19:17:36,833] [3208794] [15 ] [DEBUG] - analog: pinDest 1:name:Analog Audio [8/0] Direction:Input Connected:False
    [2013-02-25 19:17:36,835] [3208796] [15 ] [DEBUG] - analog: pins connected
    [2013-02-25 19:17:36,836] [3208797] [15 ] [DEBUG] - analog: AddTvCaptureFilter connected audio to crossbar successfully
    [2013-02-25 19:17:36,838] [3208799] [15 ] [DEBUG] - analog: FindVBIPin on VideoCapture
    [2013-02-25 19:17:36,841] [3208802] [15 ] [DEBUG] - analog: VBI pin found
    [2013-02-25 19:17:36,908] [3208869] [15 ] [DEBUG] - analog: SetupTeletext()
    [2013-02-25 19:17:36,917] [3208878] [15 ] [DEBUG] - analog: No stored or invalid graph for Teletext component - Trying to detect
    [2013-02-25 19:17:36,921] [3208882] [15 ] [INFO ] - analog:Found VBI Codec filter
    [2013-02-25 19:17:36,926] [3208887] [15 ] [DEBUG] - analog: teletext setup
    [2013-02-25 19:17:36,933] [3208894] [15 ] [DEBUG] - analog:connect wst/vbi codec->tsfilesink
    [2013-02-25 19:17:36,943] [3208904] [15 ] [DEBUG] - analog: AddTvEncoderFilter - MatchPinNames: True - MPEG2ProgramFilter: True
    [2013-02-25 19:17:36,949] [3208910] [15 ] [DEBUG] - analog: AddTvEncoderFilter found:4 encoders
    [2013-02-25 19:17:36,950] [3208911] [15 ] [DEBUG] - analog: try encoder:Hauppauge WinTV-7164 MPEG2 TS Encoder/Mux 0
    [2013-02-25 19:17:36,968] [3208929] [15 ] [DEBUG] - analog: filter Hauppauge WinTV-7164 MPEG2 TS Encoder/Mux does not have mpeg-2 ps output or is a mpeg-2 ts filters
    [2013-02-25 19:17:36,968] [3208929] [15 ] [DEBUG] - analog: try encoder:Hauppauge WinTV-7164 MPEG2 TS Encoder/Mux 1
    [2013-02-25 19:17:36,983] [3208944] [15 ] [DEBUG] - analog: filter Hauppauge WinTV-7164 MPEG2 TS Encoder/Mux does not have mpeg-2 ps output or is a mpeg-2 ts filters
    [2013-02-25 19:17:36,984] [3208945] [15 ] [DEBUG] - analog: try encoder:Hauppauge WinTV-7164 MPEG2 PS Encoder/Mux 2
    [2013-02-25 19:17:36,993] [3208954] [15 ] [DEBUG] - analog: encoder in-pin1:name:I2S Audio [9/0] Direction:Input Connected:False
    [2013-02-25 19:17:36,994] [3208955] [15 ] [DEBUG] - analog: encoder in-pin2:name:Analog ITU Video [9/0] Direction:Input Connected:False
    [2013-02-25 19:17:36,996] [3208957] [15 ] [DEBUG] - analog: ConnectEncoderFilter video:True audio:True
    [2013-02-25 19:17:36,997] [3208958] [15 ] [DEBUG] - analog: found pin#0 name:I2S Audio [9/0] Direction:Input Connected:False
    [2013-02-25 19:17:36,998] [3208959] [15 ] [DEBUG] - analog: found pin#1 name:Analog ITU Video [9/0] Direction:Input Connected:False
    [2013-02-25 19:17:36,998] [3208959] [15 ] [DEBUG] - analog: pinsAvailable on capture filter:5
    [2013-02-25 19:17:36,999] [3208960] [15 ] [DEBUG] - analog: capture pin:0 name:I2S Audio [26/0] Direction:Output Connected:False
    [2013-02-25 19:17:37,038] [3208999] [15 ] [DEBUG] - analog: capture pin:1 name:Analog ITU Video [27/0] Direction:Output Connected:False
    [2013-02-25 19:17:37,093] [3209054] [15 ] [DEBUG] - analog: capture pin:2 name:VBI [27/0] Direction:Output Connected:True
    [2013-02-25 19:17:37,094] [3209055] [15 ] [DEBUG] - analog: ConnectEncoderFilter failed (matchPinNames:True)
    [2013-02-25 19:17:37,095] [3209056] [15 ] [DEBUG] - analog: try encoder:Hauppauge WinTV-7164 MPEG2 PS Encoder/Mux 3
    [2013-02-25 19:17:37,104] [3209065] [15 ] [DEBUG] - analog: encoder in-pin1:name:I2S Audio [9/0] Direction:Input Connected:False
    [2013-02-25 19:17:37,105] [3209066] [15 ] [DEBUG] - analog: encoder in-pin2:name:Analog ITU Video [9/0] Direction:Input Connected:False
    [2013-02-25 19:17:37,106] [3209067] [15 ] [DEBUG] - analog: ConnectEncoderFilter video:True audio:True
    [2013-02-25 19:17:37,107] [3209068] [15 ] [DEBUG] - analog: found pin#0 name:I2S Audio [9/0] Direction:Input Connected:False
    [2013-02-25 19:17:37,107] [3209068] [15 ] [DEBUG] - analog: found pin#1 name:Analog ITU Video [9/0] Direction:Input Connected:False
    [2013-02-25 19:17:37,108] [3209069] [15 ] [DEBUG] - analog: pinsAvailable on capture filter:5
    [2013-02-25 19:17:37,108] [3209069] [15 ] [DEBUG] - analog: capture pin:0 name:I2S Audio [26/0] Direction:Output Connected:False
    [2013-02-25 19:17:37,112] [3209073] [15 ] [DEBUG] - analog: connected pin:0 I2S Audio with pin0
    [2013-02-25 19:17:37,113] [3209074] [15 ] [DEBUG] - analog: capture pin:1 name:Analog ITU Video [28/0] Direction:Output Connected:False
    [2013-02-25 19:17:37,117] [3209078] [15 ] [DEBUG] - analog: connected pin:1 Analog ITU Video with pin1
    [2013-02-25 19:17:37,118] [3209079] [15 ] [DEBUG] - analog: ConnectEncoderFilter succeeded
    [2013-02-25 19:17:37,118] [3209079] [15 ] [DEBUG] - analog: AddTvEncoderFilter succeeded (encoder with 2 inputs)
    [2013-02-25 19:17:37,119] [3209080] [15 ] [DEBUG] - analog: AddTvEncoderFilter succeeded 3
    [2013-02-25 19:17:37,124] [3209085] [15 ] [DEBUG] - analog: FindCapturePin succeeded.
    [2013-02-25 19:17:37,126] [3209087] [15 ] [DEBUG] - analog: AddMpeg2Demultiplexer
    [2013-02-25 19:17:37,128] [3209089] [15 ] [DEBUG] - analog: connect capture->mpeg2 demux
    [2013-02-25 19:17:37,140] [3209101] [15 ] [DEBUG] - analog:AddMpegMuxer()
    [2013-02-25 19:17:37,143] [3209104] [15 ] [ERROR] -
    Mediaportal.TV.Server.TVLibrary.Interfaces.TvException: Cyberlink MPEG Muxer filter (mpgmux.ax) not installed The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
    at Mediaportal.TV.Server.TVLibrary.Implementations.Analog.Components.Encoder.AddMpegMuxer(IFilterGraph2 _graphBuilder, Capture _capture)
    at Mediaportal.TV.Server.TVLibrary.Implementations.Analog.Components.Encoder.CreateFilterInstance(IFilterGraph2 _graphBuilder, Tuner _tuner, TvAudio _tvAudio, Crossbar _crossbar, Capture _capture)
    at Mediaportal.TV.Server.TVLibrary.Implementations.Analog.Graphs.Analog.TvCardAnalog.BuildGraph()
    [2013-02-25 19:17:37,145] [3209106] [15 ] [DEBUG] - analog:Dispose()
    [2013-02-25 19:17:37,145] [3209106] [15 ] [INFO ] - tvcard:FreeAllSubChannels
    [2013-02-25 19:17:37,147] [3209108] [15 ] [DEBUG] - Remove filter from graph: MPEG2 Demultiplexer
    [2013-02-25 19:17:37,148] [3209109] [15 ] [DEBUG] - Remove filter from graph: VBI Codec
    [2013-02-25 19:17:37,148] [3209109] [15 ] [DEBUG] - Remove filter from graph: Hauppauge WinTV-7164 MPEG2 PS Encoder/Mux
    [2013-02-25 19:17:37,150] [3209111] [15 ] [DEBUG] - Remove filter from graph: Tee/Sink-to-Sink Converter
    [2013-02-25 19:17:37,151] [3209112] [15 ] [DEBUG] - Remove filter from graph: Hauppauge WinTV-7164 Analog Capture
    [2013-02-25 19:17:37,152] [3209113] [15 ] [DEBUG] - Remove filter from graph: Hauppauge WinTV-7164 Analog Xbar
    [2013-02-25 19:17:37,152] [3209113] [15 ] [DEBUG] - Remove filter from graph: Hauppauge WinTV-7164 Analog TV Audio
    [2013-02-25 19:17:37,153] [3209114] [15 ] [DEBUG] - Remove filter from graph: Hauppauge WinTV-7164 Analog TV Tuner
    [2013-02-25 19:17:37,153] [3209114] [15 ] [DEBUG] - analog:All filters removed
    [2013-02-25 19:17:37,158] [3209119] [15 ] [DEBUG] - analog: dispose completed
     
    Last edited:

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    I compared the different parsing code of MP1 and TVE35. I think I found a small error which caused a wrong byte offset interpretation.

    Please try the attached TsWriter.ax, it must be placed into C:\Program Files (x86)\Team MediaPortal\MP2-Server\Plugins\SlimTv.Service\TsWriter.ax

    Best is to delete the existing .sdf and start with new scan. Let me know the results, also the TsWriter.log from MP1 folder
     

    Attachments

    • TsWriter.rar
      112.9 KB

    hardcorehire

    Portal Pro
    April 1, 2008
    108
    45
    OHIO
    Home Country
    United States of America United States of America
    I replaced with the above TsWriter and it definitely helped. I had most of the channels show up correctly. The names still didn't come up however, and I also can't seem to get the analog channels to scan in MP2. I just went back and double checked to make sure MP1 TV service scanned the analog channels and it did.

    I'll try and post the new .sdf and TsWriter.log file. Would the MP1 TV DB file help? Where is that located and I can post as well.
     

    hardcorehire

    Portal Pro
    April 1, 2008
    108
    45
    OHIO
    Home Country
    United States of America United States of America
    Here are some more logs I pulled this morning. I'm not sure where the MP1 database is located and if that would help to compare to the new MP2 database I have attached. If it would let me know and I can upload that as well. As you can see from the new screenshot some of the channels are green now and do start without having to edit information. The names don't show up the same as with MP1 TV service not sure that really matters though.

    I'm not sure if you are having any trouble separating MP1 from MP2 data logs or anything I'm not sure which ones are which for logging information.

    As I stated in post above I can't get any analog channels to scan even though it works OK in MP1 TV service. MP2 try's to scan and stops after first scan, whereas MP1 scan and adds around 70 channels which all work fine.

    FYI. I did verify the remote client was able to stream service not sure why it didn't work the first time.
     

    Attachments

    • MP2 New Screenshot.png
      MP2 New Screenshot.png
      325 KB
    • MP2TVE.zip
      87.1 KB

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Thanks for your feedback!

    I'm working on the missing names now, but my intended fix is probably wrong, so it needs more investigation.

    There are still some issues to resolve, some specific for analogue tuning and also general things like supporting different logfiles for TsWriter/TsReader, depending on the hosting application (MP1/MP2).

    Regarding the multiseat support: I saw an exception "error starting streaming server" in one of your older logfiles. This is most probably the cause why multiseat is not working.
     

    hardcorehire

    Portal Pro
    April 1, 2008
    108
    45
    OHIO
    Home Country
    United States of America United States of America
    If you need any more files just let me know or when you're ready to test an update I'll be happy to give it a try.

    Thanks for all the help on this. I really hope to get back into some MP2 skin/plugins over this summer....
     

    Users who are viewing this thread

    Top Bottom