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] MythTV plug-in

145791020

Comments

  • schaumburg01schaumburg01 Posts: 136Members, Plex Pass Plex Pass
    edited May 2014

    @sip03ds

    Well spotted - those are seductively named API calls.

    Unfortunately "live stream" isn't "a stream containing live TV" - it is a stream of previously recorded or ripped contents. See for instance http://www.mythtv.org/wiki/Content_Service#Content_Service_API_List:

    AddLiveStream Start a HTTP Live Stream transcode for a given file and storage group.

    I think the term "live stream" refers to the HTTP live streaming protocol (http://en.wikipedia.org/wiki/HTTP_Live_Streaming) - which is just another (better! newer! shinier!) way of getting the same contents that we're playing back already using boring old HTTP-GET.

    But well spotted anyway - good ideas are always welcome!

    :-) th

  • schaumburg01schaumburg01 Posts: 136Members, Plex Pass Plex Pass

    @sip03ds

    If you use an HDHomerun decoder, I think you can find channels on https://forums.plex.tv/forum/42-channel-development/ for live TV streaming.

    (I can generally recommend the HDHomerun for offloading your MythTV server - I can do 4 simultaneous recordings plus 2 playbacks without any performance hiccups)

    Of course, that won't give you any integration with MythTVs metadata (channel lists, EPG).

  • sip03dssip03ds Posts: 12Members, Plex Pass Plex Pass

    schaumburg

    Thanks for the info, unfortunately I do not use HDHomerun decoder.

  • lazyboneslazybones Posts: 869Members, Plex Pass Plex Pass
    schaumburg wrote on November 25 2013, 7:54 AM: »

    @bryanp22:

    Presently no on both counts.

    Scheduling will be very difficult to implement with the UI framework available to plugins. And personally, I do scheduling using my iPad, which I find much more usable. I am using the torc app (which costs around 5 USD), but the web-based scheduling baked into MythTV is very good too.

    So I have no plans to add scheduling to the plug-in. But you're welcome to give it a shot :-)

    As for live TV, it should be easy to add *if* the MythTV services API (http://www.mythtv.org/wiki/Services_API) supports it. I don't feel any pressing need for liveTV-through-Plex myself (I find the good old TV set sufficient for that:-), but I'll be happy to supply hints & pointers if anyone feels like adding this

    /thomas

    MediaPortal Live TV

    https://forums.plex.tv/topic/65069-rel-mediaportal-live-tv/
    This plugin was able to cram in a basic Live TV / schedule / recording interface into the Plex plugin API.. Source is up on Git hub... Different back-end APIs but the UI should serve as an example of a recording interface.

    I am currently poking around with with various backends, I really like the MediaPortal Live TV plugin however it isn't under active development any more. So I started looking at Myth again.

  • giraffe.filtergiraffe.filter Posts: 2Members, Plex Pass

    First off, thanks for an amazing plugin!  As a longtime MythTV user and recent Plex adopter, the ability to combining the two into a single app for my iPad and iPhone is very exciting.  Great work.

    My question is about syncing MythTV content to iOS devices.  I have been unable to get it working.  It appears to transcode correctly but then it won't copy over.  I saw there was some discussion of this issue a few pages back -- has anyone found a solution?  If not, any guess as to if/when this might be resolved?  I bought a lifetime PlexPass almost entirely for the ability to sync my MythTV recordings and take them with on travel to watch when I'm offline (or using shared wifi that doesn't have the bandwidth to stream).

  • macleajbmacleajb Posts: 13Members, Plex Pass Plex Pass

    Error when trying to play on Google TV which responds with not being able to play this video file:

    2014-06-01 18:29:15,198 (7f39e27fc700) :  CRITICAL (runtime:1122) - Exception in thread named '_handle_request' (most recent call last):

      File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 1120, in _start_thread

        f(*args, **kwargs)

      File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/interfaces/socketinterface.py", line 126, in _handle_request

        self.finish()

      File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/tornado/web.py", line 565, in finish

        self.request.finish()

      File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/tornado/httpserver.py", line 432, in finish

        self.connection.finish()

      File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/tornado/httpserver.py", line 262, in finish

        self._finish_request()

      File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/tornado/httpserver.py", line 285, in _finish_request

        self.stream.read_until("\r\n\r\n", self._on_headers)

      File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/tornado/iostream.py", line 87, in read_until

        self._check_closed()

      File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/tornado/iostream.py", line 241, in _check_closed

        raise IOError("Stream is closed")

    IOError: Stream is closed

     

    Sorry if this has already been reported.

    JES

  • schaumburg01schaumburg01 Posts: 136Members, Plex Pass Plex Pass

    @macleajb

    I don't recall having seen this before.

    Given that there's no mythrecordings code in the stacktrace, it's a bit difficult to guess what's happening.

    Does the same recording play with other clients (e.g. the web client), or is the error specific to Google TV?

  • schaumburg01schaumburg01 Posts: 136Members, Plex Pass Plex Pass

    @giraffe.filter

    No, syncing recordings still doesn't work. It worked for a short while when the PlexSync feature was first released, but then it broke, and hasn't worked since.

    I think an obstacle is that the Plex team probably has trouble reproducing the error - after all, it requires installing a myth backend, which isn't straight forward.

    When I get the time, I plan to write a "mythsimulator" channel which responds like the mythrecordings, without requiring a myth backend (just some hardcoded contents). That should make it easier for the PlexSync team to reproduce the error.

    It would be nice to get this working before the holiday season...

  • macleajbmacleajb Posts: 13Members, Plex Pass Plex Pass
    schaumburg wrote on June 2 2014, 5:20 AM: »

    @macleajb

    I don't recall having seen this before.

    Given that there's no mythrecordings code in the stacktrace, it's a bit difficult to guess what's happening.

    Does the same recording play with other clients (e.g. the web client), or is the error specific to Google TV?

    Works on Android Not II, Apples iPad, Mac Chrome. So I am suspecting Google TV. If you want any other info, just let me know.

    JES

  • tgourleytgourley Posts: 9Members, Plex Pass Plex Pass
    edited June 2014

    Sync is not working on my 4.2 Andriod. It appears to sync (transcodes/downloads) but will not playback if offline or disconnected via the Plex app.

    If I locate the file on the device I can play it back with other apps, but not plex.

    It seems to be some sort of metadata problem IMO.

    Other things sync and playback.

    My Myth 0.27 backend is setup for access from web and rokus, that is all working fine. (transcoding on the backend to MP4s)

  • wasperswaspers Posts: 6Members
    schaumburg

    I finally got back to playing with this. Not sure what I did (if anything) but its working now. (Sort of, it plays for several seconds and then seems to buffer for a little while then plays followed by more buffering. something else I have to figure out)

  • sip03dssip03ds Posts: 12Members, Plex Pass Plex Pass
    schaumburg wrote on May 27 2014, 5:11 AM: »

    @sip03ds
     
    Well spotted - those are seductively named API calls.
     
    Unfortunately "live stream" isn't "a stream containing live TV" - it is a stream of previously recorded or ripped contents. See for instance http://www.mythtv.org/wiki/Content_Service#Content_Service_API_List:
     
    AddLiveStream Start a HTTP Live Stream transcode for a given file and storage group.
     
    I think the term "live stream" refers to the HTTP live streaming protocol (http://en.wikipedia.org/wiki/HTTP_Live_Streaming) - which is just another (better! newer! shinier!) way of getting the same contents that we're playing back already using boring old HTTP-GET.
     
    But well spotted anyway - good ideas are always welcome!
     
    :-) th



    Can you get the list for files per storage group using GetFile api?
  • schaumburg01schaumburg01 Posts: 136Members, Plex Pass Plex Pass

    @sip03ds

    Yes - http://www.mythtv.org/wiki/Content_Service#GetFileList will give you all the files for a storage group.

    But it will still only give you previously recorded contents, not live TV

  • davidbrookedavidbrooke Posts: 46Members ✭✭

    I have everything working but Plex seems to have mpeg2video playback problems. Every Mythtv video plays at a 2X to 4X speed without any audio. The videos play fine in Mythtv as well as other video players like VLC and in the Firefox web interface. Refer to my other Plex post for more details:

    https://forums.plex.tv/topic/111968-mpeg2video-format-file-playback-problem-in-pht-linux/

  • omarti321omarti321 Posts: 84Members, Plex Pass Plex Pass

    When you say Plex do you mean Plex Web thru Chrome browser?  If so try turning off experimental player in player settings.  Another plugin resulted in similar behavior with it enabled.

  • davidbrookedavidbrooke Posts: 46Members ✭✭
    omarti321 wrote on June 11 2014, 4:05 PM: »

    When you say Plex do you mean Plex Web thru Chrome browser?  If so try turning off experimental player in player settings.  Another plugin resulted in similar behavior with it enabled.

    Plex Home Theater

  • davidbrookedavidbrooke Posts: 46Members ✭✭
    edited June 2014
    davidbrooke wrote on June 11 2014, 1:13 PM: »

    I have everything working but Plex seems to have mpeg2video playback problems. Every Mythtv video plays at a 2X to 4X speed without any audio. The videos play fine in Mythtv as well as other video players like VLC and in the Firefox web interface. Refer to my other Plex post for more details:

    https://forums.plex.tv/topic/111968-mpeg2video-format-file-playback-problem-in-pht-linux/

    This has been resolved please see other Plex post for details.

    https://forums.plex.tv/topic/111968-mpeg2video-format-file-playback-problem-in-pht-linux/?p=665231

  • davidbrookedavidbrooke Posts: 46Members ✭✭

    Question concerning mythrecordings.bundle.....

    Can artwork be enabled (fanart, banners, etc...)? The only thing I see is the photo of the recording.

    Thanks

  • schaumburg01schaumburg01 Posts: 136Members, Plex Pass Plex Pass

    @davidbrooke

    Where I'm living (Denmark), TV metadata is very sparse and un-standardized, so the fanart and banners and stuff is virtually nonexisting, even when using the regular MythTV clients.

    So you'll probably need to persuade a US-based developer to have a look at this.

    Sorry

    /Thomas

    PS: But in principle it should be simple:

    • check if and how the fanart/banner metadata is available in the data returned by GetRecordedList (see http://www.mythtv.org/wiki/DVR_Service#GetRecordedList)
    • figure out where and how you want Plex to display it (this is probably the  tricky part - the developer control over layout is pretty rudimentary, and documentation is virtually non-existing)
    • code (the simple part!)
  • tgourleytgourley Posts: 9Members, Plex Pass Plex Pass
    edited June 2014

    What's the best way to debug these plugins?

    Mostly I see chatter about using log output... resorting to println debugging is effective but slow and painful.

    Isn't there a way to interactively debug plugin processing? (hookup a remote debugger etc?)

    Love the plugin by the way, and I'd love to help. If I could get sync working to andriod I'd form a new religion :) )))

    - Tim (meep)

145791020
Sign In or Register to comment.