-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VideoReferenceClock: refactor, fixes, video sync for RPi #5582
Conversation
jenkins build this please |
jenkins build this please |
the linux build error is caused by missing libdrm in unified deps. We might also need to install libdrm-dev on the jenkins slave, didn't check that yet. |
jenkins build this please |
While this is running perfectly fine on my hardware (intel), I think this could also work nicely on AMD OSS hardware - can anyone test this? (I need to reinstall my amd boxes before getting that running). Edit: This line needs adjusting: FernetMenta@9012809#diff-cd6e9ebd37bcd0088ec3f06fc3054fdeR100 to test it on AMD |
from a quick test on my kabini this seems to be working fine on AMD as well |
Thanks for testing but I won't enable it for AMD in this PR. It needs much more testing on various hw. @fritsch if you feel comfortable with this change for AMD had have more data from testing, feel free to submit this as a separate PR later. |
jenkins build this please |
I've watched >1h of IPTV news streams and didn't notice any issues, even when using 3:2 pulldown(50Hz stream on 60Hz in windowed mode). @FernetMenta how about enabling this in your master for some enduser testing? |
@wsnipex good idea. will do |
@wsnipex @FernetMenta This should enable it on Intel and AMD: fritsch@65f08d5 |
@fritsch fixed a compiler warning, thx |
it was approved and jenkins builds ok |
VideoReferenceClock: refactor, fixes, video sync for RPi
something's wrong with the refactor for Windows (D3D). Sync playback to display at 23.976fps is extremely stuttering (getting around 14-15fps). Note: my desktop res refresh is at 50fps - and auto refresh change is enabled. I have the impression that the new GetFPS logic doesn't detect the change - as was previously signaled by the graphicsContext. |
Does this help: #5679 ? |
yes thanks that solved the issue. |
@FernetMenta mhhh using beta2 on my atv2 now (which is a release build!) and when watching freetv (60hz refreshrate on tv - 25fps in the stream) i get frame drops maybe one a sec or so - not each sec but really constantly. The strange thing is - as soon as i enable debug logging it works flawless again (seeing the onscreen debug text and it lasts some time and then gets to a rock solid 25fps). You have any idea how this could happen? (no debugger on atv2 - and without debug log its kinda hard to tell anything i guess?) |
you resample audio right? (otherwise this setting don't make any sense) what resample ration does the codec screen show? is it constant? |
Having him on IRC. He has Sync Playback to Display disabled - so most likely not this PR. |
The old VideoReferenceClock has become a big mess and combined all platform specific code into a single file. So any fix or addition required a refactoring first. I stated with it because I wanted to get rid of the brittle GLX implementation for Intel systems. The invisible window with its GLX context often caused trouble.
In parallel @popcornmix worked on a clock for the Pi which is now included here.
credits to @Memphiz who did the work for OSX/iOS. In order not to break future bisects I squashed your changes into the refactor commit.