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: 508723" data-attributes="member: 95833"><p>With 1:1 Frame Rate the issue is reproducible every time because of improper frame dropping. I continued experimenting with the code.</p><p></p><p>So far I made the following adjustments to include proper frame dropping in my current tests:</p><p>- Drop frames if another frame is already due (similar to the existing code)</p><p>- When no time stamp is available set delay to 0, instead of MAX_WAIT, so that there is no artificial introduced lag</p><p>- Delay is never set to min of scheduled time and MAX_WAIT, instead use the correct delay, but schedule everything up to 5ms early to compensate for scheduling inaccuracy (current test case) for now.</p><p></p><p>When playing back 23.976fps material at 24Hz, a frame needs to be dropped in theory about every 41,66 seconds to avoid any drifting as with 1:1 frame rate there is no chance to catch up on additional vsyncs. I deliberately choose this setup, so that I need to drop frames or get lip-sync issues over time.</p><p></p><p>From the logs I see that I have a dropped frames every 34 seconds. No "late scheduled frames" log messages anymore unless something else is causing it (filter, driver, clock etc). That's a big improvement. Need to get it a little bit closer though. Still not good enough, but at least constant, which should make it easier to find what I did wrong. </p><p></p><p>Skipping is very accurate, fast forward works smooth (need to find out how to detect it properly to avoid "dropping frame" log messages). Rewind is currently broken because I don't detect fw/rew at the moment and rewind is always detected as frames being behind. Also need to test with DVDs.</p><p></p><p>I'd say I found the root cause, now it's just to include the required frame dropping properly without breaking anything else and testing it at various fps vs. refresh rate combination with various filters. From there one we should combine our efforts for further enhancements you and others are already working on. But I need to play around a bit more with the code to fully understand how an EVR presenter works. Not there yet...</p><p></p><p>Installed Powerstrip. Completly screwed up my video driver after installation. I now can only select 30Hz and nothing more *grmpf*. Need to fix this.</p><p></p><p>I can choose between 23Hz and 24Hz on my NVidia graphics cards. 23Hz reports 23.971Hz and 24Hz reports 24.000Hz. Audio clock seems to not perfectly stable (ReClock show this). I really don't trust these reported 23.971Hz. It seems to be strangely off only a bit. I need to check for some other tools that report me this stuff in more detail. Powerstrip is a no-go for me. </p><p></p><p>I'll continue playing with the code and doing some more testing later this week: one adjustment, watch a movie. If it's worse, go back a step. If it looks good watch the whole movie and check the logs afterwards. Guess I need a few fresh Blu-Rays for this. Amazon, here I come <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /></p></blockquote><p></p>
[QUOTE="Scythe42, post: 508723, member: 95833"] With 1:1 Frame Rate the issue is reproducible every time because of improper frame dropping. I continued experimenting with the code. So far I made the following adjustments to include proper frame dropping in my current tests: - Drop frames if another frame is already due (similar to the existing code) - When no time stamp is available set delay to 0, instead of MAX_WAIT, so that there is no artificial introduced lag - Delay is never set to min of scheduled time and MAX_WAIT, instead use the correct delay, but schedule everything up to 5ms early to compensate for scheduling inaccuracy (current test case) for now. When playing back 23.976fps material at 24Hz, a frame needs to be dropped in theory about every 41,66 seconds to avoid any drifting as with 1:1 frame rate there is no chance to catch up on additional vsyncs. I deliberately choose this setup, so that I need to drop frames or get lip-sync issues over time. From the logs I see that I have a dropped frames every 34 seconds. No "late scheduled frames" log messages anymore unless something else is causing it (filter, driver, clock etc). That's a big improvement. Need to get it a little bit closer though. Still not good enough, but at least constant, which should make it easier to find what I did wrong. Skipping is very accurate, fast forward works smooth (need to find out how to detect it properly to avoid "dropping frame" log messages). Rewind is currently broken because I don't detect fw/rew at the moment and rewind is always detected as frames being behind. Also need to test with DVDs. I'd say I found the root cause, now it's just to include the required frame dropping properly without breaking anything else and testing it at various fps vs. refresh rate combination with various filters. From there one we should combine our efforts for further enhancements you and others are already working on. But I need to play around a bit more with the code to fully understand how an EVR presenter works. Not there yet... Installed Powerstrip. Completly screwed up my video driver after installation. I now can only select 30Hz and nothing more *grmpf*. Need to fix this. I can choose between 23Hz and 24Hz on my NVidia graphics cards. 23Hz reports 23.971Hz and 24Hz reports 24.000Hz. Audio clock seems to not perfectly stable (ReClock show this). I really don't trust these reported 23.971Hz. It seems to be strangely off only a bit. I need to check for some other tools that report me this stuff in more detail. Powerstrip is a no-go for me. I'll continue playing with the code and doing some more testing later this week: one adjustment, watch a movie. If it's worse, go back a step. If it looks good watch the whole movie and check the logs afterwards. Guess I need a few fresh Blu-Rays for this. Amazon, here I come :D [/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