Video Source Switching via Key Frame Time Synchronization

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing video source switching methods often result in discontinuous or repeated images during switching between different bit rate video sources, leading to a poor user experience due to long switching times and potential black screen issues.

Innovation Solution

A method that determines a key frame of the current video source, queries its time value, and switches to a new video source when the time difference is within a preset threshold, ensuring smooth switching by synchronizing the rendering of the new source at a key frame corresponding to the original source.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If video source switching is performed by restarting the player, then switching between different bit rate video sources can be achieved, but switching time becomes long and black screen issues occur

Engineering Contradiction:
Improvevideo source switching reliabilityVSAvoidswitching time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent applies preliminary action by pre-loading and preparing the alternative video source before switching is needed. The system maintains a buffer of pre-decoded frames from the alternative source, so when switching is required, the transition can immediately use these prepared frames rather than waiting for decoding to start, thereby reducing switching time and avoiding black screens.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent ensures continuity of useful action by maintaining continuous decoding and buffering of the alternative video source in the background. This continuous preparation ensures that decoding operations never stop, and frame data is always available for immediate switching, eliminating interruptions and maintaining seamless playback.

Inventive Principle:
Principle #20Continuity of useful action

2Loss of time

If video source switching is performed quickly, then switching time is reduced, but image discontinuity or repetition may occur

Engineering Contradiction:
Improveswitching timeVSAvoidimage continuity precision
Core Design Contradiction:
Loss of timeVSManufacturing precision

Solution Approach 1:

The patent applies feedback by continuously monitoring the decoding status and frame synchronization between the current and alternative video sources. The system uses this feedback information to determine the optimal switching moment, ensuring that switching occurs when frames are synchronized, thus preventing image discontinuity or repetition while maintaining fast switching.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The patent replaces the traditional mechanical approach of restarting the player with a software-based frame-level switching mechanism. Instead of resetting the entire playback system, the patent uses decoded frame data and synchronization markers to perform seamless switching at the frame level, achieving both speed and precision.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

3Manufacturing precision

If high bit rate video sources are used, then playing quality is improved, but playing errors and frame freezing occur more frequently

Engineering Contradiction:
Improvevideo playing qualityVSAvoidplaying stability
Core Design Contradiction:
Manufacturing precisionVSReliability

Solution Approach 1:

The patent applies parameter changes by dynamically adjusting the video source bit rate based on real-time network conditions and playback status. When playing errors or frame freezing are detected in the high bit rate source, the system automatically switches to an alternative source with appropriate bit rate parameters, thus maintaining both quality and stability.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent prepares alternative video sources with different bit rate parameters in advance. By pre-loading and buffering frames from alternative sources, the system can quickly switch to a more stable source when quality issues occur, without waiting for error detection and source selection, thereby maintaining both high quality and reliability.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS12041377B2Video source switching method, playing method, apparatus, device, and storage medium
Publication Date: 2024.07.16 TENCENT TECHNOLOGY (SHENZHEN) CO LTD
  • US12041377B2 patent drawing
  • US12041377B2 patent drawing
  • US12041377B2 patent drawing

AI summary

This application discloses a video source switching method, a playing method, an apparatus, a device, and a storage medium. The video source switching method includes obtaining switching information; determining a first key frame of a first video source according to the switching information, the first key frame being a next key frame of a current playing time of the first video source; querying a first time value of the first key frame; identifying a second video source according to the switching information; and switching video sources if a distance between a current time value of the second video source and the first time value is less than or equal to a threshold.