wnielson / Plex-Remote-Transcoder

A distributed transcoding backend for Plex
MIT License
640 stars 59 forks source link

remote transcoding fails with DVR-LiveTV #71

Open nydave69 opened 6 years ago

nydave69 commented 6 years ago

getting playback error when trying to play LiveTV or Transcode DVR recordings

psyciknz commented 4 years ago

As am I (using a hdhomerun), Given the usr is something like:

http://127.0.0.1:32600/devices/dvb%23hdhr%231%23286352909/media/triplet%3A%2F%2F8746%3A31%3A1300?param=%3C%3Fxml%20version%3D%221%2E0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3Ctunedata%3E%3Ctt%3E4%3C%2Ftt%3E%3Cdq%3E0%3C%2Fdq%3E%3Cdr%2F%3E%3Cfr%3E570000%3C%2Ffr%3E%3Cmd%3E0%3C%2Fmd%3E%3Csr%3E0%3C%2Fsr%3E%3Cpl%3E0%3C%2Fpl%3E%3Clf%3E8%3C%2Flf%3E%3Cl1%3E0%3C%2Fl1%3E%3Cl2%3E0%3C%2Fl2%3E%3Cls%3E0%3C%2Fls%3E%3Cpp%3E0%3C%2Fpp%3E%3Chz%3E0%3C%2Fhz%3E%3Cin%3E0%3C%2Fin%3E%3Cfc%3E0%3C%2Ffc%3E%3Ct%3E31%3C%2Ft%3E%3Cn%3E8746%3C%2Fn%3E%3Cs%3E1300%3C%2Fs%3E%3Cen%3E0%3C%2Fen%3E%3C%2Ftunedata%3E%0A

And pointing at localhost (to the master), it probably need to skip trying to remote transcode.

psyciknz commented 4 years ago

I've added the following to avoid it, since my url as above has http://127.0.0.1:32600/devices Unsure if other types of tuner do this. Added:

 # FIX: For transcodes of tuners, they request from local host, they may need to be either
    #      pointed at the plex host (maybe?) or something else.
    #      Anyway, forcing local transcode.
    if 'http://127.0.0.1:32600/devices/' in ' '.join(args):
        log.info("Found Live TV request...forcing local transcode")
        return transcode_local()

Where the fix for eae_prefix is.

psyciknz commented 4 years ago

Oh also needs exclusion on:

http://127.0.0.1:32400/livetv