-
-
Notifications
You must be signed in to change notification settings - Fork 12
Description
Hi,
I have NextPVR installed on my NAS, but Jellyfin runs on my Windows NUC HTPC as it has hardware capable of transcoding.
Live TV playback works in Jellyfin but unfortunately PVR recordings do not play. This is because the plugin does not authenticate with NextPVR when attempting to play the recording. Unathenticated streaming of LiveTV is supported, but streaming of recordings requires authetication, see here for confirmation of this from the NextPVR dev.
The Jellyfin transcode log shows that NextPVR returns a 500 error:
FFmpeg.Transcode-2023-12-20_23-21-46_1a5350c68513569d84a57afb48a4aa7c_1ff5fe88.log
The nextpvr log shows that a required ID was not provided:
2023-12-20 23:54:28.734 [DEBUG][93] Sent total of 0 bytes
2023-12-20 23:54:28.740 [DEBUG][93] Got request [192.168.1.157]: /live
2023-12-20 23:54:28.740 [DEBUG][93] /live?recording=866
2023-12-20 23:54:28.741 [DEBUG][93] - recording: 866
2023-12-20 23:54:28.741 [DEBUG][93] StreamNative@1..
2023-12-20 23:54:28.741 [DEBUG][93] StreamNative@2
2023-12-20 23:54:28.741 [DEBUG][93] StreamNative@3
2023-12-20 23:54:28.741 [DEBUG][93] StreamNative@4
2023-12-20 23:54:28.741 [DEBUG][93] RollingFile.Open(/srv/mediastore/DTV/Channel 4 News/Channel 4 News_20231220_19002000.ts) ..
2023-12-20 23:54:28.741 [DEBUG][93] About to stream recording: /srv/mediastore/DTV/Channel 4 News/Channel 4 News_20231220_19002000.ts
2023-12-20 23:54:28.742 [ERROR][93] Unexpected error streaming recording: System.Collections.Generic.KeyNotFoundException: The given key 'sid' was not present in the dictionary.
at NShared.Streaming.StreamingHelper.StreamNativeRecording(ServiceResponseStream responseStream, Dictionary`2 parameters)
2023-12-20 23:54:28.742 [DEBUG][93] Sent total of 0 bytes
Streaming of recordings from the NextPVR server does work if a valid client sid is provided, this is the log when I successfully play the same file with Kodi's nextpvr plugin:
2023-12-21 00:00:04.548 [DEBUG][94] Got request [192.168.1.75]: /live
2023-12-21 00:00:04.548 [DEBUG][94] /live?recording=866&client=XBMC-7e53684d808b83b2256fb825778db597
2023-12-21 00:00:04.548 [DEBUG][94] - recording: 866
2023-12-21 00:00:04.548 [DEBUG][94] - client: XBMC-7e53684d808b83b2256fb825778db597
2023-12-21 00:00:04.548 [DEBUG][94] range: bytes=0-
2023-12-21 00:00:04.548 [DEBUG][94] StreamNative@1..
2023-12-21 00:00:04.548 [DEBUG][94] StreamNative@2
2023-12-21 00:00:05.381 [DEBUG][94] StreamNative@3
2023-12-21 00:00:05.381 [DEBUG][94] XBMC client sid is: 7e53684d808b83b2256fb825778db597
2023-12-21 00:00:05.381 [DEBUG][94] StreamNative@4
2023-12-21 00:00:05.381 [DEBUG][94] RollingFile.Open(/srv/mediastore/DTV/Channel 4 News/Channel 4 News_20231220_19002000.ts) ..
2023-12-21 00:00:05.381 [DEBUG][94] About to stream recording: /srv/mediastore/DTV/Channel 4 News/Channel 4 News_20231220_19002000.ts
2023-12-21 00:00:05.381 [DEBUG][94] Request had range request
2023-12-21 00:00:05.382 [DEBUG][94] Requested Range: 0- (1553454716 bytes)
(id altered)
Hope the above helps in working out how to fix the issue. Let me know if you need any more logs.