v22 I can't get PVR recordings to play
#1
Running latest (almost) master Kodi 22 alpha built on windows.

This was previously working.  I am now getting errors like:
Code:
2025-01-16 14:45:54.265 T:24492   error <general>: CVideoPlayer::OpenInputStream - error opening [pvr://recordings/tv/active/Big%20Buck%20Bunny, TV, 20241011_140745, 2.pvr]

It is a path problem I believe.  I haven't had to deal with pvr://recordings/tv/active before.  I don't see it in the Kodi special path list.  Isn't there a simple way that I can just provide a path to my recordings?

I thought that maybe in 22 I need to provide the path to the recordings somehow differently but I don't see it yet.

Any help appreciated.
Reply
#2
Do you have the same problem with this build?

https://mirrors.kodi.tv/nightlies/window...er-x64.exe

If not, probably related to this PR

I have the same problem with the pvr.iptsimple recordings and hopefully I'll be able to create an issue on github this weekend.
Reply
#3
Thanks for the heads up.  I'll take a look at it.  I spent a chunk of today going over code that worked before.
Reply
#4
(2025-01-16, 21:26)A600 Wrote: I have the same problem with the pvr.iptsimple recordings and hopefully I'll be able to create an issue on github this weekend.

Since pvr.iptvsimple doesn't this is confusing.
Reply
#5
> I am now getting errors like:

What would help is step-by-step instructions how to reproduce the issue. Just from looking at the error message I cannot do anything to help, sorry. I definitely need a full debug log. As of now, we do not even know which pvr addon you are using.

> I have the same problem with the pvr.iptsimple recordings

As far as I know pvr.iptvsimple does not support recordings

> I haven't had to deal with pvr://recordings/tv/active before.

 And you never should. The format of these URLs is not documented for a reason - they are only for internal use. If you try to mess with them yourself, you have to be prepared that your code doing this breaks at any point in time.
Reply
#6
I will be following up with details shortly.  Thanks for the response.
Reply
#7
For example I have a test recording that I have in C:\Users\Stu\AppData\Roaming\Kodi\userdata\addon_data\pvr.stug.recorder\Recordings
The recording is big_buck_bunny_720p_surround.avi

Previously with Kodi 19-21 it was working.  I just updated my addon to Kodi 22 alpha because I was having playback sound problems and wanted to see if ffmpeg 7+ helped because my saved files worked perfectly in VLC.  Anyway, that helped with playback but I lost the ability to use playback within Kodi.

I am using my own PVR addon that I have been developing for a while.

Debug log
Reply
#8
As a follow up.  I just tried the prebuilt version of Kodi from https://mirrors.kodi.tv/nightlies/window...er-x64.exe mentioned above by A600 and my app works and plays back the recording.

Obviously not ideal as the master branch does not work.  Hopefully the two debug logs are useful.  I changed nothing between running both versions.

New log
Reply
#9
(2025-01-17, 09:16)ksooo Wrote: As far as I know pvr.iptvsimple does not support recordings

Create an m3u like this and load it with IPTV Simple:

Image
 
Code:
#EXTM3U

#EXTINF:-1 tvg-id="" tvg-logo="" group-title="TEST",Recording
#EXT-X-PLAYLIST-TYPE:VOD
#KODIPROP:mimetype=application/dash+xml
#KODIPROP:inputstream=inputstream.adaptive
https://livesim.dashif.org/livesim/chunkdur_1/ato_7/testpic4_8s/Manifest.mpd

With KodiSetup-20250102-dad09250-master-x64.exe all is fine:
 
Code:
2025-01-17 11:08:04.262 T:15984    info <general>: AddOnLog: pvr.iptvsimple: pvr.iptvsimple - GetMediaEntry
2025-01-17 11:08:04.262 T:15984    info <general>: AddOnLog: pvr.iptvsimple: pvr.iptvsimple - GetMediaEntryURL
2025-01-17 11:08:04.283 T:15984   debug <general>: CPlayerCoreFactory::GetPlayers(https://livesim.dashif.org/livesim/chunkdur_1/ato_7/testpic4_8s/Manifest.mpd)
2025-01-17 11:08:04.283 T:15984   debug <general>: CPlayerSelectionRule::GetPlayers: considering rule: system rules
2025-01-17 11:08:04.283 T:15984   debug <general>: CPlayerSelectionRule::GetPlayers: matches rule: system rules
2025-01-17 11:08:04.283 T:15984   debug <general>: CPlayerSelectionRule::GetPlayers: considering rule: mms/udp
2025-01-17 11:08:04.283 T:15984   debug <general>: CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout
2025-01-17 11:08:04.283 T:15984   debug <general>: CPlayerSelectionRule::GetPlayers: considering rule: rtmp
2025-01-17 11:08:04.283 T:15984   debug <general>: CPlayerSelectionRule::GetPlayers: considering rule: rtsp
2025-01-17 11:08:04.283 T:15984   debug <general>: CPlayerSelectionRule::GetPlayers: considering rule: streams
2025-01-17 11:08:04.283 T:15984   debug <general>: CPlayerSelectionRule::GetPlayers: matches rule: streams
2025-01-17 11:08:04.283 T:15984   debug <general>: CPlayerSelectionRule::GetPlayers: considering rule: aacp/sdp
2025-01-17 11:08:04.283 T:15984   debug <general>: CPlayerSelectionRule::GetPlayers: considering rule: mp2
2025-01-17 11:08:04.283 T:15984   debug <general>: CPlayerSelectionRule::GetPlayers: considering rule: dvd
2025-01-17 11:08:04.283 T:15984   debug <general>: CPlayerSelectionRule::GetPlayers: considering rule: discimage
2025-01-17 11:08:04.283 T:15984   debug <general>: CPlayerSelectionRule::GetPlayers: considering rule: sdp/asf
2025-01-17 11:08:04.284 T:15984   debug <general>: CPlayerSelectionRule::GetPlayers: considering rule: nsv
2025-01-17 11:08:04.284 T:15984   debug <general>: CPlayerSelectionRule::GetPlayers: considering rule: radio
2025-01-17 11:08:04.284 T:15984   debug <general>: CPlayerCoreFactory::GetPlayers: matched 0 rules with players
2025-01-17 11:08:04.284 T:15984   debug <general>: CPlayerCoreFactory::GetPlayers: adding videodefaultplayer (VideoPlayer)
2025-01-17 11:08:04.284 T:15984   debug <general>: CPlayerCoreFactory::GetPlayers: for video=true, audio=false
2025-01-17 11:08:04.284 T:15984   debug <general>: CPlayerCoreFactory::GetPlayers: for video=true, audio=true
2025-01-17 11:08:04.284 T:15984   debug <general>: CPlayerCoreFactory::GetPlayers: added 1 players
2025-01-17 11:08:04.286 T:15984   debug <general>: Radio UECP (RDS) Processor - new CDVDRadioRDSData::CDVDRadioRDSData
2025-01-17 11:08:04.286 T:15984   debug <general>: Audio ID3 tag processor - new CVideoPlayerAudioID3::CVideoPlayerAudioID3
2025-01-17 11:08:04.286 T:15984    info <general>: VideoPlayer::OpenFile: pvr://recordings/tv/active/TEST/Recording, TV, 20250117_100800, 98520329-/TEST/Recording.pvr

But with KodiSetup-20250104-68bbc562-master-x64.exe:
 
Code:
2025-01-17 11:12:19.571 T:2084    debug <general>: CPlayerCoreFactory::GetPlayers(pvr://recordings/tv/active/TEST/Recording, TV, 20250117_101215, 98520329-/TEST/Recording.pvr)
2025-01-17 11:12:19.571 T:2084    debug <general>: CPlayerSelectionRule::GetPlayers: considering rule: system rules
2025-01-17 11:12:19.571 T:2084    debug <general>: CPlayerSelectionRule::GetPlayers: matches rule: system rules
2025-01-17 11:12:19.571 T:2084    debug <general>: CPlayerSelectionRule::GetPlayers: considering rule: mms/udp
2025-01-17 11:12:19.571 T:2084    debug <general>: CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout
2025-01-17 11:12:19.571 T:2084    debug <general>: CPlayerSelectionRule::GetPlayers: considering rule: rtmp
2025-01-17 11:12:19.571 T:2084    debug <general>: CPlayerSelectionRule::GetPlayers: considering rule: rtsp
2025-01-17 11:12:19.571 T:2084    debug <general>: CPlayerSelectionRule::GetPlayers: considering rule: streams
2025-01-17 11:12:19.571 T:2084    debug <general>: CPlayerSelectionRule::GetPlayers: considering rule: dvd
2025-01-17 11:12:19.571 T:2084    debug <general>: CPlayerSelectionRule::GetPlayers: considering rule: discimage
2025-01-17 11:12:19.571 T:2084    debug <general>: CPlayerSelectionRule::GetPlayers: considering rule: sdp/asf
2025-01-17 11:12:19.571 T:2084    debug <general>: CPlayerSelectionRule::GetPlayers: considering rule: nsv
2025-01-17 11:12:19.571 T:2084    debug <general>: CPlayerSelectionRule::GetPlayers: considering rule: radio
2025-01-17 11:12:19.571 T:2084    debug <general>: CPlayerCoreFactory::GetPlayers: matched 0 rules with players
2025-01-17 11:12:19.571 T:2084    debug <general>: CPlayerCoreFactory::GetPlayers: adding videodefaultplayer (VideoPlayer)
2025-01-17 11:12:19.571 T:2084    debug <general>: CPlayerCoreFactory::GetPlayers: for video=true, audio=false
2025-01-17 11:12:19.571 T:2084    debug <general>: CPlayerCoreFactory::GetPlayers: for video=true, audio=true
2025-01-17 11:12:19.571 T:2084    debug <general>: CPlayerCoreFactory::GetPlayers: added 1 players
2025-01-17 11:12:19.573 T:2084    debug <general>: Radio UECP (RDS) Processor - new CDVDRadioRDSData::CDVDRadioRDSData
2025-01-17 11:12:19.573 T:2084    debug <general>: Audio ID3 tag processor - new CVideoPlayerAudioID3::CVideoPlayerAudioID3
2025-01-17 11:12:19.573 T:2084     info <general>: VideoPlayer::OpenFile: pvr://recordings/tv/active/TEST/Recording, TV, 20250117_101215, 98520329-/TEST/Recording.pvr
2025-01-17 11:12:19.573 T:2084    debug <general>: CWIN32Util::GetWindowsHDRStatus: Display is HDR capable and current HDR status is OFF
2025-01-17 11:12:19.574 T:13068   debug <general>: Thread VideoPlayer start, auto delete: false
2025-01-17 11:12:19.574 T:2084    debug <general>: CApplicationPlayerCallback::OnPlayBackStarted: CApplication::OnPlayBackStarted
2025-01-17 11:12:19.574 T:13068    info <general>: Creating InputStream
2025-01-17 11:12:19.574 T:13068   error <general>: CVideoPlayer::OpenInputStream - error opening [pvr://recordings/tv/active/TEST/Recording, TV, 20250117_101215, 98520329-/TEST/Recording.pvr]
2025-01-17 11:12:19.574 T:13068    info <general>: CVideoPlayer::OnExit()

Debug logs:
kodi-dad09250.log
kodi-68bbc562.log
Reply
#10
@Stuggy please activate debug log level and pvr component debugging in Kodi settings, restart Kodi, reproduce the issue, and send the log again.
Reply
#11
@Stuggy: What I already see from the logs is that exactly the same pvr URL is handed over to VideoPlayer, but in one case VideoPlayer does not create a demuxer.
Reply
#12
@A600 for your case, pvr.iptvsimple is returning an error "not implemented" when it should open the recording for playback. best is to raise an issue for pvr.iptvsimple at github.

EDIT: Seems it actually is not an addon issue. I'm working on it...

@Stuggy can you confirm that your pvr add-on is returning no error when asked to open the recoding's stream (API call to OpenRecordedStream) or don't we even get to that point?
Reply
#13
Found the issue. Fix is in the works.
Reply
#14
Appreciated Smile
Reply
#15
Great! Many thanks, @ksooo

Edit: Compiled the PR with the fix and working as before  Smile
Reply

Logout Mark Read Team Forum Stats Members Help
I can't get PVR recordings to play0