Predictive Video Frame Buffering for Smooth Seeking
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing video decoding methods on mobile devices struggle with quick seeking operations, leading to video lag and reduced user experience due to the inability to decode and buffer video frames in time.
Innovation Solution
A method and apparatus for video seeking and playing that involves obtaining user input, predicting a second playing node, and buffering a target video frame in advance, allowing direct playback from a buffering pool without real-time decoding.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Speed
If real-time decoding is performed during seeking operations, then video data can be decoded on demand, but video lag occurs and playback smoothness deteriorates
Solution Approach 1:
The system performs preliminary decoding and buffering of video frames before they are actually needed for playback. When a seeking operation occurs, the target video frames have already been decoded and stored in the buffering pool, eliminating the lag that would occur with real-time decoding and ensuring smooth playback transition.
2Reliability
If video frames are buffered in advance, then playback smoothness is improved, but device memory consumption increases
Solution Approach 1:
Instead of buffering all video frames or using excessive memory, the system buffers only the necessary target video frames that are predicted to be needed based on user seeking behavior. This partial buffering approach maintains playback smoothness while avoiding unnecessary memory consumption.
Solution Approach 2:
The system dynamically adjusts buffering parameters such as buffer size and frame selection based on device performance capabilities and user behavior patterns. This allows the system to optimize the balance between playback smoothness and memory consumption by changing buffering parameters rather than using a fixed approach.
3Reliability
If decoder processes video data continuously, then decoding completeness is maintained, but device power consumption increases
Solution Approach 1:
Instead of continuous decoding, the system uses periodic action by only decoding video frames when needed for playback or when user seeking behavior indicates those frames will be needed. The decoder is activated selectively based on buffer status and predicted user actions, reducing unnecessary power consumption while maintaining decoding completeness for required frames.
Data Source
AI summary
A method and apparatus for video seeking and playing, a terminal device, a storage medium, and a computer program product, and the method includes: obtaining first seeking information input by a user; determining a first playing node indicated by the first seeking information; predicting, according to the first seeking information, a second playing node, and buffering a target video frame corresponding to the second playing node in a buffering pool, where the second playing node is after the first playing node; and obtaining second seeking information input by the user, and if a playing node indicated by the second seeking information is the second playing node, playing the target video frame in the buffering pool.


