IPTV not working (2 Viewers)

Raice

New Member
June 14, 2007
2
0
43
Home Country
Russian Federation Russian Federation
Hello!

I'm trying to setup Mediaportal to receieve stream from VLC player, but with no success.

I started VLC to stream video by http with video codec h.264 and audio codec mp3.
I can play this stream using vlc, but media portal gives me an error (see attached png)

I took all of the log files from

C:\Users\All Users\Team MediaPortal\MediaPortal TV Server\log

and ts files from

C:\Users\All Users\Team MediaPortal\MediaPortal TV Server\timeshiftbuffer

Ts file live2-0.ts.tsbuffer1.ts plays fine in vlc and WMP

These files are attached to this post.

Please help me.
 

Attachments

  • tsbuffer.png
    tsbuffer.png
    74.2 KB

dodobird

New Member
November 18, 2010
2
0
Home Country
Netherlands Netherlands
Hi All,

My Provider Glashartmedia (Netherlands) also uses the special header extensions headers, so I needed to download this version of the filter: MPIPTVSource_hEx_v1_release.zip, see this post: https://forum.team-mediaportal.com/...ptv-not-working-78629/index13.html#post654127

Thanks for the great update of the IPTV filter, I can now watch my IPTV channels with my HTPC, no need for the use of Amino 110 set top box anymore :)
Recording of 2progs + watching another is no problem.


But there is one thing: I also have the channel 1000 problem!
After a refresh / scan of all channels from the m3u file, all channel id settings are set back to 1000.
(To fix this i have to adjust all 150 channel id's again)

And then zapping channels by id does not work in mediaportal anymore :oops:

Can someone please check the code?

Referring to the code below, could it be that the IPTV filter does not return a correct value for 'channel.LogicalChannelNumber'?

Ps. I'm using the latest 1.1.1 stable version.

Greetings,
M


It looks like the logic behind of LCN (logical channel numbers) was broken at least for DVB-C and has been fixed in RC 1.1.0 RC2 (0002821: DVB-C channel scan is missing LCN information - MediaPortal Bugtracker). So lets try to install last release...

If it won't work there is some logic about LCN here TvEngine3/TVLibrary/SetupTv/Sections/CardDvbIP.cs. So we might have a look there

Code:
           TuningDetail currentDetail = layer.GetChannel(channel.Provider, channel.Name, channel.ServiceId);
            if (currentDetail == null)
            {
              //add new channel
              exists = false;
              dbChannel = layer.AddChannel(channel.Provider, channel.Name);
              dbChannel.SortOrder = 10000;
              if (channel.LogicalChannelNumber >= 1)
              {
                dbChannel.SortOrder = channel.LogicalChannelNumber;
              }
            }
 

Stepko

Retired Team Member
  • Premium Supporter
  • September 29, 2007
    186
    152
    Hamburg/Wolfsburg
    Home Country
    Germany Germany
    AW: Re: IPTV not working

    Referring to the code below, could it be that the IPTV filter does not return a correct value for 'channel.LogicalChannelNumber'?

    If the channelNumbers are incorrect it might be a problem within the IPTV part of the TV-Server. The IPTV-Filter as discussed here has nothing to do with the channel numbers. It just gets the IP number of the channel and passes the TV data to the TV-Server.
    So the problem might be the IPTV "card" that is included in the TV server. If there was a problem with the channel numbers in the DVB-C part the chance that the bug is also in the IP part is quite high :)

    But I've never looked into that source code and I won't have time to do that the next days.

    :sorry: but I can't help

    Stepko
     

    velis

    MP Donator
  • Premium Supporter
  • July 16, 2009
    237
    50
    Radovljica
    Home Country
    Slovenia Slovenia
    Stepko & Dimka,

    I apologize if you guys discussed this already, but:
    I'd like to add a bit of functionality for the filter to "stream" a static .ts stream when no data would be available at the server.
    I'd like to know if:
    1. I better wait for these changes in filter to go into SVN
    2. I can do the modifications on the version currently in SVN
    3. There's another way I could add this

    The purpose of this change would of course be elimination of the 1+ minute delay when a channel is selected that is currently not on the air, so to speak. This delay is extremely annoying and my wife and kids always manage to completely crash MP during this 1 minute delay.

    So instead of giving them the oportunity to crash the HTPC, I'd just stream a .ts file (embedded in the .dll or separately in the .dll folder) with a simple animation and a message about no data being available.

    So which of the above three options can I take?
     

    dodobird

    New Member
    November 18, 2010
    2
    0
    Home Country
    Netherlands Netherlands
    Re: AW: Re: IPTV not working

    Hi Stepko,

    If you can take a peek at the code, when you have some spare time again, that would be great!
    Or is there somebody else that has the knowledge and some spare time?

    :D


    Ps. I personally have knowledge of PHP, but I do not know where to start to find/fix this 'bug', it's programmed in C, isn't it?
    Where is the latest source and what should i need to create/compile the code needed for this?

    Referring to the code below, could it be that the IPTV filter does not return a correct value for 'channel.LogicalChannelNumber'?

    If the channelNumbers are incorrect it might be a problem within the IPTV part of the TV-Server. The IPTV-Filter as discussed here has nothing to do with the channel numbers. It just gets the IP number of the channel and passes the TV data to the TV-Server.
    So the problem might be the IPTV "card" that is included in the TV server. If there was a problem with the channel numbers in the DVB-C part the chance that the bug is also in the IP part is quite high :)

    But I've never looked into that source code and I won't have time to do that the next days.

    :sorry: but I can't help

    Stepko
     

    velis

    MP Donator
  • Premium Supporter
  • July 16, 2009
    237
    50
    Radovljica
    Home Country
    Slovenia Slovenia
    OMG, I'm so with you Vellis. It's almost like we share the same wife and kids ;)

    Would love to have this feature added.

    Well, Stepko still needs to respond. With all the development going on with this filter I can't just jump in with any old new feature :D
    As for sharing wife / kids, rather don't tell me :) If there's enough for everyone, I'd rather not know :D
     

    Stepko

    Retired Team Member
  • Premium Supporter
  • September 29, 2007
    186
    152
    Hamburg/Wolfsburg
    Home Country
    Germany Germany
    AW: Re: IPTV not working

    @Stepko & Dimka,
    I'd like to know if:
    1. I better wait for these changes in filter to go into SVN
    2. I can do the modifications on the version currently in SVN
    3. There's another way I could add this

    The purpose of this change would of course be elimination of the 1+ minute delay when a channel is selected that is currently not on the air, so to speak. This delay is extremely annoying and my wife and kids always manage to completely crash MP during this 1 minute delay.

    Hi velis,

    first of all: This is a good idea :) My wife does the same, if MP cannot tune to a channel it will hang for 30 secs and she presses all buttons on the remote...

    To your questions:
    1. You can wait for these changes to go into svn. But nobody knows when this will happen
    2. Bad idea. Very bad idea, cause we changed alot in the filter.
    3. You could base your changes on our latest version. You can get a .patch file to update the current svn to our current version here.

    I think this feature could be added pretty easy. But I don't know if it works with the tv server. It depends on how you want this feature to work: Just present the video file instead of the stream would be no problem. But showing the video and then switching to the stream later can cause some problems. You don't know which video codec is used and you don't know when a new frame starts (this would be the right time to switch the stream). That must be tested before you can say if it will ever work.

    Stepko
     

    velis

    MP Donator
  • Premium Supporter
  • July 16, 2009
    237
    50
    Radovljica
    Home Country
    Slovenia Slovenia
    OK, I will attempt with the patch version then.

    Actually I wasn't even thinking of supporting the return of the UDP stream.
    The basic code would be something like this:

    1. stream UDP / whatever (my implementation would probably be limited to UDP code only)
    2. if no data for 1 sec
    3. stream the .ts
    4. else
    5. goto step 1

    MP player does handle codec changes quite OK (changing channels), so maybe a risk in the other algorithm (one that allowed return of stream data) might be OK. The problem is that I can't really test this except artificially.
    I also have two problems I'm already aware of:
    1. Problems with streaming the .ts itself: I would have to know it's exact length so that I wouldn't stream too much of it in advance. Any suggestion would be appreciated.
    2. The stream itself: I got a pathetic exploding ipod video off YouTube, but I guess this is not exactly legit to distribute. Besides, the non-service message itself must also be translated. So I was thinking that the only real solution might be that I only add support + provide instructions on how to create the .ts and then let the community provide whatever .ts files they want.
    2.1. The only other (and better BTW) way of solving this problem would be to solve it in MP itself. Translations wouldn't be a problem there.

    Darn, too much writing again :(
    Sorry

    Will see what I can do about this mod then :)
     

    dimka

    Portal Pro
    January 20, 2009
    117
    4
    Hillerod
    Home Country
    Denmark Denmark
    Hi guys !

    We have already discussed with Stepko the posibilty of having of SVN server for this particular filter. I promised to install one and as usually it happens became busy (and lazy :)). But I see there is an intrest of comunity to extend this filter so I will try to get SVN server ready asap so we can share our chnages in one place.

    br
    dimka
     

    Users who are viewing this thread

    Top Bottom