Media Stream Buffer Adjustment for Audio-Video Synchronization

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

The independent transmission of audio and video streams in streaming media results in synchronization issues during playback, particularly in scenarios like online video conferencing or live broadcast, where users have different audio and video needs, and switches between visuals or audio occur, necessitating adjustments in the synchronization relationship.

Innovation Solution

A method for media stream processing that determines the time difference between audio and video streams, obtains buffer information, and adjusts the buffer size to ensure synchronous playback without significant performance overhead, using interfaces provided by WebRTC.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If audio and video streams are transmitted through different channels independently, then the transmission flexibility and adaptability are improved, but the synchronization between audio and video during playback deteriorates

Engineering Contradiction:
Improvetransmission flexibilityVSAvoidaudio-video synchronization
Core Design Contradiction:
Adaptability or versatilityVSReliability

Solution Approach 1:

The patent calculates the time difference between audio and video streams in advance and uses this information to adjust buffer sizes before playback occurs. By determining the time difference ahead of time and pre-configuring buffer parameters, the system ensures synchronization without requiring complex real-time adjustments during playback, thus maintaining both transmission flexibility and synchronization reliability.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent dynamically adjusts buffer parameters (size and timing) based on the calculated time difference between audio and video streams. By changing these parameters adaptively, the system maintains synchronization between independently transmitted audio and video channels, resolving the contradiction between transmission flexibility and playback synchronization.

Inventive Principle:
Principle #35Parameter changes

2Reliability

If buffer size is increased to ensure audio-video synchronization, then the synchronization reliability is improved, but the processing complexity and performance overhead increase

Engineering Contradiction:
Improveaudio-video synchronizationVSAvoidprocessing complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

Instead of using a fixed large buffer size, the patent dynamically calculates and adjusts buffer parameters based on the actual time difference between audio and video streams. This parameter adaptation allows the system to achieve synchronization with minimal buffer overhead, avoiding the complexity of managing large fixed buffers while maintaining synchronization reliability.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The system continuously monitors the time difference between audio and video streams and uses this feedback information to adjust buffer parameters accordingly. This closed-loop approach ensures synchronization is maintained with minimal processing complexity, as the buffer adjustments are automatically driven by the measured time differences rather than requiring complex manual control.

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS20250392632A1Method for media stream processing, electronic device, and medium
Publication Date: 2025.12.25 BEIJING ZITIAO NETWORK TECH CO LTD
  • US20250392632A1 patent drawing
  • US20250392632A1 patent drawing
  • US20250392632A1 patent drawing

AI summary

The present disclosure provides a method for media stream processing, an electronic device, and a medium. And the method includes: receiving a media stream, where the media stream includes an audio stream and a video stream that are transmitted through different channels; determining, in response to triggering of a preset event, a time difference between the audio stream and the video stream that are included in the media stream; obtaining buffer information of the media stream; and adjusting a size of a buffer of the media stream based on the time difference and the buffer information, such that the audio stream and the video stream that are included in the media stream are played back synchronously. The implementation efficiently achieves the effect of audio-video synchronization without incurring substantial performance overhead.