v17 Video not smooth when using DXVA / DXVA2
#1
Hi, I am unable to get interlaced video to playback smoothly. Sometimes frames are dropped/skipped and sometimes no frames are dropped/skipped but the video is not smooth. Also deinterlacing can be intermittent resulting in combing and sometimes the video is poor quality. The files play smooth when using MPC-HC. Any help appreciated, thanks.

To reproduce, download the following sample files and adjust the Kodi settings for Render Method = DVXA, DXVA2 = ON, Deinterlace = Auto. The easiest thing to look for is stationary text flickering and wobbling, then the fluid motion of screen movement.

Text_wobble_&_smooth_motion_576i50_(burosch1).mpeg (30mb) [LINK] or [LINK]
Text_wobble_1080i50_(BBC1HD).ts (60mb) [LINK]
Text_wobble_&_smooth_motion_1080i50_(BBCnewsroom).ts (50mb) [LINK]
Smooth_motion_&_High_bitrate_1080i50_(EuroTV).mp4 (300mb) [LINK] or [LINK]

My Test Results.
Image

Note.
1) Though the problems are obvious even when using a 60hz screen, the sample video files are 25fps interlaced and 'perfect' smoothness can only be achieved when the graphics card output is set to 50hz.
2) Don't forget it is possible to install Kodi to a 'test folder' and run Kodi in portable mode by creating a shortcut with the '-p' switch eg. ' C:\Kodi17\Kodi.exe -p '. This will keep all Kodi userdata and settings separate.

Example Logs.
kodi.log - dxva, dxva2 off, deint on [HERE]
kodi.log - dxva, dxva2 on, deint on [HERE]

Code:
TROUBLESHOOTING PERFORMED
-------------------------

Kodi Versions Tested
20160525 = judder
20160302 = judder
16.1 Jarvis = much smoother, not perfect.

Alternate Player
MPC-HC (LAV DXVA2 native, deinterlace on)

Other Media
Interlaced video and Progressive video
Play video from local disk drive vs networked

Kodi Settings
All defaults
Full screen / Window / Fullscreen window
Use limited colour range (16-235)
Audio output device, WASAPI / Directsound
Adjust display refresh rate
Sync playback to display
Render Method, DVXA, Pixel Shader, Software
Allow hardware accel DXVA2
Deinterlace
Deinterlace method
Video scaling method
Show RSS news feeds
Advancedsettings.xml buffermode, cachemembuffersize, readbufferfactor
Advancedsettings.xml minvideocachelevel, minaudiocachelevel

System Settings
Monitor CPU load and gfx load
Bios Disable cool and quiet
Windows power profile to high performance
Disabled Audio device in Device manager
Graphics driver versions
(Display Driver Uninstaller - wagnardmobile.com)
(Perform clean install ON, GeForce Experience OFF)
NVIDIA Driver Versions Tested
v358.50      7.10.2015
v358.91      9.11.2015
v361.43     21.12.2015
v364.72     28.3.2016
v365.10      2.5.2016
v365.19     13.5.2016
v368.22     23.5.2016

Nvidia Control Panel
Change resolution > Refresh rate = 50hz / 60hz / 25hz
(also Kodi > Adjust display refresh rate = OFF)
3D settings > Vercal sync
3D settings > Triple buffering
Deinterlacing > Use inverse telecine

Alternate PC
AMD Athlon X2 2.8ghz, 4gb DDR2 + Nvidia GTX 650 Ti, Win10
Intel i5 4.1ghz Ivybridge 8gb DDR3 + Nvidia GTX 660, Win10
Intel i3 3.3ghz Ivybridge 8gb DDR3 + Intel HD4000 graphics, Win10


MediaInfo .TS file
-----------------------
General
ID                                       : 16520 (0x4088)
Complete name                            : \\TV-PC\Recorded\Test.ts
Format                                   : MPEG-TS
File size                                : 3.67 GiB
Duration                                 : 1h 24mn
Start time                               : UTC 2016-05-14 19:00:51
End time                                 : UTC 2016-05-14 20:25:16
Overall bit rate mode                    : Variable
Overall bit rate                         : 6 217 Kbps
Network name                             : North West
Original network name                    : UK Digital Terrestrial Television
Country                                  : GBR / IRL
Timezone                                 : +01:00:00 / +01:00:00

Video
ID                                       : 201 (0xC9)
Menu ID                                  : 17608 (0x44C8)
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Format settings, GOP                     : M=8, N=24
Codec ID                                 : 27
Duration                                 : 1h 24mn
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 25.000 fps
Standard                                 : Component
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Interlaced
Scan type, store method                  : Separated fields
Scan order                               : Top Field First
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio
ID                                       : 202 (0xCA)
Menu ID                                  : 17608 (0x44C8)
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Muxing mode                              : LATM
Codec ID                                 : 17
Duration                                 : 1h 24mn
Bit rate mode                            : Variable
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Frame rate                               : 46.875 fps (1024 spf)
Compression mode                         : Lossy
Delay relative to video                  : -776ms
Language                                 : English
descriptor_tag_extension                 : 6

Text
ID                                       : 205 (0xCD)
Menu ID                                  : 17608 (0x44C8)
Format                                   : DVB Subtitle
Codec ID                                 : 6
Duration                                 : 1h 24mn
Delay relative to video                  : 1s 900ms
Language                                 : English

Menu
ID                                       : 200 (0xC8)
Menu ID                                  : 17608 (0x44C8)
Duration                                 : 1h 24mn
List                                     : 201 (0xC9) (AVC) / 202 (0xCA) (AAC, English) / 206 (0xCE) (AAC) / 205 (0xCD) (DVB Subtitle, English)
Language                                 :  / English /  / English
Service name                             : ITV HD
Service type                             : advanced codec HD digital television
Reply
#2
Have you explored this extremely helpful link?

http://forum.kodi.tv/showthread.php?tid=194926
Reply
#3
Just updated the first post with more information. Thanks
Reply
#4
I can give you some useful NVidia settings tomorrow msg me if I don't get round to it, I have a higher spec PC but even my lower spec PC works jerkless on krypton.
Reply
#5
Updated the first post with more information and example files. Thanks.
Reply
#6
Actually woody the latest Nvidia driver + modifying relevant 3d settings is a worthwhile experiment. I can tell you my settings which work perfectly if you want.
What I didn't realise until speaking to Nvidia is some of the setting in the Nvidia control panel are relevant to playing movies.
Reply
#7
Hi, I have now tried more Nvidia driver versions and a newer Kodi 17 nightly, still problems.

VLC - software, Deinterlace = OK
SMPlayer - DXVA2, Deinterlace = OK
MPC-HC - DXVA2, Deinterlace = OK
Kodi 16.1 - DXVA2, Deinterlace = OK
Kodi 17 - DXVA2, Deinterlace = poor quality, horizontal line wobble and dropped frames.

Derek,
Have you actually tried the samples to test for motion and quality, do they work on your system?

I have seen the settings from here, they do not work for me. Nvidia Power Management Mode = Max and Vertical Sync = OFF also cause screen tearing [wiki] and very high GPU power usage. A screen tearing/vsync test file is available (1mb) HERE and GPU-Z (2mb) HERE.

Image

Thanks.
Reply

Logout Mark Read Team Forum Stats Members Help
Video not smooth when using DXVA / DXVA21