Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

[REL] IPTV.bundle - plug-in that plays IPTV streams from a M3U playlist

CigarasCigaras Members Posts: 122 ✭✭
edited February 24 in Plex Channels
2016-03-21 Update: Now with EPG!



I was unable to find a plugin that would allow me to play custom streams, so after days of learning Python, with help of shopgirl284Mikedm139 and examples found on this forum, I created my first Plex plugin; I present You Plex plugin that plays network streams (a.k.a. IPTV) from a M3U playlist:

https://github.com/Cigaras/IPTV.bundle

Also available in Unsupported AppStore V2

OneTechGenius also made a video guide on how to set up various Plex channels including this one, You can find it on Youtube, a written version is also available.

Included sample playlist is outdated. You can find some playlists scattered along this thread (like posts #388, #399#407, #417#457#500#501 and so on) or just google for them.

 At the moment plugin supports HTTP and RTSP streaming protocols, RTMP also works with some limitations, and MMS did not work for me on any device, some users report that it works in Android and Plex Web.

Please keep in mind that this plugin does not actually play videos by itself, it only passes links to Plex in a format understandable to Plex and the playback is done by Plex client, and it is a known fact that Plex Media Server does not transcode live streams so you might need a third party transcoder like VODServer if client is unable to transcode streams by itself, please read post #97 (especially Apple TV owners) and compatibility section of readme file for more information.

If plugin does not work for You or You don't like it or don't like Plex, but still want to watch IPTV on your Smart TV or other device, You can check post #194 for alternative solutions, but in any way please consider making a small donation if I was of any help for You.

And instead of summary, if someone of more experienced developers could spare a few minutes to test and review my plugin I would be more than grateful, please help me perfect it to be suitable for the App Store.

EPG.png 380.4K
«13456763

Comments

  • jdillingerjdillinger Members, Plex Pass Posts: 339 Plex Pass

    After 3 days of learning Python, with help of shopgirl284 and examples found on this forum, I created my first Plex plugin because I was unable to find what I was looking for, and now, after 2 days of testing, I present You Plex plugin that plays IPTV streams from a M3U playlist: https://github.com/Cigaras/IPTV.bundle.

    If someone of more experienced developers could spare a few minutes and test or review it I would be more than grateful, please help me perfect it to be suitable for the App Store.

    In the meantime, can someone please explain me how do I submit it to unsupported plugins? If I understand correctly, I should create a copy of Plugin Template and fill it, but I can't seem to find the copy button...


    I would like to congratulate for your work. But what is iptv?thanks.


    Sent from my iPhone using Tapatalk - now Free
  • CigarasCigaras Members Posts: 122 ✭✭

    IPTV stands for Internet Protocol television.

  • tengildettengildet Members Posts: 5

    I have just test it and it works as charm thanks.

  • lingpandalingpanda Members, Plex Pass Posts: 159 Plex Pass

    What clients support this? Doesnt work on my Roku or PlexWeb

  • CigarasCigaras Members Posts: 122 ✭✭
    edited October 2013
    lingpanda wrote on October 16 2013, 2:30 AM: »

    What clients support this? Doesnt work on my Roku or PlexWeb

    I tested it on PC and LG TV, but it should work on Roku, too bad I can't test it because I don't have one, would appreciate if You could do that and tell me the results

    And about PlexWeb, this might sound funny, but thats the first time I hear about this product :) Needs testing.

  • jdillingerjdillinger Members, Plex Pass Posts: 339 Plex Pass

    IPTV stands for Internet Protocol television.


    So how do I use this? I have it installed on a win7 machine but not sure what it's supposed to do.


    Sent from my iPhone using Tapatalk - now Free
  • CigarasCigaras Members Posts: 122 ✭✭
    edited October 2013
    jdillinger wrote on October 18 2013, 2:40 AM: »

    So how do I use this? I have it installed on a win7 machine but not sure what it's supposed to do.

    Ugh, not sure what are you missing, so I will explain step by step:

    1. Copy directory IPTV.bundle into forlder C:\Users\YOURACCOUNTNAME\AppData\Local\Plex Media Server\Plug-ins;
    2. Run Plex Media Center;
    3. Wait for it to load, it mught take a few minutes before all the menu appear;
    4. Choose Video Channels (if it doesn't appear, after a few minutes, something went wrong with installation, you can find more info in http://forums.plexapp.com/index.php/topic/41508-how-do-i-install-plugins-manually/);
    5. Now Choose IPTV -> All and you should see a Belarusian channel Sport 1 (just a random channel I found on the internet);
    6. Hit Enter and you should see the video;

    Next step adding your own streams into playlist, open file C:\Users\YOURACCOUNTNAME\AppData\Local\Plex Media\IPTV.bundle\Contents\Resources\playlist.m3u with a notepad and you'll see this:

    #EXTM3U
    #EXTINF:0 tvg-name="Спорт 1" tvg-logo="http://sportodin.ru/_img/logosmall.png" group-title="Sports",Sport 1
    http://109.68.46.67/live/sport1-1.stream/playlist.m3u8?wowzasessionid=429788342
    #EXTINF:0 tvg-name="Спорт 2" tvg-logo="http://futsal.sport.ua/images/news/0/5/14/orig_202851.jpg" group-title="Sports",Sport 2
    http://109.68.46.67/live/sport2-1.stream/playlist.m3u8?wowzasessionid=1511349995
    

    More info om m3u playlist format can be find on wikipedia, attributes tvg-name, tvg-logo and group-title are not required so it can be stripped to:

    #EXTM3U
    #EXTINF:0,Sport 1
    http://109.68.46.67/live/sport1-1.stream/playlist.m3u8?wowzasessionid=429788342
    #EXTINF:0,Sport 2
    http://109.68.46.67/live/sport2-1.stream/playlist.m3u8?wowzasessionid=1511349995
    

    And where to get more streams I can't hep you there, I got mine from my internet provider, there are some public databases http://iptv-player.com/?id=database and http://database.freetuxtv.net/, and you can try google for more.

  • sergrusursergrusur Members Posts: 35

    Hi.

    I want to try this plugin, but I've got a couple of questions:

    You've tested it in Mac or Windows pc?

    Does the plugin admit rtmp links?

    If you need or want some playlist, send me a PM, I've got a lot, or I could tell you where you can find them, from almost all european and some asian channels.

  • CigarasCigaras Members Posts: 122 ✭✭
    edited October 2013
    sergrusur wrote on October 18 2013, 6:12 AM: »

    You've tested it in Mac or Windows pc?

    I tested on PC and LG TV, but should work on any client that is capable of playing desired streams, there are no restrictions.

     
    sergrusur wrote on October 18 2013, 6:12 AM: »

    Does the plugin admit rtmp links?

    Yes, RTSP and MMS streams also work.

    I was wrong, sorry, RTMP does not work at the moment, however RTSP does.

  • jdillingerjdillinger Members, Plex Pass Posts: 339 Plex Pass
    edited October 2013

    Thanks cigaras. So I was trying to use this link http://iptv-player.com/index.php?c=Sports&id=database to add the "ntv basketbal" stream which is located : http://stream.shura.tv/~sh3-sYkd.inSg/33/...Nothing plays. 

    Even the sports1 link that you added doesn't play anything for me.  Is it supposed to?  Thanks.
     

    EDIT:::

    So I went and found this list...

    http://forum.juventuz.org/threads/34175-IPTV-amp-web-TV-channels-(permanent-streams)

    I added to the play list and not one of those streams worked...I wonder what I'm doing wrong.  Running windows 7 64bit, pms .9.8.8.  

    Sent from my iPhone using Tapatalk - now Free

  • meow-mixmeow-mix Members Posts: 25 ✭✭

    Awesome work, but I can't get it to play the streams I input. I know they're working as I can try them elsewhere and they load fine. But never will through this.

    I'd love to get this sorted out, this is what I've been wanting!

    :)

    thanks

  • SiscoPlexSiscoPlex Members, Plex Pass Posts: 634 Plex Pass

    Love where you are going with this.....

    Does not work on my set up..... PMS 9.8.5. Win7 pro 64.

    PMC, plex/web, wdtv live, sony nsz-gs7 and plex chrome extension all confirmed not working with the default streams in your folder nor anything else I add myself.

    LOL... Don't really need it on my web based clients but thought you would like to know what has been tested.

  • acamposxpacamposxp Members Posts: 4 ✭✭
    edited October 2013
    This plugin is very promising . Opens a new horizon for Plex ( the same as in XBMC where it already exists ) . I hope that the project proceed . Some considerations about the plugin :
     
    1. Contrary to what was said , it does not support (yet, hopefully) rtmp , the plugin would have to interpret via rtmpdump address to the player , something that does not. If you want an address rtmp to prove it just ask . rtmp is what is most used in IPTV XBMC ... it should ( in my view ) be prioritized .
    2 . It is important to use a web address as source m3u . This would allow the use of an optimized and updated playlist collectively ( IPTV XBMC does) .
    3 . The increase since the plugin allowing to use a web address for the logos and the division segment is a plus that deserves 10 points ... I hope that does not change the structure of the m3u . So it was much better than in the XBMC .
    4 . If you want a model for EPS xml just let me know .
    5 . Can I use the MEGA links , the GDrive ( temporary ) and Bitcasa ( temporary ) with the plugin without problem ... this is gold .
  • meow-mixmeow-mix Members Posts: 25 ✭✭
    edited October 2013

    I read that live streams won't work if transcoded by PLEX , not sure how true. BUT, I do know when I tried my own stream that  I know is working, I had the transcoder process start when trying to view the stream through your plugin.  Just saying, I would love to get it sorted.

    Now one of the streams I was testing and that  I know was working elsewhere, played fine through the navi-x plugin for PLEX. So if we could get development going on the navix plugin we could essentially do the exact thing you're trying to do here. Mostly all that would need to be added or worked into the navi x plugin would being able to add your own playlist. (since the navi x plugin here for PLEX is far unfinished and you can't add favorites, or a custom playlist, etc..)

    Thanks!!!! :)

  • jdillingerjdillinger Members, Plex Pass Posts: 339 Plex Pass
    So does this work for anyone???


    Sent from my iPhone using Tapatalk - now Free
  • CigarasCigaras Members Posts: 122 ✭✭
    edited October 2013

    Thank You everyone for feedback, wasn't expecting that much of attention :) And I am really sorry to hear that for most of you it doesn't work :( I'll try to answer every question in personally:

    jdillinger wrote on October 20 2013, 1:40 AM: »

    Thanks cigaras. So I was trying to use this link http://iptv-player.com/index.php?c=Sports&id=database to add the "ntv basketbal" stream which is located : http://stream.shura.tv/~sh3-sYkd.inSg/33/...Nothing plays. 

    Even the sports1 link that you added doesn't play anything for me.  Is it supposed to?  Thanks.

    shura.tv is a paid stream so it won't work if you didn't pay for it, I also wasn't able to watch the second link in VLC, just could not connect to s7.webport.tv:1935. And about my Belorussian example channels, they work for me, just tried a few minutes ago, depending on where you live and how good connection you have it may take some time to load tho, would be great if you could try one of my example streams on VLC and if you have any problems there, post a message from VLC log.

    meow-mix wrote on October 20 2013, 3:26 AM: »

    Awesome work, but I can't get it to play the streams I input. I know they're working as I can try them elsewhere and they load fine. But never will through this.

    Would be great to get some more input on this, like what streams and where do they work :)

    The Sisco's wrote on October 20 2013, 2:44 PM: »

    Does not work on my set up..... PMS 9.8.5. Win7 pro 64.

    PMC, plex/web, wdtv live, sony nsz-gs7 and plex chrome extension all confirmed not working with the default streams in your folder nor anything else I add myself.

    This is strange, so same as I said to jdillinger, could you please try to play one of those links in VLC?

    At the moment plugin only supports HTTP and RTSP streaming protocols, some RTMP also work but most do not, I am working on it. And it looks like RTMP and MMS protocols require third party players (SWF and Silverlight respectively), and as I am completely new here, I would appreciate any help.

  • CigarasCigaras Members Posts: 122 ✭✭
    edited October 2013

    A quick heads up on my progress - as I mentioned, RTMP streams require SWF player to play using so called Real RTMP, and I managed to run one that I had SWF player address (swf_url), so I need to figure how to get players for every stream (I guess http://rtmpdump.mplayerhq.hu/ might have some info) or find something like an universal player, not sure...

    Alternatively, according to Plex documentation, it is possible to play RTMP using WebKit, however none of my streams worked this way.

    Update: Real RTMP is not supported by most clients, if I am not misstaken only PC and Mac desctop clients support it, that means Smart TV and Media Boxes wont be able to play RTMP streams, pretty sure same goes for MMS streams, so adding support for RTMP might miss the main purpose I started to build it at all - to play IPTV on a TV without a set-top box, possibly I will make two separate plugins, one that works with RTMP streams, and one that works with all clients :)

  • mikez7442mikez7442 Members Posts: 1

    So I've managed to use your channel to stream a few live streams on my computer, but when I try to play them on my roku, it doesn't work. Is this a known issue or is it just me?

  • jdillingerjdillinger Members, Plex Pass Posts: 339 Plex Pass

    Will this work with a site like First Row Sports? http://firstrowus1.eu/

    If it does, how would I go about extracting a stream?

    Thanks.

  • AchajrAchajr Members Posts: 1

    The possibility of using the m3u list online (dropbox for example) is a most promising avenue to use a playlist site. You can place it between implementations future?

«13456763
Sign In or Register to comment.