CN109218808B - Video recording method and device and computer equipment - Google Patents

Video recording method and device and computer equipment Download PDF

Info

Publication number
CN109218808B
CN109218808B CN201710525848.XA CN201710525848A CN109218808B CN 109218808 B CN109218808 B CN 109218808B CN 201710525848 A CN201710525848 A CN 201710525848A CN 109218808 B CN109218808 B CN 109218808B
Authority
CN
China
Prior art keywords
live broadcast
recording
video
room
state
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
CN201710525848.XA
Other languages
Chinese (zh)
Other versions
CN109218808A (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 CN201710525848.XA priority Critical patent/CN109218808B/en
Publication of CN109218808A publication Critical patent/CN109218808A/en
Application granted granted Critical
Publication of CN109218808B publication Critical patent/CN109218808B/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/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/4334Recording operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • H04L65/611Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for multicast or broadcast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • H04L65/762Media network packet handling at the source 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention provides a method, a device and computer equipment for recording videos, which are applied to a live broadcast platform, wherein the method comprises the following steps: obtaining login information; judging whether the current live broadcast room is in a broadcasting state or not according to the login information, and if the current live broadcast room is in the broadcasting state, continuously judging whether a video recording request is received or not; if the video recording request is received, changing the video recording state into an enabling state based on the video recording request, carrying out delay processing on the video stream, and recording the video stream after the delay processing according to a preset recording mode; therefore, in the live broadcast platform, the anchor can record the high-quality video resources so as to spread the high-quality video resources and avoid the waste of the high-quality video resources.

Description

Video recording method and device and computer equipment
Technical Field
The invention belongs to the technical field of live broadcast platforms, and particularly relates to a method and a device for recording a video and computer equipment.
Background
With the full rise of the live broadcast industry, the broadcast mode of the live broadcast is more and more popular. Meanwhile, with the rapid increase of live broadcast rooms, more and more live broadcast contents are added to the anchor industry. The richer the live content is.
But because of the live form, live content is timely. When high-quality video resources appear, the high-quality video resources cannot be effectively stored, and wonderful video resources cannot be effectively spread more widely, so that the high-quality video resources are wasted.
Disclosure of Invention
Aiming at the problems in the prior art, the embodiment of the invention provides a method, a device and computer equipment for recording a video, which are used for solving the technical problems that when a live broadcast platform is used for directly broadcasting the video, the live broadcast is real-time, so that high-quality video resources cannot be recorded when the video resources appear, and further the high-quality video resources cannot be widely spread.
The invention provides a method for recording videos, which is applied to a live broadcast platform and comprises the following steps:
obtaining login information;
judging whether the current live broadcast room is in a broadcasting state or not according to the login information, and if the current live broadcast room is in the broadcasting state, continuously judging whether a video recording request is received or not;
if the video recording request is received, changing the video recording state into an enabling state based on the video recording request, carrying out delay processing on the video stream, and recording the video stream after the delay processing according to a preset recording mode.
In the foregoing scheme, before the obtaining the login information of the anchor, the method further includes:
according to the live broadcast classification, partitioning the live broadcast rooms of all categories;
and adding corresponding live broadcast partition marks to the live broadcast rooms of all categories.
In the foregoing solution, the determining whether the current live broadcast room is in the broadcast state according to the login information includes:
determining a room identifier (ID, Identity) of the current live broadcast room according to the login information;
and based on the room ID, acquiring a live broadcast state identification code of the room through an access service interface, judging whether the live broadcast state identification code is started, and if the live broadcast state identification code is started, determining that the current live broadcast room is in a broadcast state.
In the foregoing solution, after the recording the video stream after the delay processing according to the preset recording parameter, the method further includes:
acquiring a recorded video and a live broadcast partition mark of the live broadcast room;
and adding the live broadcast zone mark in the recorded video, and storing the video added with the live broadcast zone mark.
In the foregoing solution, the performing delay processing on a video stream includes: and carrying out delay loading on the video stream.
In the foregoing solution, the recording the video stream after the delay processing according to the preset recording mode includes:
and recording the video stream after the delay processing according to a preset total recording time length.
In the foregoing solution, the recording the video stream after the delay processing according to the preset recording mode further includes:
carrying out segmented recording on the video stream to form each segment of recorded video;
adding corresponding recording marks to the recorded videos, and merging at least one recorded video according to the recording marks; and the total time length of the segmented recording is not more than the preset total recording time length.
The present invention also provides a device for recording video, the device comprising:
the acquisition unit is used for acquiring login information;
the judging unit is used for judging whether the current live broadcast room is in a broadcast state or not according to the login information, and if the current live broadcast room is in the broadcast state, continuously judging whether a video recording request is received or not;
and the recording unit is used for changing the video recording state into an enabled state based on the video recording request under the condition of receiving the video recording request, delaying the video stream, and recording the video stream after the delaying processing according to a preset recording mode.
The present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
obtaining login information;
judging whether the current live broadcast room is in a broadcasting state or not according to the login information, and if the current live broadcast room is in the broadcasting state, continuously judging whether a video recording request is received or not;
if the video recording request is received, changing the video recording state into an enabling state based on the video recording request, carrying out delay processing on the video stream, and recording the video stream after the delay processing according to a preset recording mode.
The present invention also provides a computer device for recording video, comprising:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein,
the memory stores program instructions executable by the processor, the processor being capable of performing the method as described in any one of the above.
The invention provides a method, a device and computer equipment for recording videos, which are applied to a live broadcast platform, wherein the method comprises the following steps: obtaining login information; judging whether the current live broadcast room is in a broadcasting state or not according to the login information, and if the current live broadcast room is in the broadcasting state, continuously judging whether a video recording request is received or not; if the video recording request is received, changing the video recording state into an enabling state based on the video recording request, carrying out delay processing on the video stream, and recording the video stream after the delay processing according to a preset recording mode; therefore, in the live broadcast platform, high-quality video resources can be recorded, so that the high-quality video resources can be spread, and the waste of the high-quality video resources is avoided.
Drawings
Fig. 1 is a schematic flowchart of a method for recording video according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a video recording apparatus according to a second embodiment of the present invention;
fig. 3 is a schematic overall structure diagram of a computer device for recording video according to a third embodiment of the present invention.
Detailed Description
In order to solve the technical problems that in the prior art, when video live broadcast is carried out on a live broadcast platform, live broadcast is real-time, and when high-quality video resources appear, the high-quality video resources cannot be recorded, so that the high-quality video resources cannot be widely spread, the invention provides a method, a device and computer equipment for recording videos, which are applied to the live broadcast platform, wherein the method comprises the following steps: obtaining login information; judging whether the current live broadcast room is in a broadcasting state or not according to the login information, and if the current live broadcast room is in the broadcasting state, continuously judging whether a video recording request is received or not; if the video recording request is received, changing the video recording state into an enabling state based on the video recording request, carrying out delay processing on the video stream, and recording the video stream after the delay processing according to a preset recording mode.
The technical solution of the present invention is further described in detail by the accompanying drawings and the specific embodiments.
Example one
The embodiment provides a method for recording a video, which is applied to a live broadcast platform, and as shown in fig. 1, the method includes:
s101, obtaining login information of a main broadcast;
in this step, the login information includes: the login information of the anchor and the user login information; before login information is acquired, the live broadcast rooms of all categories are partitioned according to live broadcast classification, and corresponding live broadcast partition marks are added to the live broadcast rooms of all categories. The live broadcast classification includes: games, entertainment, outdoor live, etc.; for example, the game class can be divided into a live broadcast zone A, and the live broadcast indication of the game class is A; the entertainment category is divided into a B area, and the live broadcast mark of the game category is B; and dividing the outdoor live broadcast into a C area, wherein the live broadcast mark of the outdoor live broadcast is C. If the game includes a plurality of kinds, the live indication of each kind of game may also be set to be different, such as setting each kind of game to a1, a2, A3, and so on.
After corresponding live broadcast zone marks are added to live broadcast rooms of various types, login information of a main broadcast can be obtained, wherein the login information of the main broadcast comprises the following steps: the anchor, etc. logs in the identification ID and the room ID.
Here, login information of the user may also be acquired, where the login information of the user includes: the user ID.
It should be noted that both the user and the anchor can record the video, and the recording methods are completely the same, and the anchor recording is taken as an example in this embodiment for description.
S102, judging whether the current live broadcast room is in a broadcast state or not according to the login information, and if the current live broadcast room is in the broadcast state, continuously judging whether a video recording request is received or not;
in this step, after the login information is acquired, the room ID of the current live broadcast room of the anchor can be determined according to the anchor login information; and then based on the room ID, acquiring a live broadcast state identification code of the room through an access service interface, judging whether the live broadcast state identification code is started, and if the live broadcast state identification code is started, determining that the live broadcast room is in a broadcast state.
Of course, it may also be determined whether the live broadcast room of the anchor is in the broadcast state according to the login information of the user, specifically: acquiring an attention list of the user according to the user identification ID in the user login information; inquiring whether an attention value exists in the attention list or not by using an attention function interface, and if the attention value exists in the attention list, determining a room ID of the current live broadcast room of the anchor according to the attention value; and then based on the room ID, acquiring a live broadcast state identification code of the room through an access service interface, judging whether the live broadcast state identification code is started, and if the live broadcast state identification code is started, determining that the live broadcast room is in a broadcast state.
And if the live broadcast room is in a broadcasting state, continuously judging whether a video recording request is received. Here, recording buttons are respectively provided on a live page of the anchor and a viewing page of the user, and when the recording buttons are triggered, a video recording request is sent, so that the server can receive the corresponding video recording request.
S103, if the video recording request is received, changing the video recording state into the starting state based on the video recording request, carrying out delay processing on the video stream, and recording the video stream after the delay processing according to a preset recording mode.
In this step, since the video recording state is defaulted to the closed state, the video recording state is changed to the enabled state based on the video recording request under the condition that the video recording request is received. Then changing the video recording state into a starting state based on the video recording request, and informing a false server of a live broadcast room to delay the video stream, namely the false server delays the loading of the video stream, which is equivalent to firstly caching the video stream and avoiding blockage when recording the video; the delay time for delaying the video stream is 0.4-0.6 times of the total recording time, and preferably 0.5 times. The total recording time length is preset.
And after the video stream is subjected to delay processing, a false server in the live broadcast room records the video stream subjected to delay processing according to a preset recording mode. During recording, a mark of a video recording request is loaded and displayed in a live page of a live broadcast room to indicate that the video is being recorded.
Specifically, when recording a video, the video stream after the delay processing may be recorded according to a preset total recording duration. For example, if the preset total recording time is 1min, the recording will be automatically ended from the beginning of the recording to 1 min.
Or the video stream can be recorded in segments to form each segment of recorded video; then adding corresponding recording marks to the recorded videos, and merging at least one recorded video according to the recording marks; and the total time length of the segmented recording is not more than the preset total recording time length. For example, a first video segment may be recorded for 10s and then paused, and a video mark M may be added to the first video segment; when the next segment of highlight video appears, recording the second segment of video for 20s, pausing the recording, and adding a video mark F for the second segment of video; and when the next segment of wonderful video appears, recording the third segment of video for 30s, ending the recording, and adding a video mark E for the third segment of video. And then merging the first section of video, the second section of video and the third end of video according to the video marks, and deleting the unsatisfied video if the unsatisfied video appears in the merging process to finally form a section of high-quality synthesized video.
After the recording is finished, acquiring a recorded video and a live broadcast partition mark of the live broadcast room; and adding the live broadcast zone mark in the recorded video, and calling a storage interface to store the video added with the live broadcast zone mark, so that the recorded video of a corresponding type can be more conveniently searched according to the live broadcast zone mark when the recorded video is inquired subsequently. Therefore, some high-quality videos are recorded, and waste of high-quality video resources is avoided.
Example two
Corresponding to the first embodiment, this embodiment further provides an apparatus for recording a video, as shown in fig. 2, the apparatus includes: an acquiring unit 21, a judging unit 22 and a recording unit 23; wherein,
the acquisition unit 21 may acquire the anchor login information or the user login information. Before login information is acquired, the live broadcast rooms of all categories are partitioned according to live broadcast classification, and corresponding live broadcast partition marks are added to the live broadcast rooms of all categories. The live broadcast classification includes: games, entertainment, outdoor live, etc.; for example, the game class can be divided into a live broadcast zone A, and the live broadcast indication of the game class is A; the entertainment category is divided into a B area, and the live broadcast mark of the game category is B; and dividing the outdoor live broadcast into a C area, wherein the live broadcast mark of the outdoor live broadcast is C. If the game includes a plurality of kinds, the live indication of each kind of game may also be set to be different, such as setting each kind of game to a1, a2, A3, and so on.
After adding corresponding live broadcast partition marks to the live broadcast rooms of each category, the obtaining unit 21 may obtain login information of the anchor, where the login information of the anchor includes: the anchor, etc. logs in the identification ID and the room ID. Here, the obtaining unit 21 may also obtain login information of a user, where the login information of the user includes: the user ID.
It should be noted that both the user and the anchor can record the video, and the recording methods are completely the same, and the anchor recording is taken as an example in this embodiment for description.
After the obtaining unit 21 obtains the login information, the determining unit 22 is configured to determine whether a current live broadcast room of the anchor broadcast is in a broadcast state according to the login information, and if the current live broadcast room is in the broadcast state, continue to determine whether a video recording request is received; specifically, the judging unit 22 may determine the room ID of the anchor according to anchor login information; and then based on the room ID, acquiring a live broadcast state identification code of the room through an access service interface, judging whether the live broadcast state identification code is started, and if the live broadcast state identification code is started, determining that the live broadcast room is in a broadcast state.
Of course, it may also be determined whether the current live broadcast room of the anchor is in the broadcast state according to the login information of the user, specifically: acquiring an attention list of the user according to the user identification ID in the user login information; inquiring whether an attention value exists in the attention list or not by using an attention function interface, and if the attention value exists in the attention list, determining a room ID of the current live broadcast room of the anchor according to the attention value; and then based on the room ID, acquiring a live broadcast state identification code of the room through an access service interface, judging whether the live broadcast state identification code is started, and if the live broadcast state identification code is started, determining that the current live broadcast room is in a broadcast state.
And if the live broadcast room is in a broadcasting state, continuously judging whether a video recording request is received. Here, recording buttons are respectively provided on a live page of the anchor and a viewing page of the user, and when the recording button is triggered, a video recording request is sent, so that the recording unit 23 can receive the corresponding video recording request.
Here, since the video recording state is the off state by default, the recording unit 23 changes the video recording state to the on state based on the video recording request when receiving the video recording request. Then, changing the video recording state to the starting state based on the video recording request, and performing delay processing on the video stream by the recording unit 23, so that the video stream is delayed to be loaded, namely, the video stream is firstly cached, and jamming is avoided when the video is recorded; the delay time for delaying the video stream is 0.4-0.6 times of the total recording time, and preferably 0.5 times. The total recording time length is preset.
After the video stream is delayed, the recording unit 23 records the video stream after the delay processing according to a preset recording mode. During recording, a mark of a video recording request is loaded and displayed in a live page of a live broadcast room to indicate that the video is being recorded.
Specifically, when recording a video, the recording unit 23 may record the video stream after the delay processing according to a preset total recording duration. For example, if the preset total recording time is 1min, the recording will be automatically ended from the beginning of the recording to 1 min.
The recording unit 23 may also perform segmented recording on the video stream to form each segment of recorded video; then adding corresponding recording marks to the recorded videos, and merging at least one recorded video according to the recording marks; and the total time length of the segmented recording is not more than the preset total recording time length. For example, a first video segment may be recorded for 10s and then paused, and a video mark M may be added to the first video segment; when the next segment of highlight video appears, recording the second segment of video for 20s, pausing the recording, and adding a video mark F for the second segment of video; and when the next segment of wonderful video appears, recording the third segment of video for 30s, ending the recording, and adding a video mark E for the third segment of video. And then merging the first section of video, the second section of video and the third end of video according to the video marks, and deleting the unsatisfied video if the unsatisfied video appears in the merging process to finally form a section of high-quality synthesized video.
After the recording unit 23 finishes recording, acquiring a recorded video and a live broadcast partition mark of the live broadcast room; and adding the live broadcast zone mark in the recorded video, and calling a storage interface to store the video added with the live broadcast zone mark, so that the recorded video of a corresponding type can be more conveniently searched according to the live broadcast zone mark when the recorded video is inquired subsequently. Therefore, some high-quality videos are recorded, and waste of high-quality video resources is avoided.
EXAMPLE III
The embodiment further provides a computer device for recording a video, as shown in fig. 3, the computer device includes: radio Frequency (RF) circuitry 310, memory 320, input unit 330, display unit 340, audio circuitry 350, WiFi module 360, processor 370, and power supply 380. Those skilled in the art will appreciate that the computer device configuration illustrated in FIG. 3 does not constitute a limitation of computer devices, and may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components.
The following describes the components of the computer device in detail with reference to fig. 3:
RF circuitry 310 may be used for receiving and transmitting signals, and in particular, for receiving downlink information from base stations and processing the received information to processor 350. In general, the RF circuit 310 includes, but is not limited to, at least one Amplifier, transceiver, coupler, Low Noise Amplifier (LNA), duplexer, and the like.
The memory 320 may be used to store software programs and modules, and the processor 350 executes various functional applications and data processing of the computer device by operating the software programs and modules stored in the memory 320. The memory 320 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to use of the computer device, and the like. Further, the memory 320 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 330 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the computer apparatus. Specifically, the input unit 330 may include a keyboard 331 and other input devices 332. The keyboard 331 can collect the input operation of the user thereon and drive the corresponding connection device according to a preset program. The keyboard 331 collects the output information and sends it to the processor 350. The input unit 330 may include other input devices 332 in addition to the keyboard 331. In particular, other input devices 332 may include, but are not limited to, one or more of a touch panel, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 340 may be used to display information input by a user or information provided to the user and various menus of the computer device. The Display unit 340 may include a Display panel 341, and optionally, the Display panel 341 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the keyboard 331 may cover the display panel 341, and when the keyboard 331 detects a touch operation thereon or nearby, the keyboard 331 is transmitted to the processor 350 to determine the type of the touch event, and then the processor 350 provides a corresponding visual output on the display panel 341 according to the type of the input event. Although the keyboard 331 and the display panel 341 are shown in fig. 3 as two separate components to implement input and output functions of the computer device, in some embodiments, the keyboard 331 and the display panel 341 may be integrated to implement input and output functions of the computer device.
Audio circuitry 350, speaker 351, microphone 352 may provide an audio interface between a user and a computer device. The audio circuit 350 may transmit the electrical signal converted from the received audio data to the speaker 351, and the electrical signal is converted into a sound signal by the speaker 351 and output;
WiFi belongs to short-distance wireless transmission technology, and computer equipment can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 360, and provides wireless broadband internet access for the user. Although fig. 3 shows the WiFi module 360, it is understood that it does not belong to the essential constitution of the computer device, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 370 is a control center of the computer device, connects various parts of the entire computer device using various interfaces and lines, performs various functions of the computer device and processes data by operating or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory 320, thereby monitoring the computer device as a whole. Alternatively, processor 370 may include one or more processing units; preferably, the processor 370 may be integrated with an application processor, wherein the application processor primarily handles operating systems, user interfaces, application programs, and the like.
The computer device also includes a power supply 380 (such as a power adapter) for powering the various components, which may preferably be logically connected to the processor 370 through a power management system.
The method, the device and the computer equipment for recording the video have the advantages that at least:
the invention provides a method, a device and computer equipment for recording videos, which are applied to a live broadcast platform, wherein the method comprises the following steps: obtaining login information; judging whether the current live broadcast room is in a broadcasting state or not according to the login information, and if the current live broadcast room is in the broadcasting state, continuously judging whether a video recording request is received or not; if the video recording request is received, changing the video recording state into an enabling state based on the video recording request, carrying out delay processing on the video stream, and recording the video stream after the delay processing according to a preset recording mode; therefore, the video recording function is added into the live broadcast platform, and after the anchor broadcast finds the high-quality video resources, the high-quality video resources can be recorded so as to be transmitted, and the waste of the high-quality video resources is avoided.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components of a gateway, proxy server, system according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on a computer-readable storage medium or may be in the form of one or more signals. Such a signal may be downloaded from an internet website, or provided on a carrier signal, or provided in any other form; the program when executed by a processor implements the steps of: obtaining login information; judging whether the current live broadcast room is in a broadcasting state or not according to the login information, and if the current live broadcast room is in the broadcasting state, continuously judging whether a video recording request is received or not; if the video recording request is received, changing the video recording state into an enabling state based on the video recording request, carrying out delay processing on the video stream, and recording the video stream after the delay processing according to a preset recording mode.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The above description is only exemplary of the present invention and should not be taken as limiting the scope of the present invention, and any modifications, equivalents, improvements, etc. that are within the spirit and principle of the present invention should be included in the present invention.

Claims (7)

1. A method for recording videos is applied to a live platform, and comprises the following steps:
obtaining login information;
judging whether the current live broadcast room is in a broadcasting state or not according to the login information, and if the current live broadcast room is in the broadcasting state, continuously judging whether a video recording request is received or not;
if the video recording request is received, changing the video recording state into an enabled state based on the video recording request, and informing a false server of a live broadcast room to carry out delayed processing on the video stream, wherein the false server of the live broadcast room records the video stream after the delayed processing according to a preset recording mode, and the method comprises the following steps: carrying out segmented recording on the video stream to form each segment of recorded video; adding corresponding recording marks to the recorded videos, and merging at least one recorded video according to the recording marks; the total time length of the segmented recording is not more than the preset total recording time length;
the judging whether the current live broadcast room is in a broadcast state according to the login information comprises the following steps:
determining a room Identifier (ID) of the current live broadcast room according to the login information;
based on the room ID, acquiring a live broadcast state identification code of the room through an access service interface, judging whether the live broadcast state identification code is started, and if the live broadcast state identification code is started, determining that the current live broadcast room is in a broadcast state;
the delaying processing of the video stream includes: and the false server carries out delay loading on the video stream and caches the video stream firstly.
2. The method of claim 1, wherein prior to obtaining the login information, further comprising:
according to the live broadcast classification, partitioning the live broadcast rooms of all categories;
and adding corresponding live broadcast partition marks to the live broadcast rooms of all categories.
3. The method according to claim 1, wherein after the recording the delayed video stream according to the preset recording mode, the method further comprises:
acquiring a recorded video and a live broadcast partition mark of the live broadcast room;
and adding the live broadcast zone mark in the recorded video, and storing the video added with the live broadcast zone mark.
4. The method according to claim 1, wherein the recording the delayed video stream according to a predetermined recording mode comprises:
and recording the video stream after the delay processing according to a preset total recording time length.
5. An apparatus for recording video, the apparatus comprising:
the acquisition unit is used for acquiring login information;
the judging unit is used for judging whether the current live broadcast room is in a broadcast state or not according to the login information, and if the current live broadcast room is in the broadcast state, continuously judging whether a video recording request is received or not;
a recording unit, configured to change a video recording state to an enabled state based on the video recording request when the video recording request is received, and notify a false server in a live broadcast room to perform delay processing on a video stream, where the false server in the live broadcast room records the video stream after the delay processing according to a preset recording mode, and the recording unit includes: carrying out segmented recording on the video stream to form each segment of recorded video; adding corresponding recording marks to the recorded videos, and merging at least one recorded video according to the recording marks; the total time length of the segmented recording is not more than the preset total recording time length;
the judging whether the current live broadcast room is in a broadcast state according to the login information comprises the following steps:
determining a room Identifier (ID) of the current live broadcast room according to the login information;
based on the room ID, acquiring a live broadcast state identification code of the room through an access service interface, judging whether the live broadcast state identification code is started, and if the live broadcast state identification code is started, determining that the current live broadcast room is in a broadcast state;
the delaying processing of the video stream includes: and the false server carries out delay loading on the video stream and caches the video stream firstly.
6. A computer-readable storage medium, on which a computer program is stored, which program, when executed by a processor, carries out the steps of:
obtaining login information;
judging whether the current live broadcast room is in a broadcasting state or not according to the login information, and if the current live broadcast room is in the broadcasting state, continuously judging whether a video recording request is received or not;
if the video recording request is received, changing the video recording state into an enabled state based on the video recording request, and informing a false server of a live broadcast room to carry out delayed processing on the video stream, wherein the false server of the live broadcast room records the video stream after the delayed processing according to a preset recording mode, and the method comprises the following steps: carrying out segmented recording on the video stream to form each segment of recorded video; adding corresponding recording marks to the recorded videos, and merging at least one recorded video according to the recording marks; the total time length of the segmented recording is not more than the preset total recording time length;
the judging whether the current live broadcast room is in a broadcast state according to the login information comprises the following steps:
determining a room Identifier (ID) of the current live broadcast room according to the login information;
based on the room ID, acquiring a live broadcast state identification code of the room through an access service interface, judging whether the live broadcast state identification code is started, and if the live broadcast state identification code is started, determining that the current live broadcast room is in a broadcast state;
the delaying processing of the video stream includes: and the false server carries out delay loading on the video stream and caches the video stream firstly.
7. A computer device for recording video, comprising:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein,
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1 to 4.
CN201710525848.XA 2017-06-30 2017-06-30 Video recording method and device and computer equipment Active CN109218808B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710525848.XA CN109218808B (en) 2017-06-30 2017-06-30 Video recording method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710525848.XA CN109218808B (en) 2017-06-30 2017-06-30 Video recording method and device and computer equipment

Publications (2)

Publication Number Publication Date
CN109218808A CN109218808A (en) 2019-01-15
CN109218808B true CN109218808B (en) 2022-02-08

Family

ID=64977104

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710525848.XA Active CN109218808B (en) 2017-06-30 2017-06-30 Video recording method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN109218808B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111526377B (en) * 2019-02-01 2022-07-05 广州虎牙信息科技有限公司 Stream pulling method and device
CN109862387A (en) * 2019-03-28 2019-06-07 北京达佳互联信息技术有限公司 Video generation method, device and equipment are reviewed in live streaming
CN111800661A (en) * 2020-07-08 2020-10-20 网易(杭州)网络有限公司 Live broadcast room display control method, electronic device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104936004A (en) * 2015-06-05 2015-09-23 广州酷狗计算机科技有限公司 Video recording method and device
CN105916003A (en) * 2016-06-06 2016-08-31 武汉斗鱼网络科技有限公司 Method of using super manager to realize video stream monitoring under room closing state and system thereof

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8667160B1 (en) * 2007-02-02 2014-03-04 Max Haot System and method for internet audio/video delivery
CN105120299B (en) * 2015-08-28 2020-02-14 广州酷狗计算机科技有限公司 Video pushing method and device
CN105872580B (en) * 2016-04-15 2019-08-13 广州酷狗计算机科技有限公司 The recording method and device of live video

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104936004A (en) * 2015-06-05 2015-09-23 广州酷狗计算机科技有限公司 Video recording method and device
CN105916003A (en) * 2016-06-06 2016-08-31 武汉斗鱼网络科技有限公司 Method of using super manager to realize video stream monitoring under room closing state and system thereof

Also Published As

Publication number Publication date
CN109218808A (en) 2019-01-15

Similar Documents

Publication Publication Date Title
CN107277029B (en) Remote procedure call method and device and computer equipment
CN110555118B (en) Method and device for loading picture
CN106231433B (en) A kind of methods, devices and systems playing network video
CN105554522B (en) Method, server and the terminal of audio are played in group
CN109218808B (en) Video recording method and device and computer equipment
CN108881930B (en) Method and system for presenting gift and electronic equipment
CN106375774B (en) Method, device and system for controlling display content of live broadcast room
CN106162316A (en) The data processing method of a kind of video flowing, device and system
CN112104897B (en) Video acquisition method, terminal and storage medium
CN104618794A (en) Method and device for playing video
US20170171571A1 (en) Push Video Documentation Methods and Appliances
CN107276984B (en) Game live broadcast method and device and mobile terminal
CN108810602B (en) Method and device for displaying information of live broadcast room and computer equipment
CN107580233A (en) A kind of method, apparatus and computer equipment for transmitting data
CN105516784A (en) Virtual good display method and device
CN107612841A (en) A kind of method, apparatus and computer equipment for transmitting data
US11128683B2 (en) Device and method for transmitting or receiving media resource identification information in communication system
CN106210919A (en) A kind of main broadcaster of broadcasting sings the methods, devices and systems of video
CN108712670A (en) A kind of method, apparatus and computer equipment for video preview
CN107479985B (en) Remote procedure call method and device and computer equipment
CN104463062B (en) Access method and system based on two-dimensional code scanning
CN110321230B (en) System and method for processing ranking list information and computer equipment
CN106878763A (en) A kind of method for realizing terminal device switching, device, server and system
CN107577712A (en) The method, apparatus and computer equipment of a kind of loading page
CN107610036B (en) Method and device for outputting live broadcast identification picture and computer equipment

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