Video file publishing method and device

By obtaining the source files of live videos for transcoding and setting scheduled delivery tasks, it solves the problem of video file release delays after the TV station's live broadcast ends, achieves rapid release of complete video files, and ensures that users watch high-quality content as soon as possible.

CN113691839BActive Publication Date: 2024-10-08HUNAN HAPPLY SUNSHINE INTERACTIVE ENTERTAINMENT MEDIA CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202110990444.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-26
Publication Date
2024-10-08
Estimated Expiration
2041-08-26

AI Technical Summary

Technical Problem

After the live broadcast of the TV station, how to quickly release the complete video file to ensure that users can watch high-quality content as soon as possible? It is difficult to accurately control the time when the file goes online with existing technology.

Method used

Transcode by obtaining the source file and transcoding parameters of the live video, setting up scheduled delivery tasks, performing CDN distribution after approval, and pushing the video files to downstream devices at the specified time.

Benefits of technology

It realizes the rapid release of video files after the live broadcast, ensuring that users watch the complete content as soon as possible, improving the punctuality and user experience of video release.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113691839B_ABST
    Figure CN113691839B_ABST
Patent Text Reader

Abstract

The present invention provides a method and device for publishing a video file. According to the scheme, before the end of the live broadcast content, a target source file matching the live broadcast content is transcoded in advance to obtain a target video file matching the live broadcast content. When the target video file is reviewed and approved, the target video file is distributed through a CDN. When the time for issuing the target video file arrives, the target video file is generated and pushed to a downstream device target video file. At this time, the user can click to play the target video file. Compared with the existing technical solutions, the present application can quickly launch the corresponding video file after the live broadcast ends.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to a method and device for publishing a video file based on a specific time. Background Art

[0002] For some TV stations’ live broadcast programs, some source files of the live broadcast content can be obtained in advance. According to copyright requirements, the complete video files need to wait until the TV station finishes broadcasting before they can be put online. However, the video online needs to complete a series of processes such as transcoding, review, and CDN distribution. It is impossible to accurately control that the files meet the online conditions just at the end of the live broadcast. Therefore, transcoding, review, and CDN distribution can be started in advance to prepare the complete video files that can be put online, but they are not sent to the front end for exposure. When the TV station’s live broadcast is completed, the prepared files are put online on time, and users can see the high-quality and complete video content at the first time.

[0003] How to ensure that these source files can be published as soon as possible after the TV live broadcast is completed has become one of the technical problems that technical personnel in this field need to solve urgently. Summary of the invention

[0004] In view of this, an embodiment of the present invention provides a method and device for publishing a video file, so as to enable the video file corresponding to the live broadcast content to be published in a timely manner.

[0005] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:

[0006] A video file publishing method, comprising:

[0007] Obtaining a target source file and transcoding parameters, wherein the target source file is a source file of a video being live broadcast;

[0008] Transcoding the target source file based on the transcoding parameters to obtain a target video file;

[0009] Setting a scheduled delivery task for the target video file, wherein the scheduled delivery task includes a delivery time for the target video file;

[0010] Determine whether the target video file has passed the review;

[0011] When the review is passed, the target video file is distributed through CDN;

[0012] It is determined whether the delivery time in the scheduled delivery task has arrived. If so, the target video file is generated and pushed to the downstream device target video file.

[0013] Optionally, the above video file publishing method further includes:

[0014] When a preset time node is reached before the target video file is released, a distribution notification is generated and sent to the target object to prompt that the target video file needs to be distributed.

[0015] Optionally, in the above-mentioned video file publishing method, after CDN distribution of the target video file is performed, the method further includes:

[0016] Obtaining the version number of the target video file;

[0017] Based on the version number of the target video file, determining whether the target video file is a version number that needs to be issued for live broadcast;

[0018] When the target video file has a version number that needs to be issued for live broadcast, the distributed video files that match the target video file are recovered.

[0019] Optionally, in the above-mentioned video file publishing method, the target source file includes N sub-target source files;

[0020] The step of transcoding the target source file based on the transcoding parameters to obtain a target video file includes:

[0021] A sub-target source file matching the current time node is acquired, and the sub-target source file is transcoded based on the transcoding parameters to obtain a target video file matching the sub-target source file.

[0022] Optionally, in the above-mentioned video file publishing method, after generating and pushing the target video file to the downstream device target video file, the method further includes:

[0023] Send push results to the target object.

[0024] A video file publishing device, comprising:

[0025] A source file acquisition unit, used to obtain a target source file and transcoding parameters, wherein the target source file is a source file of a video being live broadcast;

[0026] A transcoding unit, configured to transcode the target source file based on the transcoding parameters to obtain a target video file;

[0027] A scheduled delivery task setting unit, used to set a scheduled delivery task for the target video file, wherein the scheduled delivery task includes a delivery time of the target video file;

[0028] A CDN distribution unit, used to determine whether the target video file has passed the review; when the review has passed, the target video file is distributed by CDN;

[0029] The push unit is used to determine whether the delivery time in the scheduled delivery task has arrived, and if so, generate and push the target video file to the downstream device target video file.

[0030] Optionally, the above video file publishing device further includes:

[0031] The first reminder unit is used to generate and send a distribution notification to the target object when a preset time node before the target video file is released, which is used to prompt that the target video file needs to be distributed.

[0032] Optionally, in the above video file publishing device, the push unit is further used for:

[0033] Obtaining the version number of the target video file;

[0034] Based on the version number of the target video file, determining whether the target video file is a version number that needs to be issued for live broadcast;

[0035] When the target video file has a version number that needs to be issued for live broadcast, the distributed video files that match the target video file are recovered.

[0036] Optionally, in the above-mentioned video file publishing device, the target source file includes N sub-target source files;

[0037] When the transcoding unit transcodes the target source file based on the transcoding parameters to obtain the target video file, it is specifically used to:

[0038] A sub-target source file matching the current time node is acquired, and the sub-target source file is transcoded based on the transcoding parameters to obtain a target video file matching the sub-target source file.

[0039] Optionally, in the above video file publishing device, after generating and pushing the target video file to the downstream device target video file, the device further includes:

[0040] The second reminder unit is used to send the push result to the target object.

[0041] Based on the above technical scheme, the above scheme provided by the embodiment of the present invention, before the live broadcast content ends, the target source file matching the live broadcast content is transcoded in advance to obtain a target video file matching it. When the target video file is reviewed and approved, the target video file is distributed by CDN. When the target video file is released, the target video file is generated and pushed to the downstream device target video file. At this time, the user can click to play the target video file. Compared with the existing technical scheme, the present application can quickly launch the corresponding video file after the live broadcast ends. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0043] Figure 1 A schematic diagram of a process of publishing a video file disclosed in an embodiment of the present application;

[0044] Figure 2 A schematic diagram of a flow chart of a video file publishing method disclosed in another embodiment of the present application;

[0045] Figure 3 A schematic diagram of a flow chart of a video file publishing method disclosed in another embodiment of the present application;

[0046] Figure 4 A schematic diagram of the structure of a video file publishing device disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0048] The present application discloses a video file publishing method and device capable of publishing video files at a fixed time. Figure 1 , methods include:

[0049] Step S101: obtaining a target source file and transcoding parameters, wherein the target source file is a source file of a video being live broadcast;

[0050] In the multimedia field, media files are divided into source files and transcoded finished files. After the source files and transcoding parameters are sent to the transcoding group, the finished files can be transcoded. After the finished files are reviewed by the publicity management, the CDN is notified to distribute the finished files. After the CDN distribution is completed, it can be notified to the front end for use.

[0051] The target source file in this step refers to the source file that needs to be sent regularly in this solution, and the transcoding parameter is a parameter file used to transcode the source file.

[0052] Step S102: transcoding the target source file based on the transcoding parameters to obtain a target video file;

[0053] In this solution, after obtaining the transcoding parameters and the target source file, the transcoding group transcodes the target source file based on the transcoding parameters. Optionally, the transcoding parameters may also be pre-stored in the transcoding group. When the target source file needs to be transcoded, it can be directly retrieved. The target video file is the finished product file corresponding to the target source file.

[0054] Furthermore, in the present scheme, before transcoding the target source file, the version number of the target source file can be set first, and a record can be added to the preset file timed download table, and key fields such as the target source file ID, target video file ID, and time of scheduled download corresponding to the target source file can be saved in the record.

[0055] Step S103: setting a scheduled delivery task for the target video file, wherein the scheduled delivery task includes a delivery time of the target video file;

[0056] In this step, when setting the scheduled delivery task of the target video file, the delivery time can be set manually by the user, or the delivery time can be set according to the target node of the live broadcast content. The delivery time can be stored in the scheduled download table of the file, and the live broadcast content, that is, the live broadcast content corresponding to the target source file, can be released only after the live broadcast content ends.

[0057] Step S104: determining whether the target video file has passed the review;

[0058] After the transcoding of the target source file is completed and the scheduled publishing of the file is established, an audit work order matching the target source file is created and submitted to the publicity management for review. Only after the review is completed can a CDN distribution application be initiated; in this step, whether the target video file has passed the review actually refers to whether the publicity management review has passed. Only after the publicity management review has passed can subsequent actions be performed.

[0059] Step S105: When the review is passed, the target video file is distributed through CDN;

[0060] In this step, after the publicity and management review is passed, an application for CDN distribution of the target video file is initiated to complete the CDN distribution of the target video file.

[0061] Step S106: Determine whether the delivery time in the scheduled delivery task has arrived, if yes, execute step S107, otherwise continue to wait;

[0062] In this step, after the CDN distribution of the target video file is completed, the delivery time in the scheduled delivery task is monitored. When the delivery time is reached, it indicates that the video content can be pushed to the user. At this time, step S107 is executed;

[0063] Step S107: Generate and push the target video file to the downstream device target video file;

[0064] In this step, when the delivery time is reached, the target video file is pushed to the downstream device, and only then can the user watch and play the target video file.

[0065] In the above scheme disclosed in the embodiment of the present application, before the live broadcast content ends, the target source file matching the live broadcast content is transcoded in advance to obtain a target video file matching it. When the target video file is reviewed and approved, the target video file is distributed through CDN. When the target video file is released, the target video file is generated and pushed to the downstream device target video file. At this time, the user can click to play the target video file. Compared with the existing technical solutions, the present application can quickly launch the corresponding video file after the live broadcast ends.

[0066] Furthermore, in the technical solution disclosed in the present embodiment, in order to ensure the accuracy of the pushed video content, before the target video file is distributed, it is also used to send a distribution notification to the target object to indicate that there is a target video that needs to be distributed. Specifically, in this solution, a time node can be pre-set based on the distribution time. When the preset time node before the distribution time of the target video file is reached, a distribution notification is generated and sent to the target object to prompt that there is a target video file that needs to be distributed. For example, the distribution notification can be sent to the target object via WeChat or other communication methods to remind the target object that a video file will need to be distributed regularly. If there is any problem, the target object can be prompted to perform data repair, review, and other operations on the target video file or target source file.

[0067] In this solution, the target video file refers to a video file that matches the live broadcast content. During the live broadcast process, multiple target video files that match the live broadcast process will be generated. In order to save server resources, when a new target video file is issued, the old target video file can be recycled. At this time, before the target video file is distributed by CDN, it also includes:

[0068] Step S201: obtaining the version number of the target video file, or the version number of the target source file;

[0069] Step S202: judging whether the target video file is a version number corresponding to the live content based on the version number of the target video file, and executing step S203 if the judgment result is yes, and if the judgment result is no, not distributing the target source file, and sending a corresponding notification to the target object;

[0070] In this step, it is further determined whether the version number of the video file is the version number matched by the current live content, so as to prevent the video file from being distributed incorrectly and other video content from being distributed as the live content.

[0071] Step S203: When the target video file has a version number that needs to be issued for live broadcast, CDN distribution is performed on the target video file, and the distributed video files that match the version number of the target video file are recovered;

[0072] In this step, when it is determined that the target video file is the video file corresponding to the current live broadcast content, the video files that have been distributed before this distribution are recycled. The recycling may refer to deleting these old video files. For example, during the live broadcast process, video files of multiple time periods such as half an hour and one hour that match the target video file will be generated. After the video file corresponding to one hour is distributed, the video file corresponding to half an hour can be deleted.

[0073] Therefore, further, in the technical solution disclosed in this embodiment, the target source file may include N sub-target source files, each of which corresponds to live content at a different time node. For example, the N sub-target source files may be source files corresponding to half an hour of live content, source files corresponding to 1 hour of live content, source files corresponding to 1.5 hours of live content, etc.;

[0074] See also Figure 3 The step S102: transcoding the target source file based on the transcoding parameters to obtain a target video file includes:

[0075] Obtain a sub-target source file that matches the current time node of the live content (the live content is the live content that matches the target source file), transcode the sub-target source file based on the transcoding parameters, and obtain a target video file that matches the sub-target source file.

[0076] In the technical solution disclosed in the embodiment of the present application, the push result can also be sent to the target object so that the target object can determine whether the target video file is successfully pushed. Specifically, after generating and pushing the target video file to the downstream device target video file, it also includes: sending the push result to the target object.

[0077] This embodiment discloses a video file publishing device. For the specific working contents of each unit in the device, please refer to the contents of the above-mentioned method embodiment. The video file publishing device provided by the embodiment of the present invention is described below. The video file publishing device described below and the video file publishing device described above can be referenced to each other.

[0078] See also Figure 4 The video file publishing device disclosed in the embodiment of the present application includes:

[0079] The source file acquisition unit 100 is used to obtain a target source file and transcoding parameters, wherein the target source file is a source file of a video being broadcast live;

[0080] A transcoding unit 200, configured to transcode the target source file based on the transcoding parameters to obtain a target video file;

[0081] A scheduled delivery task setting unit 300 is used to set a scheduled delivery task for the target video file, wherein the scheduled delivery task includes a delivery time of the target video file;

[0082] The CDN distribution unit 400 is used to determine whether the target video file has passed the review; when the review has passed, the target video file is distributed by CDN;

[0083] The push unit 500 is used to determine whether the delivery time in the scheduled delivery task has arrived, and if so, generate and push the target video file to the downstream device target video file.

[0084] Corresponding to the above method, the device also includes: a first reminder unit, which is used to generate and send a distribution notification to the target object when a preset time node before the release time of the target video file is reached to prompt that there is a target video file that needs to be distributed.

[0085] Corresponding to the above method, the pushing unit is also used for:

[0086] Obtaining the version number of the target video file;

[0087] Based on the version number of the target video file, determining whether the target video file is a version number that needs to be issued for live broadcast;

[0088] When the target video file has a version number that needs to be issued for live broadcast, the distributed video files that match the target video file are recovered.

[0089] Corresponding to the above method, the target source file includes N sub-target source files;

[0090] When the transcoding unit transcodes the target source file based on the transcoding parameters to obtain the target video file, it is specifically used to:

[0091] A sub-target source file matching the current time node is acquired, and the sub-target source file is transcoded based on the transcoding parameters to obtain a target video file matching the sub-target source file.

[0092] Corresponding to the above method, after generating and pushing the target video file to the downstream device target video file, it also includes:

[0093] The second reminder unit is used to send the push result to the target object.

[0094] For the convenience of description, the above system is described by dividing it into various modules according to its functions. Of course, when implementing the present invention, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0095] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.

[0096] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0097] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0098] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0099] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A video file publishing method, characterized in that: include: Obtaining a target source file and transcoding parameters, wherein the target source file is a source file of a video being live broadcast; Transcoding the target source file based on the transcoding parameters to obtain a target video file; Setting a scheduled delivery task for the target video file, wherein the scheduled delivery task includes the delivery time of the target video file, and the target video file can be released only when the live broadcast content ends; Determine whether the target video file has passed the review; When the review is passed, the target video file is distributed through CDN; It is determined whether the delivery time in the scheduled delivery task has arrived. If so, the target video file is generated and pushed to the downstream device target video file.

2. The video file publishing method according to claim 1, characterized in that: Also includes: When a preset time node is reached before the target video file is released, a distribution notification is generated and sent to the target object to prompt that the target video file needs to be distributed.

3. The video file publishing method according to claim 1, characterized in that: After the target video file is distributed through CDN, the method further includes: Obtaining the version number of the target video file; Based on the version number of the target video file, determining whether the target video file is a version number that needs to be issued for live broadcast; When the target video file is a version number that needs to be issued for live broadcast, the distributed video files that match the target video file are recycled, and the recycling refers to deleting the video files.

4. The video file publishing method according to claim 1, characterized in that: The target source file includes N sub-target source files; The step of transcoding the target source file based on the transcoding parameters to obtain a target video file includes: Get the sub-target source file that matches the current time node; The sub-target source file is transcoded based on the transcoding parameters to obtain a target video file that matches the sub-target source file.

5. The video file publishing method according to claim 1, characterized in that: After generating and pushing the target video file to the downstream device target video file, the method further includes: Send push results to the target object.

6. A video file publishing device, characterized in that: include: A source file acquisition unit, used to obtain a target source file and transcoding parameters, wherein the target source file is a source file of a video being live broadcast; A transcoding unit, configured to transcode the target source file based on the transcoding parameters to obtain a target video file; A timed delivery task setting unit, used to set a timed delivery task for the target video file, wherein the timed delivery task includes a delivery time for the target video file, and the target video file can be released only when the live broadcast content ends; A CDN distribution unit, used to determine whether the target video file has passed the review; When the review is passed, the target video file is distributed through CDN; The push unit is used to determine whether the delivery time in the scheduled delivery task has arrived, and if so, generate and push the target video file to the downstream device target video file.

7. The video file publishing device according to claim 6, characterized in that: Also includes: The first reminder unit is used to generate and send a distribution notification to the target object when a preset time node before the target video file is released, which is used to remind the target object that the target video file needs to be distributed.

8. The video file publishing device according to claim 6, characterized in that: The push unit is also used for: Obtaining the version number of the target video file; Based on the version number of the target video file, determining whether the target video file is a version number that needs to be issued for live broadcast; When the target video file is a version number that needs to be issued for live broadcast, the distributed video files that match the target video file are recycled, and the recycling refers to deleting the video files.

9. The video file publishing device according to claim 6, characterized in that: The target source file includes N sub-target source files; When the transcoding unit transcodes the target source file based on the transcoding parameters to obtain the target video file, it is specifically used to: Get the sub-target source file that matches the current time node; The sub-target source file is transcoded based on the transcoding parameters to obtain a target video file that matches the sub-target source file.

10. The video file publishing device according to claim 6, characterized in that: After generating and pushing the target video file to the downstream device target video file, the method further includes: The second reminder unit is used to send the push result to the target object.

Citation Information

Patent Citations

  • Method of editing live video with high timeliness based on agent flow

    CN106162225A

  • Processing method and device of live broadcast data processing

    CN106330967A

  • Live to video on demand normalization

    US20180192086A1