• 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 50
24p and audio sync issues
#46
gav1577 Wrote:After doing some testing with a 250ms audio delay i found i would get random stutters and alot of dropped frames. Especially after skipping through a movie
about a second after i skip forward the video would stutter and drop about 3-5 frames sometimes more. If i reset the delay back to 0 no more dropped frames and smooth video again. Although setting the delay fixes the problem with sync
the random stutters/dropped frames are annoying so went back to using 50hz
refresh and and video (resync audio) i can live with the 4% speed up don't really notice it tbh

does the stuttering also happen when you do not have "sync playback to display" turned on?
Reply
#47
I have been having this same problem now since the Dharma Beta's.

It only occurs with DXVA2 & "auto adjust refresh" selected. So far i can only confirm that it affects 24p content as i don't have any others.

Mine is about a 200ms delay as far as i can tell and its with all 24p content.

P.S. I have turned off all post processing on my TV
HTPC specs:
Samsung 40" ES8000 3DTV, Win8 Pro 64bit, Intel Core i3 530, ATI HD5450, Antec Minuet HTPC Case, 6GB Kingston HyperX DDR3 1333, Gigabyte GA-H55M-USB3
Reply
#48
with all credits to a11599 I have updated his patch to be configurable through advancedsettings.xml and posted it on trac as a potential patch - to be looked at by the devs.

http://trac.xbmc.org/ticket/10809
Reply
#49
Wow, cool, I totally forgot about this thread. Smile Nice addition with advancedsettings.xml. It would be better to find the root cause of this phenomenon, but in the meantime, this workaround will do it just as well.

As far as I can tell, it does not depend on DXVA, it happens with all 24p content here, "regular" 24p XviD SD .avi-s as well. (Maybe only with auto refresh rate enabled? Have not tested that.)
Reply
#50
I am having this same issue. It would be great if this bug could be resolved before Dharma gets released or if the code change for advancedsettings.xml could be implemented.
Reply
#51
how i install the patch? i have downloaded it but how to install on ubuntu?
Reply
#52
toby77jo Wrote:how i install the patch? i have downloaded it but how to install on ubuntu?

you can only install it if you make your own build.
Reply
#53
i am building from svn every day, what is the command to inlcude the patch when i do ./configure make etc?
Reply
#54
toby77jo Wrote:i am building from svn every day, what is the command to inlcude the patch when i do ./configure make etc?

ok, you have to "apply the patch" to the code. Under Windows I use Tortoise SVN and use the "apply patch" function.

In Linux, according to what I found online, you'll have to use the standard Unix "patch" tool as follows:
Code:
patch -p0 < patch_file

Then, run your build as usual.
If unhappy with the changes use svn revert on the modified files.
Reply
#55
Just a thought, but has anyone tried this?

Disable desktop composition in the properties of the .exe/shortcut. (Compabitility tab).

CrystalP mentioned this in another thread which i promptly tried. It has sorted out my sync issue with 24p content and ATI 5450.

Turn Windows Aero off also has the same effect.

Thanks to CrystalP for this.
HTPC specs:
Samsung 40" ES8000 3DTV, Win8 Pro 64bit, Intel Core i3 530, ATI HD5450, Antec Minuet HTPC Case, 6GB Kingston HyperX DDR3 1333, Gigabyte GA-H55M-USB3
Reply
#56
Lister of Smeg Wrote:Just a thought, but has anyone tried this?

Disable desktop composition in the properties of the .exe/shortcut. (Compabitility tab).

CrystalP mentioned this in another thread which i promptly tried. It has sorted out my sync issue with 24p content and ATI 5450.

Turn Windows Aero off also has the same effect.

Thanks to CrystalP for this.

Yes of course, it resolved the problem described in that thread, namely that 24p video playback became very CHOPPY (like 2-3 fps) when switching auto refresh in combination with Aero turned on.
The problem in this thread is a different one: that both audio and video are smooth, but audio is about 250 ms off from the video. Funny enough a lot of people have that same issue, regardless of the platform (not even a Windows-only thing).
Reply
#57
Question 
I have the following set up:
- Atom/ION 330
- Windows 7 32 bit
- latest nVidia drivers 260.xx - desktop res 1920x1080 @ 50Hz
- latest SVN Dharma RC
- True full screen
- Aero OFF
- Auto adjust refresh rate ON
- Sync playback to display ON & sync method "drop/dupe audio"

When I play 24p material (I should say, 23.976 Hz), the TV nicely switches to 24Hz and I can now most of the time (but not always!) get perfect lip sync - without the 'patch' mentioned prior in this thread.

History
- I did not experience this sync issue as long as I was sticking to the desktop refreshrate of 50 or 60 Hz (with Auto adjust is OFF).
- The issue started when I started to use Auto adjust refreshrate (to benefit from TV optimization for 24p video)
- With "sync playback to display" turned OFF I was getting the audio sync issue almost everytime for 24p material. I experimented with the patch to always have 250ms delay in this case, and it worked fine.
- Now with "sync playback to display" turned ON (and no patch), there is still a minority of videos where I get a ~200 ms out-of-sync issue. Generally in those cases, I see a rapidly increasing vblanks "missed" counter.

What info do the devs (bobo1on1) need to get to the bottom of this? Thanks!
Reply
#58
a11599 Wrote:I also experience this on my Panasonic plasma which has no such video enhancement features. So I have put together a patch, which automatically adds a -250 ms delay (works great for me) to the one which is set for the movie for low fps video modes when sync refreshrate is enabled.

Here it is:
http://pastebin.com/1PKpbx7r

To stress again, this is not a nice solution, just a dirty workaround to fix the behavior on my system, but might also be useful to others. Not tested on anything other than windows, but I think it should work on other platforms also.

ps.: If -250 ms does not suit your setup, you can change -0.25f to the value you prefer in the line which says:
g_settings.m_currentVideoSettings.m_GlobalAudioDelay = -0.25f;

I'd like to be able for XBMC for switch resolution for not just low FPS mode, but a combination of 23.976 FPS AND a non HD resolution. This is because I have no issues with HD releases, but only SD releases.
Is this possible?

Also, why has it been set to check for <=26 ? Shouldn't it be <= 24? I have no issues with 25 fps releases, since this is what I often record TV in.
Reply
#59
Well, you can take the patch and adjust to suit your needs. Smile 26, it is not video fps, but display refresh rate. 25p video is played back at 50 Hz usually, while 24p video is played back at 24 Hz. Therefore, the patch does not kick in for 25p video normally, only if the display actually supports 25 Hz refresh rate (I assumed that should be affected by this bug as well).
Reply
#60
Thanks for clarifying my fps/refresh rate confusion.

Do you know if I can find something to check for the currently played video resolution in GraphicContext.cpp, equivalent to when you check for

g_settings.m_ResInfo[res].fRefreshRate<=26.0f

so I can check for this in the if statement before adjusting the audio delay?
Reply
  • 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 50

Logout Mark Read Team Forum Stats Members Help
24p and audio sync issues8