CN112911376A - Playing method based on real-time video playing fluency - Google Patents

Playing method based on real-time video playing fluency Download PDF

Info

Publication number
CN112911376A
CN112911376A CN202110135529.4A CN202110135529A CN112911376A CN 112911376 A CN112911376 A CN 112911376A CN 202110135529 A CN202110135529 A CN 202110135529A CN 112911376 A CN112911376 A CN 112911376A
Authority
CN
China
Prior art keywords
memory
real
capacity
playing
time video
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110135529.4A
Other languages
Chinese (zh)
Inventor
张世强
孙宏飞
林春鹏
栾丰
钱贵涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hualu Zhida Technology Co Ltd
Original Assignee
Hualu Zhida Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hualu Zhida Technology Co Ltd filed Critical Hualu Zhida Technology Co Ltd
Priority to CN202110135529.4A priority Critical patent/CN112911376A/en
Publication of CN112911376A publication Critical patent/CN112911376A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4331Caching operations, e.g. of an advertisement for later insertion during playback
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • H04N21/6437Real-time Transport Protocol [RTP]

Abstract

The invention relates to the field of video playing, and discloses a playing method based on real-time video playing fluency, which comprises the following steps: 1) requesting a real-time video source code stream according to a media service communication protocol; 2) storing the received real-time video source code stream data into a buffer memory; 3) monitoring the data capacity in the memory in real time, reading the memory data and starting decoding when the memory capacity is larger than or equal to the calibrated playing capacity; 4) the decoding speed is changed according to the size of the memory data; 5) and drawing the decoded picture resources on a video playing control so as to achieve the effect of smooth real-time video playing. The video playing method takes the dynamic balance of the video flow capacity in the memory as the core, achieves the technical effect of smooth real-time video playing, and has obvious smoothness experience effect compared with the technical route of the current standard frame.

Description

Playing method based on real-time video playing fluency
Technical Field
The invention relates to the field of video playing, in particular to the field of real-time video playing, and particularly relates to a playing method based on real-time video playing fluency.
Background
With the gradual attention of the public transportation industry to the field of safety precaution, the demand for real-time video monitoring is increasingly strong, the requirement for higher user experience on the real-time video playing fluency is met, and the real-time video playing fluency becomes a problem which is concerned with under the eye. Currently, video playing technologies in the industry all implement a video playing mechanism according to a technical route of a standard frame, for example, CN105847967A discloses a video playing control method, which includes: receiving a first video frame and inserting the first video frame into a cache region; predicting a second transmission jitter of a video frame next to a first video frame according to first transmission jitters of a plurality of video frames including the first video frame relative to a video frame received before the first video frame; acquiring the playing time of the second video frame which is output by the cache region latest; and determining the waiting time from the playing time of the second video frame to the next video frame of the second video frame according to the second transmission jitter. However, when a plurality of video windows are opened simultaneously to share a fixed limited network bandwidth, a phenomenon that video is blocked and waiting for loading frequently occurs, and particularly, when the network environment condition is poor, a video blocking phenomenon is more likely to occur, and the user experience degree is seriously affected.
Disclosure of Invention
In view of the above disadvantages in the prior art, an object of the present invention is to provide a smooth playing method based on real-time video playing.
In order to achieve the above purpose, the present invention provides a playing method based on smooth real-time video playing, which adopts the following technical scheme:
a playing method based on real-time video playing fluency comprises the following steps:
1) requesting a real-time video source code stream according to a media service communication protocol;
2) storing the received real-time video source code stream data into a buffer memory;
3) monitoring the data capacity in the memory in real time, reading the memory data when the memory capacity is larger than or equal to the calibrated playing capacity, starting decoding, and firstly searching frame information of the SPS from the memory to ensure that a video decoder can normally decode;
4) the speed of decoding varies according to the size of the memory data: when the memory capacity is larger than the calibrated equilibrium capacity, subdividing the capacity area according to the actual capacity to realize different decoding acceleration speeds; when the actual capacity is not larger than the calibrated equilibrium capacity, subdividing the capacity area according to the actual capacity to realize different decoding speed reduction, thereby ensuring that the memory data cannot overflow and the memory data cannot be consumed and exhausted, and achieving dynamic balance of the memory;
5) and drawing the decoded picture resources on a video playing control so as to achieve the effect of smooth real-time video playing.
Further, the buffer memory is a ring memory.
Furthermore, the real-time video source code stream data is added to the tail of the annular memory, and decoding is started from the head of the annular memory.
Compared with the prior art, the realization of the application technology takes the dynamic balance of the video flow capacity in the memory as the core, achieves the technical effect of smooth real-time video playing, and has obvious smoothness experience effect compared with the technical route of the current standard frame.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments with reference to the following drawings:
fig. 1 is a flow chart of embodiment 1 for smooth real-time video playback.
Detailed Description
The present invention will be described in detail with reference to specific examples. The following examples will assist those skilled in the art in further understanding the invention, but are not intended to limit the invention in any way. It should be noted that variations and modifications can be made by persons skilled in the art without departing from the spirit of the invention. All falling within the scope of the present invention.
Example 1
As shown in fig. 1, a method for smoothly playing a video in real time includes the following steps:
1) requesting a real-time video source code stream according to a media service communication protocol;
the media service communication Protocol is RTSP (Real Time Streaming Protocol) or RTMP (Real Time Messaging Protocol).
2) Storing the received real-time video source code stream data into a ring buffer memory;
the whole real-time video source code stream data is transmitted to a buffer memory, and digital signals in the buffer memory are converted into analog signals to be output at the later stage.
3) Monitoring the data capacity in the annular memory in real time, reading the memory data when the annular memory capacity is larger than or equal to the calibrated playing capacity, starting decoding, and firstly searching frame information of an SPS (Sequence Parameter Set, SPS for short) from the memory, wherein the SPS frame is very small and is less than 100 bytes, so that a video decoder can normally decode; the real-time video source code stream data is added to the tail of the annular memory, and decoding is started from the head of the annular memory;
4) the speed of decoding varies according to the size of the ring memory data: when the memory capacity is larger than the calibration balance capacity (calibration capacity), subdividing the capacity area according to the actual capacity size to realize different decoding speed acceleration, for example, the decoding speed is accelerated from 30 frames/second to 80 frames/second; when the actual capacity is not larger than the calibrated equilibrium capacity, subdividing the capacity area according to the actual capacity to realize different decoding speed reduction, for example, the decoding speed is reduced from 30 frames/second to 25 frames/second, so that the memory data is not overflowed, and the memory data is not consumed and exhausted, so that the dynamic balance of the annular memory is achieved;
5) and drawing the decoded picture resources on the video playing control, namely sequentially loading the decoded video source code stream data to the video playing control so as to achieve the effect of smooth real-time video playing.
As can be understood by those skilled in the art, a video playing control may be displayed in a user interface of the client, for example, and the user may trigger the video playing control in different manners, such as clicking, to obtain the video.
The foregoing description of specific embodiments of the present invention has been presented. It is to be understood that the present invention is not limited to the specific embodiments described above, and that various changes and modifications may be made by one skilled in the art within the scope of the appended claims without departing from the spirit of the invention.

Claims (3)

1. A playing method based on smooth real-time video playing is characterized by comprising the following steps:
1) requesting a real-time video source code stream according to a media service communication protocol;
2) storing the received real-time video source code stream data into a buffer memory;
3) monitoring the data capacity in the memory in real time, reading the memory data when the memory capacity is larger than or equal to the calibrated playing capacity, starting decoding, and firstly searching frame information of the SPS from the memory to ensure that a video decoder can normally decode;
4) the speed of decoding varies according to the size of the memory data: when the memory capacity is larger than the calibrated equilibrium capacity, subdividing the capacity area according to the actual capacity to realize different decoding acceleration speeds; when the actual capacity is not larger than the calibrated equilibrium capacity, subdividing the capacity area according to the actual capacity to realize different decoding speed reduction, thereby ensuring that the memory data cannot overflow and the memory data cannot be consumed and exhausted, and achieving dynamic balance of the memory;
5) and drawing the decoded picture resources on a video playing control so as to achieve the effect of smooth real-time video playing.
2. The method as claimed in claim 1, wherein the buffer memory is a ring memory.
3. The method as claimed in claim 2, wherein the real-time video source code stream data is added to the tail of the ring memory, and the decoding is started from the head of the ring memory.
CN202110135529.4A 2021-02-01 2021-02-01 Playing method based on real-time video playing fluency Pending CN112911376A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110135529.4A CN112911376A (en) 2021-02-01 2021-02-01 Playing method based on real-time video playing fluency

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110135529.4A CN112911376A (en) 2021-02-01 2021-02-01 Playing method based on real-time video playing fluency

Publications (1)

Publication Number Publication Date
CN112911376A true CN112911376A (en) 2021-06-04

Family

ID=76122502

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110135529.4A Pending CN112911376A (en) 2021-02-01 2021-02-01 Playing method based on real-time video playing fluency

Country Status (1)

Country Link
CN (1) CN112911376A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023078228A1 (en) * 2021-11-04 2023-05-11 中兴通讯股份有限公司 Memory management method and apparatus for media file, and computer device and readable medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201163801Y (en) * 2008-02-01 2008-12-10 深圳市同洲电子股份有限公司 Wireless network video reception apparatus and vehicle monitoring equipment with the same
CN102185835A (en) * 2011-04-14 2011-09-14 广东威创视讯科技股份有限公司 Real-time network signal playing method and device
US20150109529A1 (en) * 2012-06-08 2015-04-23 Tencent Technology (Shenzhen) Company Limited Method and system of playing real time online video at variable speed
CN105376607A (en) * 2015-10-29 2016-03-02 深圳云聚汇数码有限公司 Live video method and device in network jittering environment
CN105704554A (en) * 2016-01-22 2016-06-22 广州视睿电子科技有限公司 Audio play method and device
CN105916058A (en) * 2016-05-05 2016-08-31 青岛海信宽带多媒体技术有限公司 Streaming media buffer play method and device and display device
CN106713855A (en) * 2016-12-13 2017-05-24 深圳英飞拓科技股份有限公司 Video playing method and device
CN109769140A (en) * 2018-12-20 2019-05-17 南京杰迈视讯科技有限公司 A kind of network video smoothness control method for playing back based on stream media technology
CN110113306A (en) * 2019-03-29 2019-08-09 华为技术有限公司 Distribute the method and the network equipment of data

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201163801Y (en) * 2008-02-01 2008-12-10 深圳市同洲电子股份有限公司 Wireless network video reception apparatus and vehicle monitoring equipment with the same
CN102185835A (en) * 2011-04-14 2011-09-14 广东威创视讯科技股份有限公司 Real-time network signal playing method and device
US20150109529A1 (en) * 2012-06-08 2015-04-23 Tencent Technology (Shenzhen) Company Limited Method and system of playing real time online video at variable speed
CN105376607A (en) * 2015-10-29 2016-03-02 深圳云聚汇数码有限公司 Live video method and device in network jittering environment
CN105704554A (en) * 2016-01-22 2016-06-22 广州视睿电子科技有限公司 Audio play method and device
CN105916058A (en) * 2016-05-05 2016-08-31 青岛海信宽带多媒体技术有限公司 Streaming media buffer play method and device and display device
CN106713855A (en) * 2016-12-13 2017-05-24 深圳英飞拓科技股份有限公司 Video playing method and device
CN109769140A (en) * 2018-12-20 2019-05-17 南京杰迈视讯科技有限公司 A kind of network video smoothness control method for playing back based on stream media technology
CN110113306A (en) * 2019-03-29 2019-08-09 华为技术有限公司 Distribute the method and the network equipment of data

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023078228A1 (en) * 2021-11-04 2023-05-11 中兴通讯股份有限公司 Memory management method and apparatus for media file, and computer device and readable medium

Similar Documents

Publication Publication Date Title
RU2282888C2 (en) System and method for exchanging signals of audio-visual information
US10382514B2 (en) Presentation of media in an application
US11094346B2 (en) Systems and methods for adaptive streaming of multimedia content
US8572670B2 (en) Video distribution device, video distribution system, and video distribution method
CN101883097A (en) Method and device for realizing that server equipment shares screen of client equipment
US10848794B2 (en) Digital data streaming using server driven adaptive bitrate
CN111147606B (en) Data transmission method, device, terminal and storage medium
CN102158553A (en) Method and device for playing multi-media files for remote desktop
JP2011518526A (en) Terminal user interface device and method for rich media service
US11356739B2 (en) Video playback method, terminal apparatus, and storage medium
US8448213B2 (en) Contents distribution system, contents distribution server, contents reproduction terminal, and contents distribution method
CN114979023A (en) Data transmission method, system, electronic equipment and storage medium
CN113905257A (en) Video code rate switching method and device, electronic equipment and storage medium
CN112911376A (en) Playing method based on real-time video playing fluency
WO2010143550A1 (en) Information processing device, method therefor, and program
US20130290514A1 (en) Dynamic interstitial transitions
CN106331847B (en) Audio and video playing method and apparatus
WO2023202159A1 (en) Video playing methods and apparatuses
CN115914745A (en) Video decoding method and device, electronic equipment and computer readable medium
CN115767149A (en) Video data transmission method and device
CN115776590A (en) Dynamic image quality video playing method and device, electronic equipment and storage medium
CN114584826A (en) Video dynamic downloading method and device, electronic equipment and storage medium
CN113207011A (en) Pre-loading method for short video processing
US20040168204A1 (en) Method of processing packet data between video server and clients
CN112887742B (en) Live stream processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210604