Finally working IP-TV solution for TV Server! (1 Viewer)

Status
Not open for further replies.

Automate

Portal Pro
December 14, 2008
55
1
Home Country
United States of America United States of America
dima, should mms links work such as mms://live1.wm.skynews.servecast.net/skynews_wmlz_live300k
or RealMedia streams rtsp://
 

velis

MP Donator
  • Premium Supporter
  • July 16, 2009
    237
    50
    Radovljica
    Home Country
    Slovenia Slovenia
    Have ported Velis's patch to my HTTP stream reader. At least scanning goes faster. Will report later about channel switching

    Update. Hm.. Didn't notice an update of patch futher in the Vilis' post. Will try to aply second patch.

    Dimka,

    I'm expecting eventually you'll post a patch for this so:

    Make sure you don't add anything to the UDP grabber thread. The whole thing is so sensitive to packet loss practically anything can break it. My final solution uses select() function to wait for socket data. But even moving this function before the sockrecv() caused dropped packets (plenty of them). So practically anything in that loop can cause dropping. I'm afraid that even the buffer posting code can cause some losses, but I didn't want to make the code SO complicated to solve this potentiol problem. I'd need additional threads / processing if I wanted to handle that too. And the result is currently acceptable so there wasn't much need for that.

    Just a heads up so that you don't unintentionally break UDP grabbing.
     

    chameleon82

    Portal Member
    September 22, 2009
    26
    0
    Home Country
    Russian Federation Russian Federation
    Is possible to start show TV channel in 1 second ? May be starting with no key-frame and bad picture while no keyframe, but starts show so quickly.
     

    Automate

    Portal Pro
    December 14, 2008
    55
    1
    Home Country
    United States of America United States of America
    dimka, with this

    #EXTM3U
    #EXTINF:1,NASA
    http://playlist.yahoo.com/makeplaylist.dll?id=1369080&segment=149773

    I get the following log here C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal TV Server\log\MPIPTV-2010-01-12.Log

    12-01-2010 23:17:16.577 Load: Parsed parameters DestIP:playlist.yahoo.com username/User:(null) Protocol:http GET_string:?id=1369080&segment=149773 port:80!!!
    12-01-2010 23:17:16.577 DoBufferProcessingLoop: Parsed parameters DestIP:playlist.yahoo.com username/User:(null) Protocol:http GET_string:?id=1369080&segment=149773 port:80!!!
    12-01-2010 23:17:16.577 33
    12-01-2010 23:17:16.639 Protocol is not supported
    12-01-2010 23:17:16.639 DoBufferProcessingLoop: Parsed parameters DestIP:(null) username/User:(null) Protocol: GET_string:(null) port:0!!!
    12-01-2010 23:17:38.733 Protocol is not supported
    12-01-2010 23:17:38.733 Protocol is not supported
     

    Webcomber

    Portal Member
    January 5, 2006
    26
    0
    Home Country
    Netherlands Netherlands
    IP-TV 1.0.2 cannot Record !?

    Hi!

    My IP-TV setup refuses to start recording from MP interface, either from Guide, or Record Now.
    Recording from the TVserver GUI, Manual Control, works fine.

    I cannot get this to work on my 1.0.1.0 or present 1.0.2 installs.

    I have tried 1.1.0beta, but that is a whole different story: When I load+scan just a handfull of channels (say 6) recording will work fine, as expected.
    However, when I load+scan all my ip-tv channels (about 32) MP is no longer able to show the TV Guide, it comes up with an error about missing Label. The default channel is however viewable and recordable. But as there is no Guide, I can also not select different channels. Strangely enough, in MP from TV menu clicking on Search will show me TV show catagories with content spread over many days and channels. So that part does read the TV Guide/Schedule.
    But this is the beta and it would also not produce sound for interface moves (slect up/down/next etc.) nor for Bass player, and would crash on some other seldom used (by me) functions, so I went back to 1.0.2.

    I see reported problem:
    Please update the older component to the same version as the newer one.
    TvServer Version: 1.0.2.0
    TvPlugin Version: 1.0.2.22555


    I configured MP to log details Debug, started MP, viewed one channel (Nederland 1) for a couple of seconds, clicked Record now on TV window, nothing happens or is reported, next I go into Guide, click an item in the future, select record, nothing happens or is reported. Selecting a Notification for the same schedule item does work and puts the !Notify icon on the item bar.

    I get a lot of
    2010-01-13 09:46:24.703125 [SetupTv]: ServiceHelper: Could not check whether the tvservice is running. Please check your network as well.
    Error: System.Runtime.Remoting.RemotingException: Requested Service not found


    in the TVServer error log, eventhough it is running?


    And here is another error.log exerpt on Scheduling:

    Exception rethrown at [0]:
    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    at TvControl.IController.get_IdServer()
    at SetupTv.ServiceHelper.get_IsRunning()
    2010-01-13 10:01:19.356522 [MPMain]: Exception in Schedule.Persist() with Message insert into Schedule ( idChannel, scheduleType, programName, startTime, endTime, maxAirings, priority, directory, quality, keepMethod, keepDate, preRecordInterval, postRecordInterval, canceled, recommendedCard ) values ( ?idChannel, ?scheduleType, ?programName, ?startTime, ?endTime, ?maxAirings, ?priority, ?directory, ?quality, ?keepMethod, ?keepDate, ?preRecordInterval, ?postRecordInterval, ?canceled, ?recommendedCard ); select LAST_INSERT_ID();
    2010-01-13 10:01:40.731522 [MPMain]: Exception in Schedule.Persist() with Message insert into Schedule ( idChannel, scheduleType, programName, startTime, endTime, maxAirings, priority, directory, quality, keepMethod, keepDate, preRecordInterval, postRecordInterval, canceled, recommendedCard ) values ( ?idChannel, ?scheduleType, ?programName, ?startTime, ?endTime, ?maxAirings, ?priority, ?directory, ?quality, ?keepMethod, ?keepDate, ?preRecordInterval, ?postRecordInterval, ?canceled, ?recommendedCard ); select LAST_INSERT_ID();


    Please help?!
     

    dimka

    Portal Pro
    January 20, 2009
    117
    4
    Hillerod
    Home Country
    Denmark Denmark
    Automate

    I see the version you have has parsed source url wrongly. My version has written next lines

    13-01-2010 18:33:49.717 [63c]Load: Parsed parameters DestIP:playlist.yahoo.com username/User:(null) Protocol:http GET_string:/makeplaylist.dll?id=1369080&segment=149773 port:80!!!
    13-01-2010 18:33:49.719 [df8]Starting grabber thread
    13-01-2010 18:33:49.719 [df8]DoBufferProcessingLoop: Parsed parameters DestIP:playlist.yahoo.com username/User:(null) Protocol:http GET_string:/makeplaylist.dll?id=1369080&segment=149773 port:80!!!
    13-01-2010 18:33:49.937 [63c]Load: Parsed parameters DestIP:playlist.yahoo.com username/User:(null) Protocol:http GET_string:/makeplaylist.dll?id=1369080&segment=149773 port:80!!!
    13-01-2010 18:33:49.939 [19f0]Starting grabber thread
    13-01-2010 18:33:49.939 [19f0]DoBufferProcessingLoop: Parsed parameters DestIP:playlist.yahoo.com username/User:(null) Protocol:http GET_string:/makeplaylist.dll?id=1369080&segment=149773 port:80!!!
    13-01-2010 18:33:50.041 [19f0]Read 452 bytes at pos 0 of 131072
    13-01-2010 18:33:50.137 [19f0]Posting 452 / 131072 bytes at seq # 0

    So it managed to find correct GET string /makeplaylist.dll?id=1369080&segment=149773

    Anyway - it doesn't find any video on the stream as reply is very short 452 bytes. I assume it's just header with real URL which should be taken
    UPDATE: I have looked into package it receives. It's XML with reference URL in MMS format.

    Regarding mms protocol. Acoordinaly to wiki Microsoft Media Server - Wikipedia, the free encyclopedia its a complex of protocols taken in some order to find streaming protocol and port. So far you can try to replace mms with http but not necesary source server will stream on http protocol.

    velis
    I don't do any changes/patches in officcial filter. My filter is just a clone of Mikeko's and doesn't contain any UDP processing - just http. So far - if you put my filter UDP doesn't work and vice versa.

    Richardd
    if you don't find log in format MPIPTV-yyyy-mm-dd.Log then you probably didn't replace original Mikeiko's filter with my one.
     

    Richardd

    MP Donator
  • Premium Supporter
  • October 16, 2009
    53
    1
    Reusel
    Home Country
    Netherlands Netherlands
    Dimka, you´re right now I have a log-file:

    13-01-2010 19:36:11.480 Load: Parsed parameters DestIP:0.0.0.0 username/User:(null) Protocol:udp GET_string: port:1234!!!
    13-01-2010 19:36:11.591 Load: Parsed parameters DestIP:tempo12.omroep.nl username/User:(null) Protocol:http GET_string: port:80!!!
    13-01-2010 19:36:11.593 DoBufferProcessingLoop: Parsed parameters DestIP:tempo12.omroep.nl username/User:(null) Protocol:http GET_string: port:80!!!
    13-01-2010 19:36:11.641 33
    13-01-2010 19:36:11.644 Load: Parsed parameters DestIP:tempo12.omroep.nl username/User:(null) Protocol:http GET_string:/nos_journaal24-bb port:80!!!
    13-01-2010 19:36:11.646 DoBufferProcessingLoop: Parsed parameters DestIP:tempo12.omroep.nl username/User:(null) Protocol:http GET_string:/nos_journaal24-bb port:80!!!
    13-01-2010 19:36:11.691 33
    13-01-2010 19:36:33.680 Load: Parsed parameters DestIP:0.0.0.0 username/User:(null) Protocol:udp GET_string: port:1234!!!
    13-01-2010 19:36:33.687 Load: Parsed parameters DestIP:0.0.0.0 username/User:(null) Protocol:udp GET_string: port:1234!!!
     

    Automate

    Portal Pro
    December 14, 2008
    55
    1
    Home Country
    United States of America United States of America
    Is there any chance that the IPTV Source Filter will use codecs besides MPEG-2 and H.264? It seems as though the URLs that myself and Richardd are trying are using the WMV3 codec which does not work.
     
    Status
    Not open for further replies.

    Users who are viewing this thread

    Top Bottom