CN108495152A - A kind of net cast method, apparatus, electronic equipment and medium - Google Patents

A kind of net cast method, apparatus, electronic equipment and medium Download PDF

Info

Publication number
CN108495152A
CN108495152A CN201810278523.0A CN201810278523A CN108495152A CN 108495152 A CN108495152 A CN 108495152A CN 201810278523 A CN201810278523 A CN 201810278523A CN 108495152 A CN108495152 A CN 108495152A
Authority
CN
China
Prior art keywords
service data
data information
video stream
corresponding frame
receiving
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.)
Granted
Application number
CN201810278523.0A
Other languages
Chinese (zh)
Other versions
CN108495152B (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.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201810278523.0A priority Critical patent/CN108495152B/en
Publication of CN108495152A publication Critical patent/CN108495152A/en
Application granted granted Critical
Publication of CN108495152B publication Critical patent/CN108495152B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/242Synchronization processes, e.g. processing of PCR [Program Clock References]
    • 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/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/4302Content synchronisation processes, e.g. decoder synchronisation
    • 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/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4307Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a kind of net cast method, apparatus, electronic equipment and media, are applied to server, including:Obtain the video flowing that main broadcaster end is sent;Service data information is received, and records the time of reception of reception;The service data information is written to the correspondence frame in the video flowing, wherein the server matches at the time of obtaining the corresponding frame with the time of reception;The video that transmission has been written into the service data information flow to the corresponding viewer end in the main broadcaster end, when the viewer end plays the video flowing, to synchronize and show the corresponding frame and the service data information.The present invention solves the business function that existing live streaming platform provides, and existing the displaying of service data information and live video stream easily occur asynchronous, leads to service data information and the unmatched technical problem of video render progress.The displaying synchronism for improving service data information and live video is realized, and improves the technique effect of the viewing experience of user.

Description

Video live broadcast method and device, electronic equipment and medium
Technical Field
The invention relates to the technical field of internet, in particular to a live video broadcasting method, a live video broadcasting device, electronic equipment and a live video broadcasting medium.
Background
At present, with the progress of network communication technology and the speed increase of broadband networks, network live broadcasting is developed and applied more and more, and the number of anchor broadcasters for live broadcasting is increased more and more. In order to improve user's stickness, increase the interactivity among the live broadcast process, increase the enthusiasm of anchor and improve the economic benefits of live broadcast platform, live broadcast platform now provides multiple service function, include: barrage, sending gifts, answering questions, etc.
The existing service data information, such as barrage data information, gift-offering data information or question data information, is often forwarded through a service server, live video is forwarded through a live video server, when two forwarding paths have network transmission delay, which causes a delay in forwarding of a certain path, the condition that the service data information and the live video stream are not synchronized occurs, and the problem that the displayed service data information and the video stream playing progress are not matched occurs.
Therefore, the service function provided by the existing live broadcast platform has the technical problem that the service data information and the live broadcast video stream display are not synchronous, so that the service data information and the video stream playing progress are not matched.
Disclosure of Invention
The embodiment of the application provides a video live broadcast method, a video live broadcast device, an electronic device and a video live broadcast medium, and solves the technical problem that service data information and video stream playing progress are unmatched due to the fact that service data information and live video stream display are asynchronous and easy to occur in service functions provided by an existing live broadcast platform.
In a first aspect, a video live broadcast method is provided, where the method is applied to a server and includes:
acquiring a video stream sent by a main broadcasting end;
receiving service data information corresponding to the anchor terminal, and recording the receiving time of receiving the service data information;
writing the service data information into a corresponding frame in the video stream, wherein the time when the server acquires the corresponding frame is matched with the receiving time;
and sending the video stream written with the service data information to a viewer end corresponding to the anchor end so as to synchronously display the corresponding frame and the service data information when the viewer end plays the video stream.
Optionally, the receiving the service data information corresponding to the anchor terminal includes: receiving barrage information sent by a viewer end corresponding to the anchor end; or, receiving gift information sent by a viewer end corresponding to the anchor end; or receiving the answering question information sent by the anchor terminal; or receiving answer information sent by the audience end corresponding to the anchor end.
Optionally, the step of matching, by the server, the time when the corresponding frame is obtained with the receiving time includes: the time when the server acquires the corresponding frame is the same as the receiving time, or compared with other frames in the video stream, the time when the server acquires the corresponding frame is closest to the receiving time.
Optionally, the writing the service data information into the corresponding frame in the video stream includes: and in the process of coding the corresponding frame, coding the service data information and writing the service data information into the corresponding frame according to a preset rule.
In a second aspect, a video live broadcasting method is provided, where the method is applied to a viewer side, and includes:
receiving a video stream sent by the server; the video stream comprises corresponding frames carrying service data information;
and playing the video stream, and synchronously displaying the service data information when playing the corresponding frame.
Optionally, the synchronously displaying the service data information when the corresponding frame is played includes: decoding the corresponding frame, and decoding the service data information according to a preset rule; and synchronously displaying the decoded corresponding frame and the service data information.
In a third aspect, a video live broadcasting device is provided, where the device is a server, and the device includes:
the acquisition unit is used for acquiring a video stream sent by a main broadcasting end;
an information receiving unit, configured to receive service data information corresponding to the anchor terminal, and record a receiving time when the service data information is received;
a writing unit, configured to write the service data information into a corresponding frame in the video stream, where a time when the server acquires the corresponding frame matches the receiving time;
and the sending unit is used for sending the video stream written with the service data information to a spectator end corresponding to the anchor end so as to synchronously display the corresponding frame and the service data information when the spectator end plays the video stream.
In a fourth aspect, a video live broadcasting device is provided, where the device is a viewer side, and the device includes:
a video stream receiving unit, configured to receive a video stream sent by the server; the video stream comprises corresponding frames carrying service data information;
and the playing unit is used for playing the video stream and synchronously displaying the service data information when the corresponding frame is played.
In a fifth aspect, an electronic device is provided, which comprises a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method according to any one of the first and second aspects when executing the program.
A sixth aspect provides a computer readable storage medium having stored thereon a computer program, characterized in that the program, when executed by a processor, implements the method of any one of the first and second aspects.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
the method, the device, the electronic equipment and the medium provided by the embodiment of the application receive the video stream and the service data information through the server, recording the receiving time of the service data information, writing the service data information into the corresponding frame in the video stream, wherein the time when the server acquires the corresponding frame is matched with the receiving time, so that the service data information can be sent to a viewer together with the corresponding frame, therefore, when the audience plays the video stream, the corresponding frames and the service data information can be synchronously displayed, the problem that the service data information is not matched with the playing progress of the video stream due to the fact that the service data information is not synchronous with the display of the live video stream is avoided, the display synchronism of the service data information and the live video is effectively improved, and the watching experience of a user is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
Fig. 1 is a flowchart of a video live broadcast method according to an embodiment of the present application;
fig. 2 is a flowchart of a video live broadcast method in the second embodiment of the present application;
FIG. 3 is a schematic structural diagram of an apparatus according to a third embodiment of the present application;
FIG. 4 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present disclosure;
FIG. 5 is a schematic structural diagram of an electronic device in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a computer-readable storage medium 600 in an embodiment of the present application.
Detailed Description
The embodiment of the application provides a video live broadcast method, a video live broadcast device, an electronic device and a video live broadcast medium, and solves the technical problem that service data information and video stream playing progress are unmatched due to the fact that service data information and live video stream display are asynchronous and easy to occur in service functions provided by an existing live broadcast platform. The display synchronization of the service data information and the live video is improved, and the viewing experience of the user is improved.
In order to solve the technical problems, the general idea of the embodiment of the application is as follows:
acquiring a video stream sent by a main broadcasting end;
receiving service data information corresponding to the anchor terminal, and recording the receiving time of receiving the service data information;
writing the service data information into a corresponding frame in the video stream, wherein the time when the server acquires the corresponding frame is matched with the receiving time;
and sending the video stream written with the service data information to a viewer end corresponding to the anchor end so as to synchronously display the corresponding frame and the service data information when the viewer end plays the video stream.
Specifically, the same server or the same group of servers is adopted to acquire the video stream and the service data information, so that the difference of network transmission delay between the video stream and the service data information is effectively reduced. The server acquires the time of the corresponding frame and matches the receiving time, so that the service data information can be sent to the audience together with the corresponding frame corresponding to the service data information, the audience can synchronously display the corresponding frame and the service data information when playing the video stream, the problem that the service data information is not synchronous with the display of the live video stream, and the service data information is not matched with the playing progress of the video stream, thereby effectively improving the display synchronism of the service data information and the live video and improving the watching experience of users.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
Example one
As shown in fig. 1, this embodiment provides a video live broadcasting method, where the method is applied to a server, and includes:
step S101, acquiring a video stream sent by a main broadcasting end;
step S102, receiving the service data information corresponding to the anchor terminal, and recording the receiving time of receiving the service data information;
step S103, writing the service data information into a corresponding frame in the video stream, wherein the time when the server acquires the corresponding frame is matched with the receiving time;
step S104, sending the video stream written with the service data information to a viewer end corresponding to the anchor end, so as to synchronously display the corresponding frame and the service data information when the viewer end plays the video stream.
In this embodiment, the server may be a computer device, a cloud, or a group of computer devices, which is not limited herein. The anchor terminal and the client terminal may be a smart phone, a notebook, a desktop computer, and a tablet computer, which is not limited herein.
The following describes in detail, with reference to fig. 1, specific implementation steps of a video live broadcasting method provided in an embodiment of the present application:
first, step S101 is executed to acquire a video stream transmitted by the anchor terminal.
Specifically, in the live broadcasting process, the anchor terminal may continuously send the recorded video to the server in a video streaming manner in real time, and the server may also receive different frames of the video streaming in real time according to the recording sequence.
In a specific implementation process, the server may record a frame receiving time when each frame in the video stream is received, so as to facilitate subsequent comparison with the receiving time of the service data information.
Then, step S102 is executed to receive the service data information corresponding to the anchor terminal, and record the receiving time of receiving the service data information.
In this embodiment of the present application, the service data information is: in addition to live video data during the live broadcast of the anchor, other data is communicated between the anchor and the audience users, or between the audience users and the audience users. For example, the service data information may be bullet screen data information, gift-offering data information, or answer data information. The receiving of the service data information corresponding to the anchor terminal may be: receiving barrage information sent by a viewer end corresponding to the anchor end; or, receiving gift information sent by a viewer end corresponding to the anchor end; or receiving the answering question information sent by the anchor terminal; or, receiving the answer information sent by the audience corresponding to the anchor terminal, which is not limited herein and is not listed one by one.
In the specific implementation process, considering the processing amount control of the server, all the service data information may be classified first and divided into service data information that needs to be played synchronously with the video stream and service data information that does not need to be played synchronously with the video stream. And the service data information which needs to be synchronously played with the video stream is sent to the server for processing, and the service data information which does not need to be synchronously played with the video stream can be sent to other service processing servers for processing, so that the processing amount of the server is prevented from being overlarge.
Based on the above-mentioned situation of classifying the service data information, there are more ways to specifically receive the service data information, and two examples are listed below:
first, the input end of the service data information (audience end or anchor end) directly transmits the service data information to the server.
Namely, the server pre-issues a list of service data information to be played synchronously with the video stream to each audience terminal and the anchor terminal, after the user inputs the service data information at the audience terminal or the anchor terminal, the audience terminal or the anchor terminal can judge whether the service data information belongs to the service data information to be played synchronously with the video stream, and if so, the service data information is sent to the server for subsequent synchronous processing.
Secondly, a classification server is arranged to forward the service data information.
The method comprises the steps that a classification server is independently set, a list of service data information needing to be played synchronously with a video stream is stored in the classification server in advance, after a user inputs the service data information at a spectator end or a main broadcasting end, the spectator end or the main broadcasting end can send the service data information to the classification server, the classification server can judge whether the service data information belongs to the service data information needing to be played synchronously with the video stream, and if the service data information belongs to the service data information needing to be played synchronously with the video stream, the service data information is forwarded to the server for subsequent synchronous processing.
Of course, the specific transmission method is not limited to the above two methods, and is not limited herein, and is not listed.
Then, step S103 is executed to write the service data information into a corresponding frame in the video stream, where a time when the server acquires the corresponding frame is matched with the receiving time.
In this embodiment of the application, the receiving time of the service data information and the frame receiving time of each frame in the video stream are both timed based on a timing system on the server, so as to avoid time differences caused by different timing systems.
In a specific implementation process, considering that there may be a case where a frame receiving time of no frame in a video stream is completely the same as a receiving time of the service data information, setting a time at which the server acquires the corresponding frame to match the receiving time includes:
the time when the server acquires the corresponding frame is the same as the receiving time, or
And comparing other frames in the video stream, wherein the time when the server acquires the corresponding frame is closest to the receiving time.
In this embodiment of the present application, considering that a video stream needs to be encoded and then sent to a viewer, a method for writing the service data information into the corresponding frame may be set as follows: and in the process of coding the corresponding frame, coding the service data information and writing the service data information into the corresponding frame according to a preset rule.
The preset rule may be to place the service data information code at a preset position of the corresponding frame code, or to mark the service data information code in the code of the corresponding frame with a preset identifier, which is not limited herein and is not listed one by one.
Then, step S104 is executed to send the video stream written with the service data information to the viewer corresponding to the anchor terminal, so that the corresponding frame and the service data information can be synchronously displayed when the viewer plays the video stream.
In this embodiment of the application, after the viewer receives the video stream sent by the server, the video stream is played, and the service data information is synchronously displayed when the video stream is played to the corresponding frame. Specifically, the spectator end receives the video stream sent by the server in sequence, decodes and plays the video stream in sequence, decodes the corresponding frame after receiving the corresponding frame carrying the service data information, decodes the service data information according to a preset rule, and then synchronously plays and displays the decoded corresponding frame and the service data information, so that the service data information is not asynchronous with the video stream display due to network delay.
The following takes the bullet screen as an example to help understand the implementation process of the method provided by the embodiment:
the user A watches live broadcasting in the live broadcasting room of the anchor B, and inputs barrage information 'too much soy sauce' when the user watches the picture that the anchor B puts soy sauce into the pot;
in the process that the video stream of the anchor B is sent to the server, the bullet screen information is also sent to the server, and the time for acquiring the bullet screen information is recorded by the server to be 11:25: 45;
the server writes the barrage information into corresponding frames received by a video stream of a main broadcaster B at 11:25:45, and the corresponding frames are just pictures for putting soy sauce into the pot by the main broadcaster B because the video stream and the barrage information are both sent to the server and timing systems of the video stream and the barrage information are consistent;
and then the server sequentially sends the written corresponding frames to other audience terminals in the live broadcast room of the anchor B, and the other audience terminals can synchronously display the barrage of 'too much soy sauce' sent by the user A and the corresponding frames of soy sauce put into the pot by the anchor B, thereby realizing synchronous display. Effectively avoid showing "the soy sauce is too much" barrage before the anchor B puts the picture of soy sauce in the pot or after, lead to the audience to watch the experience not good.
Specifically, the method, the apparatus, the electronic device, and the medium provided in the embodiments of the present application use the same server or the same group of servers to obtain the video stream and the service data information, thereby effectively reducing the network transmission delay difference between the two servers. The server acquires the time of the corresponding frame and matches the receiving time, so that the service data information can be sent to the audience together with the corresponding frame corresponding to the service data information, the audience can synchronously display the corresponding frame and the service data information when playing the video stream, the problem that the service data information is not synchronous with the display of the live video stream, and the service data information is not matched with the playing progress of the video stream, thereby effectively improving the display synchronism of the service data information and the live video and improving the watching experience of users.
Based on the same inventive concept, the application provides a method corresponding to the audience side in the embodiment, which is detailed in
Example two.
Example two
The present embodiment provides a video live broadcasting method, as shown in fig. 2, where the method is applied to a viewer side, and includes:
step S201, receiving a video stream sent by the server; the video stream comprises corresponding frames carrying service data information;
step S202, the video stream is played, and the service data information is synchronously displayed when the corresponding frame is played.
In this embodiment, the server may be a computer device, a cloud, or a group of computer devices, which is not limited herein. The spectator end may be a smartphone, a notebook, a desktop computer, and a tablet computer, but is not limited thereto.
In this embodiment of the present application, the synchronously displaying the service data information when the corresponding frame is played includes:
decoding the corresponding frame, and decoding the service data information according to a preset rule;
and synchronously displaying the decoded corresponding frame and the service data information.
The video live broadcasting method provided in this embodiment is two ends of the same method as the video live broadcasting method in the first embodiment, so based on the method described in the first embodiment of this application, a person skilled in the art can understand the specific implementation manner of the method of this embodiment and various variations thereof, and therefore, for the sake of brevity of the description, how to implement the method is not described in detail herein.
Based on the same inventive concept, the application provides an embodiment of the device corresponding to the first embodiment, which is described in detail in the third embodiment.
EXAMPLE III
This embodiment provides a video live broadcast device, as shown in fig. 3, the device is a server, and includes:
an obtaining unit 301, configured to obtain a video stream sent by a host;
an information receiving unit 302, configured to receive service data information corresponding to the anchor terminal, and record a receiving time when the service data information is received;
a writing unit 303, configured to write the service data information into a corresponding frame in the video stream, where a time when the server acquires the corresponding frame is matched with the receiving time;
a sending unit 304, configured to send the video stream written with the service data information to a viewer corresponding to the anchor terminal, so as to synchronously display the corresponding frame and the service data information when the viewer plays the video stream.
Since the apparatus described in this embodiment is an apparatus used for implementing the live video method in the first embodiment of the present application, a person skilled in the art can understand the specific implementation manner of the apparatus in this embodiment and various variations thereof based on the method described in the first embodiment of the present application, and therefore, how to implement the method in the embodiment of the present application by the apparatus is not described in detail herein. The equipment used by those skilled in the art to implement the methods in the embodiments of the present application is within the scope of the present application.
Based on the same inventive concept, the application provides an embodiment of the device corresponding to the second embodiment, which is described in detail in the fourth embodiment.
Example four
This embodiment provides a video live broadcast device, as shown in fig. 4, the device is a viewer side, including:
a video stream receiving unit 401, configured to receive a video stream sent by the server; the video stream comprises corresponding frames carrying service data information;
a playing unit 402, configured to play the video stream, and synchronously display the service data information when playing the corresponding frame.
Since the apparatus described in this embodiment is an apparatus used for implementing the live video method in the second embodiment of this application, a person skilled in the art can understand the specific implementation manner of the apparatus of this embodiment and various variations thereof based on the method described in the second embodiment of this application, and therefore, how to implement the method in this embodiment of this application by the apparatus is not described in detail herein. The equipment used by those skilled in the art to implement the methods in the embodiments of the present application is within the scope of the present application.
Based on the same inventive concept, the application provides device embodiments corresponding to the first embodiment and the second embodiment, which are detailed in the fifth embodiment.
EXAMPLE five
The present embodiment provides an electronic device, which is a server, as shown in fig. 5, and includes a memory 510, a processor 520, and a computer program 511 stored in the memory 510 and capable of running on the processor 520, where the processor 520 executes the computer program 511 to implement the following steps:
acquiring a video stream sent by a main broadcasting end;
receiving service data information corresponding to the anchor terminal, and recording the receiving time of receiving the service data information;
writing the service data information into a corresponding frame in the video stream, wherein the time when the server acquires the corresponding frame is matched with the receiving time;
and sending the video stream written with the service data information to a viewer end corresponding to the anchor end so as to synchronously display the corresponding frame and the service data information when the viewer end plays the video stream.
The present embodiment further provides an electronic device, which is a viewer side, as shown in fig. 5, and includes a memory 510, a processor 520, and a computer program 511 stored in the memory 510 and executable on the processor 520, where the processor 520 executes the computer program 511 to implement the following steps:
receiving a video stream sent by the server; the video stream comprises corresponding frames carrying service data information;
and playing the video stream, and synchronously displaying the service data information when playing the corresponding frame.
In particular implementation, when the processor 520 executes the computer program 511, the implementation manner of any one of the first embodiment or the second embodiment can be realized.
Since the electronic device described in this embodiment is a device used for implementing a live video method in the first embodiment or the second embodiment of this application, a person skilled in the art can understand a specific implementation manner and various variations of the implementation manner of the electronic device of this embodiment based on the method described in the first embodiment or the second embodiment of this application, and therefore, how to implement the method in this embodiment of this application by the electronic device is not described in detail here. The equipment used by those skilled in the art to implement the methods in the embodiments of the present application is within the scope of the present application.
Based on the same inventive concept, the present application provides a storage medium corresponding to the first embodiment and the second embodiment, which are detailed in the sixth embodiment.
EXAMPLE six
The present embodiment provides a computer-readable storage medium 600, as shown in fig. 6, on which a computer program 611 is stored, and the computer program 611, when executed by a processor, implements the method of the first or second embodiment.
In a specific implementation, when the computer program 611 is executed by a processor, the implementation of any of the first embodiment or the second embodiment can be implemented.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A video live broadcast method is applied to a server and comprises the following steps:
acquiring a video stream sent by a main broadcasting end;
receiving service data information corresponding to the anchor terminal, and recording the receiving time of receiving the service data information;
writing the service data information into a corresponding frame in the video stream, wherein the time when the server acquires the corresponding frame is matched with the receiving time;
and sending the video stream written with the service data information to a viewer end corresponding to the anchor end, so that the corresponding frame and the service data information are synchronously displayed based on the corresponding frame carrying the service data information when the viewer end plays the video stream.
2. The method of claim 1, wherein said receiving service data information corresponding to said anchor comprises:
receiving barrage information sent by a viewer end corresponding to the anchor end; or,
receiving gift information sent by a viewer end corresponding to the anchor end; or,
receiving the answering question information sent by the anchor terminal; or,
and receiving answer information sent by the audience end corresponding to the anchor end.
3. The method of claim 1, wherein the time at which the server obtains the corresponding frame matches the time of receipt, comprising:
the time when the server acquires the corresponding frame is the same as the receiving time, or
And comparing other frames in the video stream, wherein the time when the server acquires the corresponding frame is closest to the receiving time.
4. The method of claim 1, wherein said writing the service data information into the corresponding frame in the video stream comprises:
and in the process of coding the corresponding frame, coding the service data information and writing the service data information into the corresponding frame according to a preset rule.
5. A video live broadcasting method is applied to a spectator side and comprises the following steps:
receiving a video stream sent by a server; the video stream comprises corresponding frames carrying service data information;
and playing the video stream, and synchronously displaying the service data information when playing the corresponding frame.
6. The method of claim 5, wherein said synchronously presenting the service data information while playing the corresponding frame comprises:
decoding the corresponding frame, and decoding the service data information according to a preset rule;
and synchronously displaying the decoded corresponding frame and the service data information.
7. A live video broadcast apparatus, wherein the apparatus is a server, comprising:
the acquisition unit is used for acquiring a video stream sent by a main broadcasting end;
an information receiving unit, configured to receive service data information corresponding to the anchor terminal, and record a receiving time when the service data information is received;
a writing unit, configured to write the service data information into a corresponding frame in the video stream, where a time when the server acquires the corresponding frame matches the receiving time;
and the sending unit is used for sending the video stream written with the service data information to a spectator end corresponding to the anchor end so as to synchronously display the corresponding frame and the service data information when the spectator end plays the video stream.
8. A video live broadcasting device, wherein the device is a viewer side, comprising:
a video stream receiving unit, configured to receive a video stream sent by the server; the video stream comprises corresponding frames carrying service data information;
and the playing unit is used for playing the video stream and synchronously displaying the service data information when the corresponding frame is played.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of claims 1-6 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the method of any one of claims 1 to 6.
CN201810278523.0A 2018-03-30 2018-03-30 Video live broadcast method and device, electronic equipment and medium Active CN108495152B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810278523.0A CN108495152B (en) 2018-03-30 2018-03-30 Video live broadcast method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810278523.0A CN108495152B (en) 2018-03-30 2018-03-30 Video live broadcast method and device, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN108495152A true CN108495152A (en) 2018-09-04
CN108495152B CN108495152B (en) 2021-05-28

Family

ID=63317319

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810278523.0A Active CN108495152B (en) 2018-03-30 2018-03-30 Video live broadcast method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN108495152B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109714622A (en) * 2018-11-15 2019-05-03 北京奇艺世纪科技有限公司 A kind of video data handling procedure, device and electronic equipment
CN110225384A (en) * 2019-06-18 2019-09-10 北京字节跳动网络技术有限公司 The method for pushing of status message, the switching method of interaction content, device and equipment
CN111147887A (en) * 2020-01-06 2020-05-12 网易(杭州)网络有限公司 Live broadcast service control method and device, computer readable medium and electronic equipment
CN111163326A (en) * 2019-12-30 2020-05-15 网易(杭州)网络有限公司 Virtual gift presenting method, virtual gift presenting device, medium, and electronic apparatus
CN111669612A (en) * 2019-03-08 2020-09-15 腾讯科技(深圳)有限公司 Live broadcast-based information delivery method and device and computer-readable storage medium
CN111770373A (en) * 2020-07-09 2020-10-13 北京达佳互联信息技术有限公司 Content synchronization method, device and equipment based on live broadcast and storage medium
CN111818359A (en) * 2020-09-14 2020-10-23 北京达佳互联信息技术有限公司 Processing method and device for live interactive video, electronic equipment and server
CN112019937A (en) * 2019-05-30 2020-12-01 腾讯科技(深圳)有限公司 Online answer live broadcasting method and device, server and storage medium
CN112437316A (en) * 2020-10-15 2021-03-02 北京三快在线科技有限公司 Method and device for synchronously playing instant message and live video stream
CN112839235A (en) * 2020-12-30 2021-05-25 北京达佳互联信息技术有限公司 Display method, comment sending method, video frame pushing method and related equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120159527A1 (en) * 2010-12-16 2012-06-21 Microsoft Corporation Simulated group interaction with multimedia content
CN103096128A (en) * 2011-11-07 2013-05-08 中国移动通信集团公司 Method capable of achieving video interaction, server, terminal and system
CN103621106A (en) * 2011-06-20 2014-03-05 微软公司 Providing video presentation commentary
CN106231363A (en) * 2016-08-08 2016-12-14 上海幻电信息科技有限公司 A kind of barrage video stream transmission method and equipment thereof
CN106412622A (en) * 2016-11-14 2017-02-15 百度在线网络技术(北京)有限公司 Method and apparatus for displaying barrage information during video content playing process
CN106488291A (en) * 2016-11-17 2017-03-08 百度在线网络技术(北京)有限公司 The method and apparatus of simultaneous display file in net cast
CN106816055A (en) * 2017-04-05 2017-06-09 杭州恒生数字设备科技有限公司 A kind of low-power consumption live teaching broadcast recording and broadcasting system for interacting and method
CN107277641A (en) * 2017-07-04 2017-10-20 上海全土豆文化传播有限公司 A kind of processing method and client of barrage information
CN107277594A (en) * 2017-07-06 2017-10-20 广州华多网络科技有限公司 A kind of video and audio and barrage synchronous method and device
CN107743252A (en) * 2017-11-01 2018-02-27 创盛视联数码科技(北京)有限公司 A kind of method for reducing live delay

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120159527A1 (en) * 2010-12-16 2012-06-21 Microsoft Corporation Simulated group interaction with multimedia content
CN103621106A (en) * 2011-06-20 2014-03-05 微软公司 Providing video presentation commentary
CN103096128A (en) * 2011-11-07 2013-05-08 中国移动通信集团公司 Method capable of achieving video interaction, server, terminal and system
CN106231363A (en) * 2016-08-08 2016-12-14 上海幻电信息科技有限公司 A kind of barrage video stream transmission method and equipment thereof
CN106412622A (en) * 2016-11-14 2017-02-15 百度在线网络技术(北京)有限公司 Method and apparatus for displaying barrage information during video content playing process
CN106488291A (en) * 2016-11-17 2017-03-08 百度在线网络技术(北京)有限公司 The method and apparatus of simultaneous display file in net cast
CN106816055A (en) * 2017-04-05 2017-06-09 杭州恒生数字设备科技有限公司 A kind of low-power consumption live teaching broadcast recording and broadcasting system for interacting and method
CN107277641A (en) * 2017-07-04 2017-10-20 上海全土豆文化传播有限公司 A kind of processing method and client of barrage information
CN107277594A (en) * 2017-07-06 2017-10-20 广州华多网络科技有限公司 A kind of video and audio and barrage synchronous method and device
CN107743252A (en) * 2017-11-01 2018-02-27 创盛视联数码科技(北京)有限公司 A kind of method for reducing live delay

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109714622A (en) * 2018-11-15 2019-05-03 北京奇艺世纪科技有限公司 A kind of video data handling procedure, device and electronic equipment
CN109714622B (en) * 2018-11-15 2021-04-16 北京奇艺世纪科技有限公司 Video data processing method and device and electronic equipment
CN111669612B (en) * 2019-03-08 2023-02-28 腾讯科技(深圳)有限公司 Live broadcast-based information delivery method and device and computer-readable storage medium
CN111669612A (en) * 2019-03-08 2020-09-15 腾讯科技(深圳)有限公司 Live broadcast-based information delivery method and device and computer-readable storage medium
CN112019937A (en) * 2019-05-30 2020-12-01 腾讯科技(深圳)有限公司 Online answer live broadcasting method and device, server and storage medium
CN110225384A (en) * 2019-06-18 2019-09-10 北京字节跳动网络技术有限公司 The method for pushing of status message, the switching method of interaction content, device and equipment
CN111163326A (en) * 2019-12-30 2020-05-15 网易(杭州)网络有限公司 Virtual gift presenting method, virtual gift presenting device, medium, and electronic apparatus
CN111147887A (en) * 2020-01-06 2020-05-12 网易(杭州)网络有限公司 Live broadcast service control method and device, computer readable medium and electronic equipment
CN111770373A (en) * 2020-07-09 2020-10-13 北京达佳互联信息技术有限公司 Content synchronization method, device and equipment based on live broadcast and storage medium
CN111770373B (en) * 2020-07-09 2022-09-02 北京达佳互联信息技术有限公司 Content synchronization method, device and equipment based on live broadcast and storage medium
CN111818359A (en) * 2020-09-14 2020-10-23 北京达佳互联信息技术有限公司 Processing method and device for live interactive video, electronic equipment and server
US11388453B2 (en) 2020-09-14 2022-07-12 Beijing Dajia Internet Information Technology Co., Ltd. Method for processing live-streaming interaction video and server
CN112437316A (en) * 2020-10-15 2021-03-02 北京三快在线科技有限公司 Method and device for synchronously playing instant message and live video stream
CN112839235A (en) * 2020-12-30 2021-05-25 北京达佳互联信息技术有限公司 Display method, comment sending method, video frame pushing method and related equipment
CN112839235B (en) * 2020-12-30 2023-04-07 北京达佳互联信息技术有限公司 Display method, comment sending method, video frame pushing method and related equipment

Also Published As

Publication number Publication date
CN108495152B (en) 2021-05-28

Similar Documents

Publication Publication Date Title
CN108495152B (en) Video live broadcast method and device, electronic equipment and medium
CN109547831B (en) Method and device for synchronizing white board and video, computing equipment and storage medium
CN109089154B (en) Video extraction method, device, equipment and medium
EP3750301B1 (en) Simulating a local experience by live streaming sharable viewpoints of a live event
CN109327741B (en) Game live broadcast method, device and system
CN108989883B (en) Live broadcast advertisement method, device, equipment and medium
CN108924576A (en) A kind of video labeling method, device, equipment and medium
CN108600815A (en) A kind of online method and system chorused in real time
CN109089127A (en) A kind of video-splicing method, apparatus, equipment and medium
CN109714622B (en) Video data processing method and device and electronic equipment
US11863841B2 (en) Video playing control method and system
WO2019114330A1 (en) Video playback method and apparatus, and terminal device
CN108769824A (en) A kind of video mixed flow method, apparatus, system, equipment and medium
CN108989855A (en) A kind of advertisement cut-in method, device, equipment and medium
JP5837074B2 (en) Method and corresponding apparatus for processing multimedia flows
CN109218754A (en) Information display method, device, equipment and medium in a kind of live streaming
CN108833809A (en) A kind of video mixed flow control method, device, system, equipment and medium
CN110636321A (en) Data processing method, device, system, mobile terminal and storage medium
CN107066102A (en) Support the method and device of multiple VR users viewing simultaneously
EP3316593B1 (en) Method and device for implementing synchronous playing
CN106331763A (en) Method of playing slicing media files seamlessly and device of realizing the method
CN112437316A (en) Method and device for synchronously playing instant message and live video stream
CN107135407B (en) Synchronous method and system in a kind of piano video teaching
CN107852523B (en) Method, terminal and equipment for synchronizing media rendering between terminals
CN110177293A (en) A kind of synchronization multicast and video retransmission method, system

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