Video Frame Seeking Using Sync-Frame Decode Time Estimation
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Decoding a frame at a specific time point in a video can be delayed when the interval to the nearest sync frame is large, and using static information like average fps and codec type leads to inaccurate decoding time calculations, especially for videos with variable frame rates.
Innovation Solution
An electronic device calculates decoding time by identifying the number of frames from a first time point to a previous sync frame using a table related to video frames, considering codec performance and resolution, and decodes within a reference time.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If decoding is performed sequentially from the previous sync frame when the target frame is not a sync frame, then the frame can be decoded, but the decoding time varies and may be excessively long when the interval to the previous sync frame is large
Solution Approach 1:
The system performs preliminary identification of sync frames and calculation of decoding time requirements before actual decoding occurs. By using a table to store sync frame locations and calculating the number of frames to decode in advance, the system can determine whether decoding will complete within the required time window, allowing for proactive time management and avoiding unnecessary delays.
Solution Approach 2:
The system dynamically adjusts decoding parameters based on the actual number of frames to decode and the current playback context. When the interval to the previous sync frame is large, the system can adapt by adjusting buffer management strategies or decoding priorities to ensure timely frame delivery without waiting for sequential decoding completion.
2Device complexity
If decoding time is calculated using only static information such as average fps, codec type, and resolution, then the calculation is simple, but the accuracy is reduced for videos with variable frame rates
Solution Approach 1:
The system transitions from using fixed static parameters (average fps, codec type, resolution) to dynamically calculating the actual number of frames to decode based on the specific video content and sync frame locations. This parameter change allows the decoding time calculation to adapt to variable frame rates and actual decoding requirements, significantly improving accuracy without requiring complex real-time analysis.
Data Source
Figure 1
Figure 2
Figure 3
AI summary
According to various embodiments of the present disclosure, an electronic device may comprise: a display; a memory for storing instructions; and a processor. According to one embodiment, when executed by the processor, the instructions enable the electronic device to: detect an input of requesting playback of a first time point of a video while playing back the video; identify, on the basis of a table related to frames of the video, the number of frames from the first time point to a second time point indicating the previous sync frame; calculate, on the basis of the identified number of frames and the maximum performance of a codec according to the resolution of the video, the time required for decoding; and decode the video on the basis of the maximum performance of the codec according to the resolution of the video and the frames from the first time point to the second time point if it is identified that the calculated time required for decoding is within a reference time. In addition to various embodiments disclosed in the present document, various other embodiments are possible.