tschaumburg / MythRecordings.bundle

Plex bundle allowing Plex to play back MythTV recordings
46 stars 30 forks source link

"Still recording" stops in the middle #11

Open dgrasberger opened 9 years ago

dgrasberger commented 9 years ago

I just started using mythtv, plex, and the plugin. Works really well, thanks! Like others, I'd like to watch Live TV, but as mythtv states in their docs, livetv is really just streaming a recording that's still in progress. So I tried starting a recording, then watching it, and it works! except...

If the recording was started :31 seconds ago, it will stop in :31 seconds, resetting position will grab the current length of the recording, but it still will stop when it gets to the length of the recorded segment. Perhaps, if the length the plugin reported was the scheduled length instead of the actual length recorded so far, streaming (near) live tv in this way would work. Is that doable? (I haven't looked at the source yet, but if you can suggest where to look, I'll poke around).

If that part does work, support for live tv might be doable as a sequence of start recording-start playback-delete recording when finished, ideally with 'start next recording' on same channel when a program ends. Of course, I'd happiest to get the workaround working better.

tschaumburg commented 9 years ago

Thanks for reporting this - but unfortunately it's a known issue in MythTV, not the plugin.

The MythTV services API (which is a REST/HTTP web service) allows you to stream recordings - even recordings that are not finished.

Unfortunately, the MythTV server will check the length of the recording when it starts streaming, and will stop streaming when that time (or amount of bytes, or whatever unit) has been streamed.

I have tried changing the plugin code to always assume a 10hrs recording length, but it didn't help - the issue is definitely on the MythTV server side.

If you're really keen on watching live TV, I'd recommend that you look at the MythTV Web Services API, and add a GetLiveStream URL (modelled on the GetRecording one).

Hope this helps...:-)

PS: The Services API already has a URL named something with "...LiveStream...". The name sounds good, but if you read the description, it's not what you're looking for.

ianj001 commented 8 years ago

Is this project still active? I am looking for a way to access MythTV from my Plex server. I don't want to install it if it's not going to be completed as a project. If it is still active, I am very willing to help with testing. - I am also looking for a way to stream the live tv either from MythTV or directly from my HDHomeRun. I saw your last post discussing options. Is this something you are working on now?

tschaumburg commented 8 years ago

Short answer: yes it's alive - in the sense that I and others use it every day.

However, the two most frequent wishes (live TV and watching partially completed recordings) require MythTV development - which Im not comfortable with.

So in that sense, we're stalled, waiting for a brave volunteer..

ianj001 commented 8 years ago

Gotcha, I will try and install it and see if I can get it running. Right now, I record with MythTV then transcode with a script that makes everything H.264 and changes the naming into something that the Plex can understand. The script transcode output goes right into the Plex directory so once a recording is available it automagically shows up in my Plex server library and is playable (FF, RR, Pause, Resume etc) from my Roku. It works quite well but I can't manage recordings from the Plex, I have to use the Myth Frontend (web based) to search shows and schedule recordings. It would be nice to have everything in the Roku. - Live TV is important to me because I have TV's that don't have a cable box, they just have a Roku plugged in to them. Right now it's only recordings or streaming (i.e. Netflix) but no live channels. Being able to access MythTV or HDHomeRun live TV would make those TV's complete without needing cable boxes in every room.

ianj001 commented 8 years ago

OK, I installed it, am I missing something or can it only playback the recordings? I was hoping that it could manage recordings too (record show, record series, delete etc.) When I tried the playback it started but it's stuttering, my plex server said my back end wasn't man enough for the job. When I watch the same show that has been transcoded via my script it runs flawlessly.