2014-12-30, 17:48
Hi folks,
I am having problems with playback of specific streams when VAAPI hardware acceleration is enabled.
When I switch to software decoding everything is fine. As well the same stream plays well on a
Acer Revo with NVidia graphics, so it looks this is related to Intel / VAAPI. As well this is
related to KODI Helix since the same video plays well on XBMC Gotham. Other players
(vlc, avplay, mplayer) plays the stream wthout problems as well.
Obviously there is one frame in the stream on which KODI fails somehow and skips it (according
to the stream info overlay - skip counter is increased when this happens). Visually the video "hangs"
repeating quickly the same two frames for 2-3 seconds - then it continues to play well. Audio
is fine all the time.
This happens from time to time and is of course quite annoying
The following messages appear in kodi.log:
That's the lspci output for my graphics controller:
CPU is i5-4670S.
I am using KODIbuntu 64bit with everything up-to-date as of this post.
I uploaded a 16 seconds chunk (about 8.4 MB) which shows the error. It's not 100% reproducable, but
happens on 2 of 3 tries for me. The error is at position 0:03-0:06 in the video.
http://ul.to/file/tgbhf5yx/video-stutter-at-3s.mp4
That's the avprobe output of the video:
If you need more information just tell me what I should provide (and how).
Thanks a lot!
I am having problems with playback of specific streams when VAAPI hardware acceleration is enabled.
When I switch to software decoding everything is fine. As well the same stream plays well on a
Acer Revo with NVidia graphics, so it looks this is related to Intel / VAAPI. As well this is
related to KODI Helix since the same video plays well on XBMC Gotham. Other players
(vlc, avplay, mplayer) plays the stream wthout problems as well.
Obviously there is one frame in the stream on which KODI fails somehow and skips it (according
to the stream info overlay - skip counter is increased when this happens). Visually the video "hangs"
repeating quickly the same two frames for 2-3 seconds - then it continues to play well. Audio
is fine all the time.
This happens from time to time and is of course quite annoying
The following messages appear in kodi.log:
Code:
16:35:16 T:140309585450752 ERROR: VAAPI::FFGetBuffer - no surface available - dec: 1, render: 3
16:35:16 T:140309585450752 ERROR: Decode - avcodec_decode_video returned failure
16:35:16 T:140309400909568 NOTICE: COutput::OnExit: Output Thread terminated
16:35:16 T:140309585450752 NOTICE: VAAPI::Close - closing decoder context
16:35:16 T:140309400909568 NOTICE: Thread Vaapi-Output start, auto delete: false
16:35:16 T:140309400909568 NOTICE: COutput::OnStartup: Output Thread created
16:35:16 T:140309551879936 NOTICE: Thread Vaapi-Output start, auto delete: false
16:35:16 T:140309551879936 NOTICE: COutput::OnStartup: Output Thread created
16:35:19 T:140311345567680 NOTICE: VAAPI::Close
16:35:19 T:140309400909568 NOTICE: COutput::OnExit: Output Thread terminated
That's the lspci output for my graphics controller:
Code:
00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06)
CPU is i5-4670S.
I am using KODIbuntu 64bit with everything up-to-date as of this post.
I uploaded a 16 seconds chunk (about 8.4 MB) which shows the error. It's not 100% reproducable, but
happens on 2 of 3 tries for me. The error is at position 0:03-0:06 in the video.
http://ul.to/file/tgbhf5yx/video-stutter-at-3s.mp4
That's the avprobe output of the video:
Code:
avprobe version 11-6:11-1, Copyright (c) 2007-2014 the Libav developers
built on Sep 26 2014 14:36:31 with gcc 4.9.1 (Ubuntu 4.9.1-15ubuntu1)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'tmp/video-stutter-at-3s.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 1970-01-01 00:00:00
title : broken2.mp4
encoder : Lavf52.78.3
Duration: 00:00:16.34, start: 0.000000, bitrate: 4294 kb/s
Stream #0.0(und): Video: h264 (Main), yuv420p, 1280x720, 4158 kb/s, 59.94 fps, 59940 tbn, 119.88 tbc (default)
Metadata:
creation_time : 1970-01-01 00:00:00
Stream #0.1(und): Audio: aac, 44100 Hz, stereo, fltp, 125 kb/s (default)
Metadata:
creation_time : 1970-01-01 00:00:00
If you need more information just tell me what I should provide (and how).
Thanks a lot!