Skip to content
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

Add framerate control to sherlock265 #310

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

EdenGottlieb
Copy link

This PR adds framerate control to sherlock265.

The framerate is controlled using a Qt SpinBox element.

Default framerate is 30, which is suitable for most videos but not all.

I tried extracting the video framerate from the SPS, which is analyzed inside libde265 internals, but is not readily accessible from outside. The only option appears to be to dump the whole SPS header and process it manually, or modify libde265 to provide it with the API, which is a bit out of scope right now.

Further work:

  • Detect video framerate automatically

image

This caused the thread to sleep for negative ms, effectively hanging it
This is capped because even on very fast machines, it wouldn't be able to decode faster than 300 fps
This is a performance enhancment, guessing that sleeping for 0 ms might have some performance penantly
This improves decoding precision
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant