Video audit file output method and device, storage medium and electronic device
By receiving review work orders and obtaining configuration files, the output method of video review files is determined, which solves the problem of inconsistency between video review and playback files, achieves consistency between video review and playback files, and reduces risks.
Patent Information
- Application Number
- CN202310139598.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-20
- Publication Date
- 2025-01-21
- Estimated Expiration
- 2043-02-20
AI Technical Summary
During the video review process, it is difficult to determine whether the video file called when playing the video is consistent with the video file during the review, resulting in the risk of inconsistent with the audit file and the playback file.
By receiving the review work order, the video to be reviewed and its review batch number are determined, the configuration file is obtained to determine the target video file, and the video playback address is generated based on the file address information, thereby outputting a video review file that is consistent with the playback time.
Ensure that the review file of the video to be reviewed is consistent with the playback file, which reduces the risk of inconsistency between review and playback files and improves the security of video playback.
Smart Images

Figure CN116095402B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of video data processing, and in particular to a method and device for outputting a video review file, a storage medium and an electronic device. Background Art
[0002] With the development of computer technology, multimedia videos can be played on various smart devices, and people can watch videos through various channels, such as watching through web pages, watching through video software, etc. In order to ensure the stability of video playback and the health of the playback environment, it is usually necessary to review the videos, and only the videos that pass the review can be watched by users.
[0003] At present, the video processing department will process the video data according to different playback scenarios. Different playback scenarios will have different video files, and the video playback can be completed by outputting the corresponding video files. Since there are multiple video files, it is difficult to determine the video file called when playing the video during the video review, and it is very easy to have the video file being reviewed and the video file called when the video is played inconsistent. Summary of the invention
[0004] In view of this, the present invention provides a method and device for outputting video review files, a storage medium and an electronic device, which output video review files by using file playback addresses, thereby ensuring that the video file called when the video to be reviewed is broadcast is consistent with the video file during review, thereby reducing the risk of inconsistency between the playback of the video to be reviewed and the reviewed file.
[0005] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:
[0006] A method for outputting a video review file, comprising:
[0007] Receive a review work order, determine a video to be reviewed based on the review work order, and determine a review batch number of the video to be reviewed;
[0008] Determine the configuration file of the video to be reviewed;
[0009] Based on the configuration file and the audit batch number, determine the target video file, and obtain the file address information of the target video file;
[0010] Apply the file address information to generate a video playback address;
[0011] Based on the video playback address, a video review file applied when reviewing the video to be reviewed is output.
[0012] In the above method, optionally, determining the target video file based on the configuration file and the audit batch number includes:
[0013] Based on the configuration file, determining whether the video to be reviewed has a source file;
[0014] When it is determined that the source file of the video to be reviewed does not exist, the finished product file corresponding to the review batch number is determined as the target video file;
[0015] When it is determined that the video to be reviewed has a source file, determining whether the video to be reviewed is an encrypted video;
[0016] When it is determined that the video to be reviewed is an encrypted video, determining whether there is a first-category video processing file corresponding to the review batch number;
[0017] When there is a first-category video processing file corresponding to the audit batch number, determining the first-category video processing file corresponding to the audit batch number as the target video file;
[0018] When there is no first-category video processing file corresponding to the audit batch number, determining the source file corresponding to the audit batch number as the target video file;
[0019] When it is determined that the video to be reviewed is not an encrypted video, determining whether there is a second type of video processing file corresponding to the review batch number;
[0020] When it is determined that there is a second-category video processing file corresponding to the audit batch number, determining the second-category video processing file corresponding to the audit batch number as the target video file;
[0021] When there is no second-category video processing file corresponding to the audit batch number, a step of determining whether there is a first-category video processing file corresponding to the audit batch number is performed.
[0022] In the above method, optionally, judging whether there is a source file for the video to be reviewed based on the configuration file includes:
[0023] Obtaining a source file configuration identifier in the configuration file;
[0024] When the source file configuration identifier indicates existence, determining that the source file of the video to be reviewed exists;
[0025] When the source file configuration identifier is characterized as not existing, it is determined that the source file of the video to be reviewed does not exist.
[0026] In the above method, optionally, the step of obtaining the file address information of the target video file includes:
[0027] When the source file corresponding to the audit batch number is determined as the target video file, the domain name information and file address of the source file are obtained, and the domain name information and file address of the source file are determined as the file address information of the target video file;
[0028] When the first type of video processing file corresponding to the audit batch number is used as the target video file, the domain name configuration and file address of the first type of video processing file are determined as the file address information of the target video file;
[0029] When the second-category video processing file corresponding to the audit batch number is used as the target video file, the distribution status of the second-category video processing file is determined, and based on the distribution status of the second-category video processing file, the file address information is obtained.
[0030] In the above method, optionally, the step of obtaining the file address information of the target video file includes:
[0031] When the finished product file corresponding to the audit batch number is determined as the target video file, determining the storage type of the finished product file;
[0032] When the storage type of the finished product file is the first type, determining the distribution interface configuration of the finished product file, and determining the file address information based on the distribution interface configuration;
[0033] When the storage type of the finished product file is the second type, the distribution status of the finished product file is determined, and the file address information is determined based on the distribution status of the finished product file.
[0034] A device for outputting video review files, comprising:
[0035] A receiving unit, configured to receive a review work order, determine a video to be reviewed based on the review work order, and determine a review batch number of the video to be reviewed;
[0036] A determination unit, used to determine a configuration file of the video to be reviewed;
[0037] An acquisition unit, used to determine a target video file based on the configuration file and the audit batch number, and acquire file address information of the target video file;
[0038] A generating unit, used to apply the file address information to generate a video playback address;
[0039] The output unit is used to output a video review file used when reviewing the video to be reviewed based on the video playback address.
[0040] In the above device, optionally, the acquisition unit includes:
[0041] A first judgment subunit is used to judge whether there is a source file for the video to be reviewed based on the configuration file;
[0042] A first determining subunit is used to determine the finished product file corresponding to the audit batch number as the target video file when it is determined that the video to be audited does not have a source file;
[0043] A second judgment subunit is used to judge whether the video to be reviewed is an encrypted video when it is determined that the video to be reviewed has a source file;
[0044] A third judgment subunit is used to judge whether there is a first-category video processing file corresponding to the review batch number when it is determined that the video to be reviewed is an encrypted video;
[0045] A second determining subunit is used to determine the first type of video processing file corresponding to the audit batch number as the target video file when there is a first type of video processing file corresponding to the audit batch number;
[0046] A third determining subunit is used to determine the source file corresponding to the audit batch number as the target video file when there is no first-category video processing file corresponding to the audit batch number;
[0047] A fourth judgment subunit is used to judge whether there is a second type of video processing file corresponding to the review batch number when it is determined that the video to be reviewed is not an encrypted video;
[0048] a fourth determining subunit, configured to determine the second-category video processing file corresponding to the audit batch number as a target video file when it is determined that there is a second-category video processing file corresponding to the audit batch number;
[0049] When there is no second-category video processing file corresponding to the audit batch number, the third judgment subunit is called to execute the step of judging whether there is a first-category video processing file corresponding to the audit batch number.
[0050] In the above device, optionally, the first judgment subunit includes:
[0051] An acquisition module, used to acquire a source file configuration identifier in the configuration file;
[0052] A first determination module, configured to determine that a source file exists for the video to be reviewed when the source file configuration identifier indicates that the source file exists;
[0053] The second determination module is used to determine that the source file of the video to be reviewed does not exist when the source file configuration identifier indicates that it does not exist.
[0054] In the above device, optionally, the acquisition unit includes:
[0055] an acquisition subunit, for, when a source file corresponding to the audit batch number is determined as a target video file, acquiring the domain name information and file address of the source file, and determining the domain name information and file address of the source file as the file address information of the target video file;
[0056] a fifth determining subunit, configured to, when taking the first type of video processing file corresponding to the audit batch number as the target video file, determine the domain name configuration and file address of the first type of video processing file as the file address information of the target video file;
[0057] The sixth determination subunit is used to determine the distribution status of the second-category video processing file corresponding to the review batch number when the second-category video processing file is used as the target video file, and obtain file address information based on the distribution status of the second-category video processing file.
[0058] In the above device, optionally, the acquisition unit includes:
[0059] A seventh determination subunit is used to determine the storage type of the finished product file when the finished product file corresponding to the audit batch number is determined as the target video file;
[0060] an eighth determining subunit, configured to determine, when the storage type of the finished product file is the first type, a distribution interface configuration of the finished product file, and determine file address information based on the distribution interface configuration;
[0061] The ninth determining subunit is used to determine the distribution status of the finished file when the storage type of the finished file is the second type, and determine the file address information based on the distribution status of the finished file.
[0062] A storage medium includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the method for outputting a video review file as described above.
[0063] An electronic device includes a memory and one or more instructions, wherein the one or more instructions are stored in the memory and are configured to be executed by one or more processors to perform the above-mentioned method for outputting a video review file.
[0064] The present invention provides a method and device for outputting a video review file, a storage medium and an electronic device. The method comprises: receiving a review work order, determining a video to be reviewed based on the review work order, and determining a review batch number of the video to be reviewed; determining a configuration file of the video to be reviewed; determining a target video file based on the configuration file and the review batch number, and obtaining file address information of the target video file; applying the file address information to generate a video playback address; and outputting a video review file of the video to be reviewed based on the video playback address. By using the review work order to determine the video to be reviewed, and then determining the video playback address through the review batch number of the video to be reviewed and the configuration file, and outputting the video review file based on the video playback address, it can be ensured that the video file applied when the video to be reviewed is reviewed and the video file called when the video to be reviewed is played are the same, thereby ensuring that the files reviewed and played are consistent, and reducing the playback risk of the video to be reviewed. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] 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.
[0066] Figure 1 A flowchart of a method for outputting a video review file provided by an embodiment of the present invention;
[0067] Figure 2 A flow chart of a method for determining a target video file based on a configuration file and an audit batch number provided in an embodiment of the present invention;
[0068] Figure 3 A flow chart of a method for determining whether a video to be reviewed has a source file based on a configuration file provided in an embodiment of the present invention;
[0069] Figure 4 A flowchart of a scenario application of a video review file provided by an embodiment of the present invention;
[0070] Figure 5 A schematic diagram of the structure of a device for outputting video review files provided by an embodiment of the present invention;
[0071] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0072] 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.
[0073] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising 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, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.
[0074] The present invention can be used in many general or special computing device environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multi-processor devices, distributed computing environments including any of the above devices or devices, etc.
[0075] The executor of the present invention may be a system for reviewing videos, which may be a system constructed using a general-purpose or dedicated computing device.
[0076] Reference Figure 1 , which is a flow chart of a method for outputting a video review file provided by an embodiment of the present invention, and is specifically described as follows:
[0077] S101, receiving an audit work order, determining a video to be audited based on the audit work order, and determining an audit batch number of the video to be audited.
[0078] When the business direction provides the media resource system with work order information, the media resource system generates an audit work order based on the work order information and sends the audit work order to the audit system; further, the work order information includes the source, file type, and storage method of the video to be audited.
[0079] After receiving the audit work order, the audit system parses the audit work order to determine the video to be audited and the audit batch number of the video to be audited. There may be multiple batches of video files related to the video to be audited, and different batches correspond to different batch numbers. Preferably, the batch number can be composed of the number of times the file to be audited is processed and the processing type identifier. For example, the batch number can be transcoding-01, and the video file corresponding to the batch number is the file obtained by the first transcoding of the video to be audited; further, the batch number can also be composed of the number of times the file to be audited is processed. For example, the batch number is 05, and the video file corresponding to the batch number is the file obtained by the fifth processing of the video to be audited; further, the way to process the video to be audited includes but is not limited to transcoding, editing, adding advertising content, etc.
[0080] S102: Determine the configuration file of the video to be reviewed.
[0081] The configuration file of the video to be reviewed is a file pre-set by the business party for the video to be reviewed. Preferably, the configuration file includes but is not limited to the configuration of whether the video to be reviewed has a source file, the source configuration of the video to be reviewed, and the main directory of the source file of the source configuration of the video to be reviewed.
[0082] S103: Determine the target video file based on the configuration file and the audit batch number, and obtain the file address information of the target video file.
[0083] The target video file can be determined from a large number of video files based on the configuration file and the review batch number. Furthermore, the determined target video file is a file required for reviewing the video to be reviewed.
[0084] Applying the audit batch number can more accurately determine the target video file and improve the accuracy of the final file playback address.
[0085] Reference Figure 2 , is a flow chart of a method for determining a target video file based on a configuration file and an audit batch number provided by an embodiment of the present invention, and the specific description is as follows:
[0086] S201. Based on the configuration file, determine whether there is a source file for the video to be reviewed; when it is determined that there is no source file for the video to be reviewed, execute S202; when it is determined that there is a source file for the video to be reviewed, execute S203.
[0087] It should be noted that the configuration file contains configuration data on whether the video to be reviewed has a source file. Figure 3 , is a flow chart of a method for determining whether a video to be reviewed has a source file based on a configuration file provided by an embodiment of the present invention, and is specifically described as follows:
[0088] S301. Obtain a source file configuration identifier in a configuration file.
[0089] S302, determining whether the source file configuration identifier is represented as existing; when the source file configuration identifier is represented as existing, executing S303; when the source file configuration identifier is represented as not existing, executing S304.
[0090] S303: Determine whether the source file of the video to be reviewed exists.
[0091] S304: Determine that there is no source file for the video to be reviewed.
[0092] It should be noted that the source file configuration identifier in the configuration file can indicate whether there is a source file for the video to be processed. When the source file configuration identifier indicates that it exists, it is determined that there is a source file for the video to be reviewed. When the source file configuration identifier indicates that it does not exist, it is determined that there is no source file for the video to be reviewed.
[0093] S202: Determine the finished product file corresponding to the audit batch number as the target video file.
[0094] It should be noted that, when it is determined that there is no source file for the video to be reviewed, the generated file corresponding to the review batch number is directly determined as the target video file.
[0095] Furthermore, the finished file can be a video file that has been processed by transcoding, editing, etc. The finished file can also be called a video substitute for the video to be reviewed. There are many ways to store the finished file, such as storing the finished file in the Dayu storage method or storing the finished file in the cloud storage method.
[0096] After the finished file is determined as the target video file, when obtaining the file address information of the finished file, it is necessary to determine the storage type of the finished file; when the storage type of the finished file is the first type, determine the distribution interface configuration of the finished file, and determine the file address information based on the distribution interface configuration.
[0097] The storage type is divided into the big fish storage storage type and the cloud storage storage type, wherein the first type is the cloud storage storage type, and the cloud storage here can be any cloud storage method, and no example of cloud storage is given here. Further, the distribution interface configuration of the determined finished file can be a CDN interface configuration, and the file information of the finished file and the CDN interface configuration are encapsulated and encrypted to obtain the file address information.
[0098] When the storage type of the finished product file is the second type, the distribution status of the finished product file is determined, and the file address information is determined based on the distribution status of the finished product file.
[0099] The second type is the Dayu storage warehousing type. The distribution status of the finished file can be determined by the CDN identifier of the finished file. When the CDN identifier of the finished file indicates completion, the domain name configuration of Dayu storage is obtained, and the domain name configuration is used as the file address information; when the CDN identifier of the finished file indicates incomplete, the CDN interface configuration is obtained, and the file information and CDN interface configuration of the finished file are encapsulated and encrypted to obtain the file address information.
[0100] S203, determine whether the video to be reviewed is an encrypted video; when it is determined that the video to be reviewed is an encrypted video, execute S204; when it is determined that the video to be reviewed is not an encrypted video, execute S207.
[0101] It should be noted that when it is determined that there is a source file for the video to be reviewed, whether the video to be reviewed is an encrypted video can be judged based on the value in the encryption field in the configuration file. When the value in the encryption field in the configuration file is an encrypted value, the video to be reviewed is determined to be an encrypted video. When the value in the encryption field in the configuration file is not an encrypted value, the video to be reviewed is determined to be an unencrypted video.
[0102] Furthermore, videos to be reviewed can be roughly divided into two categories: passive file videos and active file videos. Passive file videos mean that the videos to be reviewed have no source files, and active file videos mean that the videos to be reviewed have source files. Furthermore, active file videos can be divided into encrypted videos and non-encrypted videos, and passive file videos can be divided into videos stored in the Dayu storage method and videos stored in the cloud storage method.
[0103] S204, determine whether there is a first-category video processing file corresponding to the audit batch number; when there is a first-category video processing file corresponding to the audit batch number, execute S205; when there is no first-category video processing file corresponding to the audit batch number, execute S206.
[0104] The first type of video processing files are video files that have been transcoded in advance for the video to be reviewed. The first type of video processing files can be video files played using an IP metropolitan area network, such as an IPTV video file. This type of video file is played through channels of partners such as operators, and this type of video file supports large-screen playback.
[0105] When judging whether there is a first-category video processing file corresponding to the review batch number, the review batch number can be traversed through the batch numbers of each first-category video processing file. When there is a batch number identical to the review batch number, it is determined that there is a first-category video processing file corresponding to the review batch number; when there is no batch number identical to the review batch number, it is determined that there is no first-category video processing file corresponding to the review batch number.
[0106] S205: Determine the first type of video processing file corresponding to the audit batch number as the target video file.
[0107] After determining the first-category video processing file corresponding to the review batch number as the target video file, it is necessary to determine the file address information of the target video file, which can be specifically: determining the domain name configuration and file address of the first-category video processing file as the file address information of the target video file; further, the domain name configuration of the first-category video processing file can be the domain name configuration when the first-category video processing file is stored by Dayu, and the file address of the first-category video processing file can be the file path of the first-category video processing file.
[0108] S206: Determine the source file corresponding to the audit batch number as the target video file.
[0109] After the source file corresponding to the audit batch number is determined as the target video file, the file address information needs to be obtained, specifically: the domain name information and file address of the source file are obtained, and the domain name information and file address of the source file are determined as the file address information of the target video file.
[0110] Furthermore, the domain name information of the source file may be a domain name configuration of the source file, and the file address of the source file may be a file path of the source file.
[0111] S207, determine whether there is a second-category video processing file corresponding to the audit batch number, and when it is determined that there is a second-category video processing file corresponding to the audit batch number, execute S208; when there is no second-category video processing file corresponding to the audit batch number, execute S204.
[0112] The second type of video processing files are video files that have been transcoded in advance for the video to be reviewed. The second type of video processing files can be video files played on the Internet. Such video files can be OTT video files. Such video files can be played over the Internet using TV set-top boxes or video boxes. Such video files support large-screen playback. The second type of video processing files can also be MPP video files. Such video files can be played through mobile phones, pcweb, mini programs, H5 and other channels. Such video files support small-screen playback.
[0113] When judging whether there is a second-category video processing file corresponding to the review batch number, the review batch number can be traversed through the batch numbers of each second-category video processing file. When there is a batch number that is the same as the review batch number, it is determined that there is a second-category video processing file corresponding to the review batch number; when there is no batch number that is the same as the review batch number, it is determined that there is no second-category video processing file corresponding to the review batch number.
[0114] S208: Determine the second-category video processing file corresponding to the audit batch number as the target video file.
[0115] After determining the second-category video processing file corresponding to the review batch number as the target video file, it is necessary to determine the file address information of the target video file, which can be specifically: determining the distribution status of the second-category video processing file, and obtaining the file address information based on the distribution status of the second-category video processing file.
[0116] Among them, the CDN identifier of the second category video processing file is used to determine the distribution status of the second category video processing file. When the CDN identifier is represented as completed, the domain name configuration of the second category video processing file when using Dayu storage is obtained, and the domain name configuration is used as the file address information; when the CDN identifier is represented as incomplete, the CDN interface configuration of the second category video processing file is obtained, and the file information and CDN interface configuration of the second category video processing file are encapsulated and encrypted to obtain the file address information.
[0117] In the method provided by the embodiment of the present invention, after determining the target video file among numerous video files, it is also necessary to determine the file address information based on the type and storage method of the target video file. Different file types or different storage methods obtain different contents, so the file address information can be obtained flexibly and specifically, which can be applied to a variety of scenarios, making the practicality of the present invention more powerful.
[0118] S104: Apply the file address information to generate a video playback address.
[0119] It should be noted that when the file address information contains a domain name configuration, the contents in the file address information can be spliced to obtain the video playback address; further, the file address information contains the domain name configuration when the source file corresponding to the review batch number is used as the target video file, the file address information contains the domain name configuration when the first type of video processing file corresponding to the review batch number is used as the target video file, and the file address information contains the domain name configuration when the distribution status of the target video file is incomplete.
[0120] When the file address information includes CDN interface configuration, the file address information is applied to request CDN Layer 2 to obtain the video playback address; further, when the target video file is a finished file of the first type, the file address information includes CDN interface configuration; when the target video file is a finished file of the second type that has not been distributed, the file address information includes CDN interface configuration; when the target video file is a processed video file of the second type that has not been distributed, the file address information includes CDN interface configuration.
[0121] It should be noted that the generated video playback address is the address called when the target video file is played.
[0122] S105. Based on the video playback address, output a video review file used when reviewing the video to be reviewed.
[0123] Based on the video playback address, a video review file applied when reviewing the video to be reviewed is output. Preferably, the output video review file is also the video file called when the video to be reviewed is played. Optionally, the output video review file can be the target video file mentioned above.
[0124] In the method provided by the embodiment of the present invention, an audit work order is received, a video to be audited is determined based on the audit work order, and the audit batch number of the video to be audited is determined; a configuration file of the video to be audited is determined; based on the configuration file and the audit batch number, a target video file is determined, and file address information of the target video file is obtained; the file address information is applied to generate a video playback address; based on the video playback address, a video audit file of the video to be audited is output. By using the audit work order to determine the video to be audited, and then determining the video playback address by the audit batch number of the video to be audited and the configuration file, and outputting the video audit file based on the video playback address, it can be ensured that the video file applied when the video to be audited is audited and the video file called when the video to be audited is played are the same, thereby ensuring that the audited and played files are consistent, and reducing the playback risk of the video to be audited.
[0125] In order to specifically illustrate the content of the present invention, a scenario example is provided for illustration, and the specific content is as follows.
[0126] Assuming that the business party needs to access a certain film and television project, the business party can upload the relevant video files of the film and television project to the media asset system. During the upload process, the corresponding configuration information can be set so that the media asset system can generate the corresponding configuration file, such as setting whether the film and television project has source files, whether it is an encrypted video, and the storage method. If the business party uploads the source file, the source file can be directly stored in the library. When the business party uploads a processed video file, it needs to use the corresponding processing platform for processing and store the processed video file in the library.
[0127] The video files called when a film or TV project is played in different scenes may be different. To ensure that the video files called by a film or TV project in a certain scene are consistent with the video review files, the video files required for review can be output according to the addresses used by the video files called when the film or TV project is played. This ensures that the video files used when the film or TV project is played and the video files used when it is reviewed are the same, thus avoiding the situation where the content played by the film or TV project is inconsistent with the content reviewed, and improving the security of the film or TV project playback.
[0128] Furthermore, the media asset system generates an audit work order corresponding to the film and television project. The media asset system can generate an audit work order according to the needs of the business party. For example, if there are different playback scenarios or different playback requirements, the audit work order can be generated according to the playback scenarios or playback requirements. Preferably, the audit work order contains information about the film and television project, the audit batch number, the work order number, and other information, and the audit work order is sent to the audit system so that the audit system can audit the relevant video files of the film and television project.
[0129] When the audit system audits the video files of the film and television project, it needs to audit the video files used when the film and television project is played. The method flow of the audit system outputting the video files that need to be audited for the film and television project can be referred to Figure 4 , the specific instructions are as follows.
[0130] S401, receiving a review work order, determining a video to be reviewed based on the review work order, and determining a review batch number of the video to be reviewed.
[0131] S402: Determine the configuration file.
[0132] S403. Based on the configuration file, determine whether there is a source file for the video to be reviewed; when it is determined that there is no source file for the video to be reviewed, execute S404; when it is determined that there is a source file for the video to be reviewed, execute S413.
[0133] S404: Determine the finished product file corresponding to the audit batch number as the target video file.
[0134] S405, determining whether the storage type of the target video file is the first type; when it is determined that the storage type of the target video file is the first type, executing S406; when it is determined that the storage type of the target video file is the second type, executing S409.
[0135] S406: Obtain CDN interface configuration.
[0136] S407: The CDN interface configuration and the file information of the target video file are encapsulated and encrypted.
[0137] S408: Request CDN layer 2 to obtain the video playback address.
[0138] After executing S408, execute S419.
[0139] S409: Determine that the storage type of the target video file is the second type.
[0140] S410, determining whether the distribution status of the target video file is completed; when the distribution status of the target video file is completed, executing S407; when the distribution status of the target video file is not completed, executing S411.
[0141] S411. Obtain domain name configuration and the file address of the target video file.
[0142] After executing S411, execute S412.
[0143] S412: Concatenate the domain name configuration and the file address of the target video file to obtain a video playback address.
[0144] After executing S412, execute S419.
[0145] S413, determining whether the video to be reviewed is an encrypted video. When it is determined that the video to be reviewed is not an encrypted video, executing S414; when it is determined that the video to be reviewed is an encrypted video, executing S416.
[0146] S414. Determine whether there is a second-category video processing file corresponding to the audit batch number; when it is determined that there is a second-category video processing file corresponding to the audit batch number, execute S415; when it is determined that there is no second-category video processing file corresponding to the audit batch number, execute S416.
[0147] S415: Determine the second-category video processing file corresponding to the audit batch number as the target video file.
[0148] It should be noted that after executing S415, S410 is executed.
[0149] S416. Determine whether there is a first-category video processing file corresponding to the audit batch number; when there is a first-category video processing file corresponding to the audit batch number, execute S417; when there is no first-category video processing file corresponding to the audit batch number, execute S418.
[0150] S417: Determine the first type of video processing file corresponding to the audit batch number as the target video file.
[0151] After executing S417, execute S411.
[0152] S418. Determine the source file corresponding to the audit batch number as the target video file.
[0153] After executing S418, execute S411.
[0154] S419: Output the video review file based on the video playback address.
[0155] Detailed description of each step above can be found in Figures 1 to 3The corresponding instructions will not be repeated here.
[0156] It should be noted that after the video review file is output based on the video playback address, the review system reviews the video review file and feeds back the review result to the media resource system, and then the media resource system feeds back the review result to the business party.
[0157] The method provided by the present invention can standardize the relevant information of the video to be reviewed by flexibly configuring the contents such as whether there is a source file, whether it is an encrypted video, whether there is a video substitute, etc., so as to reduce the judgment scene, and then the corresponding video file to be reviewed can be obtained more quickly and flexibly. The present invention proposes a method for determining the corresponding file playback address for videos with source files and videos without source files, encrypted videos and non-encrypted videos, so that it can be applied to a variety of different types of videos, making the present invention more adaptable and more applicable to a variety of scenarios. In addition, when determining the video file, the audit batch number is used to more accurately determine the corresponding video file, so as to accurately obtain the file broadcast address, and output the video audit file based on the file broadcast address, thereby ensuring that the video file of the video to be reviewed and the broadcast video file are consistent, reducing the problem of inconsistency between the played and reviewed video files, and improving the security of the broadcast of the video to be reviewed.
[0158] and Figure 1 Corresponding to the method shown in the figure, the present invention also provides a video audit file output device for supporting Figure 1 For a specific implementation of the method shown, the device can be set in a video review system.
[0159] Reference Figure 5 , is a structural diagram of a device for outputting video audit files provided by an embodiment of the present invention, and is specifically described as follows:
[0160] The receiving unit 501 is used to receive a review work order, determine the video to be reviewed based on the review work order, and determine the review batch number of the video to be reviewed;
[0161] A determination unit 502 is used to determine a configuration file of the video to be reviewed;
[0162] The acquisition unit 503 is used to determine the target video file based on the configuration file and the audit batch number, and acquire the file address information of the target video file;
[0163] A generating unit 504, used to generate a video playback address by applying the file address information;
[0164] The output unit 505 is used to output a video review file used when reviewing the video to be reviewed based on the video playback address.
[0165] In the device provided by the embodiment of the present invention, an audit work order is received, and a video to be audited is determined based on the audit work order, and the audit batch number of the video to be audited is determined; a configuration file of the video to be audited is determined; based on the configuration file and the audit batch number, a target video file is determined, and file address information of the target video file is obtained; the file address information is applied to generate a video playback address; based on the video playback address, a video audit file of the video to be audited is output. By using the audit work order to determine the video to be audited, and then determining the video playback address through the audit batch number of the video to be audited and the configuration file, and outputting the video audit file based on the video playback address, it can be ensured that the video file applied when the video to be audited is audited and the video file called when the video to be audited is played are the same, thereby ensuring that the audited and played files are consistent, and reducing the playback risk of the video to be audited.
[0166] In another device provided by an embodiment of the present invention, the acquiring unit 503 includes:
[0167] A first judgment subunit is used to judge whether there is a source file for the video to be reviewed based on the configuration file;
[0168] A first determining subunit is used to determine the finished product file corresponding to the audit batch number as the target video file when it is determined that the video to be audited does not have a source file;
[0169] A second judgment subunit is used to judge whether the video to be reviewed is an encrypted video when it is determined that the video to be reviewed has a source file;
[0170] A third judgment subunit is used to judge whether there is a first-category video processing file corresponding to the review batch number when it is determined that the video to be reviewed is an encrypted video;
[0171] A second determining subunit is used to determine the first type of video processing file corresponding to the audit batch number as the target video file when there is a first type of video processing file corresponding to the audit batch number;
[0172] A third determining subunit is used to determine the source file corresponding to the audit batch number as the target video file when there is no first-category video processing file corresponding to the audit batch number;
[0173] A fourth judgment subunit is used to judge whether there is a second type of video processing file corresponding to the review batch number when it is determined that the video to be reviewed is not an encrypted video;
[0174] a fourth determining subunit, configured to determine the second-category video processing file corresponding to the audit batch number as a target video file when it is determined that there is a second-category video processing file corresponding to the audit batch number;
[0175] When there is no second-category video processing file corresponding to the audit batch number, the third judgment subunit is called to execute the step of judging whether there is a first-category video processing file corresponding to the audit batch number.
[0176] In another device provided by an embodiment of the present invention, the first determination subunit includes:
[0177] An acquisition module, used to acquire a source file configuration identifier in the configuration file;
[0178] A first determination module, configured to determine that a source file exists for the video to be reviewed when the source file configuration identifier indicates that the source file exists;
[0179] The second determination module is used to determine that the source file of the video to be reviewed does not exist when the source file configuration identifier indicates that it does not exist.
[0180] In another device provided by an embodiment of the present invention, the acquiring unit 503 includes:
[0181] an acquisition subunit, for, when a source file corresponding to the audit batch number is determined as a target video file, acquiring the domain name information and file address of the source file, and determining the domain name information and file address of the source file as the file address information of the target video file;
[0182] a fifth determining subunit, configured to, when taking the first type of video processing file corresponding to the audit batch number as the target video file, determine the domain name configuration and file address of the first type of video processing file as the file address information of the target video file;
[0183] The sixth determination subunit is used to determine the distribution status of the second-category video processing file corresponding to the review batch number when the second-category video processing file is used as the target video file, and obtain file address information based on the distribution status of the second-category video processing file.
[0184] In another device provided by an embodiment of the present invention, the acquiring unit 503 includes:
[0185] A seventh determination subunit is used to determine the storage type of the finished product file when the finished product file corresponding to the audit batch number is determined as the target video file;
[0186] an eighth determining subunit, configured to determine, when the storage type of the finished product file is the first type, a distribution interface configuration of the finished product file, and determine file address information based on the distribution interface configuration;
[0187] The ninth determining subunit is used to determine the distribution status of the finished file when the storage type of the finished file is the second type, and determine the file address information based on the distribution status of the finished file.
[0188] An embodiment of the present invention further provides a storage medium, which includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the above-mentioned method for outputting the video review file.
[0189] The embodiment of the present invention further provides an electronic device, the structural diagram of which is shown in FIG. Figure 6 As shown, it specifically includes a memory 601 and one or more instructions 602, wherein the one or more instructions 602 are stored in the memory 601 and are configured to be executed by one or more processors 603 to execute the one or more instructions 602 to execute the above-mentioned video review file output method.
[0190] The specific implementation processes and derivative methods of the above-mentioned embodiments are all within the protection scope of the present invention.
[0191] 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.
[0192] 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.
[0193] 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 method for outputting a video review file, characterized in that: include: Receive a review work order, determine a video to be reviewed based on the review work order, and determine a review batch number of the video to be reviewed; Determine the configuration file of the video to be reviewed; Based on the configuration file and the audit batch number, determine the target video file, and obtain the file address information of the target video file; Apply the file address information to generate a video playback address; Based on the video playback address, output a video review file used when reviewing the video to be reviewed; The method of determining the target video file based on the configuration file and the audit batch number includes: determining whether the video to be audited has a source file based on the configuration file; when it is determined that the video to be audited does not have a source file, determining the finished file corresponding to the audit batch number as the target video file; when it is determined that the video to be audited has a source file, determining whether the video to be audited is an encrypted video; when it is determined that the video to be audited is an encrypted video, determining whether there is a first-category video processing file corresponding to the audit batch number; when there is a first-category video processing file corresponding to the audit batch number, determining the first-category video processing file corresponding to the audit batch number as the target video file. The file is determined as the target video file; when there is no first-category video processing file corresponding to the review batch number, the source file corresponding to the review batch number is determined as the target video file; when it is determined that the video to be reviewed is not an encrypted video, whether there is a second-category video processing file corresponding to the review batch number is determined; when it is determined that there is a second-category video processing file corresponding to the review batch number, the second-category video processing file corresponding to the review batch number is determined as the target video file; when there is no second-category video processing file corresponding to the review batch number, the step of determining whether there is a first-category video processing file corresponding to the review batch number is executed.
2. The method according to claim 1, characterized in that The determining, based on the configuration file, whether the video to be reviewed has a source file includes: Obtaining a source file configuration identifier in the configuration file; When the source file configuration identifier indicates existence, determining that the source file of the video to be reviewed exists; When the source file configuration identifier is characterized as not existing, it is determined that the source file of the video to be reviewed does not exist.
3. The method according to claim 1, characterized in that The step of obtaining the file address information of the target video file includes: When the source file corresponding to the audit batch number is determined as the target video file, the domain name information and file address of the source file are obtained, and the domain name information and file address of the source file are determined as the file address information of the target video file; When the first type of video processing file corresponding to the audit batch number is used as the target video file, the domain name configuration and file address of the first type of video processing file are determined as the file address information of the target video file; When the second-category video processing file corresponding to the audit batch number is used as the target video file, the distribution status of the second-category video processing file is determined, and based on the distribution status of the second-category video processing file, the file address information is obtained.
4. The method according to claim 1, characterized in that: The step of obtaining the file address information of the target video file includes: When the finished product file corresponding to the audit batch number is determined as the target video file, determining the storage type of the finished product file; When the storage type of the finished product file is the first type, determining the distribution interface configuration of the finished product file, and determining the file address information based on the distribution interface configuration; When the storage type of the finished product file is the second type, the distribution status of the finished product file is determined, and the file address information is determined based on the distribution status of the finished product file.
5. A device for outputting video audit files, characterized in that: include: A receiving unit, configured to receive a review work order, determine a video to be reviewed based on the review work order, and determine a review batch number of the video to be reviewed; A determination unit, used to determine a configuration file of the video to be reviewed; An acquisition unit, used to determine a target video file based on the configuration file and the audit batch number, and acquire file address information of the target video file; A generating unit, used to apply the file address information to generate a video playback address; An output unit, configured to output a video review file used when reviewing the video to be reviewed based on the video playback address; The acquisition unit includes: a first judgment subunit, a first determination subunit, a second judgment subunit, a third judgment subunit, a second determination subunit, a third determination subunit, a fourth judgment subunit and a fourth determination subunit; The first judgment subunit is used to judge whether there is a source file for the video to be reviewed based on the configuration file; The first determining subunit is used to determine the finished product file corresponding to the review batch number as the target video file when it is determined that the video to be reviewed does not have a source file; The second judgment subunit is used to judge whether the video to be reviewed is an encrypted video when it is determined that the video to be reviewed has a source file; The third judgment subunit is used to judge whether there is a first-category video processing file corresponding to the audit batch number when it is determined that the video to be audited is an encrypted video; The second determining subunit is used to determine the first type of video processing file corresponding to the audit batch number as the target video file when there is a first type of video processing file corresponding to the audit batch number; The third determining subunit is used to determine the source file corresponding to the audit batch number as the target video file when there is no first-category video processing file corresponding to the audit batch number; The fourth judgment subunit is used to judge whether there is a second type of video processing file corresponding to the review batch number when it is determined that the video to be reviewed is not an encrypted video; The fourth determining subunit is used to determine the second type of video processing file corresponding to the audit batch number as the target video file when it is determined that there is a second type of video processing file corresponding to the audit batch number; When there is no second-category video processing file corresponding to the audit batch number, the third judgment subunit is called to execute the step of judging whether there is a first-category video processing file corresponding to the audit batch number.
6. The device according to claim 5, characterized in that The first judgment subunit includes: An acquisition module, used to acquire a source file configuration identifier in the configuration file; A first determination module, configured to determine that a source file exists for the video to be reviewed when the source file configuration identifier indicates that the source file exists; The second determination module is used to determine that the source file of the video to be reviewed does not exist when the source file configuration identifier indicates that it does not exist.
7. A storage medium, characterized in that: The storage medium includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the method for outputting a video review file according to any one of claims 1 to 4.
8. An electronic device, characterized in that: It comprises a memory and one or more instructions, wherein the one or more instructions are stored in the memory and are configured to be executed by one or more processors to output the video review file as described in any one of claims 1-4.
Citation Information
Patent Citations
Multimedia resource acquisition method, apparatus and device, and storage medium
CN112218109A