Languages

Menu
Sites
Language
VideoFrameExtractor cannot extract all the frames
Hi,
I'm currently using the Tizen::Media::VideoFrameExtractor class because I need to have access to every different frame of a video (in a sporadic way).
 
According to my tests, it looks like the current implementation of the VideoFrameExtractor has a very low precision : almost any time value within a second will return the same frame.
This quite annoying, when the video has, for instance a frame rate of 30 fps : about 30 different frames will be skipped every second.
 
Also problematic is the fact that I cannot find a way to know exactly how many different frames could be returned by the VideoFrameExtractor (or I could probably deal with this 'degraded' mode until some higher precision is handled)
For information, I had plans to use the video duration from VideoFrameExtractor and the video frame rate from the Tizen::Media::Player to get the number of frames but this is not working because of the lack of precision explained before.
 
Am I missing something ?
In case it is a problem with the current implementation, in there a fix planned in a next SDK version, and do we have a estimated release date ?
 
Thank you.

Responses

2 Replies
wil smith
Looks supported behavior is like that only, see GetFrameN()'s documentation excerpt. "The extracted frame may not be exact frame of given timestamp, so that the same frame can be returned even if the timestamp is different."
Francis Bonnin
Thank you. Regarding this excerpt, I had hopes that this would only mean that, for instance, for a 30 fps video, all timestamps in a 1/30 seconds time range would give the same frame (which is logic).