-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Improve setting framenumber #1851
Conversation
rounding estimated frameNumber.
setting frameGrabbed to false after grabbing; update of videoStream and audioStream variables after starting grabber; add helper API functions hasVideo(), hasAudio() and printFormatInfo(int);
Add test seeking in audio only and video only files;
(VIDEO, AUDIO, ANY)
add getLengthInVideoFrames() alias of getLengthInFrames(); cleanup;
refresh to the last release
….1, librealsense2 2.44.0, Leptonica 1.82.0, Tesseract 5.0.0
…e for metadata from FFmpeg (pull bytedeco#1720)
…l to `av_frame_copy_props()` (issue bytedeco#1729)
…gFrameGrabber` (pull bytedeco#1730)
…git into framenumber
I don't know if I did it right. It looks like I'm completely confused in all these operations. I apologize... |
The only change I mean is e980ac2 |
That sounds like pretty much the same thing as Math.round(). How is it different from what was there before pull #1734 (review) ? |
Absolutely right! Because floor(x+0.5) is equivalent for round(x). Moreover, we can revert to Math.round in all three methods of framenumber setting (however the addition of 500000L should be done anyway). |
Could you fix the branch somehow so that we can see only your changes? |
It doesn't look like your tests are liking these changes... |
It was because of copy-paste mistake in setAudioFrameNumber. It is fixed now. |
And you're sure this doesn't cause a regression for issue #1697? |
It passes :) |
Minor changes to the calculation of frameNumber to improve the accuracy of the methods
setFrameNumber, setVideoFrameNumber, setAudioFrameNumber.
Solves #1849