home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
Watch / Listen Media
watch/edit Videos
Audio sync problems when screen set to 24 Hz
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Scythe42" data-source="post: 507658" data-attributes="member: 95833"><p><strong>Update:</strong></p><p></p><p>The quick fix seems to work for me. I tested it with a couple of different files. Audio is always perfectly in sync shortly after playback started and stays this way. How many frames are skipped depends on how far it was off in the first place when playback started. Of course you need to adjust for any general processing delay to get audio perfectly spot on. </p><p></p><p>Because of the late frames some frames get dropped every now and then. The reason for the late frames is still unknown (machine is nearly idle). But at least I have an acceptable workaround for now and we can investigate the reason for the late frames in more detail. It's a crude patch but it does its job for now.</p><p></p><p>I also tried it with 60Hz. Same happens. Late frames but because of the higher refresh rate they get presented anyway resulting in speed up segments instead of dropped frames and some judder when this happens. IMHO not better because playback is not smooth either way. The frames shouldn't be late in the first place (especially not at the beginning of playback).</p><p></p><p>So it looks like a general bug, but this needs to be confirmed by others first.</p><p></p><p>[PHP]Index: EVRCustomPresenter.cpp</p><p>===================================================================</p><p>--- EVRCustomPresenter.cpp (revision 23545)</p><p>+++ EVRCustomPresenter.cpp (working copy)</p><p>@@ -1347,8 +1347,13 @@</p><p> else</p><p> {</p><p> //too late, but present anyway</p><p>- Log("frame is too late for %I64d ms, last sleep time %d ms.", -*pNextSampleTime/10000, msLastSleepTime );</p><p>- CHECK_HR(PresentSample(pSample), "PresentSample failed");</p><p>+ //Log("frame is too late for %I64d ms, last sleep time %d ms.", -*pNextSampleTime/10000, msLastSleepTime );</p><p>+ //CHECK_HR(PresentSample(pSample), "PresentSample failed");</p><p>+</p><p>+ //too late, don't present</p><p>+ m_iFramesDropped++;</p><p>+ m_didSkip = true;</p><p>+ Log( "skipping frame, behind %I64d ms, last sleep time %d ms.", -*pNextSampleTime/10000, msLastSleepTime );</p><p> }</p><p> } </p><p> else </p><p>[/PHP]</p><p></p><p>In case someone wants to try this, I attached the patched dshowhelper.dll I'm using under MP 1.0.10 Beta right now. If you try this let me know if it fixes similar problems on your end or if it breaks anything else. If you don't have similar problems I suggest you don't try the patched DLL.</p></blockquote><p></p>
[QUOTE="Scythe42, post: 507658, member: 95833"] [B]Update:[/B] The quick fix seems to work for me. I tested it with a couple of different files. Audio is always perfectly in sync shortly after playback started and stays this way. How many frames are skipped depends on how far it was off in the first place when playback started. Of course you need to adjust for any general processing delay to get audio perfectly spot on. Because of the late frames some frames get dropped every now and then. The reason for the late frames is still unknown (machine is nearly idle). But at least I have an acceptable workaround for now and we can investigate the reason for the late frames in more detail. It's a crude patch but it does its job for now. I also tried it with 60Hz. Same happens. Late frames but because of the higher refresh rate they get presented anyway resulting in speed up segments instead of dropped frames and some judder when this happens. IMHO not better because playback is not smooth either way. The frames shouldn't be late in the first place (especially not at the beginning of playback). So it looks like a general bug, but this needs to be confirmed by others first. [PHP]Index: EVRCustomPresenter.cpp =================================================================== --- EVRCustomPresenter.cpp (revision 23545) +++ EVRCustomPresenter.cpp (working copy) @@ -1347,8 +1347,13 @@ else { //too late, but present anyway - Log("frame is too late for %I64d ms, last sleep time %d ms.", -*pNextSampleTime/10000, msLastSleepTime ); - CHECK_HR(PresentSample(pSample), "PresentSample failed"); + //Log("frame is too late for %I64d ms, last sleep time %d ms.", -*pNextSampleTime/10000, msLastSleepTime ); + //CHECK_HR(PresentSample(pSample), "PresentSample failed"); + + //too late, don't present + m_iFramesDropped++; + m_didSkip = true; + Log( "skipping frame, behind %I64d ms, last sleep time %d ms.", -*pNextSampleTime/10000, msLastSleepTime ); } } else [/PHP] In case someone wants to try this, I attached the patched dshowhelper.dll I'm using under MP 1.0.10 Beta right now. If you try this let me know if it fixes similar problems on your end or if it breaks anything else. If you don't have similar problems I suggest you don't try the patched DLL. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Watch / Listen Media
watch/edit Videos
Audio sync problems when screen set to 24 Hz
Contact us
RSS
Top
Bottom