Jerky DXVA forever (until you skip about) - r32773
#1
When I play videos using dxva on my ION box, they play fine, dxva works, etc, etc.

However, I recently updated to a newer SVN revision (32773). Now, playback works fine unless I skip about in the file, eg timeskip or skip backwards 30 seconds.

Not always, but sometimes the playback becomes very jerky (i would guess 2-3fps), the OSD reports a steady 23.98fps and no dropped frames.

The playback remains poor until I skip about the video again (sometimes skipping to different points at random upto 10 times). Pausing/unpausing hasn't worked for me yet.

Sometimes playback starts jerky, othertimes it only goes jerky after jumping to another chapter, etc.

log - http://pastebin.com/Cp3pa8Hr

In the log I play the file "Hulk (2003)", it plays the universal intro fine, then i skip forwards and it goes jerky, i leave it for some seconds, and press skip again and it's smooth. I can get more logs if you want them.

The section which represents jerky motion is (i think):

Code:
#
10:53:37 T:1356 M:869003264   DEBUG: CApplication::OnKey: 61479 pressed, action is StepForward
#
10:53:37 T:3520 M:869003264   DEBUG: CDVDPlayer::SetCaching - caching state 2
#
10:53:37 T:3520 M:869003264   DEBUG: demuxer seek to: 35776
#
10:53:37 T:3520 M:869666816   DEBUG: CDVDDemuxFFmpeg::SeekTime - seek ended up on time 42751
#
10:53:37 T:3520 M:869666816   DEBUG: demuxer seek to: 35776, success
#
10:53:38 T:1356 M:880746496   DEBUG: CAnnouncementManager - Announcement: PlaybackSeek from xbmc
#
10:53:38 T:1356 M:880746496   DEBUG: ------ Window Init (DialogSeekBar.xml) ------
#
10:53:38 T:3700 M:883732480   DEBUG: CDVDPlayerVideo - CDVDMsg::GENERAL_SYNCHRONIZE
#
10:53:38 T:3696 M:883597312   DEBUG: CDVDPlayerAudio - CDVDMsg::GENERAL_SYNCHRONIZE
#
10:53:38 T:3696 M:882487296   DEBUG: CDVDPlayerAudio - CDVDMsg::GENERAL_RESYNC(42912000.000000, 0)
#
10:53:38 T:3700 M:881795072   DEBUG: CDVDPlayerVideo - CDVDMsg::GENERAL_RESYNC(42751000.000000, 1)
#
10:53:38 T:3700 M:881795072    INFO: CDVDPlayerVideo - Stillframe left, switching to normal playback
#
10:53:38 T:3520 M:880521216   DEBUG: CDVDPlayer::HandleMessages - player started 1
#
10:53:38 T:3520 M:880521216   DEBUG: CDVDPlayer::HandleMessages - player started 2
#
10:53:38 T:3520 M:880521216   DEBUG: CDVDPlayer::SetCaching - caching state 3
#
10:53:38 T:3696 M:880357376   DEBUG: CDVDPlayerAudio:: Discontinuity - was:42459087.286141, should be:42912000.000000, error:452912.713859
#
10:53:38 T:3520 M:879714304   DEBUG: CDVDPlayer::SetCaching - caching state 0
#
10:53:40 T:1356 M:864256000   DEBUG: ------ Window Deinit (DialogSeekBar.xml) ------
#
10:53:43 T:3700 M:861655040   DEBUG: CPullupCorrection: detected pattern of length 24: 42000.00 41000.00 42000.00 42000.00 41000.00 42000.00 42000.00 42000.00 41000.00 42000.00 42000.00 41000.00 42000.00 42000.00 42000.00 41000.00 42000.00 42000.00 41000.00 42000.00 42000.00 41000.00 42000.00 42000.00
#
10:53:45 T:1356 M:861913088    INFO: XCURL::DllLibCurlGlobal::CheckIdle - Closing session to http://xoap.weather.com (easy=0204E378, multi=00257720)
#
10:53:45 T:1356 M:861904896   DEBUG: FreeLibrary(secur32.dll) -> 05E61E68
#
10:53:45 T:1356 M:861904896   DEBUG: Win32DllLoader::Unload secur32.dll
#
10:53:47 T:3700 M:862658560   DEBUG: CPullupCorrection: pattern lost
#
10:53:49 T:3700 M:858284032   DEBUG: CPullupCorrection: detected pattern of length 24: 41000.00 42000.00 42000.00 41000.00 42000.00 42000.00 42000.00 41000.00 42000.00 42000.00 41000.00 42000.00 42000.00 42000.00 41000.00 42000.00 42000.00 41000.00 42000.00 42000.00 42000.00 41000.00 42000.00 42000.00
#
10:53:57 T:4092 M:864014336   DEBUG: Thread 4092 terminating (autodelete)
#
10:53:57 T:1688 M:864096256   DEBUG: Thread 1688 terminating (autodelete)
#
10:53:57 T:2936 M:864378880   DEBUG: Thread 2936 terminating (autodelete)
#
10:53:57 T:2404 M:863711232   DEBUG: Thread 2404 terminating (autodelete)
#
10:54:01 T:1356 M:866738176   DEBUG: SECTION:UnloadDelayed(SECTION: LCODE)
#
10:54:02 T:1356 M:865673216   DEBUG: SECTION:UnloadDelayed(DLL: special://xbmcbin/system/ImageLib.dll)
#
10:54:02 T:1356 M:865673216   DEBUG: Win32DllLoader::Unload ImageLib.dll
#
10:54:13 T:3700 M:863969280   DEBUG: CPullupCorrection: pattern lost
#
10:54:15 T:1356 M:863301632   DEBUG: SECTION:UnloadDelayed(DLL: special://xbmcbin/system/libcurl.dll)
#
10:54:15 T:1356 M:863301632   DEBUG: Win32DllLoader::Unload libcurl.dll
#
10:54:15 T:1356 M:863301632   DEBUG: FreeLibrary(libidn-11.dll) -> 05E56608
#
10:54:15 T:1356 M:863301632   DEBUG: Win32DllLoader::Unload libidn-11.dll
#
10:54:15 T:1356 M:863301632   DEBUG: FreeLibrary(libeay32.dll) -> 05E61A08
#
10:54:15 T:1356 M:863301632   DEBUG: FreeLibrary(libssl32.dll) -> 05E57148
#
10:54:15 T:1356 M:863301632   DEBUG: Win32DllLoader::Unload libssl32.dll
#
10:54:15 T:1356 M:863301632   DEBUG: FreeLibrary(libeay32.dll) -> 05E61A08
#
10:54:15 T:1356 M:863301632   DEBUG: Win32DllLoader::Unload libeay32.dll
#
10:54:16 T:3700 M:865656832   DEBUG: CPullupCorrection: detected pattern of length 24: 41000.00 42000.00 42000.00 41000.00 42000.00 42000.00 42000.00 41000.00 42000.00 42000.00 41000.00 42000.00 42000.00 42000.00 41000.00 42000.00 42000.00 41000.00 42000.00 42000.00 42000.00 41000.00 42000.00 42000.00
#
10:54:30 T:1356 M:860979200   DEBUG: SDLKeyboard: scancode: 77, sym: 275, unicode: 0, modifier: 0
#
10:54:30 T:1356 M:860979200   DEBUG: CApplication::OnKey: 61479 pressed, action is StepForward
Info:
System: ASROCK ION330
OS: Windows 7 x86
RAM: 2gb 800Mhz
Nvidia driver: latest as of last week (so 256 or so)
XBMC Rev:32773 dharma

Regards.

Neil

P.s. - when I pause the video and the refresh rate is at 23.98Hz, the fps shows as double (47.95fps) it used to show 23.98. could this be part of the problem?
Reply
#2
pastebin.com a full log
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
i did, the link looks a little lost in the first post.
Reply
#4
im having the same problem with an older nightly build (32544) (i know its older I just didnt had the chance to update it yet)

with a Revo 3610 win7 64.

Only when using DXVA, when using crystal HD it's not as bad (but has other issues)
Hardware: Revo 3610 + SSD - Harmony 700 Remote
Software: XBMCBuntu Gotham - Sickbeard - SabNZBd+

Image
Reply
#5
i tried it with the 32509 build and it does it, I'm trying to work my way back to narrow down the commit.
Reply
#6
right, tried 32393 and it still does it.

It only does it with adjust refresh rate enabled. If it's set to 24Hz before launching xbmc, I can't reproduce the issue.
All stats appear normal, comparing jerky with smooth, I can't see a difference in numbers.

If it jerks, pause the video and skip to a different point, then unpause and it seems to play fine.

After playing the same video a few times, it seems to clear itself of the issue, and getting it to happen again isn't very repeatable.

It happens on 720p as well as 1080p x264/h264 videos (happens on re-encodes as well as direct rips from the bluray disc).

Happens in .mkv, I will try .m2ts

Happens with nvidia drivers 256.98 and 197.45.

One more debug log:

Cars plays jerky.
All the others fine.

http://pastebin.com/ByjgiUXp

I haven't been able to get this to happen on either of my desktops (both with gt240) and one on x64 the other on x86 versions of Windows 7.
Reply
#7
Two more, left it playing for a good few minutes this time.

Start playing the video, everythings fine.
Skip back 30 seconds on line 652, goes jerky
leave it for about 13-14mins and skip ahead by 30 seconds, and playback resumes perfectly.

http://pastebin.com/DXiHUA6L

On this one I left it playing and it fixed itself after 2-3mins:

http://pastebin.com/GprrCX1x

Edit: It only happens with "fake fullscreen" if i use a true fullscreen then it's fine (so far!)
Reply
#8
This maybe related to a problem MediaPortal had earlier this year: http://forum.team-mediaportal.com/watch-...nge-71311/

There were a number of workarounds - disable/toggle aero, alt-tab, win-tab.
Seemed to happen mostly on nVidia.

Before I look into their solution, I'd like to know if you have the same problem.

Were you able to go back to a version that doesn't have the problem?

ofc this doesn't happen on my computer, which makes things more... interesting Smile
Always read the Kodi online-manual, the FAQ and search the forum before posting.
Do not e-mail Kodi Team members directly asking for support. Read/follow the forum rules (wiki).
For troubleshooting and bug reporting please make sure you read this first.
Reply
#9
i went back as far as the nightly builds allowed, and it was still there.

I can try some builds from sshcs, even though they are unofficial, it might help?
Reply
#10
It might but I wouldn't count on finding one without the problem.

You can build xbmc if I remember correctly?
Always read the Kodi online-manual, the FAQ and search the forum before posting.
Do not e-mail Kodi Team members directly asking for support. Read/follow the forum rules (wiki).
For troubleshooting and bug reporting please make sure you read this first.
Reply
#11
CrystalP Wrote:It might but I wouldn't count on finding one without the problem.

You can build xbmc if I remember correctly?

I usually do build (good memory!), but my VC++ building thingy from microsoft only lasts 30 days. So I'd have to format my comp again to do itSad

The problem sounds just like the mediaportal one. Alt+tab does fix it, as does tabbing back to the menu (and thus 60hz) and then tabbing back to the movie (24hz).

I just tried with aero off and the jerkyness goes, except I loose vsync. With it on/off in both nvidia control panel and xbmc, or on in one and off in the other. Just doesn't work Sad

I guess nvidia can't do vsync in a window.
Reply
#12
At least you have a few workarounds now Smile

VS express is a free reg at Microsoft to get a permanent registration code.

I'll look into MP's fix, no promise for Dharma though.
Always read the Kodi online-manual, the FAQ and search the forum before posting.
Do not e-mail Kodi Team members directly asking for support. Read/follow the forum rules (wiki).
For troubleshooting and bug reporting please make sure you read this first.
Reply
#13
Can you create a trac ticket, cc me.
Here's a preliminary patch: http://xbmc.pastebin.com/rSpHYyyB
Let me know!
Always read the Kodi online-manual, the FAQ and search the forum before posting.
Do not e-mail Kodi Team members directly asking for support. Read/follow the forum rules (wiki).
For troubleshooting and bug reporting please make sure you read this first.
Reply
#14
Thanks Crytalp!, I will download source now, and let you know how it goes later today.

edit: compiling now.....
Reply
#15
just tried it, and the new window is created, but the focus doesn't switch back to xbmc. The taskbar stays on the bottom of the screen.

I clicked on xbmc to make it have the focus. but it looses focus when stopping the video too.

And it doesn't seem to have made an impact on the playback. When I move around within the video (using the arrows keys) it still ends up jerky Sad

Thanks for being so quick on making the patch, it's appreciated.
Reply

Logout Mark Read Team Forum Stats Members Help
Jerky DXVA forever (until you skip about) - r327730