CN111901620A - Live broadcast playback generation method and device, electronic equipment and storage medium - Google Patents

Live broadcast playback generation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111901620A
CN111901620A CN202010724725.0A CN202010724725A CN111901620A CN 111901620 A CN111901620 A CN 111901620A CN 202010724725 A CN202010724725 A CN 202010724725A CN 111901620 A CN111901620 A CN 111901620A
Authority
CN
China
Prior art keywords
live broadcast
task
playback
account
generation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010724725.0A
Other languages
Chinese (zh)
Other versions
CN111901620B (en
Inventor
谭培强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202010724725.0A priority Critical patent/CN111901620B/en
Publication of CN111901620A publication Critical patent/CN111901620A/en
Application granted granted Critical
Publication of CN111901620B publication Critical patent/CN111901620B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25866Management of end-user data
    • H04N21/25875Management of end-user data involving end-user authentication
    • 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/432Content retrieval operation from a local storage medium, e.g. hard-disk
    • H04N21/4325Content retrieval operation from a local storage medium, e.g. hard-disk by playing back content from the storage medium
    • 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

Landscapes

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

Abstract

The disclosure provides a live playback generation method and device, electronic equipment and a storage medium. After the live broadcast is detected to be finished, creating a generation task of the live broadcast playback video, determining a corresponding task execution channel according to the type of the live broadcast account, and submitting the generation task to the determined task execution channel, wherein different task execution channels have different execution rates for the generation task, and in the process of executing the generation task, if the generation of the playback video with any definition is finished, issuing the playback video with the definition on a playback video display page of a server until all the playback videos with the definition are issued on the playback video display page of the server. The method provided by the disclosure can more reasonably distribute the video processing resources, realize selective and rapid release of live playback, and improve the user experience.

Description

Live broadcast playback generation method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of internet, and in particular, to a live playback generation method and apparatus, an electronic device, and a storage medium.
Background
With the popularization of the internet, live broadcasting also starts to be more and more popular. Because the live broadcast has timeliness, some live broadcast viewers may not watch in time in the live broadcast time or want to watch repeatedly after watching a certain live broadcast, and based on the requirements, live broadcast playback videos can be generated according to live broadcast contents for users to watch.
In the prior art, playback videos are sequentially generated according to the end time of each live broadcast, and the playback videos of the live broadcast are released after the playback videos of all the definition gears of each live broadcast are generated. Many steps are needed from the end of live broadcast to the generation of video playback, including transcription, transcoding and the like, one hour of live broadcast may require one hour to generate playback video, the speed is low, and the user experience is influenced
Disclosure of Invention
In view of the above technical problems, an embodiment of the present disclosure provides a live playback generation method, and the technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a live playback generation method, including:
after the live broadcast is detected to be finished, creating a generation task of the live broadcast playback video;
determining a corresponding task execution channel according to the type of the live broadcast account of the live broadcast, and submitting the generated task to the determined task execution channel to generate at least one definition playback video corresponding to the live broadcast, wherein different task execution channels have different execution rates for generating tasks;
in the process of executing the generating task, if the generation of the playback video with any definition is finished, the playback video with the definition is published until all the playback videos with the definition are published.
Optionally, the determining a corresponding task execution channel according to the live broadcast account type of the live broadcast, and submitting the generated task to the determined task execution channel includes:
if the live broadcast account is a first type account, submitting the live broadcast playback generation task to a high-priority task execution channel, wherein the first type account is a pre-designated special type account;
and if the live broadcast account is a second type account, submitting the live broadcast playback generation task to a low-priority task execution channel, wherein the second type account is a pre-designated common type account.
Optionally, after detecting that the live broadcast is ended, the playback of the live broadcast generates a task, including:
and after the live broadcast is detected to be finished, under the condition that the live broadcast account has the generation permission of the playback video, creating a generation task of the live broadcast playback video.
Optionally, the submitting the generated task to the determined task execution channel includes:
and submitting the generated tasks to the determined task execution channel, calling a video processing service by the task execution channel, and sequentially executing the generated tasks according to the submission sequence of the generated tasks.
Optionally, the different task execution channels are allocated with different amounts of computing resources, so that the generated tasks in the different task execution channels have different execution rates.
Optionally, the generating a task execution process includes:
acquiring a fragment screen recording file generated in the live broadcast process;
and calling a video processing service to perform file merging and format transcoding on the fragment screen recording file so as to generate a playback video file suitable for webpage playing.
According to a second aspect of the embodiments of the present disclosure, there is provided a live playback generation apparatus, the apparatus including:
the task creating module is configured to create a generation task of a playback video of the live broadcast after the live broadcast is detected to be finished;
the task submitting module is configured to determine a corresponding task execution channel according to the type of the live broadcast account of the live broadcast, and submit the generated task to the determined task execution channel to generate at least one definition playback video corresponding to the live broadcast, wherein different task execution channels have different execution rates for generating tasks;
and the playback issuing module is configured to issue the playback video with the definition until all the playback videos with the definition are issued when the playback video with any definition is generated in the execution process of the generation task.
Optionally, the task submitting module, when determining a corresponding task execution channel according to the type of the live broadcast account and submitting the generated task to the determined task execution channel, is configured to:
if the live broadcast account is a first type account, submitting the live broadcast playback generation task to a high-priority task execution channel, wherein the first type account is a pre-designated special type account;
and if the live broadcast account is a second type account, submitting the live broadcast playback generation task to a low-priority task execution channel, wherein the second type account is a pre-designated common type account.
Optionally, after detecting that the live broadcast is ended, creating a playback generation task of the live broadcast includes:
and after the live broadcast is detected to be finished, under the condition that the live broadcast account has the generation permission of the playback video, creating a generation task of the live broadcast playback video.
Optionally, the submitting the generated task to the determined task execution channel includes:
and submitting the generated tasks to the determined task execution channel, calling a video processing service by the task execution channel, and sequentially executing the generated tasks according to the submission sequence of the generated tasks.
Optionally, the different task execution channels are allocated with different amounts of computing resources, so that the generated tasks in the different task execution channels have different execution rates.
Optionally, the generating a task execution process includes:
acquiring a fragment screen recording file generated in the live broadcast process;
and calling a video processing service to perform file merging and format transcoding on the fragment screen recording file so as to generate a playback video file suitable for webpage playing.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the method of the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium having instructions that, when executed by a processor of an electronic device, enable the electronic device to perform the method according to the first aspect.
The embodiment of the disclosure provides a live playback generation method and device, electronic equipment and a storage medium. After the live broadcast is detected to be finished, creating a generation task of the live broadcast playback video, determining a corresponding task execution channel according to the type of the live broadcast account, and submitting the generation task to the determined task execution channel, wherein different task execution channels have different execution rates for the generation task, and in the process of executing the generation task, if the generation of the playback video with any definition is finished, issuing the playback video with the definition on a playback video display page of a server until all the playback videos with the definition are issued on the playback video display page of the server. The method provided by the disclosure can more reasonably distribute the video processing resources, realize selective and rapid release of live playback, and improve the user experience.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of embodiments of the disclosure.
Moreover, any one of the embodiments of the present disclosure need not achieve all of the effects described above.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art according to the drawings.
Fig. 1 is a flow chart illustrating a live playback generation method according to an exemplary embodiment of the present disclosure;
fig. 2 is a schematic diagram of a live playback generation method shown in an exemplary embodiment of the present disclosure;
FIG. 3 is a schematic diagram of different task execution paths shown in an exemplary embodiment of the present disclosure;
fig. 4 is another flow diagram of a live playback generation method shown in an exemplary embodiment of the present disclosure;
fig. 5 is a schematic diagram of a live playback generating apparatus shown in an exemplary embodiment of the present disclosure;
fig. 6 is a schematic diagram of an electronic device shown in an exemplary embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
With the popularization of the internet, live broadcasting also starts to be more and more popular. Because the live broadcast has timeliness, some live broadcast viewers may not watch in time in the live broadcast time or want to watch repeatedly after watching a certain live broadcast, and based on the requirements, live broadcast playback videos can be generated according to live broadcast contents for users to watch.
In the prior art, playback videos are sequentially generated according to the end time of each live broadcast, and the playback videos of the live broadcast are released after the playback videos of all the definition gears of each live broadcast are generated. Many steps are needed from the end of live broadcast to the generation of video playback, including transcription, transcoding and the like, one hour of live broadcast may require one hour to generate playback video, the speed is low, and the user experience is influenced
In order to solve the problem, the present disclosure provides a live playback generation method and a device applying the live playback generation method, and the live playback generation method is first explained in its entirety. The live playback generation method can be applied to a content platform server, and comprises the following steps S101 to S103, referring to FIG. 1:
in step S101, after detecting that live broadcasting is finished, creating a generation task of a playback video of the live broadcasting;
live playback video is generated based on the live streaming content of the live broadcast. Typically, after a live broadcast is finished, the live playback video is ready to be generated.
Specifically, the screen recording file of the live broadcast can be acquired from the cloud storage, and the acquired screen recording file is converted to generate the playback video of the live broadcast.
Referring to fig. 2, the live broadcast source station is a total live broadcast push stream source station from which all live broadcasts of all anchor can obtain the original live broadcast push stream. In the actual live broadcast process, a recording service is called to record/record a screen of the live broadcast, and a fragment screen recording file is obtained, so that in order to ensure the recording speed in the real-time screen recording and reduce the resources consumed by recording, the whole live broadcast cannot be recorded into a whole file, but can be recorded into a plurality of fragment files, namely fragment screen recording files, and the fragment files can be distributed on a webpage as video playback files and can be watched by a user through a webpage player after certain conversion processing.
In an embodiment of the present disclosure, the fragmented screenplay file may be an FLV format file.
In another embodiment of the present disclosure, live content may be censored in real time based on the real-time recorded segment screen file, so as to ensure that the live content does not include illegal content. Specifically, after each screen recording file is recorded, live content in the screen recording file is detected.
Specifically, the recognition model may be trained in advance, and image recognition may be performed on each frame in the screen recording file to determine whether the image contains the illegal content. If illegal contents are detected in a certain video recording screen file, a follow-up processing strategy is determined based on the illegal types of the illegal contents, and the follow-up processing strategy can comprise pushing a reminding message to a main broadcast, automatically cutting off the live broadcast and/or closing the main broadcast, and the like.
In an embodiment of the present disclosure, after detecting that the live broadcast is over, a determining step may be further performed to determine whether the live broadcast should generate a playback video.
Specifically, it may be determined whether the live broadcast account has a video playback generation permission, and in an actual application, some live broadcast accounts may not have a video playback generation permission. For example, a game live broadcast account has a generation authority for playing back a video, and a dance live broadcast account does not have a generation authority for playing back a video.
And under the condition that the live broadcast account has the generation permission of the playback video, whether the live broadcast anchor closes the playback video generation success of the live broadcast can be continuously judged. In practical applications, the anchor may want some of its live broadcasts to be only available for viewing once and not to be recorded, in which case the anchor may choose to turn off the playback video generation function for that live broadcast. And under the condition that the generation function of the live playback video is judged not to be closed by the anchor, creating a generation task of the live playback video.
In step S102, determining a corresponding task execution channel according to the type of the live broadcast account of the live broadcast, and submitting the generated task to the determined task execution channel to generate at least one definition playback video corresponding to the live broadcast, wherein different task execution channels have different execution rates for generating tasks;
in this embodiment, a plurality of task execution channels are provided, and each task execution channel corresponds to an account type of a live account. And after the live broadcast is detected to be finished, submitting the live broadcast generation task to the corresponding task execution channel according to the live broadcast account type.
The purpose of setting up multiple task execution channels is to prioritize the generation of playback videos of different account types. In one embodiment, the plurality of task execution channels may be set as task execution channels of different levels, the account types may be set as account types of different levels, and after the level corresponding to the account type of the live account is determined, the generation task of the live account is submitted to the task execution channels of the same level.
For example: after the live broadcast of the anchor A with the account type of the primary account is finished, a generation task of a playback video is submitted to a primary task execution channel; at the same time, the B anchor live broadcast with the account type of the secondary account is finished, and the generation task of the playback video is submitted to a secondary task execution channel. Because the task processing rate in the secondary task execution channel is lower than that of the primary task execution channel, the generation speed of the playback video of the anchor A is faster than that of the anchor B.
In practical application, important official live broadcast accounts at all levels, news live broadcast accounts and the like can be set to be account types at higher levels, and the accounts can be submitted to a high-level task execution channel to process generation tasks of playback videos more quickly. And setting the entertainment live account, the merchant live account and the like as relatively low-level account types.
In an embodiment of the present disclosure, the account types of the live broadcast account may be divided into two types, that is, a first type account and a second type account, which respectively correspond to a special type account and a common type account, where:
a) if the live broadcast account is a first type account, submitting the live broadcast playback generation task to a high-priority task execution channel, wherein the first type account is a pre-designated special type account;
b) and if the live broadcast account is a second type account, submitting the live broadcast playback generation task to a low-priority task execution channel, wherein the second type account is a pre-designated common type account.
It can be known that the number of task execution channels may be set according to a specific application scenario, and there may be two or more, which is not limited in this embodiment.
Referring to fig. 3, each task execution channel may call a video processing service, and sequentially execute each generated task according to the submission order of each generated task. Different task execution channels are allocated different amounts of processing/computing resources so that the generated tasks in different task execution channels have different execution rates.
For example, three servers are used for processing the generation task of live video playback, two of the servers are allocated to process the task in the high-priority task execution channel, and one of the servers is allocated to process the task in the low-priority task execution channel. In this way, when the total processing resources for processing the generation tasks are limited, the generation tasks of the high-level accounts are not blocked even if the generation tasks of the low-level accounts are preferentially submitted due to the existence of different channels.
In step S103, in the execution process of the generation task, if the generation of the playback video with any definition is completed, the playback video with the definition is published until all the playback videos with the definition are published.
In the process of executing the generating task, if the generation of the playback video with any definition is finished, the playback video with the definition is published on the playback video display page of the server side until all the playback videos with the definition are published on the playback video display page of the server side.
When generating playback video, it is generally necessary to generate playback video with multiple resolutions, such as 540p (normal), 720p (high definition), and 1080p (ultra definition). That is, when the generation task is executed, it is necessary to perform generation operations for playback videos of a plurality of resolutions.
In the conventional scheme, after all the playback videos with the definition are generated, the service side is notified to issue the playback videos. In this embodiment, for a live broadcast, as long as one of the playback videos with one definition is generated, the service side is notified to issue the playback video with the definition. It should be noted that, at this time, the generation task of the live playback video is not executed to the end, and the generation task is executed only after all the live playback videos with all definitions are completely generated.
For example: in the generation task, live playback videos with three definitions, namely 540p (normal), 720p (high definition) and 1080p (ultra definition), need to be generated, wherein the 720p (high definition) playback video is generated first, and then the 720p (high definition) playback video is processed and issued first until the other two definitions playback videos are also generated and issued to a playback video display page.
Therefore, the method provided by the invention can distinguish the live broadcast which cannot be of the type, more reasonably distributes the video processing resources, realizes the selective and rapid release of the live broadcast playback, and improves the user experience.
Fig. 4 is a flowchart illustrating a more specific live playback generation method according to an exemplary embodiment, where the live playback generation method may be used in a platform capable of performing live playback generation, and as shown in fig. 4, the method may include the following steps S401 to S404:
in step S401, after detecting that live broadcasting is finished, creating a generation task of a live playback video when a live broadcast account of the live broadcasting has a generation permission of the playback video;
in step S402, a corresponding task execution channel is determined according to the type of the live broadcast account, and if the live broadcast account is a special type account, the live broadcast playback generated task is submitted to a high-priority task execution channel; if the live broadcast account is a common type account, submitting the playback generation task of the live broadcast to a low-priority task execution channel;
in step S403, a fragment screen recording file generated in the live broadcast process is obtained, and a video processing service is invoked to perform file merging and format transcoding on the fragment screen recording file, so as to generate a playback video file suitable for webpage playing;
in step S404, in the execution process of the generation task, if the generation of the playback video with any definition is completed, the playback video with the definition is published on the playback video display page of the server, until all the playback videos with the definition are published on the playback video display page of the server.
Specifically, the generation of the playback video includes merging and transcoding a fragmented video recording file (such as an FLV file) obtained by video recording in a live broadcast process. And after receiving the merging and transcoding request, the video processing service merges and transcodes the partitioned screen-recording file. When any gear of 540p, 720p and 1080p is transcoded successfully, a transcoding success message is sent to a service party.
After monitoring a message that transcoding of any definition video is successful, the back end of the service side calls a video generation service for the playback video to generate a photosid, associates other data (such as praise, barrage and the like) recorded in the live broadcast process with the photosid, and releases the photosid on a playback video display page. The user can see the playback video on the playback video presentation page (in which case only the live playback video of the corresponding definition can be seen). And after all the playback videos with the definition are generated and are concurrent, the user side can see all the playback videos with various definitions.
With the popularization of the internet, live broadcasting also starts to be more and more popular. Because the live broadcast has timeliness, some live broadcast viewers may not watch in time in the live broadcast time or want to watch repeatedly after watching a certain live broadcast, and based on the requirements, live broadcast playback videos can be generated according to live broadcast contents for users to watch.
In the prior art, playback videos are sequentially generated according to the end time of each live broadcast, and the playback videos of the live broadcast are released after the playback videos of all the definition gears of each live broadcast are generated. Many steps are needed from the end of live broadcast to the generation of video playback, including transcription, transcoding and the like, one hour of live broadcast may require one hour to generate playback video, the speed is low, and the user experience is influenced
To solve this problem, an embodiment of the present disclosure provides a live playback generation method. After the live broadcast is detected to be finished, creating a generation task of the live broadcast playback video, determining a corresponding task execution channel according to the type of the live broadcast account, and submitting the generation task to the determined task execution channel, wherein different task execution channels have different execution rates for the generation task, and in the process of executing the generation task, if the generation of the playback video with any definition is finished, issuing the playback video with the definition on a playback video display page of a server until all the playback videos with the definition are issued on the playback video display page of the server. The method provided by the disclosure can more reasonably distribute the video processing resources, realize selective and rapid release of live playback, and improve the user experience.
Corresponding to the foregoing method embodiment, an embodiment of the present disclosure further provides a live playback generation apparatus, and as shown in fig. 5, the apparatus may include:
a task creating module 510 configured to create a generation task of a playback video of the live broadcast after detecting that the live broadcast is ended;
a task submitting module 520, configured to determine a corresponding task execution channel according to the type of the live broadcast account, and submit the generated task to the determined task execution channel to generate at least one definition playback video corresponding to the live broadcast, where different task execution channels have different execution rates for generating tasks;
a playback release module configured to release the playback video with definition until all the playback videos with definition are released completely if any playback video with definition is generated completely in the execution process of the generation task
Optionally, the task submitting module, when determining a corresponding task execution channel according to the type of the live broadcast account and submitting the generated task to the determined task execution channel, is configured to:
if the live broadcast account is a first type account, submitting the live broadcast playback generation task to a high-priority task execution channel, wherein the first type account is a pre-designated special type account;
and if the live broadcast account is a second type account, submitting the live broadcast playback generation task to a low-priority task execution channel, wherein the second type account is a pre-designated common type account.
Optionally, after detecting that the live broadcast is ended, creating a playback generation task of the live broadcast includes:
and after the live broadcast is detected to be finished, under the condition that the live broadcast account has the generation permission of the playback video, creating a playback generation task of the live broadcast.
Optionally, the submitting the generated task to the determined task execution channel includes:
and submitting the generated tasks to the determined task execution channel, calling a video processing service by the task execution channel, and sequentially executing the generated tasks according to the submission sequence of the generated tasks.
Optionally, the different task execution channels are allocated with different amounts of computing resources, so that the generated tasks in the different task execution channels have different execution rates.
Optionally, the generating a task execution process includes:
acquiring a fragment screen recording file generated in the live broadcast process;
and calling a video processing service to perform file merging and format transcoding on the fragment screen recording file so as to generate a playback video file suitable for webpage playing.
The embodiment of the present disclosure further provides an electronic device, which at least includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the program to implement the live playback generation method, and the method includes:
after the live broadcast is detected to be finished, creating a generation task of the live broadcast playback video;
determining a corresponding task execution channel according to the type of the live broadcast account of the live broadcast, and submitting the generated task to the determined task execution channel to generate at least one definition playback video corresponding to the live broadcast, wherein different task execution channels have different execution rates for generating tasks;
in the process of executing the generating task, if the generation of the playback video with any definition is finished, the playback video with the definition is published until all the playback videos with the definition are published.
Fig. 6 shows a schematic block diagram of a master-based-side electronic device according to an exemplary embodiment of the present disclosure. Referring to fig. 6, at the hardware level, the electronic device includes a processor 602, an internal bus 604, a network interface 606, a memory 605 and a non-volatile memory 610, but may also include hardware required for other services. The processor 602 reads a corresponding computer program from the non-volatile memory 610 into the memory 605 and then runs the computer program, thereby forming a device for executing the live playback generation method on a logic level. Of course, besides the software implementation, the present disclosure does not exclude other implementations, such as logic devices or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or logic devices.
An embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the foregoing live playback generation method, where the method includes:
after the live broadcast is detected to be finished, creating a generation task of the live broadcast playback video;
determining a corresponding task execution channel according to the type of the live broadcast account of the live broadcast, and submitting the generated task to the determined task execution channel to generate at least one definition playback video corresponding to the live broadcast, wherein different task execution channels have different execution rates for generating tasks;
in the process of executing the generating task, if the generation of the playback video with any definition is finished, the playback video with the definition is published until all the playback videos with the definition are published.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. One of ordinary skill in the art can understand and implement it without inventive effort.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
The foregoing is merely a detailed description of the embodiments of the disclosure, and it should be noted that modifications and decorations can be made by those skilled in the art without departing from the principle of the embodiments of the disclosure, and these modifications and decorations should also be regarded as the scope of protection of the embodiments of the disclosure.

Claims (10)

1. A live playback video generation method, the method comprising:
after the live broadcast is detected to be finished, creating a generation task of the live broadcast playback video;
determining a corresponding task execution channel according to the type of the live broadcast account of the live broadcast, and submitting the generated task to the determined task execution channel to generate at least one definition playback video corresponding to the live broadcast, wherein different task execution channels have different execution rates for generating tasks;
in the process of executing the generating task, if the generation of the playback video with any definition is finished, the playback video with the definition is published until all the playback videos with the definition are published.
2. The method of claim 1, wherein the determining a corresponding task execution channel according to the live account type of the live broadcast and submitting the generated task to the determined task execution channel comprises:
if the live broadcast account is a first type account, submitting the live broadcast playback generation task to a high-priority task execution channel, wherein the first type account is a pre-designated special type account;
and if the live broadcast account is a second type account, submitting the live broadcast playback generation task to a low-priority task execution channel, wherein the second type account is a pre-designated common type account.
3. The method of claim 1, wherein detecting that playback of the live broadcast is over generates a task comprising:
and after the live broadcast is detected to be finished, under the condition that the live broadcast account has the generation permission of the playback video, creating a generation task of the live broadcast playback video.
4. The method of claim 1, wherein the submitting the generated task into the determined task execution path comprises:
and submitting the generated tasks to the determined task execution channel, calling a video processing service by the task execution channel, and sequentially executing the generated tasks according to the submission sequence of the generated tasks.
5. The method of claim 1, wherein different task execution channels are allocated different amounts of computing resources such that generating tasks in different task execution channels have different execution rates.
6. The method of claim 1, wherein generating a task execution process comprises:
acquiring a fragment screen recording file generated in the live broadcast process;
and calling a video processing service to perform file merging and format transcoding on the fragment screen recording file so as to generate a playback video file suitable for webpage playing.
7. A live playback video generation apparatus, the apparatus comprising:
the task creating module is configured to create a generation task of a playback video of the live broadcast after the live broadcast is detected to be finished;
the task submitting module is configured to determine a corresponding task execution channel according to the type of the live broadcast account of the live broadcast, and submit the generated task to the determined task execution channel to generate at least one definition playback video corresponding to the live broadcast, wherein different task execution channels have different execution rates for generating tasks;
and the playback issuing module is configured to issue the playback video with the definition until all the playback videos with the definition are issued when the playback video with any definition is generated in the execution process of the generation task.
8. The apparatus of claim 7, wherein the task submission module, when determining a corresponding task execution channel according to the live account type of the live broadcast and submitting the generated task to the determined task execution channel, is configured to:
if the live broadcast account is a first type account, submitting the live broadcast playback generation task to a high-priority task execution channel, wherein the first type account is a pre-designated special type account;
and if the live broadcast account is a second type account, submitting the live broadcast playback generation task to a low-priority task execution channel, wherein the second type account is a pre-designated common type account.
9. An electronic device, comprising: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the method of any one of claims 1 to 6.
10. A storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method of any of claims 1-6.
CN202010724725.0A 2020-07-24 2020-07-24 Live playback video generation method and device, electronic equipment and storage medium Active CN111901620B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010724725.0A CN111901620B (en) 2020-07-24 2020-07-24 Live playback video generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010724725.0A CN111901620B (en) 2020-07-24 2020-07-24 Live playback video generation method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111901620A true CN111901620A (en) 2020-11-06
CN111901620B CN111901620B (en) 2022-07-29

Family

ID=73189896

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010724725.0A Active CN111901620B (en) 2020-07-24 2020-07-24 Live playback video generation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111901620B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115914670A (en) * 2023-02-01 2023-04-04 广州市千钧网络科技有限公司 Live broadcast playback processing method and device and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917384A (en) * 2009-11-17 2010-12-15 新奥特(北京)视频技术有限公司 Task distribution method and device for distributed transcoding system
CN104717507A (en) * 2015-03-31 2015-06-17 北京奇艺世纪科技有限公司 Video transcoding method and device
US9137125B1 (en) * 2012-10-01 2015-09-15 Google Inc. Video content pre-fetching from mobile browser
CN106791924A (en) * 2017-02-09 2017-05-31 合网络技术(北京)有限公司 Video generation method and device
CN107547909A (en) * 2016-06-24 2018-01-05 腾讯科技(深圳)有限公司 The online control method for playing back of media file, device and system
US20180192086A1 (en) * 2016-12-30 2018-07-05 Facebook, Inc. Live to video on demand normalization
CN109561351A (en) * 2018-12-03 2019-04-02 网易(杭州)网络有限公司 Network direct broadcasting back method, device and storage medium
CN109951737A (en) * 2019-02-26 2019-06-28 北京字节跳动网络技术有限公司 Method for processing video frequency, device, electronic equipment and computer readable storage medium
US20190327496A1 (en) * 2018-03-09 2019-10-24 Wangsu Science & Technology Co., Ltd. Method and system for providing a live-broadcasting service
CN110545483A (en) * 2018-05-29 2019-12-06 北京字节跳动网络技术有限公司 Method, device and storage medium for playing media file by switching resolution in webpage
CN111107386A (en) * 2019-12-27 2020-05-05 北京达佳互联信息技术有限公司 Live video playback method and device, electronic equipment, system and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917384A (en) * 2009-11-17 2010-12-15 新奥特(北京)视频技术有限公司 Task distribution method and device for distributed transcoding system
US9137125B1 (en) * 2012-10-01 2015-09-15 Google Inc. Video content pre-fetching from mobile browser
CN104717507A (en) * 2015-03-31 2015-06-17 北京奇艺世纪科技有限公司 Video transcoding method and device
CN107547909A (en) * 2016-06-24 2018-01-05 腾讯科技(深圳)有限公司 The online control method for playing back of media file, device and system
US20180192086A1 (en) * 2016-12-30 2018-07-05 Facebook, Inc. Live to video on demand normalization
CN106791924A (en) * 2017-02-09 2017-05-31 合网络技术(北京)有限公司 Video generation method and device
US20190327496A1 (en) * 2018-03-09 2019-10-24 Wangsu Science & Technology Co., Ltd. Method and system for providing a live-broadcasting service
CN110545483A (en) * 2018-05-29 2019-12-06 北京字节跳动网络技术有限公司 Method, device and storage medium for playing media file by switching resolution in webpage
CN109561351A (en) * 2018-12-03 2019-04-02 网易(杭州)网络有限公司 Network direct broadcasting back method, device and storage medium
CN109951737A (en) * 2019-02-26 2019-06-28 北京字节跳动网络技术有限公司 Method for processing video frequency, device, electronic equipment and computer readable storage medium
CN111107386A (en) * 2019-12-27 2020-05-05 北京达佳互联信息技术有限公司 Live video playback method and device, electronic equipment, system and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘彬: "山东大众网多屏发布平台的设计与构建", 《电视技术》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115914670A (en) * 2023-02-01 2023-04-04 广州市千钧网络科技有限公司 Live broadcast playback processing method and device and storage medium

Also Published As

Publication number Publication date
CN111901620B (en) 2022-07-29

Similar Documents

Publication Publication Date Title
US10135887B1 (en) Shared multimedia annotations for group-distributed video content
CN109640130B (en) Broadcast message pushing method, server and readable storage medium
US20120151217A1 (en) Granular tagging of content
US20160119661A1 (en) On-Demand Metadata Insertion into Single-Stream Content
US10021433B1 (en) Video-production system with social-media features
CN112929678A (en) Live broadcast method, device, server and computer readable storage medium
WO2023104102A1 (en) Live broadcasting comment presentation method and apparatus, and device, program product and medium
CN111901620B (en) Live playback video generation method and device, electronic equipment and storage medium
US20160269510A1 (en) Content evaluator, content evaluation system, server unit and terminal unit to evaluate content
CN111083504B (en) Interaction method, device and equipment
CN114584821A (en) Video processing method and device
CN109660852B (en) Video preview method, storage medium, device and system before release of recorded video
CN109640118B (en) Display method, device and equipment of interactive information
CN112257038A (en) Courseware anti-theft method, courseware anti-theft system, electronic equipment and storage medium
US11750876B2 (en) Method and apparatus for determining object adding mode, electronic device and medium
CN108449646B (en) Method, equipment and medium for establishing social relationship through barrage
CN111918074A (en) Live video fault early warning method and related equipment
US10455266B2 (en) Personalized smart-list video channels
US9055269B2 (en) Messaging with user generated content related to video object timecode
CN113727125B (en) Live broadcast room screenshot method, device, system, medium and computer equipment
US10328336B1 (en) Concurrent game functionality and video content
CN117319736A (en) Video processing method, device, electronic equipment and storage medium
CN115941986A (en) Live broadcast information display method and device, electronic equipment and storage medium
CN113691865A (en) Multimedia playing method and system
CN114245198B (en) Method and device for processing media content, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant