v16 Frames skipped on Linux
#1
Hi,

I have a problem during playbacks with Kodi 16 on a Ubuntu 14.04 VM (Virtual Machine) hosted by QNAP NAS.
Although resources seem to be fine, I get around 3 frames skipped once at 30-60 seconds... the playback settings are the default ones on Kodi, I played with some settings (hardware acceleration, refresh rate) but didn't seemed to make any difference.

Any advice ?

Image
Reply
#2
Most probably something to do with that QNAP. Do you have SSD drives on it or traditional HDD?
Reply
#3
There are traditional, 2 x WD Red drives in Raid 1 configuration, but I'm pretty sure that isn't a problem with HDD transfer between NAS and the hosted Ubuntu VM.
Reply
#4
Any idea ? I really don't have any clue where to look, my guess is that is something related to some codec...?
Reply
#5
Sorry to bump this thread again, I thought the problem resolved by itself as it seems for a period didn't happened but no it started again and I don't really have an explanation, I don't remember to changed something, it just started again...
So during the playback 3-4 frames are skipped once around 30-50 seconds.
In Kodi log I see this entries:

Code:
CDVDPlayerVideo::CalcDropRequirement - hurry: 1

which from what I read seem to be associated with the poor system performance which is unable to decode video. But this happens also to some low/medium quality media, and the system doesn't seems to reach more than 20% utilization.
I've checked and hardware acceleration is enabled and seems to be used (in my case VAAPI)

Code:
20:34:36 T:140468876715776  NOTICE:  (VDPAU) Close
20:34:36 T:140470965774080    INFO: CActiveAESink::OpenSink - initialize sink
20:34:36 T:140468876715776   DEBUG: VAAPI - open decoder
20:34:36 T:140470553970432   DEBUG: CDVDPlayer::SetCaching - caching state 0
20:34:37 T:140471546214720   DEBUG: CGUIInfoManager::SetCurrentMovie(/nas_share/Multimedia/Movies/Independence.Day.Resurgence.2016.720p.HC.HDRip.X264.AC3-EVO/Independence.Day.Resurgence.2016.720p.HC.HDRip.X264.AC3-EVO.mkv)
20:34:37 T:140468876715776   DEBUG: VAAPI - initialize version 0.39
20:34:37 T:140468876715776   DEBUG: VAAPI - driver in use: Intel i965 driver for Intel(R) CherryView - 1.7.0
20:34:37 T:140468876715776   DEBUG: VAAPI - attrib 0 (get/set) min -100 max 100 value 0x0
20:34:37 T:140468876715776   DEBUG: VAAPI - attrib 1 (get/set) min 0 max 100 value 0x32
20:34:37 T:140468876715776   DEBUG: VAAPI - attrib 2 (get/set) min -180 max 180 value 0x0
20:34:37 T:140468876715776   DEBUG: VAAPI - attrib 3 (get/set) min 0 max 100 value 0x32
20:34:37 T:140468876715776   DEBUG: VAAPI - attrib 6 (get/set) min 0 max 3 value 0x0
20:34:37 T:140468876715776   DEBUG: VAAPI - profile 0
20:34:37 T:140468876715776   DEBUG: VAAPI - profile 1
20:34:37 T:140468876715776   DEBUG: VAAPI - profile 13
20:34:37 T:140468876715776   DEBUG: VAAPI - profile 6
20:34:37 T:140468876715776   DEBUG: VAAPI - profile 7
20:34:37 T:140468876715776   DEBUG: VAAPI - profile 15
20:34:37 T:140468876715776   DEBUG: VAAPI - profile 16
20:34:37 T:140471546214720   DEBUG: GetMovieId (/nas_share/Multimedia/Movies/Independence.Day.Resurgence.2016.720p.HC.HDRip.X264.AC3-EVO/Independence.Day.Resurgence.2016.720p.HC.HDRip.X264.AC3-EVO.mkv), query = select idMovie from movie where idFile=328
20:34:37 T:140468876715776   DEBUG: VAAPI - profile 8
20:34:37 T:140468876715776   DEBUG: VAAPI - profile 9
20:34:37 T:140468876715776   DEBUG: VAAPI - profile 10
20:34:37 T:140468876715776   DEBUG: VAAPI - profile -1
20:34:37 T:140468876715776   DEBUG: VAAPI - profile 12
20:34:37 T:140468876715776   DEBUG: VAAPI - profile 14
20:34:37 T:140468876715776   DEBUG: VAAPI - profile 17
20:34:37 T:140468868323072   DEBUG: Thread Vaapi-Output start, auto delete: false
20:34:37 T:140468868323072  NOTICE: COutput::OnStartup: Output Thread created
20:34:37 T:140468868323072   DEBUG: VAAPI::COutput::CreateGlxContext - created context
20:34:37 T:140468868323072   DEBUG: SECTION:LoadDLL(special://xbmcbin/system/libsse4-x86_64-linux.so)
20:34:37 T:140468868323072   DEBUG: Loading: /usr/lib/kodi/system/libsse4-x86_64-linux.so
20:34:37 T:140468868323072   DEBUG: VAAPI::COutput::InitBufferPool - Surfaces created

I've tried disabling most of the added addons also, didn't changed anything.

Any hint ?
Reply
#6
Ubuntu 14.04 does not support the Braswell you are running _at_all_ I still find it funny that you even get any gpu acceleration with that outdated 3.19 kernel, seems to be manually patched or "preliminary tag" is used.

1) Don't cut logfiles - use a pastebin
2) Provide dmesg | pastebinit
3) Never set Deinterlace to "On"
4) Make sure "Prefer VAAPI Render" is enabled
5) Make sure Upscaling algorithm is set to Bilinear (!), while playing a video choose bilinear and save for all files.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#7
Thank you fritsch for your hints, I did all the above (they were on default AUTO or OFF) didn't solved the problem, BUT strangely after some restarts and I don't know what else it doesn't happens now...
I don't f*** know where is the problem but I'm pretty sure now that it isn't related to Kodi.
Reply

Logout Mark Read Team Forum Stats Members Help
Frames skipped on Linux0