24p and audio sync issues

  Thread Rating:
  • 7 Votes - 4.71 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
neil.j1983 Offline
Member+
Posts: 589
Joined: Jun 2009
Reputation: 28
Post: #41
gav1577 Wrote:Ok i stand corrected i can confirm using mpchc i have no sync problems
I tried the audio delay of 250 in xbmc and it does seem to fix the problem.

but then it puts 25fps videos out of sync. living in pal land, there's no ideal fix. i have mapped a button to audio sync adjust as my work around.

I imagine the devs will leave it till the new audio branch is done?
find quote
Voyager Offline
Team-XBMC Member
Posts: 304
Joined: Apr 2010
Reputation: 4
Location: Belgium
Post: #42
a11599 Wrote: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.
I tried this and it works very nicely for me. I don't have to configure the audio delay anymore for my HD 24p movies manually.
I think this workaround could be improved by taking parameters from advancedsettings.xml, e.g. the magnitude of the delay in ms (0 means that it's turned off) and the threshold (which you coded at 26). This way such solution could actually make it into SVN...
find quote
mikenova Offline
Junior Member
Posts: 1
Joined: Nov 2010
Reputation: 0
Post: #43
Here comes a newbie question.. Smile

Where do i put the fix?

/Mike
find quote
Voyager Offline
Team-XBMC Member
Posts: 304
Joined: Apr 2010
Reputation: 4
Location: Belgium
Post: #44
you can only apply such fixes (patches) if you have an SVN client and your own build environment.
find quote
gav1577 Offline
Senior Member
Posts: 235
Joined: Feb 2007
Reputation: 0
Post: #45
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
(This post was last modified: 2010-11-15 17:06 by gav1577.)
find quote
Voyager Offline
Team-XBMC Member
Posts: 304
Joined: Apr 2010
Reputation: 4
Location: Belgium
Post: #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?
find quote
Lister of Smeg Offline
Senior Member
Posts: 110
Joined: Mar 2010
Reputation: 0
Location: England
Post: #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
find quote
Voyager Offline
Team-XBMC Member
Posts: 304
Joined: Apr 2010
Reputation: 4
Location: Belgium
Post: #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
find quote
a11599 Offline
Team-XBMC Member
Posts: 254
Joined: Sep 2010
Reputation: 2
Location: Budapest, Hungary
Post: #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.)
find quote
KennethC Offline
Member+
Posts: 42
Joined: Dec 2010
Reputation: 0
Post: #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.
find quote
Post Reply