CN110401845B - First screen playing method and device, computer equipment and storage medium - Google Patents

First screen playing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN110401845B
CN110401845B CN201910780091.8A CN201910780091A CN110401845B CN 110401845 B CN110401845 B CN 110401845B CN 201910780091 A CN201910780091 A CN 201910780091A CN 110401845 B CN110401845 B CN 110401845B
Authority
CN
China
Prior art keywords
length
picture group
sending
frame
group
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.)
Active
Application number
CN201910780091.8A
Other languages
Chinese (zh)
Other versions
CN110401845A (en
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.)
Beijing Horizon Yuntian Technology Co ltd
Original Assignee
Beijing Horizon Yuntian 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 Beijing Horizon Yuntian Technology Co ltd filed Critical Beijing Horizon Yuntian Technology Co ltd
Priority to CN201910780091.8A priority Critical patent/CN110401845B/en
Publication of CN110401845A publication Critical patent/CN110401845A/en
Application granted granted Critical
Publication of CN110401845B publication Critical patent/CN110401845B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/2662Controlling the complexity of the video stream, e.g. by scaling the resolution or bitrate of the video stream based on the client capabilities
    • 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/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB

Abstract

The application relates to a first screen playing method and device, computer equipment and a storage medium. The method comprises the following steps: the method comprises the steps of obtaining configuration information of a player of a terminal, wherein the configuration information comprises the length of a cache region corresponding to the player, obtaining pre-stored picture group data, analyzing to obtain sending sequence of each picture group in the picture group data and the length information of each picture group, setting the sending length of each picture group according to the length information and the length of the cache region, sending each picture group to the player of the terminal according to the sending length in a frame skipping mode according to the sending sequence, and playing in a first screen in the player. By adopting the method, the time delay of the first screen playing can be reduced.

Description

First screen playing method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of video data transmission technologies, and in particular, to a method and an apparatus for playing a first screen, a computer device, and a storage medium.
Background
With the development of the live broadcast industry, the demand for a video data transmission technology is higher and higher, and when video live broadcast is performed, to avoid a "black screen" phenomenon during first-screen broadcast, a Group of Pictures (GOP) is often cached in a server, and before live broadcast video data is transmitted, the cached GOP is sent to a player, so that the "black screen" phenomenon of the first screen is solved.
In a traditional mode, the length of one GOP is between 2s and 10s, a server needs to cache a plurality of GOPs, and as the longer the length of the GOP is, the video code rate can be reduced and the bandwidth flow can be reduced, a longer GOP needs to be sent when the first screen is played at present, so that the delay of the first screen playing is increased.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, an apparatus, a computer device, and a storage medium for playing a first screen, which can solve the problem of a large delay in playing the first screen.
A method of first screen playback, the method comprising:
acquiring configuration information of a player of a terminal; the configuration information comprises the length of a cache region corresponding to the player;
acquiring pre-stored picture group data, and analyzing to obtain the sending sequence of each picture group in the picture group data and the length information of each picture group;
setting the sending length of each picture group according to the length information and the length of the cache region;
and sending each picture group to a player of the terminal according to the sending length by adopting a frame skipping mode according to the sending sequence, and performing first-screen playing in the player.
In one embodiment, the method further comprises the following steps: setting frame segments of each picture group so that the sum of the lengths of the frame segments of each picture group is equal to the length information of the cache region; and taking the frame segment as the transmission length of each picture group.
In one embodiment, the method further comprises the following steps: sequentially reading the length of each picture group according to the sending sequence and the length information; judging whether the sum of the length of the current picture group and the frame fragment of the previous picture group is greater than the length of the cache region or not, and if not, setting the frame fragment according to the length of the current picture group; if so, judging whether the sum of the lengths of the subsequent picture groups is greater than 0, if so, setting the frame segment of the current picture group to enable the sum of the frame segment of the current picture group and the frame segment of the previous picture group to be less than the length of the cache region, and if not, setting the frame segment of the current picture group to enable the sum of the frame segment of the current picture group and the frame segment of the previous picture group to be equal to the length of the cache region.
In one embodiment, the method further comprises the following steps: the frame slice is taken from left to right of the group of pictures.
In one embodiment, the method further comprises the following steps: sequentially transmitting the picture groups according to the transmission length and the transmission sequence of the frame fragments; judging whether the sending length of the current picture group is reached, if so, sending the next picture group in a frame skipping mode; until all the groups of pictures are sent to the player of the terminal.
A first screen playback device, the device comprising:
the configuration acquisition module is used for acquiring configuration information of a player of the terminal; the configuration information comprises the length of a cache region corresponding to the player;
the data acquisition module is used for acquiring pre-stored picture group data and analyzing the pre-stored picture group data to obtain the sending sequence of each picture group in the picture group data and the length information of each picture group;
the length setting module is used for setting the sending length of each picture group according to the length information and the length of the cache region;
and the sending module is used for sending each picture group to a player of the terminal according to the sending length by adopting a frame skipping mode according to the sending sequence, and carrying out first-screen playing in the player.
In one embodiment, the length setting module is further configured to set frame segments of each group of pictures, so that a sum of lengths of the frame segments of each group of pictures is equal to the buffer length information; and taking the frame segment as the transmission length of each picture group.
In one embodiment, the length setting module is further configured to sequentially read the length of each group of pictures according to the sending order and the length information; judging whether the sum of the length of the current picture group and the frame fragment of the previous picture group is greater than the length of the cache region or not, and if not, setting the frame fragment according to the length of the current picture group; if so, judging whether the sum of the lengths of the subsequent picture groups is greater than 0, if so, setting the frame segment of the current picture group to enable the sum of the frame segment of the current picture group and the frame segment of the previous picture group to be less than the length of the cache region, and if not, setting the frame segment of the current picture group to enable the sum of the frame segment of the current picture group and the frame segment of the previous picture group to be equal to the length of the cache region.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring configuration information of a player of a terminal; the configuration information comprises the length of a cache region corresponding to the player;
acquiring pre-stored picture group data, and analyzing to obtain the sending sequence of each picture group in the picture group data and the length information of each picture group;
setting the sending length of each picture group according to the length information and the length of the cache region;
and sending each picture group to a player of the terminal according to the sending length by adopting a frame skipping mode according to the sending sequence, and performing first-screen playing in the player.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring configuration information of a player of a terminal; the configuration information comprises the length of a cache region corresponding to the player;
acquiring pre-stored picture group data, and analyzing to obtain the sending sequence of each picture group in the picture group data and the length information of each picture group;
setting the sending length of each picture group according to the length information and the length of the cache region;
and sending each picture group to a player of the terminal according to the sending length by adopting a frame skipping mode according to the sending sequence, and performing first-screen playing in the player.
According to the first screen playing method, the first screen playing device, the computer equipment and the storage medium, the frame skipping mode is adopted to greatly shorten the length of the frame group and effectively reserve the information of each frame group by acquiring the length of the buffer area, the sequence of the frame groups and the length information of the frame groups, and the frame skipping mode is adopted to sequentially send the frame groups to the buffer area.
Drawings
FIG. 1 is a diagram illustrating an exemplary scenario for an embodiment of a first-screen playback method;
FIG. 2 is a flow chart illustrating a first screen playing method according to an embodiment;
FIG. 3 is a flowchart illustrating the step of setting frame segments in one embodiment;
FIG. 4 is a block diagram of a first-screen playback device in one embodiment;
FIG. 5 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The method for playing the first screen can be applied to the application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers.
Specifically, when the first screen is played, the terminal 102 requests live broadcast data, and the server 104 obtains the length of the buffer area of the player in the terminal 102, so that frame skipping transmission is performed according to pre-stored frame data, that is, the phenomenon that the first screen is blank in the terminal 102 can be effectively avoided, and the time delay of the first screen playing can be effectively reduced.
In an embodiment, as shown in fig. 2, a method for playing a first screen is provided, which is described by taking the method as an example for being applied to the server in fig. 1, and includes the following steps:
step 202, obtaining configuration information of a player of the terminal.
The terminal can be a terminal operating in environments such as Android, IOS, windows phone, and the like. The configuration information refers to the length of the buffer corresponding to the player, generally speaking, the unit of the length of the buffer is bytes, for example, the length of the buffer is 10000 bytes, and then 10000 bytes of data can be cached at maximum, in this embodiment, when the player is used for playing the first screen, the size of the frame group data can be represented by a code stream, and the code stream refers to the data flow in unit time, so when the frame group is stored in the buffer, the unit of the buffer can be converted into seconds, for example: the group size is 3s and the buffer length is 5 s.
In step 204, pre-stored picture group data is obtained.
The group of pictures includes the transmission order of each group of pictures and the length information of each group of pictures. The transmission order refers to the order in which the respective groups of pictures are transmitted into the player. The length information refers to the length of each group of pictures, and the unit is seconds.
A group of pictures is a set of consecutive pictures, a group of pictures comprising intra-coded frames, previous predicted frames and bi-directional interpolated frames, and a group of pictures comprising all frame data from a current key frame to a next key frame. Therefore, when transmitting a group of pictures, it is necessary to determine the transmission order of the group of pictures, i.e., the transmission order.
Step 206, setting the sending length of each frame group according to the length information and the length of the buffer area.
The transmission length refers to the length of a transmission picture group, for example: the length of the group of pictures is 5s, and the transmission length may be 1s, 2s, 5s, etc., as required.
And step 208, sending each picture group to a player of the terminal according to the sending length by adopting a frame skipping mode according to the sending sequence, and performing first-screen playing in the player.
The frame skipping refers to skipping to the next group of pictures for transmission when the transmission of the current group of pictures is stopped.
In the first-screen playing method, the frame skipping mode is adopted to greatly shorten the length of the frame group and effectively reserve the information of each frame group by acquiring the length information of the buffer area, the sequence of the frame groups and the length information of the frame groups, so that the first-screen second opening is realized.
In one embodiment, when the lengths of the picture groups are set, it is specifically adopted to set the frame segments of each picture group so that the sum of the lengths of the frame segments of each picture group is equal to the buffer length information, and the frame segment is taken as the transmission length of each picture group. In this embodiment, a frame segment refers to a segment in a group of pictures, and it should be noted that setting a frame segment is not simply extracting data from a group of pictures and saving the data as a frame segment. By the above mode, the total length of the picture group can be compressed to be equal to the length of the buffer area, and the length of the picture group is greatly shortened, so that the time delay of first-screen playing is reduced.
In a specific embodiment, the frame segment may be stored by extracting data in the group of pictures or by recording a position in the group of pictures. By adopting the mode of extracting data, the frame segment corresponding to the picture group can be directly sent when the picture group is sent, and the position recorded in the picture group is sent when the picture group is sent by adopting the mode of recording the position of the picture group.
In a specific embodiment, the frame segment is captured from left to right of the picture group, and the capturing may be to extract data, or to record the position of the frame segment in the picture group by capturing the head and tail data. From left to right, it is referred to as the head of the recording frame starting from the head of the group of pictures. For example: the length of the group of pictures is 5s, the frame segment is 3s, and then the first 3s of the group of pictures is intercepted.
In one embodiment, as shown in fig. 3, an exemplary flowchart of the step of setting frame segments is provided, which specifically includes the following steps:
step 302, sequentially reading the length of each group of pictures according to the sending sequence and the length information.
Step 304, determining whether the sum M of the length of the current frame group and the frame segment of the previous frame group is greater than the length S of the buffer area, if not, jumping to step 306, and if so, jumping to step 308.
Step 306, the frame segment is set according to the length of the current group of pictures.
Step 308, determining whether the sum N of the lengths of the subsequent frames is greater than 0, if so, jumping to step 310, otherwise, jumping to step 312.
In step 310, the frame segments of the current group of pictures are set so that the sum K of the frame segments of the current group of pictures and the frame segments of the previous group of pictures is smaller than the length S of the buffer.
In step 312, the frame segments of the current group of pictures are set such that the sum K of the frame segments of the current group of pictures and the frame segments of the previous group of pictures is equal to the buffer length S.
For step 304, the sum of the length of the current group of pictures and the frame segments of the previous group of pictures means that the total length of the frame segments selected by all groups of pictures before the current group of pictures is summed with the length of the current group of pictures in terms of the sending order. For example, if the previous picture group includes a first picture group and a second picture group, the length of the frame segment of the first picture group is 2s, the length of the frame segment of the second picture group is 1s, the current picture group is the third picture group, and the length of the picture group is 3s, the sum of the length of the current picture group and the frame segment of the previous picture group is 6 s.
In step 308, whether the sum of the lengths of the subsequent groups is greater than 0 is described in the above embodiment, if there are 6 groups, the length of the fifth group is 0, and the length of the sixth group is 0, then the sum of the lengths of the subsequent groups is equal to 0.
In another embodiment, when sending the group of pictures, the specific steps are as follows: and sequentially sending the picture groups according to the sending length and the sending sequence of the frame segments, judging whether the sending length of the current picture group is reached, if so, sending the next picture group in a frame skipping mode until the picture groups are sent to a player of the terminal. In this embodiment, the length of the frame group can be reduced by frame skipping, so as to reduce the delay of the first screen playing.
The present invention will be described below with reference to a specific example.
In one embodiment, the first screen playing method is performed as follows.
And S1, the server configures and caches two picture groups, and the length of the cache area for acquiring the terminal is S.
And S2, receiving a first screen data request sent by the terminal.
S3, judging whether the total length of the group of pictures gop1 and gop2 is larger than the length S of the buffer area, if not, jumping to S4, and if so, jumping to S5.
And S4, sending the picture group gop1 and the picture group gop2 to the terminal, and storing the picture group gop1 and the picture group gop2 in a buffer area of the terminal.
S5, if the length of the group of pictures gop1 is 0, sending data of the group of pictures gop2 with the length equal to S, and the length of the group of pictures gop2 with the length equal to 0, sending data of the group of pictures gop1 with the length equal to S, wherein both the gop1 and the gop2 are larger than zero, sending front part data of the gop1, then skipping to the gop2, and sending front part data of the gop2 to ensure that the sum of the two data is equal to S.
It should be understood that although the steps in the flowcharts of fig. 2 and 3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2 and 3 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 4, there is provided a head screen playing apparatus, including: a configuration acquisition module 402, a data acquisition module 404, a length setting module 406, and a sending module 408, wherein:
a configuration obtaining module 402, configured to obtain configuration information of a player of a terminal; the configuration information comprises the length of a cache region corresponding to the player;
a data obtaining module 404, configured to obtain pre-stored group data of pictures, and analyze the pre-stored group data to obtain sending order of each group of pictures in the group data of pictures and length information of each group of pictures;
a length setting module 406, configured to set a sending length of each frame group according to the length information and the length of the buffer area;
and a sending module 408, configured to send each group of pictures to a player of the terminal according to the sending length in a frame skipping manner according to the sending sequence, and perform first-screen playing in the player.
In one embodiment, the length setting module 406 is further configured to set the frame segments of each group of pictures, so that the sum of the lengths of the frame segments of each group of pictures is equal to the buffer length information; and taking the frame segment as the transmission length of each picture group.
In one embodiment, the length setting module 406 is further configured to sequentially read the length of each group of pictures according to the sending order and the length information; judging whether the sum of the length of the current picture group and the frame fragment of the previous picture group is greater than the length of the cache region or not, and if not, setting the frame fragment according to the length of the current picture group; if so, judging whether the sum of the lengths of the subsequent picture groups is greater than 0, if so, setting the frame segment of the current picture group to enable the sum of the frame segment of the current picture group and the frame segment of the previous picture group to be less than the length of the cache region, and if not, setting the frame segment of the current picture group to enable the sum of the frame segment of the current picture group and the frame segment of the previous picture group to be equal to the length of the cache region.
In one embodiment, the frame slices set in the length setting module 406 are cut from left to right for the group of pictures.
In one embodiment, the sending module 408 is further configured to send the groups of pictures in sequence according to the sending length of the frame segment and the sending order; judging whether the sending length of the current picture group is reached, if so, sending the next picture group in a frame skipping mode; until all the groups of pictures are sent to the player of the terminal.
For specific limitations of the first screen playing apparatus, reference may be made to the above limitations on the first screen playing method, which is not described herein again. All or part of the modules in the first-screen playing device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is also correspondingly provided with a cache region, and the cache region can be realized by Redis and is used for configuring the frame data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a first screen playback method.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In an embodiment, a computer device is provided, comprising a memory storing a computer program and a processor implementing the steps of the method in the above embodiments when the processor executes the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the method in the above-mentioned embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (8)

1. A method of first screen playback, the method comprising:
acquiring configuration information of a player of a terminal; the configuration information comprises the length of a cache region corresponding to the player;
acquiring pre-stored picture group data, and analyzing to obtain the sending sequence of each picture group in the picture group data and the length information of each picture group;
setting the sending length of each picture group according to the length information and the length of the cache region;
sending each picture group to a player of a terminal according to the sending length by adopting a frame skipping mode according to the sending sequence, and performing first-screen playing in the player;
the setting the sending length of each picture group according to the length information and the length of the cache area comprises the following steps:
setting frame segments of each picture group so that the sum of the lengths of the frame segments of each picture group is equal to the length information of the cache region;
and taking the frame segment as the transmission length of each picture group.
2. The method according to claim 1, wherein the setting of the frame segments for each group of pictures comprises:
sequentially reading the length of each picture group according to the sending sequence and the length information;
judging whether the sum of the length of the current picture group and the frame fragment of the previous picture group is greater than the length of the cache region or not, and if not, setting the frame fragment according to the length of the current picture group;
if so, judging whether the sum of the lengths of the subsequent picture groups is greater than 0, if so, setting the frame segment of the current picture group to enable the sum of the frame segment of the current picture group and the frame segment of the previous picture group to be less than the length of the cache region, and if not, setting the frame segment of the current picture group to enable the sum of the frame segment of the current picture group and the frame segment of the previous picture group to be equal to the length of the cache region.
3. The method according to any of claims 1 to 2, wherein the frame slice is taken from left to right of the group of pictures.
4. The method according to any one of claims 1 to 2, wherein the sending the respective groups of pictures to a player of a terminal according to the sending length in the frame skipping manner according to the sending sequence comprises:
sequentially sending the picture groups according to the sending length of the frame fragments and the sending sequence;
judging whether the sending length of the current picture group is reached, if so, sending the next picture group in a frame skipping mode;
until all the groups of pictures are sent to the player of the terminal.
5. A first screen playback device, the device comprising:
the configuration acquisition module is used for acquiring configuration information of a player of the terminal; the configuration information comprises the length of a cache region corresponding to the player;
the data acquisition module is used for acquiring pre-stored picture group data and analyzing the pre-stored picture group data to obtain the sending sequence of each picture group in the picture group data and the length information of each picture group;
the length setting module is used for setting the sending length of each picture group according to the length information and the length of the cache region;
the sending module is used for sending each picture group to a player of a terminal according to the sending length in a frame skipping mode according to the sending sequence, and performing first-screen playing in the player;
the length setting module is further configured to set frame segments of each picture group, so that the sum of the lengths of the frame segments of each picture group is equal to the length information of the buffer area; and taking the frame segment as the transmission length of each picture group.
6. The apparatus according to claim 5, wherein the length setting module is further configured to sequentially read the length of each group of pictures according to the sending order and the length information; judging whether the sum of the length of the current picture group and the frame fragment of the previous picture group is greater than the length of the cache region or not, and if not, setting the frame fragment according to the length of the current picture group; if so, judging whether the sum of the lengths of the subsequent picture groups is greater than 0, if so, setting the frame segment of the current picture group to enable the sum of the frame segment of the current picture group and the frame segment of the previous picture group to be less than the length of the cache region, and if not, setting the frame segment of the current picture group to enable the sum of the frame segment of the current picture group and the frame segment of the previous picture group to be equal to the length of the cache region.
7. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 4 when executing the computer program.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 4.
CN201910780091.8A 2019-08-22 2019-08-22 First screen playing method and device, computer equipment and storage medium Active CN110401845B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910780091.8A CN110401845B (en) 2019-08-22 2019-08-22 First screen playing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910780091.8A CN110401845B (en) 2019-08-22 2019-08-22 First screen playing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110401845A CN110401845A (en) 2019-11-01
CN110401845B true CN110401845B (en) 2021-08-20

Family

ID=68329143

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910780091.8A Active CN110401845B (en) 2019-08-22 2019-08-22 First screen playing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110401845B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113596568B (en) * 2021-07-01 2023-10-17 广州虎牙科技有限公司 Video playing method and device, intelligent terminal and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106488273A (en) * 2016-10-10 2017-03-08 广州酷狗计算机科技有限公司 A kind of method and apparatus of transmission live video
CN106604064A (en) * 2016-12-30 2017-04-26 北京奇艺世纪科技有限公司 Rapid broadcasting method and device
CN106713941A (en) * 2017-01-04 2017-05-24 北京百度网讯科技有限公司 Audio and video live broadcast implementation method and server
CN107483976A (en) * 2017-09-26 2017-12-15 武汉斗鱼网络科技有限公司 Live management-control method, device and electronic equipment
CN109618179A (en) * 2019-01-21 2019-04-12 北京数码视讯软件技术发展有限公司 Ultra high-definition net cast quickly plays broadcasting method and device
CN110113621A (en) * 2018-02-01 2019-08-09 腾讯科技(深圳)有限公司 Playing method and device, storage medium, the electronic device of media information

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106488273A (en) * 2016-10-10 2017-03-08 广州酷狗计算机科技有限公司 A kind of method and apparatus of transmission live video
CN106604064A (en) * 2016-12-30 2017-04-26 北京奇艺世纪科技有限公司 Rapid broadcasting method and device
CN106713941A (en) * 2017-01-04 2017-05-24 北京百度网讯科技有限公司 Audio and video live broadcast implementation method and server
CN107483976A (en) * 2017-09-26 2017-12-15 武汉斗鱼网络科技有限公司 Live management-control method, device and electronic equipment
CN110113621A (en) * 2018-02-01 2019-08-09 腾讯科技(深圳)有限公司 Playing method and device, storage medium, the electronic device of media information
CN109618179A (en) * 2019-01-21 2019-04-12 北京数码视讯软件技术发展有限公司 Ultra high-definition net cast quickly plays broadcasting method and device

Also Published As

Publication number Publication date
CN110401845A (en) 2019-11-01

Similar Documents

Publication Publication Date Title
CN108683826B (en) Video data processing method, video data processing device, computer equipment and storage medium
EP4054190A1 (en) Video data encoding method and device, apparatus, and storage medium
CN109788224B (en) Video recording method, video recording device, network camera and storage medium
CN107371061A (en) A kind of video stream playing method, device and equipment
CN110572691B (en) Video reading method, device, equipment and storage medium
CN110401845B (en) First screen playing method and device, computer equipment and storage medium
CN112866603B (en) Program recording method, device, computer equipment and storage medium
CN110557417A (en) Image processing method and device and storage medium
CN113096218A (en) Dynamic image playing method, device, storage medium and computer equipment
US10992901B2 (en) Method, apparatus, device and storage medium for controlling video playback speed
EP3598738A1 (en) Video synthesis method, apparatus and device, and video playing method, apparatus and device
CN114143486A (en) Video stream synchronization method and device, computer equipment and storage medium
CN112866745B (en) Streaming video data processing method, device, computer equipment and storage medium
CN112292660B (en) Method for scheduling data in memory, data scheduling equipment and system
CN114071222A (en) Audio and video data sharing device and electronic equipment
US10885343B1 (en) Repairing missing frames in recorded video with machine learning
CN108965426B (en) Data processing method and device for audio system, computer equipment and storage medium
CN109308778B (en) Mobile detection alarm method, device, acquisition equipment and storage medium
CN114615522B (en) Low-delay streaming media transcoding and distributing processing method
CN112738574B (en) Screen recording data processing method and device, computer equipment and storage medium
US20220256191A1 (en) Panoramic video generation method, video collection method, and related apparatus
US9542974B2 (en) Video management system and method for event recording using the same
CN114143596B (en) Screen projection control method and device, terminal equipment and storage medium
CN117177079B (en) Image synthesizing method, computer device and computer readable storage medium
CN113891019A (en) Video encoding method, video encoding device, shooting 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
GR01 Patent grant
GR01 Patent grant