HLS Media File Generation for Seamless Streaming
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current HLS protocols face challenges in providing seamless navigation and trick play operations due to chunk sizes that are too large or inefficiently compressed, leading to gaps in media playback if a chunk lacks an I-frame, and transcoding to include more I-frames results in compression inefficiencies.
Innovation Solution
A method and apparatus for generating HLS media files by creating a playlist before transcoding, ensuring each chunk starts with an I-frame, and optionally adjusting chunk lengths to balance compression efficiency and user experience, allowing for precise seek points and adaptive streaming.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If chunk sizes are increased to reduce the number of segments, then transmission efficiency is improved, but navigation and trick play operations become problematic due to gaps in playback
Solution Approach 1:
The patent segments the media stream into chunks of optimized size that balance transmission efficiency with navigability. Each chunk is carefully sized to contain complete I-frames while remaining small enough to allow random access for seeking and trick play operations, resolving the contradiction between large chunk transmission efficiency and small chunk navigability.
Solution Approach 2:
The patent performs preliminary transcoding during the rendering phase to ensure each chunk starts with an I-frame before transmission. This advance preparation ensures that navigation operations can succeed without playback gaps, while the chunk sizes are pre-optimized for efficient transmission, simultaneously addressing both requirements.
2Reliability
If more I-frames are included to ensure seamless playback, then reliability is improved, but compression efficiency deteriorates
Solution Approach 1:
The patent applies local quality by ensuring I-frames are present at specific critical locations (start of each chunk) rather than uniformly throughout the stream. This targeted approach maintains playback reliability where needed while preserving compression efficiency in other areas by using P-frames and B-frames for normal sequential playback.
Solution Approach 2:
The patent changes the parameter of I-frame placement from a uniform distribution to a strategic distribution based on chunk boundaries and seek point requirements. This optimization ensures I-frames are present exactly where needed for reliable playback and navigation while minimizing their total number to maintain compression efficiency.
3Ease of operation
If chunk sizes are reduced to improve navigation, then ease of operation is improved, but transmission overhead increases
Solution Approach 1:
The patent implements dynamic chunk sizing that adapts to different content types and user behavior patterns. Chunk sizes are optimized based on the specific media content and anticipated navigation requirements, achieving a balance between seek capability and transmission overhead without using excessively small fixed-size chunks.
Data Source
AI summary
A method, apparatus, article of manufacture, and a memory structure for a CPT stream to a client device via an HTTP live streaming (HLS) protocol having a plurality of HLS media files is disclosed. In one embodiment, the method comprises generating an HLS playlist specifying a plurality HLS media files before generating any of the HLS media files, wherein each of the plurality of HLS media files has a unique name, transmitting the HLS playlist to the client device, after generating the HLS playlist, transcoding the CPT stream into at least a subset of the plurality of HLS media files, and providing at least one of the subset of plurality of HLS media files to the client device, wherein the at least one of the plurality of HLS media files is a client-requested media file selected from the HLS playlist.


