Live Stream Segment Encoding for Real-Time Playback
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing live streaming technologies face challenges in handling the increased data volume of audio/video streaming, leading to potential playback stalls due to insufficient computing power for real-time coding.
Innovation Solution
A method involving caching live streaming media data, slicing it into segments based on a preset granularity, performing parallel coding using multiple servers, and merging the coded data to ensure a code rate that matches the frame rate of the source data, thereby ensuring smooth playback.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If parallel coding is performed using multiple coding servers, then coding efficiency is improved, but system complexity increases
Solution Approach 1:
The patent segments the live streaming media data into multiple independent segments based on GOP (Group of Pictures) boundaries, allowing each segment to be coded independently by different coding servers. This segmentation enables parallel processing while maintaining coding efficiency, as each segment can be processed without waiting for others, directly resolving the contradiction between improved productivity and increased device complexity.
2Reliability
If the target caching duration is set greater than the preset slicing granularity, then smooth playback is ensured, but memory usage increases
Solution Approach 1:
The patent establishes a specific parameter relationship where the target caching duration is set to be greater than the preset slicing granularity (specifically, target caching duration ≥ slicing granularity × 2). This parameter configuration ensures that sufficient cached data is available for parallel coding operations while controlling memory usage through the defined relationship between caching duration and slicing granularity, resolving the contradiction between reliability and volume of stationary object.
Data Source
AI summary
A live streaming media data processing method is provided, performed by a computer device, and including: caching live streaming media source data, and slicing the cached live streaming media source data based on a preset slicing granularity in response to a streaming media duration of the cached live streaming media source data reaching a target caching duration, to obtain a plurality of independently codable streaming media segments, a numerical value of the target caching duration being greater than a numerical value of the preset slicing granularity; performing, by using at least two coding servers, parallel coding on the streaming media segments obtained through the slicing, to obtain respective coded video data of the coding servers, an overall code rate of the at least two coding servers being not less than a frame rate of the live streaming media source data; and merging the respective coded video data of the coding servers to obtain coded live streaming media data configured for transmission to a live streaming client.


