If you have not already, we suggest setting your Plex username to something else rather than email which is displayed on your posts in forum. You can change the username at https://app.plex.tv/desktop#!/account
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] Dreambox plugin 0.1 is done

1356763

Comments

  • TheSatmanTheSatman Posts: 227Members ✭✭
    oysteing wrote:


    I'm able to get the bouquetes from the Dreambox, and I'm also able to get the channels listed. Then, when selecting a channel, the Dreambox is zapping to the chosen channel. So far so good. But when it comes to actually starting the stream, I'm stuck.

    Maybe some other of you could have a quick look at what's necessary to start the stream? The correct stream url is already ready.

    Hey Oysteing. I applaud your efforts !! Not sure, but if you read the very first post it says : "The field called "Streaming video port" should contain the port from which you stream transcoded material (if any)." I wonder if this means that a VLC server still is required? Would be super if PMS could take over this function to simplify things...

    Are you working on a E1 or E2 solution? I am still on E1, have not yet upgraded to HD ;o)

    The era of movie viewing in the dark has passed!!!

     

    Plex Media Server: Windows 10 Home x64 ,AMD A10-5800K 4,10 GHz, 16Gb RAM

    Media Storage: 2 + 1 TB Network shared USB Hard Drive // 

    8 TB Synology Hybrid Raid (with data protection of 1 disk fault-tolerance)on XPEnology DSM 5.0- 4458 VM on VMware ESXi 5.1.0, HP ProLiant N54L

    Plex Clients: Roku 3 // Xbox 360 // Multiple Android devices // iPad1 // iPad3 // iPod Touch // Plex/Web

    Home entertainment: Pioneer VSX-921 // Pioneer BDP-140 // 5500ANSI Full HD 1080P DLP 3D Projector // 85" Mocom 2D /HD, Passive/Active 3D Projection Screen - 20 Gain // 32" HDMI TV // 50Mb-50Mb Fiber internet connection

  • oysteingoysteing Posts: 61Members, Plex Pass Plex Pass
    TheSatman wrote:

    Hey Oysteing. I applaud your efforts !! Not sure, but if you read the very first post it says : "The field called "Streaming video port" should contain the port from which you stream transcoded material (if any)." I wonder if this means that a VLC server still is required? Would be super if PMS could take over this function to simplify things...

    Are you working on a E1 or E2 solution? I am still on E1, have not yet upgraded to HD ;o)


    Currently, this is E2 only, but when we get this working, there shouldn't be any problem implementing support for E1 as well.

    The streaming port (normally 8001) is used from streaming from the Dreambox, I'm not quite sure what he meant by the "stream transcoded material" part. I've used it for streaming directly from the Dreambox. If you have access to a E2 box, and stream from the webinterface, you would see that the url is something like 'http://dreambox-ip:8001/something' where the last part is the channel identifier.

    Also, for those of you having problem with missing Preferences-button, this could be solved by adding some default values to the DefaultPrefs.json file. After I first had a connection to the Dreambox, the Preferences is working as supposed. I haven't found any reason why Plex is acting this way.

    Example:
    {
    "id": "host",
    "type": "text",
    "label": "Host",
    "default": "192.168.1.112"
    },
  • sivheadsivhead Posts: 15Members
    edited February 2013
    I have downloaded the files do I need to place them into a particluar fodler to test

    Dreambox.bundle-master\Dreambox.bundle-master\Contents\code\_init_.py
    Dreambox.bundle-master\Dreambox.bundle-master\Contents\Resources\art files
    Dreambox.bundle-master\Dreambox.bundle-master\Contents\DEfaultprefs.json,Info.Plist

    I take it I need to copy some of the files to the following folder
    ftp //vuduo/usr/lib/enigma2/python/Plugins/Extensions

    can someone enlighten which files need to go into which folder, , I am using the OpenWeb if which is the most upto date web interface which the following teams are using Black Hole | OpenPli | Sif | Vti | ViX | AAF so I guess this is the same webif that you are referring to.


    Do I create a folder called Plex here
    ftp //vuduo/usr/lib/enigma2/python/Plugins/Extensions

    and copy all the files into it

    _init_.py
    DefaultPrefs.json
    Info.Plist
    art-default.jpg
    icon-default.png
    icon-prefs.png


    Or do I need to leave the folders that they are in on the download
  • oysteingoysteing Posts: 61Members, Plex Pass Plex Pass
    Hi!

    This is a Enigma2-plugin for Plex, not a Plex plugin for Enigma2. The files are placed on the Plex server, not on the Dreambox/Enigma-box.
  • atrusatrus Posts: 11,098Members, Plex Pass, Plex Ninja Plex Ninja
    edited February 2013
    oysteing wrote:

    Currently, this is E2 only, but when we get this working, there shouldn't be any problem implementing support for E1 as well.

    The streaming port (normally 8001) is used from streaming from the Dreambox, I'm not quite sure what he meant by the "stream transcoded material" part. I've used it for streaming directly from the Dreambox. If you have access to a E2 box, and stream from the webinterface, you would see that the url is something like 'http://dreambox-ip:8001/something' where the last part is the channel identifier.

    Also, for those of you having problem with missing Preferences-button, this could be solved by adding some default values to the DefaultPrefs.json file. After I first had a connection to the Dreambox, the Preferences is working as supposed. I haven't found any reason why Plex is acting this way.

    Example:
    {
    "id": "host",
    "type": "text",
    "label": "Host",
    "default": "192.168.1.112"
    },

    What I meant is: The first field is the address to the box. As the box is always streaming raw video, this will fetch that raw stream. The last field is an alternate address (in the form of a port number (or for example /xxxx/stream.m3u8)) which points to another subpart of the same IP which streams transcoded material which another app have done. In my case a VLC transcoded stream which keeps the bitrate down.

    My example:
    First field:
    asdfasdf.zapto.org
    

    Second field:
    33080
    

    Third field:
    /ramdisk/stream.m3u8
    


    The third field could also have been as easily another port number, as long as another stream was on that port. I do however believe it has to be a HLS stream on that port. I am not 100% sure.
     Mac mini 2,3 GHz Quad-Core Intel Core i7 (With Fusion drive) (PM score: 7347)  Panasonic VT50 (55 inch)  Pioneer VSX-2021 Receiver  Norco 24-bay NAS (CPU: Intel Xeon E3-1240v2 3,4GHz, PM score: 9300) 
    New to Plex/Nine? Watch my screencast video (slightly out-dated nowadays, but still informative for new users)
    Want to know how to handle subtitles? Watch my subtitle screencast video (out-dated, but still informative), and this One Minute Subtitle Addendum screencast
    Always attach log files if you are reporting an issue: Log file info & location
    Get Plex guides here: Howto name your files NAS guide Troubleshooting Plex Support Page
  • sivheadsivhead Posts: 15Members
    oysteing wrote:

    Hi!

    This is a Enigma2-plugin for Plex, not a Plex plugin for Enigma2. The files are placed on the Plex server, not on the Dreambox/Enigma-box.

    Ok I I had'nt even installed plex at the time of first posting.

    I have now installed plex on my pc.
    I have copied the plugin to C:\Users\myname\AppData\Local\Plex Media Server\Plug-ins\Dreambox.bundle-master
    I have updated the prefs with my satellite ip, web port and streaming port. I have disabled authentication

    I have installed the plex client to my iphone
    Plex has picked up my media and I can watch media from my iphone

    I have gone to add channels but I dont see dreambox. I can add bbc iplayer and that works but I cannot see how to install the dreambox plugin,
    Apologies for being thick but I have not used plex before today. can anyone shed any light

    .
  • sivheadsivhead Posts: 15Members
    I needed to rename the folder Dreambox.bundle not Dreambox.bundle-master
  • sivheadsivhead Posts: 15Members
    oysteing wrote:

    Hi!

    I'm new to Plex, but have found it to be the solution I'm looking for. What's missing, is the support for Dreambox streaming, as this plugin would fix.

    As others have pointed out, is that the plugin as it is now is not working for other than some old PLI images, and since nobody else already have done it, I thought I might give it a shot to fix this.

    I'm new to Plex, Phyton and plugin programming, but used to be learning by doing. So here is how far I have come so far:

    I'm able to get the bouquetes from the Dreambox, and I'm also able to get the channels listed. Then, when selecting a channel, the Dreambox is zapping to the chosen channel. So far so good. But when it comes to actually starting the stream, I'm stuck.

    Maybe some other of you could have a quick look at what's necessary to start the stream? The correct stream url is already ready.

    This is a rewrite of the original plugin posted here, so just replace the __init__.py if you want to test it.



    I have tested your updated script I am getting the Bouquets and Can Zap to change the channel (no streaming light comes on my bx) and I get the error message on my iphone No items to display This Directory appears to be empty. I have zilch knowledge of Python so cannot help but I will gladly test..
  • Peter91101Peter91101 Posts: 333Members, Plex Pass Plex Pass
    Hi,

    many thanks for working further on this little nice Plugin;-) Now, can see and zap to the favourites of my dm 800, but no stream; display turns black...

    BR
    Peter
  • oysteingoysteing Posts: 61Members, Plex Pass Plex Pass
    Peter911 wrote:

    Hi,

    many thanks for working further on this little nice Plugin;-) Now, can see and zap to the favourites of my dm 800, but no stream; display turns black...

    BR
    Peter

    Hi!

    It is correct that the streaming will not work at the moment in my version, as I haven't figured the streaming part out yet. I was hoping that someone with more experiencre with Plex plugin programming (and Phyton) could have a look, and finish the last part for us. :) After all, I'm happy to get as far as I have, since I just started looking into Phyton programming a few days ago.
  • waghelakwaghelak Posts: 46Members ✭✭
    any further updates on this, would be good to get it working.
  • sivheadsivhead Posts: 15Members
    Agreed oysteing's script is pretty much complete apart from the streaming..... Can anyone who knows Python and Plex help out... its nearly done
  • xbenderCHxbenderCH Posts: 13Members, Plex Pass Plex Pass
    Hi all

    I made some adjustments to the latest init.py and now, it loads the player, but after some seconds, it always fails with 'Cannot load M3U8' message.

    Any ideas?

    Best,
    xbenderCH
  • oysteingoysteing Posts: 61Members, Plex Pass Plex Pass
    xbenderCH wrote:

    Hi all

    I made some adjustments to the latest init.py and now, it loads the player, but after some seconds, it always fails with 'Cannot load M3U8' message.

    Any ideas?

    Best,
    xbenderCH


    Hi!

    Could you send the script as it is now? Are you trying to play the url I had in my script? That shouldn't be a m3u-file. I also got the player, but it never tried to play anything when I tried..
  • imyrvoldimyrvold Posts: 91Members
    I can't even see any channels. i think that is maybe because my e2servicelist is a litle special. Here it is:


    <?xml version="1.0" encoding="UTF-8"?>
    <e2servicelist>

    <e2service>
    <e2servicereference>1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.favourites.tv" ORDER BY bouquet</e2servicereference>
    <e2servicename>Favoritter (TV)</e2servicename>
    </e2service>

    <e2service>
    <e2servicereference>1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.filmer__tv_.tv" ORDER BY bouquet</e2servicereference>
    <e2servicename>Filmer (TV)</e2servicename>
    </e2service>

    <e2service>
    <e2servicereference>1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.tegneserier__tv_.tv" ORDER BY bouquet</e2servicereference>
    <e2servicename>Tegneserier (TV)</e2servicename>
    </e2service>

    <e2service>
    <e2servicereference>1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.musikk__tv_.tv" ORDER BY bouquet</e2servicereference>
    <e2servicename>Musikk (TV)</e2servicename>
    </e2service>

    <e2service>
    <e2servicereference>1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.svensk__tv_.tv" ORDER BY bouquet</e2servicereference>
    <e2servicename>Svensk (TV)</e2servicename>
    </e2service>

    <e2service>
    <e2servicereference>1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.dansk__tv_.tv" ORDER BY bouquet</e2servicereference>
    <e2servicename>Dansk (TV)</e2servicename>
    </e2service>

    <e2service>
    <e2servicereference>1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.hd favoritter__tv_.tv" ORDER BY bouquet</e2servicereference>
    <e2servicename>HD Favoritter (TV)</e2servicename>
    </e2service>

    <e2service>
    <e2servicereference>1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.russisk__tv_.tv" ORDER BY bouquet</e2servicereference>
    <e2servicename>Russisk (TV)</e2servicename>
    </e2service>

    </e2servicelist>
  • michellesullivanmichellesullivan Posts: 8Members ✭✭
    I'm in the USA at the moment (Until March 13) - so limited on what I can do, however I developed the other plugin, to allow Plex to play on the Dreambox (still not finished but in working alpha) ... so would love to give you a hand to get this working as well.. contact me via email please: http://www.mhix.org/ gives contact details.
  • imyrvoldimyrvold Posts: 91Members
    I also added a few Log lines to the plugin, so I could make sure that the plugin is communicating with my Dreambox.
    Here is my log:

    2013-02-17 17:39:34,310 (-4faed000) : DEBUG (runtime:684) - Handling request GET /video/dreambox
    2013-02-17 17:39:34,312 (-4faed000) : DEBUG (runtime:780) - Found route matching /video/dreambox
    2013-02-17 17:39:34,312 (-4faed000) : DEBUG (preferences:256) - Loaded preferences from DefaultPrefs.json
    2013-02-17 17:39:34,313 (-4faed000) : DEBUG (preferences:178) - Loaded the user preferences for com.plexapp.plugins.dreambox
    2013-02-17 17:39:34,314 (-4faed000) : DEBUG (networking:172) - Requesting 'http://192.168.207.241:80/web/getservices'
    2013-02-17 17:39:34,523 (-4faed000) : INFO (__init__:35) -
    2013-02-17 17:39:34,524 (-4faed000) : INFO (__init__:36) -
    2013-02-17 17:39:34,524 (-4faed000) : INFO (__init__:40) - 0
    2013-02-17 17:39:34,524 (-4faed000) : INFO (__init__:41) - 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.favourites.tv" ORDER BY bouquet
    2013-02-17 17:39:34,524 (-4faed000) : INFO (__init__:42) - Favoritter (TV)
    2013-02-17 17:39:34,525 (-4faed000) : INFO (__init__:40) - 1
    2013-02-17 17:39:34,525 (-4faed000) : INFO (__init__:41) - 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.filmer__tv_.tv" ORDER BY bouquet
    2013-02-17 17:39:34,525 (-4faed000) : INFO (__init__:42) - Filmer (TV)
    2013-02-17 17:39:34,525 (-4faed000) : INFO (__init__:40) - 2
    2013-02-17 17:39:34,526 (-4faed000) : INFO (__init__:41) - 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.tegneserier__tv_.tv" ORDER BY bouquet
    2013-02-17 17:39:34,526 (-4faed000) : INFO (__init__:42) - Tegneserier (TV)
    2013-02-17 17:39:34,526 (-4faed000) : INFO (__init__:40) - 3
    2013-02-17 17:39:34,526 (-4faed000) : INFO (__init__:41) - 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.musikk__tv_.tv" ORDER BY bouquet
    2013-02-17 17:39:34,527 (-4faed000) : INFO (__init__:42) - Musikk (TV)
    2013-02-17 17:39:34,527 (-4faed000) : INFO (__init__:40) - 4
    2013-02-17 17:39:34,527 (-4faed000) : INFO (__init__:41) - 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.svensk__tv_.tv" ORDER BY bouquet
    2013-02-17 17:39:34,527 (-4faed000) : INFO (__init__:42) - Svensk (TV)
    2013-02-17 17:39:34,528 (-4faed000) : INFO (__init__:40) - 5
    2013-02-17 17:39:34,528 (-4faed000) : INFO (__init__:41) - 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.dansk__tv_.tv" ORDER BY bouquet
    2013-02-17 17:39:34,528 (-4faed000) : INFO (__init__:42) - Dansk (TV)
    2013-02-17 17:39:34,529 (-4faed000) : INFO (__init__:40) - 6
    2013-02-17 17:39:34,529 (-4faed000) : INFO (__init__:41) - 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.hd favoritter__tv_.tv" ORDER BY bouquet
    2013-02-17 17:39:34,529 (-4faed000) : INFO (__init__:42) - HD Favoritter (TV)
    2013-02-17 17:39:34,529 (-4faed000) : INFO (__init__:40) - 7
    2013-02-17 17:39:34,530 (-4faed000) : INFO (__init__:41) - 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.russisk__tv_.tv" ORDER BY bouquet
    2013-02-17 17:39:34,530 (-4faed000) : INFO (__init__:42) - Russisk (TV)
    2013-02-17 17:39:34,533 (-4faed000) : DEBUG (runtime:880) - Response: [200] MediaContainer, 4265 bytes
    2013-02-17 17:39:34,538 (-4faed000) : DEBUG (runtime:684) - Handling request GET /video/dreambox
    2013-02-17 17:39:34,539 (-4faed000) : DEBUG (runtime:780) - Found route matching /video/dreambox
    2013-02-17 17:39:34,540 (-4faed000) : DEBUG (networking:172) - Requesting 'http://192.168.207.241:80/web/getservices'
    2013-02-17 17:39:34,744 (-4faed000) : INFO (__init__:35) -
    2013-02-17 17:39:34,745 (-4faed000) : INFO (__init__:36) -
    2013-02-17 17:39:34,745 (-4faed000) : INFO (__init__:40) - 0
    2013-02-17 17:39:34,745 (-4faed000) : INFO (__init__:41) - 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.favourites.tv" ORDER BY bouquet
    2013-02-17 17:39:34,745 (-4faed000) : INFO (__init__:42) - Favoritter (TV)
    2013-02-17 17:39:34,746 (-4faed000) : INFO (__init__:40) - 1
    2013-02-17 17:39:34,746 (-4faed000) : INFO (__init__:41) - 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.filmer__tv_.tv" ORDER BY bouquet
    2013-02-17 17:39:34,746 (-4faed000) : INFO (__init__:42) - Filmer (TV)
    2013-02-17 17:39:34,746 (-4faed000) : INFO (__init__:40) - 2
    2013-02-17 17:39:34,747 (-4faed000) : INFO (__init__:41) - 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.tegneserier__tv_.tv" ORDER BY bouquet
    2013-02-17 17:39:34,747 (-4faed000) : INFO (__init__:42) - Tegneserier (TV)
    2013-02-17 17:39:34,747 (-4faed000) : INFO (__init__:40) - 3
    2013-02-17 17:39:34,747 (-4faed000) : INFO (__init__:41) - 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.musikk__tv_.tv" ORDER BY bouquet
    2013-02-17 17:39:34,748 (-4faed000) : INFO (__init__:42) - Musikk (TV)
    2013-02-17 17:39:34,748 (-4faed000) : INFO (__init__:40) - 4
    2013-02-17 17:39:34,748 (-4faed000) : INFO (__init__:41) - 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.svensk__tv_.tv" ORDER BY bouquet
    2013-02-17 17:39:34,748 (-4faed000) : INFO (__init__:42) - Svensk (TV)
    2013-02-17 17:39:34,749 (-4faed000) : INFO (__init__:40) - 5
    2013-02-17 17:39:34,749 (-4faed000) : INFO (__init__:41) - 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.dansk__tv_.tv" ORDER BY bouquet
    2013-02-17 17:39:34,749 (-4faed000) : INFO (__init__:42) - Dansk (TV)
    2013-02-17 17:39:34,749 (-4faed000) : INFO (__init__:40) - 6
    2013-02-17 17:39:34,750 (-4faed000) : INFO (__init__:41) - 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.hd favoritter__tv_.tv" ORDER BY bouquet
    2013-02-17 17:39:34,750 (-4faed000) : INFO (__init__:42) - HD Favoritter (TV)
    2013-02-17 17:39:34,750 (-4faed000) : INFO (__init__:40) - 7
    2013-02-17 17:39:34,750 (-4faed000) : INFO (__init__:41) - 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.russisk__tv_.tv" ORDER BY bouquet
    2013-02-17 17:39:34,751 (-4faed000) : INFO (__init__:42) - Russisk (TV)
    2013-02-17 17:39:34,754 (-4faed000) : DEBUG (runtime:880) - Response: [200] MediaContainer, 4265 bytes
  • oysteingoysteing Posts: 61Members, Plex Pass Plex Pass
    imyrvold wrote:

    I also added a few Log lines to the plugin, so I could make sure that the plugin is communicating with my Dreambox.
    Here is my log:

    2013-02-17 17:39:34,310 (-4faed000) : DEBUG (runtime:684) - Handling request GET /video/dreambox
    2013-02-17 17:39:34,312 (-4faed000) : DEBUG (runtime:780) - Found route matching /video/dreambox
    ..........


    Hi!

    It seems like you are getting the bouquetes correct? Do you see all your bouquetes? I haven't tried the plugin with that many bouquetes, but I have tested with more than one, and there is no reason why it shouldn't work with more.

    I can't see anything in the log about getting the channels, have you selected a bouquete, and if so, what happens then?
  • imyrvoldimyrvold Posts: 91Members
    There is no Bouquet to select, because there are none. See the picture I attach.

    oysteing wrote:

    Hi!

    It seems like you are getting the bouquetes correct? Do you see all your bouquetes? I haven't tried the plugin with that many bouquetes, but I have tested with more than one, and there is no reason why it shouldn't work with more.

    I can't see anything in the log about getting the channels, have you selected a bouquete, and if so, what happens then?
  • oysteingoysteing Posts: 61Members, Plex Pass Plex Pass
    imyrvold wrote:

    There is no Bouquet to select, because there are none. See the picture I attach.


    Strange.. The log shows that the bouquetes are recognized correct. I have only tried with the server on Win7, and with clients on Windows, Android and Samsung TV, but they are all working.

    What server do you run Plex on? Have anyone else this problem?
Sign In or Register to comment.