CN111050205B - Video clip acquisition method, device, equipment and storage medium - Google Patents

Video clip acquisition method, device, equipment and storage medium Download PDF

Info

Publication number
CN111050205B
CN111050205B CN201911282993.5A CN201911282993A CN111050205B CN 111050205 B CN111050205 B CN 111050205B CN 201911282993 A CN201911282993 A CN 201911282993A CN 111050205 B CN111050205 B CN 111050205B
Authority
CN
China
Prior art keywords
live broadcast
time period
gift
target
broadcast room
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
CN201911282993.5A
Other languages
Chinese (zh)
Other versions
CN111050205A (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.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer 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 Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201911282993.5A priority Critical patent/CN111050205B/en
Publication of CN111050205A publication Critical patent/CN111050205A/en
Application granted granted Critical
Publication of CN111050205B publication Critical patent/CN111050205B/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/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/44008Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
    • 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/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Abstract

The application discloses a video clip acquisition method, a device, equipment, a storage medium and a program product, and belongs to the technical field of internet. The method comprises the following steps: in the live broadcast process of a live broadcast room, acquiring gift sending data of the live broadcast room, wherein the gift sending data comprises presentation time and gift information; determining a target time period from the live broadcast time period of the live broadcast room according to the gift sending data of the live broadcast room, wherein the time length of the target time period is a preset time length, and gifts given in the target time period meet preset conditions; and acquiring a target video clip according to the live broadcast video of the live broadcast room and the target time period. The target time period is a gift sending peak period in a live time period of a live broadcast room, and therefore the determined target video clip is a video clip capable of reflecting the gift sending peak period in the live broadcast process of the live broadcast room. That is, the application can accurately acquire the climax fragment where the gift sending peak is located in the live broadcast.

Description

Video clip acquisition method, device, equipment and storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method, an apparatus, a device, a storage medium, and a program product for acquiring a video clip.
Background
With the development of internet technology, more and more live webcast platforms appear. The anchor may create a live room in the webcast platform and live in the live room. Viewers entering the live room can watch the main broadcast. In the process of watching the live broadcast, in order to express the support and the favor of the main broadcast, the audience can give a gift to the main broadcast.
When the anchor broadcasts in the live broadcast room, the anchor can record the live broadcast video through the terminal used by the anchor and upload the live broadcast video to the server, and the server can send the live broadcast video to other terminals displaying the live broadcast room, so that audiences using the other terminals can watch the live broadcast video in the live broadcast room.
Disclosure of Invention
The application provides a video clip acquisition method, device, equipment, storage medium and program product, which can accurately acquire climax clips where gift sending peaks in live broadcast. The technical scheme is as follows:
in one aspect, a method for acquiring a video segment is provided, where the method includes:
in the live broadcast process of a live broadcast room, acquiring gift sending data of the live broadcast room, wherein the gift sending data comprises presentation time and gift information;
determining a target time period from the live broadcast time period of the live broadcast room according to the gift sending data of the live broadcast room, wherein the time length of the target time period is a preset time length, and gifts given in the target time period meet preset conditions;
and acquiring a target video clip according to the live broadcast video of the live broadcast room and the target time period.
Optionally, the preset condition includes at least one of the following four items:
the total amount of gifts given is the most;
the total value of the gifted gifts is the maximum;
the total number of gifts given is greater than or equal to a first threshold;
the total value of the gifted gift is greater than or equal to the second threshold.
Optionally, the determining a target time period from the live broadcast time period of the live broadcast room according to the gift sending data of the live broadcast room includes:
configuring the processing rule of the streaming computing engine to enable gifts given within the preset time length to meet the preset condition;
and inputting the gift sending data of the live broadcast room into the streaming calculation engine, and outputting the target time period by the streaming calculation engine.
Optionally, the obtaining a target video clip according to the live video of the live broadcast room and the target time period includes:
intercepting video clips in the target time period from live video of the live broadcast room;
acquiring the animation of the gift given in the target time period;
and overlaying the animation to the video clip according to the gift giving time in the target time period to obtain the target video clip.
Optionally, after acquiring the target video segment according to the live video of the live broadcast room and the target time period, the method further includes:
storing the target video clip in a video storage system;
and performing associated storage on the anchor account number of the live broadcast room, the storage address of the target video clip in the video storage system and the video information of the target video clip in a database.
Optionally, after acquiring the target video segment according to the live video of the live broadcast room and the target time period, the method further includes:
and issuing the target video clip as the dynamic information of the anchor account of the live broadcast room.
In one aspect, an apparatus for acquiring a video segment is provided, the apparatus comprising:
the system comprises a first obtaining module, a second obtaining module and a display module, wherein the first obtaining module is used for obtaining gift sending data of a live broadcast room in the live broadcast process of the live broadcast room, and the gift sending data comprises presentation time and gift information;
the determining module is used for determining a target time period from the live broadcast time period of the live broadcast room according to the gift sending data of the live broadcast room, wherein the time length of the target time period is preset time length, and gifts given in the target time period meet preset conditions;
and the second acquisition module is used for acquiring a target video clip according to the live video of the live broadcast room and the target time period.
Optionally, the preset condition includes at least one of the following four items:
the total amount of gifts given is the most;
the total value of the gifted gifts is the maximum;
the total number of gifts given is greater than or equal to a first threshold;
the total value of the gifted gift is greater than or equal to the second threshold.
Optionally, the determining module is configured to:
configuring the processing rule of the streaming computing engine to enable gifts given within the preset time length to meet the preset condition;
and inputting the gift sending data of the live broadcast room into the streaming calculation engine, and outputting the target time period by the streaming calculation engine.
Optionally, the second obtaining module is configured to:
intercepting video clips in the target time period from live video of the live broadcast room;
acquiring the animation of the gift given in the target time period;
and overlaying the animation to the video clip according to the gift giving time in the target time period to obtain the target video clip.
Optionally, the apparatus further comprises:
the first storage module is used for storing the target video clip into a video storage system;
and the second storage module is used for storing the anchor account number of the live broadcast room, the storage address of the target video clip in the video storage system and the video information of the target video clip in a database in a correlated manner.
Optionally, the apparatus further comprises:
and the release module is used for releasing the target video clip as the dynamic information of the anchor account of the live broadcast room.
In one aspect, a computer device is provided, and the computer device includes a processor and a memory, where the memory is used to store a computer program, and the processor is used to load and execute the computer program stored in the memory, so as to implement the steps of the video segment obtaining method described above.
In one aspect, a computer-readable storage medium is provided, the storage medium having instructions stored thereon, wherein the instructions, when executed by a processor, implement the steps of the video segment acquisition method described above.
In one aspect, a computer program product is provided, which contains instructions for causing a computer to perform the steps of the above-mentioned video segment acquisition method when the computer program product runs on the computer.
The technical scheme provided by the application can at least bring the following beneficial effects:
in the live broadcast process of the live broadcast room, gift sending data of the live broadcast room can be obtained, and the gift sending data can comprise presentation time and gift information. And then, according to the gift sending data of the live broadcast room, determining a target time period from the live broadcast time period of the live broadcast room, wherein the duration of the target time period is preset duration, and the gift given in the target time period meets preset conditions. And finally, acquiring a target video clip according to the live video and the target time period of the live broadcast room. Because the target time period is the gift sending peak time in the live broadcast time period of the live broadcast room, the determined target video clip is a video clip capable of reflecting the gift sending peak time in the live broadcast process of the live broadcast room. That is, the application can accurately acquire the climax fragment where the gift sending peak is located in the live broadcast.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, 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 only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a video segment acquiring method according to an embodiment of the present application;
fig. 2 is a flowchart of a video segment acquiring method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a video segment acquiring apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It should be understood that reference to "a plurality" in this application means two or more. In the description of the present application, "/" indicates an OR meaning, for example, A/B may indicate A or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, for the convenience of clearly describing the technical solutions of the present application, the terms "first", "second", and the like are used to distinguish the same items or similar items having substantially the same functions and actions. Those skilled in the art will appreciate that the terms "first," "second," etc. do not denote any order or quantity, nor do the terms "first," "second," etc. denote any order or importance.
Fig. 1 is a flowchart of a video segment acquiring method provided in an embodiment of the present application, where the method is applied to a server. Referring to fig. 1, the method includes:
step 101: in the live broadcasting process of the live broadcasting room, gift sending data of the live broadcasting room is obtained, and the gift sending data comprises presentation time and gift information.
Step 102: and determining a target time period from the live broadcast time period of the live broadcast room according to the gift sending data of the live broadcast room, wherein the time length of the target time period is preset time length, and the gift given in the target time period meets preset conditions.
Step 103: and acquiring a target video clip according to the live video and the target time period of the live broadcast room.
In the embodiment of the application, in the live broadcasting process of the live broadcasting room, the gift sending data of the live broadcasting room can be obtained, and the gift sending data can comprise the presentation time and the gift information. And then, according to the gift sending data of the live broadcast room, determining a target time period from the live broadcast time period of the live broadcast room, wherein the duration of the target time period is preset duration, and the gift given in the target time period meets preset conditions. And finally, acquiring a target video clip according to the live video and the target time period of the live broadcast room. Because the target time period is the gift sending peak time in the live broadcast time period of the live broadcast room, the determined target video clip is a video clip capable of reflecting the gift sending peak time in the live broadcast process of the live broadcast room. That is, in the embodiment of the application, the climax fragment where the gift sending peak is located in the live broadcast can be accurately acquired.
Optionally, the preset condition comprises at least one of the following four items:
the total amount of gifts given is the most;
the total value of the gifted gifts is the maximum;
the total number of gifts given is greater than or equal to a first threshold;
the total value of the gifted gift is greater than or equal to the second threshold.
Optionally, determining a target time period from the live broadcast time period of the live broadcast room according to the gift sending data of the live broadcast room, including:
configuring the processing rule of the streaming calculation engine to enable gifts given within a preset time length to meet a preset condition;
and inputting the gift sending data of the live broadcast room into a streaming calculation engine, and outputting the target time period by the streaming calculation engine.
Optionally, obtaining a target video clip according to a live video and a target time period in a live broadcast room, including:
intercepting video clips in a target time period from a live video in a live broadcast room;
acquiring animation of gifts given in a target time period;
and overlaying the animation to the video clip according to the gift giving time in the target time period to obtain the target video clip.
Optionally, after the target video segment is obtained according to the live video and the target time period in the live broadcast room, the method further includes:
storing the target video clip in a video storage system;
and performing associated storage on the anchor account number of the live broadcast room, the storage address of the target video clip in the video storage system and the video information of the target video clip in a database.
Optionally, after the target video segment is obtained according to the live video and the target time period in the live broadcast room, the method further includes:
and issuing the target video clip as the dynamic information of the anchor account of the live broadcast room.
All the above optional technical solutions can be combined arbitrarily to form an optional embodiment of the present application, and the present application embodiment is not described in detail again.
Fig. 2 is a flowchart of a video segment acquiring method provided in an embodiment of the present application, where the method is applied to a server. Referring to fig. 2, the method includes:
step 201: and in the live broadcasting process of the live broadcasting room, obtaining gift sending data of the live broadcasting room.
It should be noted that the anchor may have its own live broadcast room, and in the process of live broadcast in its own live broadcast room, viewers watching the live broadcast may give gifts to the anchor.
For example, the anchor may register its user account (hereinafter, referred to as an anchor account) in a terminal used by itself (hereinafter, referred to as an anchor terminal), create a live broadcast room, and then record a live video using the anchor terminal and upload it to a server. The server can send the live video to other terminals displaying the live room, so that the live broadcast of the anchor in the live room can be realized.
The viewer may also log in his user account (hereinafter, referred to as a viewer account) in a terminal used by the viewer (hereinafter, referred to as a viewer terminal), open the live broadcast room in the viewer terminal, and watch the live broadcast of the anchor broadcast in the live broadcast room. In the process of watching the live broadcast, the audience can give a gift to the main broadcast, and specifically, the audience account can be used for giving the gift to the main broadcast account.
In addition, the gift sending data is used for indicating the gift received by the main broadcasting account number of the live broadcasting room and the time of receiving the gift. That is, the gift data may include a gift time and gift information, and the gift information may include a gift identification, a gift number, a gift value, and the like, which is not limited in this embodiment of the present application. The gift identification is used for uniquely identifying the gift, and may be the name, number, etc. of the gift.
For example, in the live broadcasting process of the live broadcasting room, 999 roses are received by the anchor account number of the live broadcasting room at 13:30:05 of 12, month and 4 days in 2019, and the value of each rose is 3, then the server may determine that the gift sending data of the live broadcasting room is as follows: 13:30:05 (presentation time), rose (gift identification), 999 (gift number), and 3 (gift value) on 12, 4 and 2019.
Step 202: and determining a target time period from the live broadcast time period of the live broadcast room according to the gift sending data of the live broadcast room.
Note that the live time period of the live broadcast room is a time period from a time when the live broadcast starts to a time when the live broadcast ends.
In addition, the duration of the target time period is preset duration, and gifts given in the target time period meet preset conditions. The preset time period may be preset, for example, the preset time period may be 20 seconds, 30 seconds, 40 seconds, or the like. The preset condition can also be preset, and the preset condition is used for indicating a gift sending peak. For example, the preset condition may include at least one of the following four items: (1) the total amount of gifts given is the most; (2) the total value of gifts given is the maximum; (3) the total number of gifts given is greater than or equal to a first threshold; (4) the total value of the gifted gift is greater than or equal to the second threshold.
Further, both the first threshold value and the second threshold value may be set in advance. The first threshold value is a threshold value for measuring the number of gifts. When the total number of the gifts is larger than or equal to the first threshold value, the total number of the gifts is more; when the total number of gifts is less than the first threshold value, the total number of gifts is less. The second threshold is a threshold for measuring the value of the gift. When the total value of the gifts is greater than or equal to the second threshold value, the total value of the gifts is larger; when the total value of the gift is less than the second threshold value, it indicates that the total value of the gift is smaller.
It should be noted that the target time period is a time period in which the gifts given within a preset time length in the live broadcast time period of the live broadcast room meet a preset condition, that is, the target time period is a gifting peak time period in the live broadcast process of the live broadcast room. For example, the preset time period is 30 seconds. Assuming that the preset condition is that the total number of gifts to be given is the largest, the target time period is 30 seconds of the largest total number of gifts to be given in the live broadcast time period of the live broadcast room. Assuming that the preset condition is that the total value of gifted gifts is the largest, the target time period is 30 seconds when the total value of gifted gifts in the live broadcast time period of the live broadcast room is the largest. Assuming that the preset condition is that the total number of gifts given is greater than or equal to the first threshold value, and the first threshold value is 100, the target time period is 30 seconds in which the total number of gifts given in the live time period of the live broadcast room is greater than or equal to 100. Assuming that the preset condition is that the total value of gifted gifts is greater than or equal to the second threshold value, and the second threshold value is 1000, the target time period is 30 seconds in which the total value of gifted gifts in the live time period of the live broadcast room is greater than or equal to 1000.
In addition, when step 202 is executed, the server may try to determine the target time period in real time according to the obtained gift-offering data during the live broadcast of the live broadcast room, and then may obtain the target time period when the live broadcast is finished in the live broadcast room. Of course, the server may also determine the target time period according to all the obtained gift-offering data when the live broadcast is finished in the live broadcast room.
Specifically, the operation of determining the target time period from the live broadcast time period of the live broadcast room by the server according to the gift sending data of the live broadcast room may be: the server configures the processing rule of the streaming computation engine to enable gifted gifts in a preset time length to meet a preset condition; and inputting the gift sending data of the live broadcast room into the streaming calculation engine, and outputting the target time period by the streaming calculation engine. Of course, the server may also determine the target time period from the live broadcast time period of the live broadcast room in other ways according to the gift sending data of the live broadcast room, which is not limited in the embodiment of the present application.
It should be noted that the streaming computation engine can analyze large-scale streaming data in real time during the changing motion process. For example, the streaming computing engine may be a storm computing engine, spark computing engine, flink computing engine, and the like, which is not limited in this embodiment of the present application.
In addition, after the processing rule of the streaming computing engine is configured that the gifts given within the preset time length meet the preset condition, the streaming computing engine can process the input gifting data according to the processing rule. Specifically, the streaming calculation engine may determine a live broadcast time period according to the presentation time in the gift data, determine a time period, of which the duration is a preset duration and during which the presented gift meets a preset condition, as a target time period from the live broadcast time period according to the gift information in the gift data, and finally output the target time period.
Furthermore, when the server inputs the gift sending data of the live broadcast room into the stream type calculation engine, the server can input the gift sending data into the stream type calculation engine every time one gift sending data is obtained in the live broadcast process of the live broadcast room, namely, the gift sending data is input into the stream type calculation engine in real time, so that when the live broadcast is finished, the stream type calculation engine can output a target time period; or, the server may input all the obtained gift-sending data into the streaming computing engine when the live broadcast is finished in the live broadcast room, and the streaming computing engine outputs the target time period.
Step 203: and acquiring a target video clip according to the live video and the target time period of the live broadcast room.
Since the target time period is the gift sending peak time in the live broadcast time period of the live broadcast room, the target video clip in the gift sending peak time period can be obtained according to the live broadcast video and the target time period of the live broadcast room, namely the target video clip is a video clip capable of reflecting the gift sending peak time in the live broadcast process of the live broadcast room. That is, in the embodiment of the application, the climax fragment where the gift sending peak is located in the live broadcast can be accurately acquired.
Specifically, the operation of the server obtaining the target video clip according to the live video and the target time slot of the live broadcast room may be: and the server intercepts the video clips in the target time period from the live video of the live broadcast room as target video clips. Or the server firstly intercepts the video clip in the target time period from the live video of the live broadcast room, then acquires the animation of the gift given in the target time period, and then superimposes the animation on the video clip according to the time of the gift given in the target time period to obtain the target video clip.
It should be noted that, in a possible case, the server may directly intercept the target video segment from the live video, so that the target video segment is obtained efficiently. In another possible case, the server may first cut a video clip from the live video, and then superimpose the gift animation on the cut video clip to obtain the target video clip, so that the target video clip includes the live video clip and the gift animation, and the user can directly and clearly see the gift service from the target video clip.
The operation of the server for intercepting the video segments in the target time period from the live video in the live broadcast room is similar to the operation of intercepting the video segments in the certain time period from a certain video in the related art, and details of the operation are not described in the embodiment of the present application. For example, the server may determine a timestamp of each video frame in the live video, acquire all video frames in the live video within a target time period, and then combine all the acquired video frames into a video clip.
When the server obtains the animation of the gift given in the target time period, for each gift given in the target time period, the server can obtain the corresponding animation as the animation of the gift from the corresponding relationship between the gift identifier and the animation according to the gift identifier of the gift. Of course, the server may also obtain the animation of the gift given in the target time period in other manners, which is not limited in the embodiment of the present application.
When the server superimposes the animation onto the video clip according to the time for presenting the gift in the target time period, for each gift presented in the target time period, the server may determine the playing time length of the animation of the gift, then take the presenting time of the gift as a first time, take a time after the presenting time and apart from the presenting time by the playing time length as a second time, take a time period between the first time and the second time as a superimposing time period, and finally superimpose the animation of the gift onto a video frame in the video clip within the superimposing time period. In this way, after the animation of all gifts given in the target time period is superimposed in the video clip, the target video clip can be obtained.
Further, after the server acquires the target video clip, the server can also store the target video clip into the video storage system, so that a subsequent user can view the target video clip at any time. And the server can also store the anchor account of the live broadcast room, the storage address of the target video clip in the video storage system and the video information of the target video clip in a database in a correlated manner.
It should be noted that the video information of the target video segment may include a title, a generation time, and the like of the target video segment. The title of the target video segment may contain information such as the anchor account number, the target time period, the total value of the gifts, or the total number of the gifts. For example, the title of the target time slice may be: anchor a received gifts with a total value of 1000 at 13:30:05 to 13:30:35 on 12, 4, 2019.
In addition, the anchor account of the live broadcast room, the storage address of the target video clip in the video storage system, and the video information of the target video clip are stored in the database in a correlated manner, so that the target video clip of the anchor account and the video information of the target video clip can be conveniently acquired. For example, the storage address and the video information associated with the anchor account may be first queried from the database, and then the target video segment may be obtained from the video storage system according to the storage address, so that the target video segment of the anchor account and the video information of the target video segment may be obtained.
Further, after the server acquires the target video clip, the server can also issue the target video clip as dynamic information of the anchor account of the live broadcast room.
It should be noted that the dynamic information of the anchor account is information displayed on the homepage of the anchor account. When the terminal opens the personal homepage of the anchor account, the dynamic information of the anchor account can be displayed on the personal homepage.
In addition, the dynamic information may include not only the target video clip but also video information of the target video clip. For example, the dynamic information may include a target video segment and a title of the target video segment, so that a user can quickly know the content of the target video segment according to the title.
When the server issues the target video clip as dynamic information of the anchor account of the live broadcast room, the server can display the dynamic information on a personal homepage of the anchor account, and for the account paying attention to the anchor account, the server can send a dynamic reminding message to the terminal logged in with the account, and can display the dynamic information in a dynamic special area displayed in the terminal logged in with the account.
It should be noted that the dynamic reminding message is used to remind the user that the account concerned by the user issues a new dynamic state. The terminal logged in with the account number can display the dynamic reminding message after receiving the dynamic reminding message, and can jump to a dynamic display page to display the dynamic information when receiving a confirmation instruction aiming at the dynamic reminding message.
In addition, the confirmation instruction is used for confirming the dynamic state prompted by displaying the dynamic prompting message, the confirmation instruction can be triggered by a user, and the user can trigger through operations such as click operation, sliding operation, voice operation and gesture operation. The dynamic display page is a page for displaying dynamic information, and may be a personal homepage directly or a page for displaying a piece of dynamic information alone.
The dynamic region is a region for displaying dynamic information of all accounts to which the account is interested. The dynamic information of all the accounts concerned by the account can be displayed in the dynamic special area according to the sequence of the release time.
In the embodiment of the application, the server may obtain the gift sending data of the live broadcast room in the live broadcast process of the live broadcast room, and the gift sending data may include the presentation time and the gift information. And then, the server can determine a target time period from the live broadcast time period of the live broadcast room according to the gift sending data of the live broadcast room, wherein the duration of the target time period is preset duration, and gifts given in the target time period meet preset conditions. And finally, the server acquires a target video clip according to the live broadcast video and the target time period of the live broadcast room. Because the target time period is the gift sending peak time in the live broadcast time period of the live broadcast room, the determined target video clip is a video clip capable of reflecting the gift sending peak time in the live broadcast process of the live broadcast room. That is, in the embodiment of the application, the climax fragment where the gift sending peak is located in the live broadcast can be accurately acquired.
Fig. 3 is a schematic structural diagram of a video segment acquiring apparatus according to an embodiment of the present application, where the apparatus may be applied to a server. Referring to fig. 3, the apparatus includes: a first obtaining module 301, a determining module 302 and a second obtaining module 303.
A first obtaining module 301, configured to obtain gift sending data of a live broadcast room in a live broadcast process of the live broadcast room, where the gift sending data includes presentation time and gift information;
the determining module 302 is configured to determine a target time period from a live broadcast time period of a live broadcast room according to gift sending data of the live broadcast room, where the time length of the target time period is a preset time length, and gifts given in the target time period meet preset conditions;
the second obtaining module 303 is configured to obtain a target video segment according to the live video and the target time period in the live broadcast room.
Optionally, the preset condition comprises at least one of the following four items:
the total amount of gifts given is the most;
the total value of the gifted gifts is the maximum;
the total number of gifts given is greater than or equal to a first threshold;
the total value of the gifted gift is greater than or equal to the second threshold.
Optionally, the determining module 302 is configured to:
configuring the processing rule of the streaming calculation engine to enable gifts given within a preset time length to meet a preset condition;
and inputting the gift sending data of the live broadcast room into a streaming calculation engine, and outputting the target time period by the streaming calculation engine.
Optionally, the second obtaining module 303 is configured to:
intercepting video clips in a target time period from a live video in a live broadcast room;
acquiring animation of gifts given in a target time period;
and overlaying the animation to the video clip according to the gift giving time in the target time period to obtain the target video clip.
Optionally, the apparatus further comprises:
the first storage module is used for storing the target video clip into the video storage system;
and the second storage module is used for storing the anchor account number of the live broadcast room, the storage address of the target video clip in the video storage system and the video information of the target video clip in a database in a correlated manner.
Optionally, the apparatus further comprises:
and the release module is used for releasing the target video clip as the dynamic information of the anchor account of the live broadcast room.
In the embodiment of the application, in the live broadcasting process of the live broadcasting room, the gift sending data of the live broadcasting room can be obtained, and the gift sending data can comprise the presentation time and the gift information. And then, according to the gift sending data of the live broadcast room, determining a target time period from the live broadcast time period of the live broadcast room, wherein the duration of the target time period is preset duration, and the gift given in the target time period meets preset conditions. And finally, acquiring a target video clip according to the live video and the target time period of the live broadcast room. Because the target time period is the gift sending peak time in the live broadcast time period of the live broadcast room, the determined target video clip is a video clip capable of reflecting the gift sending peak time in the live broadcast process of the live broadcast room. That is, in the embodiment of the application, the climax fragment where the gift sending peak is located in the live broadcast can be accurately acquired.
It should be noted that: in the video clip acquiring apparatus provided in the above embodiment, when acquiring a video clip, only the division of the above functional modules is taken as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the apparatus is divided into different functional modules, so as to complete all or part of the above described functions. In addition, the video segment obtaining apparatus and the video segment obtaining method provided in the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments in detail and are not described herein again.
Fig. 4 is a schematic structural diagram of a computer device according to an embodiment of the present application. Referring to fig. 4, the computer device may be a server 400, and the server 400 may be a server in a background server cluster.
The server 400 includes a CPU (Central Processing Unit) 401, a system memory 404, and a system bus 405 connecting the system memory 404 and the Central Processing Unit 401. The system Memory 404 includes a RAM (Random Access Memory) 402 and a ROM (Read-Only Memory) 403. The server 400 also includes a basic I/O (Input/Output) system 406, which facilitates the transfer of information between devices within the computer, and a mass storage device 407 for storing an operating system 413, application programs 414, and other program modules 415.
The basic input/output system 406 includes a display 408 for displaying information and an input device 409 such as a mouse, keyboard, etc. for user input of information. Wherein a display 408 and an input device 409 are connected to the central processing unit 401 through an input/output controller 410 connected to the system bus 405. The basic input/output system 406 may also include an input/output controller 410 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, an input/output controller 410 may also provide output to a display screen, a printer, or other type of output device.
The mass storage device 407 is connected to the central processing unit 401 through a mass storage controller (not shown) connected to the system bus 405. The mass storage device 407 and its associated computer-readable media provide non-volatile storage for the server 400. That is, the mass storage device 407 may include a computer-readable medium (not shown) such as a hard disk or CD-ROM (Compact disk Read-Only Memory) drive.
Without loss of generality, computer readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes, but is not limited to, RAM, ROM, EPROM (Electrically Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash Memory or other solid state Memory technology, and CD-ROM, DVD (Digital Versatile disk) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that computer storage media is not limited to the foregoing. The system memory 404 and mass storage device 407 may be collectively referred to as memory.
According to various embodiments of the present application, the server 400 may also operate as a remote computer connected to a network through a network, such as the Internet. That is, the server 400 may be connected to the network 412 through the network interface unit 411 connected to the system bus 405, or may be connected to other types of networks or remote computer systems (not shown) using the network interface unit 411.
The memory further includes one or more programs, and the one or more programs are stored in the memory and configured to be executed by the CPU. The one or more programs contain instructions for performing the video clip acquisition method provided by the embodiment of fig. 2.
In some embodiments, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the video segment obtaining method provided in the embodiment of fig. 2. For example, the computer readable storage medium may be a ROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
It is noted that the computer-readable storage medium referred to in the embodiments of the present application may be a non-volatile storage medium, in other words, a non-transitory storage medium.
It should be understood that all or part of the steps for implementing the above embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The computer instructions may be stored in the computer-readable storage medium described above.
In some embodiments, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the steps of the video segment acquisition method provided in the embodiment of fig. 2 described above.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (8)

1. A method for acquiring a video clip, the method comprising:
in the live broadcast process of a live broadcast room, acquiring gift sending data of the live broadcast room, wherein the gift sending data comprises presentation time and gift information;
configuring a processing rule of a streaming calculation engine to enable gifts given in a preset time length to meet a preset condition, inputting gift sending data of a live broadcast room into the streaming calculation engine, determining a live broadcast time period according to the giving time in the gift sending data by the streaming calculation engine, determining a time length from the live broadcast time period as the preset time length according to gift information in the gift sending data, taking the time period in which the given time length meets the preset condition in the preset time length as a target time period, and outputting the target time period;
intercepting video clips in the target time period from live video of the live broadcast room;
acquiring the animation of the gift given in the target time period;
for each gift given in the target time period, determining the playing time length of the animation of the gift; taking the presentation time of the gift as a first time, taking the time which is positioned after the presentation time and is away from the presentation time by the playing time length as a second time, and taking the time period between the first time and the second time as a superposition time period; overlaying the animation of the gift to a video frame in the video clip within the overlaying time period to obtain a target video clip;
the method further comprises the following steps:
and displaying the target video clip on a personal homepage of the anchor account as dynamic information of the anchor account of the live broadcast room, sending a dynamic reminding message to a terminal logged with a first account, and displaying the dynamic information in a dynamic special area displayed by the terminal, wherein the first account is an account concerning the anchor account, and the dynamic special area is used for displaying an area of the dynamic information of the account concerning the first account.
2. The method of claim 1, wherein the preset condition comprises at least one of:
the total amount of gifts given is the most;
the total value of the gifted gifts is the maximum;
the total number of gifts given is greater than or equal to a first threshold;
the total value of the gifted gift is greater than or equal to the second threshold.
3. The method of any of claims 1-2, wherein after obtaining the target video segment, further comprising:
storing the target video clip in a video storage system;
and performing associated storage on the anchor account number of the live broadcast room, the storage address of the target video clip in the video storage system and the video information of the target video clip in a database.
4. A video clip acquisition apparatus, characterized in that the apparatus comprises:
the system comprises a first obtaining module, a second obtaining module and a display module, wherein the first obtaining module is used for obtaining gift sending data of a live broadcast room in the live broadcast process of the live broadcast room, and the gift sending data comprises presentation time and gift information;
the determining module is used for configuring processing rules of a streaming computing engine to enable gifts given in a preset time length to meet a preset condition, inputting the gifting data of the live broadcast room into the streaming computing engine, determining a live broadcast time period according to the giving time in the gifting data by the streaming computing engine, determining the time length from the live broadcast time period as the preset time length according to gift information in the gifting data, taking the time period in which the gifts given in the preset time length meet the preset condition as a target time period, and outputting the target time period;
the second acquisition module is used for intercepting video clips in the target time period from the live video of the live broadcast room; acquiring the animation of the gift given in the target time period; for each gift given in the target time period, determining the playing time length of the animation of the gift; taking the presentation time of the gift as a first time, taking the time which is positioned after the presentation time and is away from the presentation time by the playing time length as a second time, and taking the time period between the first time and the second time as a superposition time period; overlaying the animation of the gift to a video frame in the video clip within the overlaying time period to obtain a target video clip;
the device further comprises:
the release module is used for displaying the target video clip on a personal homepage of the anchor account as dynamic information of the anchor account of the live broadcast room, sending a dynamic reminding message to a terminal logged with a first account, and displaying the dynamic information in a dynamic special area displayed by the terminal, wherein the first account is an account concerning the anchor account, and the dynamic special area is used for displaying an area of the dynamic information of the account concerning the first account.
5. The apparatus of claim 4, wherein the preset condition comprises at least one of:
the total amount of gifts given is the most;
the total value of the gifted gifts is the maximum;
the total number of gifts given is greater than or equal to a first threshold;
the total value of the gifted gift is greater than or equal to the second threshold.
6. The apparatus of any of claims 4-5, wherein the apparatus further comprises:
the first storage module is used for storing the target video clip into a video storage system;
and the second storage module is used for storing the anchor account number of the live broadcast room, the storage address of the target video clip in the video storage system and the video information of the target video clip in a database in a correlated manner.
7. A computer device, characterized in that the computer device comprises a processor and a memory for storing a computer program, the processor being adapted to load and execute the computer program stored on the memory to implement the steps of the method according to any of the claims 1-3.
8. A computer-readable storage medium having instructions stored thereon, wherein the instructions, when executed by a processor, implement the steps of the method of any one of claims 1-3.
CN201911282993.5A 2019-12-13 2019-12-13 Video clip acquisition method, device, equipment and storage medium Active CN111050205B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911282993.5A CN111050205B (en) 2019-12-13 2019-12-13 Video clip acquisition method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911282993.5A CN111050205B (en) 2019-12-13 2019-12-13 Video clip acquisition method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111050205A CN111050205A (en) 2020-04-21
CN111050205B true CN111050205B (en) 2022-03-25

Family

ID=70236150

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911282993.5A Active CN111050205B (en) 2019-12-13 2019-12-13 Video clip acquisition method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111050205B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111147882B (en) * 2019-12-31 2022-02-08 北京达佳互联信息技术有限公司 Video processing method and device, terminal equipment and storage medium
CN111741334B (en) * 2020-06-16 2022-08-26 广州酷狗计算机科技有限公司 Live broadcast data generation method, live broadcast data display method, device and equipment
CN112188297B (en) * 2020-09-08 2021-10-08 腾讯科技(深圳)有限公司 Live broadcast interaction method and device, electronic equipment and storage medium
CN112637618B (en) * 2020-12-08 2023-09-08 广州博冠信息科技有限公司 Live broadcast playback video generation method and device, electronic equipment and computer medium
CN112822504B (en) * 2020-12-30 2023-07-25 北京达佳互联信息技术有限公司 Live broadcast room cover updating method and device, electronic equipment and storage medium
CN115209165A (en) * 2021-04-08 2022-10-18 北京字节跳动网络技术有限公司 Method and device for controlling live broadcast cover display
CN113343055A (en) * 2021-05-31 2021-09-03 北京达佳互联信息技术有限公司 Video processing method and device, electronic equipment and computer readable storage medium
CN113490045B (en) * 2021-06-30 2024-03-22 北京百度网讯科技有限公司 Special effect adding method, device, equipment and storage medium for live video
CN113727125B (en) * 2021-08-30 2023-03-28 广州方硅信息技术有限公司 Live broadcast room screenshot method, device, system, medium and computer equipment
CN114189719B (en) * 2021-11-11 2024-04-16 北京达佳互联信息技术有限公司 Video information extraction method and device, electronic equipment and storage medium
CN114630141A (en) * 2022-03-18 2022-06-14 北京达佳互联信息技术有限公司 Video processing method and related equipment
CN114760505A (en) * 2022-03-30 2022-07-15 广州方硅信息技术有限公司 Live video playback method and device, computer equipment and storage medium
CN115065866B (en) * 2022-06-29 2023-09-26 北京达佳互联信息技术有限公司 Video generation method, device, equipment and storage medium
JP7469771B1 (en) 2023-12-13 2024-04-17 17Live株式会社 SERVER AND METHOD

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105491456A (en) * 2014-10-11 2016-04-13 中兴通讯股份有限公司 Video content recommendation method and device as well as video content evaluation method and device
CN105939494A (en) * 2016-05-25 2016-09-14 乐视控股(北京)有限公司 Audio/video segment providing method and device
CN108665977A (en) * 2018-04-24 2018-10-16 上海市浦东新区周浦医院 For state of an illness early warning and the human computer cooperation system and method for intervening management
CN108694236A (en) * 2018-05-11 2018-10-23 优视科技有限公司 Video data handling procedure, device and electronic equipment
US10162900B1 (en) * 2015-03-09 2018-12-25 Interos Solutions Inc. Method and system of an opinion search engine with an application programming interface for providing an opinion web portal
CN109218746A (en) * 2018-11-09 2019-01-15 北京达佳互联信息技术有限公司 Obtain the method, apparatus and storage medium of video clip
CN109309843A (en) * 2018-07-25 2019-02-05 北京达佳互联信息技术有限公司 Video distribution method, terminal and server
CN110535686A (en) * 2019-07-25 2019-12-03 深圳壹师城科技有限公司 Anomalous event treating method and apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9699205B2 (en) * 2015-08-31 2017-07-04 Splunk Inc. Network security system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105491456A (en) * 2014-10-11 2016-04-13 中兴通讯股份有限公司 Video content recommendation method and device as well as video content evaluation method and device
US10162900B1 (en) * 2015-03-09 2018-12-25 Interos Solutions Inc. Method and system of an opinion search engine with an application programming interface for providing an opinion web portal
CN105939494A (en) * 2016-05-25 2016-09-14 乐视控股(北京)有限公司 Audio/video segment providing method and device
CN108665977A (en) * 2018-04-24 2018-10-16 上海市浦东新区周浦医院 For state of an illness early warning and the human computer cooperation system and method for intervening management
CN108694236A (en) * 2018-05-11 2018-10-23 优视科技有限公司 Video data handling procedure, device and electronic equipment
CN109309843A (en) * 2018-07-25 2019-02-05 北京达佳互联信息技术有限公司 Video distribution method, terminal and server
CN109218746A (en) * 2018-11-09 2019-01-15 北京达佳互联信息技术有限公司 Obtain the method, apparatus and storage medium of video clip
CN110535686A (en) * 2019-07-25 2019-12-03 深圳壹师城科技有限公司 Anomalous event treating method and apparatus

Also Published As

Publication number Publication date
CN111050205A (en) 2020-04-21

Similar Documents

Publication Publication Date Title
CN111050205B (en) Video clip acquisition method, device, equipment and storage medium
CN109089154B (en) Video extraction method, device, equipment and medium
KR102197311B1 (en) Detecting channel change in automatic content recognition fingerprint matching
CN109089127B (en) Video splicing method, device, equipment and medium
US10412142B2 (en) Video-production system with social-media features
CN109640130B (en) Broadcast message pushing method, server and readable storage medium
US10521481B2 (en) Video-production system with social-media features
US10404770B2 (en) Video-production system with social-media features
US20230421867A1 (en) Systems and methods for summarizing missed portions of storylines
CN113225607B (en) Method and system for displaying gift in live broadcast room
CN111901619B (en) Message pushing method and device
CN108415908B (en) Multimedia data processing method and server
CN104853251A (en) Online collection method and device for multimedia data
CN110381378B (en) Estimation method, device, server and storage medium of network multimedia playing amount
CN113329232B (en) Resource distribution method and device, electronic equipment and storage medium
CN103702218A (en) Video playing method and device
CN108271050B (en) Live broadcast room program recommendation method and device
US20150100998A1 (en) Tv clip record and share
CN105516828A (en) Method and device for downloading video
JP2017525016A (en) Method, system, and computer-readable medium for determining outcomes for promotional digital on-screen graphics
CN108966034B (en) Virtual article display method, device and storage medium
US9794599B2 (en) Method and system for auditing multimedia content
JP2016032237A (en) Broadcast collation device, system, method and program
CN114501117A (en) Multi-platform message synchronous merging method, system, electronic equipment and storage medium
CN109429088B (en) Program interaction method, system, storage medium and processor

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