Audio and video stream direct broadcast method based on HLS protocol

An audio, video and protocol technology, applied in the field of live audio and video streaming based on the HLS protocol, can solve problems such as affecting the user's viewing experience, unsatisfactory playback effect, and occupying a large amount of memory space, so as to reduce the stuttering phenomenon and reduce the delay of live broadcast. Time and low latency effects

Active Publication Date: 2016-08-10
CNR MEDIA
View PDF4 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The disadvantage of this method is that the larger the cache is, the more serious the live broadcast delay will be, and the smaller the cache, the more obvious the lag will be, and it will take up a lot of memory space, resulting in a very bad user experience.
Most players have a good playback experience in WIFI and wired environments, but the playback effect in mobile network environments is not ideal, and the phenomenon of stuttering, blurred screens, and mosaics occurs frequently, which seriously affects the viewing experience of users

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Audio and video stream direct broadcast method based on HLS protocol
  • Audio and video stream direct broadcast method based on HLS protocol

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] The specific embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings, but it should be understood that the protection scope of the present invention is not limited by the specific embodiments.

[0040] A method for live streaming of audio and video streams based on the HLS protocol, including a download thread and a playback thread;

[0041] The download thread is used to manage the local cache directory, and requests m3u8 files and video slice files from the content distribution end;

[0042] Described playing thread is used for parsing the m3u8 file in the cache directory, according to the EXMS value in the m3u8 file and the media sequence number that has been played, calculates the slice that needs to play, and plays sequentially;

[0043] The download thread is executed asynchronously with the play thread.

[0044] like figure 1 As shown, the operation steps of the download thread are:

[0045] S1. The ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses an audio and video stream direct broadcast method based on an HLS protocol. The method comprises a download thread and a play thread, wherein the download thread is used for managing a local cache directory, and requesting an m3u8 file and a video slice file for a content distribution end; the play thread is used for analyzing the m3u8 file in the cache directory, calculating slices needed to be played according to an EXMS value and a media serial number that has been played in the m3u8 file, and orderly playing; and the download thread and the play thread are executed asynchronously. The method of the invention guarantees the low delay of live broadcast, and increases the fluency of the live broadcast under the condition that the network environment is bad; besides, a management mechanism of a slice naming rule and the cache directory ensures that the local storage space occupation is less and no junk files are generated.

Description

technical field [0001] The invention relates to a method for live broadcasting of audio and video streams, in particular to a method for live broadcasting of audio and video streams based on the HLS protocol. Background technique [0002] With the increasing application of mobile Internet video playback technology, HLS protocol-based video playback technology is more and more widely used in mobile Internet. The application of HLS in the mobile Internet is mainly in two ways: on-demand and live broadcast. A complete HLS streaming media system consists of three parts: server, content distribution, and client. The main function of the server is to make m3u8 index files and video slice files. The content distribution end may also include distributed deployment or content distribution network. Its main function is to receive requests from clients and transmit index files, video slice files and other related information to clients through http protocol. The main function of th...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04N21/433H04N21/4335H04N21/437H04N21/472H04N21/643H04N21/845
CPCH04N21/4331H04N21/4334H04N21/4335H04N21/437H04N21/47202H04N21/643H04N21/8456
Inventor 王鋆
Owner CNR MEDIA
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products