OLD: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Kodi Community Development

Moderator: TVJunkie198

Locked
vjr
Posts: 6
Joined: Tue Jun 20, 2017 4:30 pm

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by vjr »

I've joined this forum just to thank Michael Brehm for developing this add-on. Running it on latest Libreelec on a second gen Intel Nuc. Works like a dream. I still program the dvr with my Android tablet and the native SD client but with this latest post 1.0.10 test release, I plan to give the dvr scheduling a test drive.

However, best of all - this PVR client has really helped out with the "WAF" issue!

Thank you Michael!

clarkss12
Posts: 1219
Joined: Sat May 11, 2013 11:51 am
Device ID: 104CBEA5 ;1055A951
Location: Michigan, USA
Contact:

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by clarkss12 »

[quoteIf you want to double-check that the RECORD engine is sending the data you expect over, you can do it manually ... from a browser ...

> http://ipv4.my.hdhomerun.com/discover
> Find the "StorageURL" in the list of things you get back; should be one listed on the item with the "StorageID" tag.
> Browse to that URL (e.g. "http://192.168.0.220:xxxx/recorded_files.json")

When you go to that URL you should get back a ton of JSON text, this is what the PVR reads to populate the recordings:
CODE: SELECT ALL
[{"Category":"series","ChannelImageURL":"http://img.hdhomerun.com/tmsimg/h3/NowS ... itle":"The Mystic Isles","FirstAiring":1,"ImageURL":"http://img.hdhomerun.com/tmsimg/assets/ ... 1498262400,".....

If that doesn't work right, it's the RECORD engine. I expect it does work just fine which means it's the PVR :) Worst case is we check the Kodi log to see if my updates have caused a parsing/database query error or something silly!][/quote]

I could not get this to work, Got this message in my browser.
"This site can’t be reached

192.168.10.111 refused to connect."

"StorageID": "6c54cc2f-436a-****-a250-********",
"LocalIP": "192.168.10.111:55484",
"BaseURL": "http://192.168.10.111:55484",
"DiscoverURL": "http://192.168.10.111:55484/discover.json",
"StorageURL": "http://192.168.10.111:55484/recorded_files.json"
}

pavlov70
Posts: 24
Joined: Mon Jun 01, 2015 8:13 am

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by pavlov70 »

djp952 wrote:
Tue Jun 27, 2017 7:25 pm
Was it at the end of the guide load by chance? The issue I'm tracking down in Android seems to happen when it goes to sleep during the guide load, or right after it does the last channel in my list, just up and dies with a SIGSEGV. It would help a lot if it happens on Linux too, if I can't get anywhere with Android specifically I'll give Libreelec a go. Extremely helpful information - THANK YOU!!

edit: Ha, of course it stops crashing as soon as I get the piece in there to help debug it. I suppose that's a clue in and of itself, perhaps it's the guide data. Might explain why it's not happening to everyone. I'll monkey around dorking up the guide data in various ways I guess and see what happens. Frustrating.
I'm not exactly sure when it crashes. I usually have tv playing in the background and only notice it crashing when I hear kodi reboot. Sleep mode is not enabled. I can safely say the full guide loads and everything works fine for a random period of time. I'll be happy to provide any logs or run another version with debug enabled. Thanks!

djp952
Posts: 1184
Joined: Wed Oct 01, 2008 8:46 pm
Device ID: 131EB7F7;131ED0E0
Location: Elkridge, MD USA

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by djp952 »

I'm on the right track with the 1.1 crash now, I need to rebuild all the support libraries with debugging information on to get deeper. It turns out that it's crashing trying to tell me something went wrong with a download. The fault is happening in the cURL code, ironically enough in the function that generates an error message :) It's likely trying to display something that I've already released or never initialized properly in the first place, so it goes boom.

This is looking more and more like an existing issue that just hasn't shown up before with enough frequency to raise any flags. Previously this piece never got stressed very hard, the piece that grabs the data from the Internet. I think having it go out hundreds and hundreds of times to get guide data has likely caused a rare glitch to be more prominent; which is good in the end -- kinda sucks at the moment though. :mrgreen:

edit: I think I got it; if it looks good I'll rebuild and repost. Seems that cURL requires a couple options I wasn't setting when used in a multi-threaded environment. The place where it was blowing up is rather common, and I was able to force it to happen merely by turning off Wifi while the guide was updating. By default if cURL has trouble with name resolution it triggers a signal on Linux which leads to bad things. Kodi itself sets these options, so I'm hopeful! I do 99% of my testing on Windows and port things over to Linux, this is not a problem that would happen on Windows. doh.

NYPlayer
Posts: 3538
Joined: Fri Apr 17, 2009 11:45 am
Device ID: 104112F4,104162C4,10438DAD,10438DF5,10701381,13147C7B,131A192A
Location: Portland OR, 97217

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by NYPlayer »

Cannot play certain channels ... they just will not play... They play fine in HDHomerun App.

Code: Select all

20:23:05.363 T:6064   ERROR: CPVRTimerType::CreateFromAttributes unable to resolve timer type (0x1, 0xa, 235985751)
20:23:08.301 T:9272   ERROR: Previous line repeats 215 times.
20:23:08.301 T:9272  NOTICE: VideoPlayer: Opening: pvr://channels/tv/All channels/pvr.hdhomerundvr_3010560.pvr
20:23:08.301 T:9272 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
20:23:08.302 T:10628  NOTICE: Creating InputStream
20:23:08.303 T:10628  NOTICE: AddOnLog: HDHomeRun DVR PVR Client: OpenLiveStream: streaming channel 735 via url http://10.0.0.130:52842/auto/v735?ClientID=caa03646-91b7-4824-bf83-fe5e8630157a&SessionID=500C57B37323A3ED07E16500A0B6C616
20:23:09.926 T:10628  NOTICE: Creating Demuxer
20:23:20.535 T:9272  NOTICE: Storing total System Uptime
20:23:20.536 T:9272  NOTICE: Saving settings
20:23:20.553 T:9272  NOTICE: Saving skin settings
20:23:20.565 T:9272  NOTICE: stop all
20:23:20.565 T:9272  NOTICE: stop player
20:23:20.565 T:9272  NOTICE: CVideoPlayer::CloseFile()
20:23:20.565 T:9272  NOTICE: VideoPlayer: waiting for threads to exit
20:23:20.574 T:10628  NOTICE: CVideoPlayer::OnExit()
20:23:20.624 T:9272  NOTICE: VideoPlayer: finished waiting
20:23:20.624 T:9272  NOTICE: CVideoPlayer::CloseFile()
20:23:20.624 T:9272  NOTICE: VideoPlayer: waiting for threads to exit
20:23:20.624 T:9272  NOTICE: VideoPlayer: finished waiting
20:23:20.625 T:9272  NOTICE: ES: Stopping event server
20:23:20.625 T:9272  NOTICE: stopping upnp
20:23:20.758 T:1428  NOTICE: ES: UDP Event server stopped
20:23:21.092 T:9272  NOTICE: clean cached files!
20:23:21.127 T:9272  NOTICE: closing down remote control service
20:23:21.127 T:9272  NOTICE: stopped
20:23:21.327 T:9272  NOTICE: destroy
20:23:21.327 T:9272  NOTICE: unload skin
20:23:21.491 T:9272  NOTICE: unload sections
20:23:21.493 T:9272  NOTICE: special://profile/ is mapped to: special://masterprofile/
20:23:21.496 T:9272  NOTICE: PVRManager - stopping
20:23:21.519 T:9272  NOTICE: AddOnLog: HDHomeRun DVR PVR Client: zuki.pvr.hdhomerundvr v1.0.10 unloading
20:23:21.519 T:9272  NOTICE: AddOnLog: HDHomeRun DVR PVR Client: zuki.pvr.hdhomerundvr v1.0.10 unloaded
20:23:21.535 T:9272  NOTICE: application stopped...

Code: Select all

20:27:25.176 T:11864  NOTICE: AddOnLog: HDHomeRun DVR PVR Client: OpenLiveStream: streaming channel 735 via url http://10.0.0.130:52842/auto/v735?ClientID=954d0b2a-a493-4fdf-8666-24d4460d8746&SessionID=FEFA60FB4EA27B90E14BEC3D4E09DC99
20:27:25.675 T:10384   DEBUG: ------ Window Init (DialogBusy.xml) ------
20:27:26.803 T:11864   DEBUG: CDVDInputStreamPVRManager - CDVDInputStreamPVRManager::Open - playback has started on filename pvr://channels/tv/All channels/pvr.hdhomerundvr_3010560.pvr
20:27:26.803 T:11864   DEBUG: CDVDInputStreamPVRManager::Open - stream opened: pvr://channels/tv/All channels/pvr.hdhomerundvr_3010560.pvr
20:27:26.803 T:11864  NOTICE: Creating Demuxer
20:27:29.379 T:11864    INFO: ffmpeg[2E58]: Input #0, mpegts, pvr://channels/tv/All channels/pvr.hdhomerundvr_3010560.pv':
20:27:29.379 T:11864    INFO: ffmpeg[2E58]:   Duration: N/A, bitrate: N/A
20:27:29.379 T:11864    INFO: ffmpeg[2E58]:   Program 1
20:27:29.379 T:11864   DEBUG: CApplication::OnPlayBackStarted: play state was 1, starting 1
20:27:29.379 T:11864   DEBUG: CVideoPlayer::SetCaching - caching state 2
20:27:29.379 T:11864   DEBUG: CDVDClock::SetSpeedAdjust - adjusted:0.000000
20:27:29.388 T:10384   DEBUG: CApplication::PlayFile: OpenFile succeed, play state 2
20:27:29.388 T:10384   DEBUG: CApplication::OnPlayBackStarted: play state was 2, starting 0
20:27:29.405 T:6456   DEBUG: CAnnouncementManager - Announcement: OnPlay from xbmc
20:27:29.405 T:7944   DEBUG: CGUIInfoManager::SetCurrentMovie(pvr://channels/tv/All channels/pvr.hdhomerundvr_3010560.pvr)
20:27:29.405 T:6456   DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnPlay
20:27:29.406 T:10384   DEBUG: CDirectoryProvider[pvr://channels/tv/*?view=lastplayed]: refreshing..
20:27:29.411 T:11436   DEBUG: CPVRDirectory::GetDirectory(pvr://channels/tv/*?view=lastplayed)
20:27:29.623 T:10384   DEBUG: ------ Window Deinit (DialogBusy.xml) ------
20:27:29.640 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.640 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.640 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.640 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.640 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.640 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.640 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.640 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.643 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.643 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.643 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.643 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.643 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.643 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.643 T:11864   DEBUG: CDVDDemuxFFmpeg::Read() fetching extradata, extradata_size(39)
20:27:29.668 T:11864   ERROR: ffmpeg[2E58]: [h264] mmco: unref short failure
20:27:29.668 T:11864   ERROR: ffmpeg[2E58]: [h264] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
20:27:30.159 T:10384   DEBUG: ------ Window Deinit (Pointer.xml) ------
20:27:31.734 T:10384   DEBUG: ------ Window Init (Pointer.xml) ------
20:27:32.579 T:10384   DEBUG: CInputManager::ProcessMouse: trying mouse action leftclick
20:27:32.579 T:10384   DEBUG: CSaveFileStateJob::DoWork - Saving file state for video item pvr://channels/tv/All channels/pvr.hdhomerundvr_3010560.pvr
20:27:32.582 T:10384   DEBUG: Loading settings for pvr://channels/tv/All channels/pvr.hdhomerundvr_3010560.pvr
20:27:32.584 T:10384  NOTICE: CVideoPlayer::CloseFile()
20:27:32.584 T:10384  NOTICE: VideoPlayer: waiting for threads to exit
20:27:32.598 T:11864  NOTICE: CVideoPlayer::OnExit()
20:27:32.598 T:11864   DEBUG: CVideoPlayer::SetCaching - caching state 0
20:27:32.598 T:11864   DEBUG: CDVDClock::SetSpeedAdjust - adjusted:0.000000
20:27:32.619 T:7944   DEBUG: CSaveFileStateJob::DoWork - Saving file state for video item pvr://channels/tv/All channels/pvr.hdhomerundvr_3010560.pvr
20:27:32.631 T:11864   DEBUG: CDVDInputStreamPVRManager::Close - stream closed
20:27:32.632 T:11864   DEBUG: CApplication::OnPlayBackStopped: play state was 2, starting 1
20:27:32.632 T:11864   DEBUG: Thread VideoPlayer 11864 terminating

pavlov70
Posts: 24
Joined: Mon Jun 01, 2015 8:13 am

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by pavlov70 »

djp952 wrote:
Wed Jun 28, 2017 5:18 am
edit: I think I got it; if it looks good I'll rebuild and repost. Seems that cURL requires a couple options I wasn't setting when used in a multi-threaded environment. The place where it was blowing up is rather common, and I was able to force it to happen merely by turning off Wifi while the guide was updating. By default if cURL has trouble with name resolution it triggers a signal on Linux which leads to bad things. Kodi itself sets these options, so I'm hopeful! I do 99% of my testing on Windows and port things over to Linux, this is not a problem that would happen on Windows. doh.
That's exciting news! I'm looking forward kicking the tires on the new build.

djp952
Posts: 1184
Joined: Wed Oct 01, 2008 8:46 pm
Device ID: 131EB7F7;131ED0E0
Location: Elkridge, MD USA

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by djp952 »

NYPlayer wrote:
Wed Jun 28, 2017 8:25 pm
Cannot play certain channels ... they just will not play... They play fine in HDHomerun App.

Code: Select all

20:23:05.363 T:6064   ERROR: CPVRTimerType::CreateFromAttributes unable to resolve timer type (0x1, 0xa, 235985751)
20:23:08.301 T:9272   ERROR: Previous line repeats 215 times.
20:23:08.301 T:9272  NOTICE: VideoPlayer: Opening: pvr://channels/tv/All channels/pvr.hdhomerundvr_3010560.pvr
20:23:08.301 T:9272 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
20:23:08.302 T:10628  NOTICE: Creating InputStream
20:23:08.303 T:10628  NOTICE: AddOnLog: HDHomeRun DVR PVR Client: OpenLiveStream: streaming channel 735 via url http://10.0.0.130:52842/auto/v735?ClientID=caa03646-91b7-4824-bf83-fe5e8630157a&SessionID=500C57B37323A3ED07E16500A0B6C616
20:23:09.926 T:10628  NOTICE: Creating Demuxer
20:23:20.535 T:9272  NOTICE: Storing total System Uptime
20:23:20.536 T:9272  NOTICE: Saving settings
20:23:20.553 T:9272  NOTICE: Saving skin settings
20:23:20.565 T:9272  NOTICE: stop all
20:23:20.565 T:9272  NOTICE: stop player
20:23:20.565 T:9272  NOTICE: CVideoPlayer::CloseFile()
20:23:20.565 T:9272  NOTICE: VideoPlayer: waiting for threads to exit
20:23:20.574 T:10628  NOTICE: CVideoPlayer::OnExit()
20:23:20.624 T:9272  NOTICE: VideoPlayer: finished waiting
20:23:20.624 T:9272  NOTICE: CVideoPlayer::CloseFile()
20:23:20.624 T:9272  NOTICE: VideoPlayer: waiting for threads to exit
20:23:20.624 T:9272  NOTICE: VideoPlayer: finished waiting
20:23:20.625 T:9272  NOTICE: ES: Stopping event server
20:23:20.625 T:9272  NOTICE: stopping upnp
20:23:20.758 T:1428  NOTICE: ES: UDP Event server stopped
20:23:21.092 T:9272  NOTICE: clean cached files!
20:23:21.127 T:9272  NOTICE: closing down remote control service
20:23:21.127 T:9272  NOTICE: stopped
20:23:21.327 T:9272  NOTICE: destroy
20:23:21.327 T:9272  NOTICE: unload skin
20:23:21.491 T:9272  NOTICE: unload sections
20:23:21.493 T:9272  NOTICE: special://profile/ is mapped to: special://masterprofile/
20:23:21.496 T:9272  NOTICE: PVRManager - stopping
20:23:21.519 T:9272  NOTICE: AddOnLog: HDHomeRun DVR PVR Client: zuki.pvr.hdhomerundvr v1.0.10 unloading
20:23:21.519 T:9272  NOTICE: AddOnLog: HDHomeRun DVR PVR Client: zuki.pvr.hdhomerundvr v1.0.10 unloaded
20:23:21.535 T:9272  NOTICE: application stopped...

Code: Select all

20:27:25.176 T:11864  NOTICE: AddOnLog: HDHomeRun DVR PVR Client: OpenLiveStream: streaming channel 735 via url http://10.0.0.130:52842/auto/v735?ClientID=954d0b2a-a493-4fdf-8666-24d4460d8746&SessionID=FEFA60FB4EA27B90E14BEC3D4E09DC99
20:27:25.675 T:10384   DEBUG: ------ Window Init (DialogBusy.xml) ------
20:27:26.803 T:11864   DEBUG: CDVDInputStreamPVRManager - CDVDInputStreamPVRManager::Open - playback has started on filename pvr://channels/tv/All channels/pvr.hdhomerundvr_3010560.pvr
20:27:26.803 T:11864   DEBUG: CDVDInputStreamPVRManager::Open - stream opened: pvr://channels/tv/All channels/pvr.hdhomerundvr_3010560.pvr
20:27:26.803 T:11864  NOTICE: Creating Demuxer
20:27:29.379 T:11864    INFO: ffmpeg[2E58]: Input #0, mpegts, pvr://channels/tv/All channels/pvr.hdhomerundvr_3010560.pv':
20:27:29.379 T:11864    INFO: ffmpeg[2E58]:   Duration: N/A, bitrate: N/A
20:27:29.379 T:11864    INFO: ffmpeg[2E58]:   Program 1
20:27:29.379 T:11864   DEBUG: CApplication::OnPlayBackStarted: play state was 1, starting 1
20:27:29.379 T:11864   DEBUG: CVideoPlayer::SetCaching - caching state 2
20:27:29.379 T:11864   DEBUG: CDVDClock::SetSpeedAdjust - adjusted:0.000000
20:27:29.388 T:10384   DEBUG: CApplication::PlayFile: OpenFile succeed, play state 2
20:27:29.388 T:10384   DEBUG: CApplication::OnPlayBackStarted: play state was 2, starting 0
20:27:29.405 T:6456   DEBUG: CAnnouncementManager - Announcement: OnPlay from xbmc
20:27:29.405 T:7944   DEBUG: CGUIInfoManager::SetCurrentMovie(pvr://channels/tv/All channels/pvr.hdhomerundvr_3010560.pvr)
20:27:29.405 T:6456   DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnPlay
20:27:29.406 T:10384   DEBUG: CDirectoryProvider[pvr://channels/tv/*?view=lastplayed]: refreshing..
20:27:29.411 T:11436   DEBUG: CPVRDirectory::GetDirectory(pvr://channels/tv/*?view=lastplayed)
20:27:29.623 T:10384   DEBUG: ------ Window Deinit (DialogBusy.xml) ------
20:27:29.640 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.640 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.640 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.640 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.640 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.640 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.640 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.640 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.643 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.643 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.643 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.643 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.643 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.643 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.643 T:11864   DEBUG: CDVDDemuxFFmpeg::Read() fetching extradata, extradata_size(39)
20:27:29.668 T:11864   ERROR: ffmpeg[2E58]: [h264] mmco: unref short failure
20:27:29.668 T:11864   ERROR: ffmpeg[2E58]: [h264] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
20:27:30.159 T:10384   DEBUG: ------ Window Deinit (Pointer.xml) ------
20:27:31.734 T:10384   DEBUG: ------ Window Init (Pointer.xml) ------
20:27:32.579 T:10384   DEBUG: CInputManager::ProcessMouse: trying mouse action leftclick
20:27:32.579 T:10384   DEBUG: CSaveFileStateJob::DoWork - Saving file state for video item pvr://channels/tv/All channels/pvr.hdhomerundvr_3010560.pvr
20:27:32.582 T:10384   DEBUG: Loading settings for pvr://channels/tv/All channels/pvr.hdhomerundvr_3010560.pvr
20:27:32.584 T:10384  NOTICE: CVideoPlayer::CloseFile()
20:27:32.584 T:10384  NOTICE: VideoPlayer: waiting for threads to exit
20:27:32.598 T:11864  NOTICE: CVideoPlayer::OnExit()
20:27:32.598 T:11864   DEBUG: CVideoPlayer::SetCaching - caching state 0
20:27:32.598 T:11864   DEBUG: CDVDClock::SetSpeedAdjust - adjusted:0.000000
20:27:32.619 T:7944   DEBUG: CSaveFileStateJob::DoWork - Saving file state for video item pvr://channels/tv/All channels/pvr.hdhomerundvr_3010560.pvr
20:27:32.631 T:11864   DEBUG: CDVDInputStreamPVRManager::Close - stream closed
20:27:32.632 T:11864   DEBUG: CApplication::OnPlayBackStopped: play state was 2, starting 1
20:27:32.632 T:11864   DEBUG: Thread VideoPlayer 11864 terminating
In Kodi, does it look like it's playing but you just get no picture or sound? Up in the upper right it will have the little play arrow and channel number like it's doing something?

If so, you have stumbled upon something I've been trying to figure out for months. It's not the PVR client from what I can tell, it's streaming the data it's receiving (and continues to do so even though you get nothing on the screen) -- it's something about Kodi/ffmpeg or the stream coming from the RECORD engine itself.

What I've been able to learn so far debugging through Kodi is pretty much nada. I know that the stream from the RECORD engine has a ton of empty frames up front for whatever reason, but that really shouldn't matter. I *think* it has something to do with the audio format of the channel. My best guess is that it's taking the Kodi demuxer too long to figure out what to do and one of the operations times out. I've seen evidence that it thinks there are no video or audio streams in the data, but if you break after a while those are set up. It's quite annoying on all fronts.

>> As a workaround you can enable the "Stream Live TV channels directly from tuner devices(s)" option in the Advanced tab of the Addon Configuration settings. Be advised that this breaks timeshifting for Live TV. If this is the same problem I think it is, the channels will magically work again. What that option does is go straight to the tuners rather than the buffer on the RECORD engine. If you were to save them both off, they are very different. The tuner stream starts right up with no padding or empty frames so it seems to get around the problem.

If I'm right about what you're seeing the only thing I can even fathom doing about it directly is to create a custom 'demuxer', and that's borderline insane to attempt. The real solution is going to be either with the RECORD engine or Kodi. I just need the time to finally narrow it down to something tangible and make a suggestion to either Kodi or SiliconDust. It's probably Kodi :)

Interestingly enough, if you were to save off the stream that doesn't play and send it to Kodi it plays just fine. I've done all that, which is why I'm thinking it's a timing issue of some kind. If enough of the stream is available immediately Kodi has no problem with it. For that test I saved it off through the PVR and played it back through the PVR which is why I'm 95% sure it's not a problem with the PVR itself. I've actually done a LOT of work on this, just have come up with nuthin'

djp952
Posts: 1184
Joined: Wed Oct 01, 2008 8:46 pm
Device ID: 131EB7F7;131ED0E0
Location: Elkridge, MD USA

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by djp952 »

pavlov70 wrote:
Thu Jun 29, 2017 5:20 am
djp952 wrote:
Wed Jun 28, 2017 5:18 am
edit: I think I got it; if it looks good I'll rebuild and repost. Seems that cURL requires a couple options I wasn't setting when used in a multi-threaded environment. The place where it was blowing up is rather common, and I was able to force it to happen merely by turning off Wifi while the guide was updating. By default if cURL has trouble with name resolution it triggers a signal on Linux which leads to bad things. Kodi itself sets these options, so I'm hopeful! I do 99% of my testing on Windows and port things over to Linux, this is not a problem that would happen on Windows. doh.
That's exciting news! I'm looking forward kicking the tires on the new build.
Still looking good here, I hope to push out a beta 2 for you guys tonight. I'm pretty confident this solved the problem, but this is such a big set of changes overall I really want to take the time and run through an install and play date with every platform I can before I "publish" it for real.

NYPlayer
Posts: 3538
Joined: Fri Apr 17, 2009 11:45 am
Device ID: 104112F4,104162C4,10438DAD,10438DF5,10701381,13147C7B,131A192A
Location: Portland OR, 97217

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by NYPlayer »

djp952 wrote:
Thu Jun 29, 2017 7:20 am
NYPlayer wrote:
Wed Jun 28, 2017 8:25 pm
Cannot play certain channels ... they just will not play... They play fine in HDHomerun App.

Code: Select all

20:23:05.363 T:6064   ERROR: CPVRTimerType::CreateFromAttributes unable to resolve timer type (0x1, 0xa, 235985751)
20:23:08.301 T:9272   ERROR: Previous line repeats 215 times.
20:23:08.301 T:9272  NOTICE: VideoPlayer: Opening: pvr://channels/tv/All channels/pvr.hdhomerundvr_3010560.pvr
20:23:08.301 T:9272 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
20:23:08.302 T:10628  NOTICE: Creating InputStream
20:23:08.303 T:10628  NOTICE: AddOnLog: HDHomeRun DVR PVR Client: OpenLiveStream: streaming channel 735 via url http://10.0.0.130:52842/auto/v735?ClientID=caa03646-91b7-4824-bf83-fe5e8630157a&SessionID=500C57B37323A3ED07E16500A0B6C616
20:23:09.926 T:10628  NOTICE: Creating Demuxer
20:23:20.535 T:9272  NOTICE: Storing total System Uptime
20:23:20.536 T:9272  NOTICE: Saving settings
20:23:20.553 T:9272  NOTICE: Saving skin settings
20:23:20.565 T:9272  NOTICE: stop all
20:23:20.565 T:9272  NOTICE: stop player
20:23:20.565 T:9272  NOTICE: CVideoPlayer::CloseFile()
20:23:20.565 T:9272  NOTICE: VideoPlayer: waiting for threads to exit
20:23:20.574 T:10628  NOTICE: CVideoPlayer::OnExit()
20:23:20.624 T:9272  NOTICE: VideoPlayer: finished waiting
20:23:20.624 T:9272  NOTICE: CVideoPlayer::CloseFile()
20:23:20.624 T:9272  NOTICE: VideoPlayer: waiting for threads to exit
20:23:20.624 T:9272  NOTICE: VideoPlayer: finished waiting
20:23:20.625 T:9272  NOTICE: ES: Stopping event server
20:23:20.625 T:9272  NOTICE: stopping upnp
20:23:20.758 T:1428  NOTICE: ES: UDP Event server stopped
20:23:21.092 T:9272  NOTICE: clean cached files!
20:23:21.127 T:9272  NOTICE: closing down remote control service
20:23:21.127 T:9272  NOTICE: stopped
20:23:21.327 T:9272  NOTICE: destroy
20:23:21.327 T:9272  NOTICE: unload skin
20:23:21.491 T:9272  NOTICE: unload sections
20:23:21.493 T:9272  NOTICE: special://profile/ is mapped to: special://masterprofile/
20:23:21.496 T:9272  NOTICE: PVRManager - stopping
20:23:21.519 T:9272  NOTICE: AddOnLog: HDHomeRun DVR PVR Client: zuki.pvr.hdhomerundvr v1.0.10 unloading
20:23:21.519 T:9272  NOTICE: AddOnLog: HDHomeRun DVR PVR Client: zuki.pvr.hdhomerundvr v1.0.10 unloaded
20:23:21.535 T:9272  NOTICE: application stopped...

Code: Select all

20:27:25.176 T:11864  NOTICE: AddOnLog: HDHomeRun DVR PVR Client: OpenLiveStream: streaming channel 735 via url http://10.0.0.130:52842/auto/v735?ClientID=954d0b2a-a493-4fdf-8666-24d4460d8746&SessionID=FEFA60FB4EA27B90E14BEC3D4E09DC99
20:27:25.675 T:10384   DEBUG: ------ Window Init (DialogBusy.xml) ------
20:27:26.803 T:11864   DEBUG: CDVDInputStreamPVRManager - CDVDInputStreamPVRManager::Open - playback has started on filename pvr://channels/tv/All channels/pvr.hdhomerundvr_3010560.pvr
20:27:26.803 T:11864   DEBUG: CDVDInputStreamPVRManager::Open - stream opened: pvr://channels/tv/All channels/pvr.hdhomerundvr_3010560.pvr
20:27:26.803 T:11864  NOTICE: Creating Demuxer
20:27:29.379 T:11864    INFO: ffmpeg[2E58]: Input #0, mpegts, pvr://channels/tv/All channels/pvr.hdhomerundvr_3010560.pv':
20:27:29.379 T:11864    INFO: ffmpeg[2E58]:   Duration: N/A, bitrate: N/A
20:27:29.379 T:11864    INFO: ffmpeg[2E58]:   Program 1
20:27:29.379 T:11864   DEBUG: CApplication::OnPlayBackStarted: play state was 1, starting 1
20:27:29.379 T:11864   DEBUG: CVideoPlayer::SetCaching - caching state 2
20:27:29.379 T:11864   DEBUG: CDVDClock::SetSpeedAdjust - adjusted:0.000000
20:27:29.388 T:10384   DEBUG: CApplication::PlayFile: OpenFile succeed, play state 2
20:27:29.388 T:10384   DEBUG: CApplication::OnPlayBackStarted: play state was 2, starting 0
20:27:29.405 T:6456   DEBUG: CAnnouncementManager - Announcement: OnPlay from xbmc
20:27:29.405 T:7944   DEBUG: CGUIInfoManager::SetCurrentMovie(pvr://channels/tv/All channels/pvr.hdhomerundvr_3010560.pvr)
20:27:29.405 T:6456   DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnPlay
20:27:29.406 T:10384   DEBUG: CDirectoryProvider[pvr://channels/tv/*?view=lastplayed]: refreshing..
20:27:29.411 T:11436   DEBUG: CPVRDirectory::GetDirectory(pvr://channels/tv/*?view=lastplayed)
20:27:29.623 T:10384   DEBUG: ------ Window Deinit (DialogBusy.xml) ------
20:27:29.640 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.640 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.640 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.640 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.640 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.640 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.640 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.640 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.641 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.642 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.643 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.643 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.643 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.643 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.643 T:11864   ERROR: ffmpeg[2E58]: [NULL] SPS unavailable in decode_picture_timing
20:27:29.643 T:11864   ERROR: ffmpeg[2E58]: [NULL] non-existing PPS 0 referenced
20:27:29.643 T:11864   DEBUG: CDVDDemuxFFmpeg::Read() fetching extradata, extradata_size(39)
20:27:29.668 T:11864   ERROR: ffmpeg[2E58]: [h264] mmco: unref short failure
20:27:29.668 T:11864   ERROR: ffmpeg[2E58]: [h264] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
20:27:30.159 T:10384   DEBUG: ------ Window Deinit (Pointer.xml) ------
20:27:31.734 T:10384   DEBUG: ------ Window Init (Pointer.xml) ------
20:27:32.579 T:10384   DEBUG: CInputManager::ProcessMouse: trying mouse action leftclick
20:27:32.579 T:10384   DEBUG: CSaveFileStateJob::DoWork - Saving file state for video item pvr://channels/tv/All channels/pvr.hdhomerundvr_3010560.pvr
20:27:32.582 T:10384   DEBUG: Loading settings for pvr://channels/tv/All channels/pvr.hdhomerundvr_3010560.pvr
20:27:32.584 T:10384  NOTICE: CVideoPlayer::CloseFile()
20:27:32.584 T:10384  NOTICE: VideoPlayer: waiting for threads to exit
20:27:32.598 T:11864  NOTICE: CVideoPlayer::OnExit()
20:27:32.598 T:11864   DEBUG: CVideoPlayer::SetCaching - caching state 0
20:27:32.598 T:11864   DEBUG: CDVDClock::SetSpeedAdjust - adjusted:0.000000
20:27:32.619 T:7944   DEBUG: CSaveFileStateJob::DoWork - Saving file state for video item pvr://channels/tv/All channels/pvr.hdhomerundvr_3010560.pvr
20:27:32.631 T:11864   DEBUG: CDVDInputStreamPVRManager::Close - stream closed
20:27:32.632 T:11864   DEBUG: CApplication::OnPlayBackStopped: play state was 2, starting 1
20:27:32.632 T:11864   DEBUG: Thread VideoPlayer 11864 terminating
In Kodi, does it look like it's playing but you just get no picture or sound? Up in the upper right it will have the little play arrow and channel number like it's doing something?

If so, you have stumbled upon something I've been trying to figure out for months. It's not the PVR client from what I can tell, it's streaming the data it's receiving (and continues to do so even though you get nothing on the screen) -- it's something about Kodi/ffmpeg or the stream coming from the RECORD engine itself.

What I've been able to learn so far debugging through Kodi is pretty much nada. I know that the stream from the RECORD engine has a ton of empty frames up front for whatever reason, but that really shouldn't matter. I *think* it has something to do with the audio format of the channel. My best guess is that it's taking the Kodi demuxer too long to figure out what to do and one of the operations times out. I've seen evidence that it thinks there are no video or audio streams in the data, but if you break after a while those are set up. It's quite annoying on all fronts.

>> As a workaround you can enable the "Stream Live TV channels directly from tuner devices(s)" option in the Advanced tab of the Addon Configuration settings. Be advised that this breaks timeshifting for Live TV. If this is the same problem I think it is, the channels will magically work again. What that option does is go straight to the tuners rather than the buffer on the RECORD engine. If you were to save them both off, they are very different. The tuner stream starts right up with no padding or empty frames so it seems to get around the problem.

If I'm right about what you're seeing the only thing I can even fathom doing about it directly is to create a custom 'demuxer', and that's borderline insane to attempt. The real solution is going to be either with the RECORD engine or Kodi. I just need the time to finally narrow it down to something tangible and make a suggestion to either Kodi or SiliconDust. It's probably Kodi :)

Interestingly enough, if you were to save off the stream that doesn't play and send it to Kodi it plays just fine. I've done all that, which is why I'm thinking it's a timing issue of some kind. If enough of the stream is available immediately Kodi has no problem with it. For that test I saved it off through the PVR and played it back through the PVR which is why I'm 95% sure it's not a problem with the PVR itself. I've actually done a LOT of work on this, just have come up with nuthin'
What you describe is exactly what is happening. I figured it was a KODI problem ... thanks for your response.

djp952
Posts: 1184
Joined: Wed Oct 01, 2008 8:46 pm
Device ID: 131EB7F7;131ED0E0
Location: Elkridge, MD USA

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by djp952 »

NYPlayer wrote:
Thu Jun 29, 2017 7:28 am
What you describe is exactly what is happening. I figured it was a KODI problem ... thanks for your response.
No problem! It annoys the <expletive> out of me too, if I can find a way to fix it rest assured I will. I'm certain it's like one line of code in Kodi somewhere, the trick is finding it. Very big on the inside, Kodi is :)

otaku
Posts: 342
Joined: Thu Sep 24, 2015 7:30 pm

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by otaku »

I really want to give this a go but have hit a speed bump.

I had previously asked “Which download would I use for my Nvidia Shield 2017?”

And was pointed in the direction of “aarch64" Android APK. the 'official' (v1.0.10)

However, when I attempt to install I get this…

“App not installed - The package conflicts with an existing package by the same name”

Suggestions?

NYPlayer
Posts: 3538
Joined: Fri Apr 17, 2009 11:45 am
Device ID: 104112F4,104162C4,10438DAD,10438DF5,10701381,13147C7B,131A192A
Location: Portland OR, 97217

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by NYPlayer »

otaku wrote:
Thu Jun 29, 2017 11:44 am
I really want to give this a go but have hit a speed bump.

I had previously asked “Which download would I use for my Nvidia Shield 2017?”

And was pointed in the direction of “aarch64" Android APK. the 'official' (v1.0.10)

However, when I attempt to install I get this…

“App not installed - The package conflicts with an existing package by the same name”

Suggestions?
UnInstall the Version of KODI that is already Installed... then install the downloaded APK.

otaku
Posts: 342
Joined: Thu Sep 24, 2015 7:30 pm

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by otaku »

"UnInstall the Version of KODI that is already Installed... then install the downloaded APK."

Seriously? Do you mean uninstall Kodi 17.3 with all my add-ons?

NYPlayer
Posts: 3538
Joined: Fri Apr 17, 2009 11:45 am
Device ID: 104112F4,104162C4,10438DAD,10438DF5,10701381,13147C7B,131A192A
Location: Portland OR, 97217

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by NYPlayer »

otaku wrote:
Thu Jun 29, 2017 12:07 pm
"UnInstall the Version of KODI that is already Installed... then install the downloaded APK."

Seriously? Do you mean uninstall Kodi 17.3 with all my add-ons?
I believe there is a manual Install ... look in the wiki.

Ken.F
Posts: 2253
Joined: Fri Apr 05, 2013 9:20 am
Device ID: 1041A706, 1043EB32, 104BAD9E, 13168DC5, 1322A7AC
Location: West Rockhill, PA

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by Ken.F »

djp952 wrote:
Thu Jun 29, 2017 7:20 am

If so, you have stumbled upon something I've been trying to figure out for months. It's not the PVR client from what I can tell, it's streaming the data it's receiving (and continues to do so even though you get nothing on the screen) -- it's something about Kodi/ffmpeg or the stream coming from the RECORD engine itself.

What I've been able to learn so far debugging through Kodi is pretty much nada. I know that the stream from the RECORD engine has a ton of empty frames up front for whatever reason, but that really shouldn't matter. I *think* it has something to do with the audio format of the channel. My best guess is that it's taking the Kodi demuxer too long to figure out what to do and one of the operations times out. I've seen evidence that it thinks there are no video or audio streams in the data, but if you break after a while those are set up. It's quite annoying on all fronts.
Maybe those empty frames are being caused by the metadata in the buffer file. I remember someone saying the metadata is contained in the first so many bytes of each recording file. That might be tripping up Kodi.

Locked