enen92/screensaver.atv4

screensaver does not play 20% of the time... just displays the first frame

Closed this issue · 2 comments

I'm using the latest commit in offline mode. About 1 out of 5 times, the screensaver starts fine but the corresponding movie doesn't play; it just hangs on the first frame. Here are the last few lines from the kodi.log.

20:27:32 T:140206550152960  NOTICE: VideoInfoScanner: Finished scan. Scanning for video info took 00:00
20:29:06 T:140207367137344  NOTICE: NFS is idle. Closing the remaining connections.
20:30:33 T:140206550152960 WARNING: CSkinInfo: failed to load skin settings
20:30:33 T:140207367137344  NOTICE: DVDPlayer: Opening: /mnt/media/video/ATV4/b6-4.mov
20:30:33 T:140207367137344 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
20:30:33 T:140206344640256  NOTICE: Creating InputStream
20:30:33 T:140206344640256  NOTICE: Creating Demuxer
20:30:33 T:140206344640256  NOTICE: Opening stream: 0 source: 256
20:30:33 T:140206344640256  NOTICE: Creating video codec with codec id: 28
20:30:33 T:140206344640256  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
20:30:33 T:140206344640256  NOTICE: Creating video thread
20:30:33 T:140206344640256   ERROR: Get - failed to get stream
20:30:33 T:140205736490752  NOTICE: running thread: video_thread
20:30:33 T:140206344640256 WARNING: CDVDMessageQueue(audio)::Put MSGQ_NOT_INITIALIZED
20:30:33 T:140205736490752  NOTICE: CDVDVideoCodecFFmpeg::GetFormat - Creating VDPAU(1920x1080)
20:30:33 T:140205736490752  NOTICE: VDPAU::Open: required extension GL_NV_vdpau_interop not found
20:30:33 T:140205736490752  NOTICE:  (VDPAU) Close
20:30:33 T:140205736490752   ERROR: VAAPI::CheckSuccess error: unknown libva error
20:30:33 T:140205736490752  NOTICE: VAAPI::Close
20:30:33 T:140205736490752  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
20:30:33 T:140205736490752  NOTICE:  fps: 30.000000, pwidth: 1920, pheight: 1080, dwidth: 1920, dheight: 1080
20:30:33 T:140205736490752  NOTICE: Display resolution DESKTOP : 1920x1080@ 60.00 - Full Screen (16)
20:30:33 T:140207367137344  NOTICE: Using GL_TEXTURE_2D
20:30:33 T:140207367137344  NOTICE: GL: Selecting Single Pass YUV 2 RGB shader
20:30:34 T:140207367137344  NOTICE: GL: NPOT texture support detected
20:30:34 T:140207367137344  NOTICE: GL: Using GL_ARB_pixel_buffer_object
20:30:48 T:140205736490752 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
20:30:53 T:140207367137344 WARNING: Previous line repeats 2 times.
20:30:53 T:140207367137344   ERROR: CPythonInvoker(3, /usr/share/kodi/addons/screensaver.atv4/atv.py): script didn't stop in 5 seconds - let's kill it

Those are Kodi player errors unfortunately...not something I can solve through the addon code. It justs sends the videos to the player as a playlist. It seems the problem is that you are serving the videos from your NAS through NFS and the server is idle the moment the addon requests them. Hence the playback fails: 20:29:06 T:140207367137344 NOTICE: NFS is idle. Closing the remaining connections. 20:30:33 T:140206344640256 ERROR: Get - failed to get stream.
The only thing I can do is to assure users can run a CMD before the playback starts. That way you can wake up your NAS

Thanks for the info. I will copy them locally and see if that helps.