Using MePo TV Server 1.23 via MPExtended/WebMediaPortal as a Backend for Plex (1 Viewer)

benicehavefun

Portal Member
September 12, 2014
42
10
Home Country
United States of America United States of America
Love MediaPortal 1! I've been using it for years, originally with the MePo client and for the last few years as a backend for Kodi. The TV Server support for the HD-PVR and IP channel tuning allows me to use MePo with DirecTV -- which works great.

My current interest is to get TV Server working with Plex, so I can use the HD-PVR with a cable TV box in a remote location. This local cable company has poor support for the HDHomeRun Prime (via CableCard), so using a capture box like the HD-PVR looks like a good option. Remote recording of OTA broadcasts is an area where Plex has really gotten good, and so I'd like to throw some remote cable box recording into the mix.

My plan is to use a virtual tuner for Plex, that supports M3U playlists, called xTeVe:

xTeVe - IPTV for Plex DVR

Based on an older post in this very forum, I believe I have what I need to be able to create an M3U playlist for all channels through MPExtended and WebMediaPortal:

is ther a mpextended plugin (slimtv) for mp1

Post #5 has some specific information about doing this, the problem is I don't understand how to go about it. Specifically, this part:

SELECT concat('#EXTINF:0,',displayName) , concat('http:/xxx.dynalias.org:8080/Stream/TV?item=',idChannel,'&transcoder=Android VLC HD') FROM channel
where isTV=1;

ex.: (select profile according to upload bandwith)
#EXTM3U
#EXTINF:0,
http://xxx.dynalias.org:8080/Stream/TV?item=1048&transcoder=Android VLC HD

Can anyone decipher the above, and give me some additional detail on how to create an M3U playlist for all channels? It's easy enough to output an M3U for a single channel -- which, I've done and tested via VLC. So, the basics are all working. Here's what my M3U looks like for one channel:


I especially don't understand the first part beginning with SELECT. I this a database command? Or, is it some sort of HTML or other code I'm supposed to execute somewhere to generate the M3U playlist? Is that playlist then static, or does it have to be regenerated regularly? Why is the transcoder different, and what's the significance of that? Why does my single channel playlist have a continuationId and the example doesn't? More questions than answers at this point -- sorry.

The approach I'm planning to take would be:

TV Server --> MediaPortal Extended / WebMediaPortal --> xTeVe Virtual Tuner --> Plex Media Server
 

ajs

Development Group
  • Team MediaPortal
  • February 29, 2008
    15,616
    10,544
    Kyiv
    Home Country
    Ukraine Ukraine
    I especially don't understand the first part beginning with SELECT
    Its DB Command and for you:
    Code:
    SELECT concat('#EXTINF:0,',displayName) , concat('http://hometheater-pc2:8080/Stream/TV?item=',idChannel,'&transcoder=Android VLC HD') FROM channel where isTV=1;
    If in DB one channel with displayName - NFL Network HD and idChannel - 382 should return:
    Code:
    #EXTINF:-1, NFL Network HD
    http://hometheater-pc2:8080/Stream/TV?item=382&transcoder='Android VLC HD'
     

    benicehavefun

    Portal Member
    September 12, 2014
    42
    10
    Home Country
    United States of America United States of America
    Its DB Command and for you:
    Code:
    SELECT concat('#EXTINF:0,',displayName) , concat('http://hometheater-pc2:8080/Stream/TV?item=',idChannel,'&transcoder=Android VLC HD') FROM channel where isTV=1;
    If in DB one channel with displayName - NFL Network HD and idChannel - 382 should return:
    Code:
    #EXTINF:-1, NFL Network HD
    http://hometheater-pc2:8080/Stream/TV?item=382&transcoder='Android VLC HD'
    Thanks for responding! I've made some progress since I originally posted this, including determining that this was a MySQL command. I've been using MySQL Workbench, which I've only used occasionally in the past -- but have been able to output an M3U file that xTeVe has been able to import. And, it looks like this:

    Code:
    #EXTM3U
    #EXTINF:-1,The Movie Channel (Pacific)
    http://hometheater-pc2:8080/Stream/TV?item=364&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,Encore Classic
    http://hometheater-pc2:8080/Stream/TV?item=365&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,Encore Suspense
    http://hometheater-pc2:8080/Stream/TV?item=366&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,Encore Black
    http://hometheater-pc2:8080/Stream/TV?item=367&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,Encore (Pacific)
    http://hometheater-pc2:8080/Stream/TV?item=371&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,CBSw (KCBS-DT)
    http://hometheater-pc2:8080/Stream/TV?item=372&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,NBCw (KNBC-DT)
    http://hometheater-pc2:8080/Stream/TV?item=373&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,ABCw (KABC-DT)
    http://hometheater-pc2:8080/Stream/TV?item=374&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,FOXw (KTTV-DT)
    http://hometheater-pc2:8080/Stream/TV?item=375&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,AXS TV
    http://hometheater-pc2:8080/Stream/TV?item=377&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,ESPN HD
    http://hometheater-pc2:8080/Stream/TV?item=378&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,The Movie Channel HD
    http://hometheater-pc2:8080/Stream/TV?item=379&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,Encore HD
    http://hometheater-pc2:8080/Stream/TV?item=380&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,Turner Network TV HD
    http://hometheater-pc2:8080/Stream/TV?item=381&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,NFL Network HD
    http://hometheater-pc2:8080/Stream/TV?item=382&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,ESPN2 HD
    http://hometheater-pc2:8080/Stream/TV?item=383&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,NBA TV HDTV
    http://hometheater-pc2:8080/Stream/TV?item=384&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,NBC Sports Network HD
    http://hometheater-pc2:8080/Stream/TV?item=385&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,Audience Channel
    http://hometheater-pc2:8080/Stream/TV?item=386&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,National Geographic Channel HD
    http://hometheater-pc2:8080/Stream/TV?item=387&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,Home & Garden Television HD
    http://hometheater-pc2:8080/Stream/TV?item=388&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,Lifetime Movie Network HD
    http://hometheater-pc2:8080/Stream/TV?item=390&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,The Learning Channel HD
    http://hometheater-pc2:8080/Stream/TV?item=391&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,History HD
    http://hometheater-pc2:8080/Stream/TV?item=392&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,Big Ten HD
    http://hometheater-pc2:8080/Stream/TV?item=393&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,USA Network HD
    http://hometheater-pc2:8080/Stream/TV?item=394&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,TBS HD
    http://hometheater-pc2:8080/Stream/TV?item=395&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,FX HD
    http://hometheater-pc2:8080/Stream/TV?item=396&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,Syfy HD
    http://hometheater-pc2:8080/Stream/TV?item=397&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,Bravo HD
    http://hometheater-pc2:8080/Stream/TV?item=398&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,CNN HD
    http://hometheater-pc2:8080/Stream/TV?item=399&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,NHL Network HD
    http://hometheater-pc2:8080/Stream/TV?item=400&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,Spike TV HD
    http://hometheater-pc2:8080/Stream/TV?item=401&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,CBS Sports Network HD
    http://hometheater-pc2:8080/Stream/TV?item=402&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,Fox Sports 2 HD
    http://hometheater-pc2:8080/Stream/TV?item=403&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,AMC HD
    http://hometheater-pc2:8080/Stream/TV?item=404&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,Disney Channel HD
    http://hometheater-pc2:8080/Stream/TV?item=406&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,VH1 HD
    http://hometheater-pc2:8080/Stream/TV?item=407&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,Lifetime HD
    http://hometheater-pc2:8080/Stream/TV?item=408&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,Tennis Channel HD
    http://hometheater-pc2:8080/Stream/TV?item=409&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,ESPN University HD
    http://hometheater-pc2:8080/Stream/TV?item=410&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,MLB Network HD
    http://hometheater-pc2:8080/Stream/TV?item=411&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,Comedy Central HD
    http://hometheater-pc2:8080/Stream/TV?item=412&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,PBSe (SD01)
    http://hometheater-pc2:8080/Stream/TV?item=413&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,Turner Classic Movies HD
    http://hometheater-pc2:8080/Stream/TV?item=414&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,truTV HD
    http://hometheater-pc2:8080/Stream/TV?item=415&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,BBC America HD
    http://hometheater-pc2:8080/Stream/TV?item=416&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,Hallmark Channel HD
    http://hometheater-pc2:8080/Stream/TV?item=417&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,FXX HD
    http://hometheater-pc2:8080/Stream/TV?item=418&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,Do-It-Yourself Network HD
    http://hometheater-pc2:8080/Stream/TV?item=419&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,Encore Action HD
    http://hometheater-pc2:8080/Stream/TV?item=420&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,TV Land HD
    http://hometheater-pc2:8080/Stream/TV?item=421&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,ION Television HD
    http://hometheater-pc2:8080/Stream/TV?item=422&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,Fox Sports 1 HD
    http://hometheater-pc2:8080/Stream/TV?item=423&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,Sundance HD
    http://hometheater-pc2:8080/Stream/TV?item=424&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,Arts & Entertainment HD
    http://hometheater-pc2:8080/Stream/TV?item=431&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,WGN America HD
    http://hometheater-pc2:8080/Stream/TV?item=484&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,Freeform HD
    http://hometheater-pc2:8080/Stream/TV?item=488&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,MTV Classic
    http://hometheater-pc2:8080/Stream/TV?item=502&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,IFC HD
    http://hometheater-pc2:8080/Stream/TV?item=507&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,BBC World News HD
    http://hometheater-pc2:8080/Stream/TV?item=510&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,CNBC HD
    http://hometheater-pc2:8080/Stream/TV?item=530&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,MSNBC HD
    http://hometheater-pc2:8080/Stream/TV?item=533&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,Comedy.TV HD
    http://hometheater-pc2:8080/Stream/TV?item=544&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,Turner Classic Movies
    http://hometheater-pc2:8080/Stream/TV?item=585&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,Fox Sports 2
    http://hometheater-pc2:8080/Stream/TV?item=586&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,Hallmark Channel
    http://hometheater-pc2:8080/Stream/TV?item=587&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,NBC Sports Network
    http://hometheater-pc2:8080/Stream/TV?item=588&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,Hallmark Movies
    http://hometheater-pc2:8080/Stream/TV?item=589&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,FXX
    http://hometheater-pc2:8080/Stream/TV?item=641&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,Discovery Family Channel HD
    http://hometheater-pc2:8080/Stream/TV?item=898&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,American Heroes Channel HD
    http://hometheater-pc2:8080/Stream/TV?item=899&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,FX Movie Channel HD
    http://hometheater-pc2:8080/Stream/TV?item=900&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,Outdoor Channel HD
    http://hometheater-pc2:8080/Stream/TV?item=920&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,Fox Sports Detroit HD
    http://hometheater-pc2:8080/Stream/TV?item=1000&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,CWw (KTLA-DT)
    http://hometheater-pc2:8080/Stream/TV?item=1006&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,AccuWeather HD Satellite
    http://hometheater-pc2:8080/Stream/TV?item=1037&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,ION Television Satellite Feed (Pacific) Satellite
    http://hometheater-pc2:8080/Stream/TV?item=1041&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,CNN International Satellite
    http://hometheater-pc2:8080/Stream/TV?item=1061&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,TBS HD (Pacific) Satellite
    http://hometheater-pc2:8080/Stream/TV?item=1071&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,Turner Network TV HD (Pacific) Satellite
    http://hometheater-pc2:8080/Stream/TV?item=1072&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,Encore Family
    http://hometheater-pc2:8080/Stream/TV?item=1073&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,Encore Westerns
    http://hometheater-pc2:8080/Stream/TV?item=1074&transcoder=Android%20VLC%20Direct
    #EXTINF:-1,Audience Channel HD Satellite
    http://hometheater-pc2:8080/Stream/TV?item=1075&transcoder=Android%20VLC%20Direct

    So far, so good. In addition, I've been able to use mc2xml to grab my already defined SchedulesDirect data and save it in xmltv format. Configuration went smoothly then in xTeVe and Plex.

    The problem is that I can't figure out a WebMediaPortal URL that will work. I've tried most transcoder variations that I could identify, including:

    http://hometheater-pc2:8080/Stream/TV?item=[idChannel]&transcoder=Direct
    http://hometheater-pc2:8080/Stream/TV?item=[idChannel]&transcoder=Android VLC Direct
    http://hometheater-pc2:8080/Stream/TV?item=[idChannel]&transcoder=Android VLC HD
    http://hometheater-pc2:8080/Stream/TV?item=[idChannel]&transcoder=HTTP Live Streaming HD
    http://hometheater-pc2:8080/Stream/TV?item=[idChannel]&transcoder=FFmpeg HTTP Live Streaming HD

    The spaces in the above URLs are %20's, which disappear when posting.

    All return playback errors in Plex. The only way, so far, I've been able to successfully get any WebMediaPortal stream going is through VLC using the "transcoder=Direct" construct. Any ideas on what the correct streaming URL should be?
     
    Last edited:

    benicehavefun

    Portal Member
    September 12, 2014
    42
    10
    Home Country
    United States of America United States of America

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    15,616
    10,544
    Kyiv
    Home Country
    Ukraine Ukraine
    Sorry, i dont use TV in Mediaportal at all. :)

    --
    WBR, ajs :):whistle::coffee:
     

    CanadianEh

    MP Donator
  • Premium Supporter
  • July 21, 2011
    130
    16
    Home Country
    United States of America United States of America
    A bit more progress. With WebMediaPortal authentication disabled, I'm able to get the above two URL's to stream for about 5 seconds using Kodi's IPTV Simple Client (which is proving to be a quicker way to test than via Plex Media Server).
    Did you ever get this working? I'm curious as I'm potentially looking to do the same, myself.
     

    benicehavefun

    Portal Member
    September 12, 2014
    42
    10
    Home Country
    United States of America United States of America
    Did you ever get this working? I'm curious as I'm potentially looking to do the same, myself.
    Would have been cool, but no. For this, and a few other reasons, I moved on to Channels DVR. More or less the same idea though, as I'm using Channels as a backend for Plex with xTeVe as a virtual tuner. I've lost touch somewhat with what's going on with MePo, but Channels is being very actively developed (which is key, as there's a subscription).

    In addition to HDHomeRun tuners, they support TV Everywhere (which gives me pretty much all of the cable/satellite only channels I wanted using DTV credentials). I also get content from Pluto TV (free), and Samsung TV Plus (also free) via a couple of Docker containers. It's a great setup, and with Plex you can amalgamate your content with other, remote Plex servers (like from other family members) to get OTA (and other) lineups from different markets.
     

    Users who are viewing this thread

    Top Bottom