CN114710692A - Multimedia file processing method and device - Google Patents

Multimedia file processing method and device Download PDF

Info

Publication number
CN114710692A
CN114710692A CN202210288213.3A CN202210288213A CN114710692A CN 114710692 A CN114710692 A CN 114710692A CN 202210288213 A CN202210288213 A CN 202210288213A CN 114710692 A CN114710692 A CN 114710692A
Authority
CN
China
Prior art keywords
multimedia file
weight
time
transcoding
multimedia
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210288213.3A
Other languages
Chinese (zh)
Other versions
CN114710692B (en
Inventor
鹿腾
田飞文
段岳姣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Bilibili Technology Co Ltd
Original Assignee
Shanghai Bilibili Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Bilibili Technology Co Ltd filed Critical Shanghai Bilibili Technology Co Ltd
Priority to CN202210288213.3A priority Critical patent/CN114710692B/en
Publication of CN114710692A publication Critical patent/CN114710692A/en
Application granted granted Critical
Publication of CN114710692B publication Critical patent/CN114710692B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/23418Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234363Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by altering the spatial resolution, e.g. for clients with a lower screen resolution
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234381Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by altering the temporal resolution, e.g. decreasing the frame rate by frame skipping
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26208Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application provides a multimedia file processing method, which comprises the following steps: determining target transcoding time of each multimedia file to be audited; determining the weight of the multimedia file according to the target transcoding time, adding the multimedia file into a scheduling queue, wherein the weight determines the position of the multimedia file in the scheduling queue, and the weight can be dynamically adjusted; and acquiring the multimedia file from the scheduling queue for auditing. The multimedia file processing method provided by the embodiment of the application can enable the time point of transcoding end of the multimedia file to be audited to be as close as possible to the time point of auditing end, and reduce the time of waiting for auditing end or transcoding end, thereby reducing the waste of auditing resources.

Description

Multimedia file processing method and device
Technical Field
The present application relates to the field of multimedia processing technologies, and in particular, to a method and an apparatus for processing a multimedia file, a computer device, and a storage medium.
Background
In the video platform, a user can upload a shared video file to the video platform for sharing. Before the video file is published, the video file needs to be transcoded and audited, and the video file can be published after the transcoding is completed and the auditing is qualified, wherein the transcoding and the auditing of the video file can be independently performed, and the two processes cannot be influenced mutually.
At present, in a video platform, when a plurality of video files to be audited exist, queuing is generally performed according to uploading completion time of the video files, and auditing is performed according to a first-in first-out principle, that is, the uploaded video files are audited first and then the uploaded video files are audited later. However, due to different factors such as format, length, definition, and frame rate, the required time duration for transcoding different video files is greatly different, so the following two situations can be caused when the video files are audited according to the sequence of uploading completion time of the video files:
(1) although some video files are transcoded, the uploading is finished later, and the video files still need to be queued for a long time to be audited;
(2) some video files, although not transcoded, have already completed the audit because the upload is completed earlier, but still need to wait for the transcoding to complete.
Since the video file can be published after the transcoding is completed and the audit is qualified, the audit resource in the case (2) should be preferentially used for the audit of the video file in the case (1), so that the audit resource is wasted in the current mode of auditing according to the sequence of the uploading completion time of the video file.
Disclosure of Invention
The application aims to provide a multimedia file processing method, a multimedia file processing device, computer equipment and a storage medium, which are used for solving the following technical problems: currently, the method of auditing according to the sequence of the uploading completion time of the video file can cause the waste of auditing resources.
One aspect of the embodiments of the present application provides a multimedia file processing method, including: determining target transcoding time of each multimedia file to be audited; determining the weight of the multimedia file according to the target transcoding time, adding the multimedia file into a scheduling queue, wherein the weight determines the position of the multimedia file in the scheduling queue, and the weight can be dynamically adjusted; and acquiring the multimedia file from the scheduling queue for auditing.
Optionally, the multimedia file processing method further includes: and under the condition that the transcoding of the multimedia file is finished and the transcoded multimedia file is not checked, adjusting the weight of the transcoded multimedia file.
Optionally, determining the weight of the multimedia file according to the target transcoding time includes: converting the target transcoding time into a first long integer; and obtaining the weight of the multimedia file according to the first long integer.
Optionally, obtaining the weight of the multimedia file according to the first long integer includes: obtaining the basic weight of the multimedia file according to the first long integer; and adjusting the basic weight according to the attribute of the multimedia file to obtain the weight of the multimedia file.
Optionally, deriving the basis weight of the multimedia file according to the first long integer includes: adding an adjusting bit in front of and/or behind the first long integer, wherein the adjusting bit comprises a plurality of digits; and forming a second long integer by the adjusting bit and the first long integer, and taking the second long integer as the basic weight of the multimedia file.
Optionally, adjusting the basic weight according to the attribute of the multimedia file to obtain the weight of the multimedia file, including: and adjusting the adjusting bit and/or the first long integer in the basic weight according to the attribute of the multimedia file to obtain the weight of the multimedia file.
Optionally, adjusting the weight of the transcoded multimedia file comprises: adjusting an adjustment bit and/or a first long integer in the weight of the transcoded multimedia file.
Optionally, adjusting the first long integer and/or the adjustment bits in the weight of the transcoded multimedia file includes: acquiring actual transcoding completion time of the transcoded multimedia file; and regenerating the first long integer according to the actual transcoding completion time, and obtaining the weight of the transcoded multimedia file according to the regenerated first long integer.
Optionally, determining a target transcoding time of each multimedia file to be audited includes: and acquiring the estimated transcoding completion time of each multimedia file to be audited, and taking the estimated transcoding completion time as the target transcoding time of the multimedia file.
Optionally, determining a target transcoding time of each multimedia file to be audited includes: and under the condition that the multimedia file is a timed task, acquiring timed release time of the multimedia file, and taking the timed release time as target transcoding time of the multimedia file.
An aspect of an embodiment of the present application further provides a multimedia file processing apparatus, including: the first determining module is used for determining the target transcoding time of each multimedia file to be audited; the second determining module is used for determining the weight of the multimedia file according to the target transcoding time, adding the multimedia file into the scheduling queue, and determining the position of the multimedia file in the scheduling queue by the weight, wherein the weight can be dynamically adjusted; and the auditing module is used for acquiring the multimedia file from the scheduling queue for auditing.
An aspect of the embodiments of the present application further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor is configured to implement the steps of the multimedia file processing method described above when executing the computer program.
An aspect of the embodiments of the present application further provides a computer-readable storage medium, in which a computer program is stored, where the computer program is executable by at least one processor, so as to cause the at least one processor to execute the steps of the multimedia file processing method described above.
The multimedia file processing scheme provided by the embodiment of the application has the following advantages:
the target transcoding time of each multimedia file to be audited is determined, the weight of each multimedia file is determined according to the target transcoding time, each multimedia file is added into a scheduling queue, the position of each multimedia file in each scheduling queue is determined according to the weight, the weight can be dynamically adjusted, each multimedia file is obtained from each scheduling queue for auditing, the target transcoding time can better reflect the actual transcoding completion time of each multimedia file, the weight of each multimedia file is determined according to the target transcoding time, the position of each multimedia file in each scheduling queue is determined according to the weight, each multimedia file is obtained from each scheduling queue for auditing, the transcoding ending time point of each multimedia file can be close to the auditing ending time point as much as possible, the time for waiting for auditing ending or transcoding ending is reduced, and the waste of auditing resources is reduced, the optimization of the transcoding and auditing process is realized, and the utilization efficiency of auditing resources is improved.
Drawings
FIG. 1 schematically illustrates an environmental architecture diagram of an embodiment of the present application;
fig. 2 is a diagram schematically illustrating a process of transcoding and auditing in the related art;
fig. 3 schematically shows another process diagram of transcoding and auditing in the related art;
fig. 4 is a flow chart schematically illustrating a multimedia file processing method according to a first embodiment of the present application;
fig. 5 is a schematic diagram illustrating a process of transcoding and auditing in a multimedia file processing method according to a first embodiment of the present application;
FIG. 6 is a sub-step of step S2 in FIG. 4;
FIG. 7 is a substep of step S22 of FIG. 6;
FIG. 8 is a sub-step of step S221 in FIG. 7;
FIG. 9 schematically illustrates adding justification bits based on a first long integer;
fig. 10 schematically illustrates a schematic diagram of a multimedia file processing method according to a first embodiment of the present application;
FIG. 11 schematically illustrates an audit weight calculation schematic;
FIG. 12 is a flow diagram schematically illustrating the acquisition of a multimedia file from a scheduling queue for auditing;
fig. 13 is a block diagram schematically showing a multimedia file processing apparatus according to a second embodiment of the present application;
fig. 14 is a schematic diagram illustrating a hardware architecture of a computer device according to a third embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the descriptions relating to "first", "second", etc. in the embodiments of the present application are only for descriptive purposes and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present application.
In the description of the present application, it should be understood that the numerical references before the steps do not identify the order of performing the steps, but merely serve to facilitate the description of the present application and to distinguish each step, and therefore should not be construed as limiting the present application.
The following are explanations of terms referred to in the present application:
multimedia auditing: the multimedia file is checked manually or mechanically before being played publicly, and the content of the check includes but is not limited to whether text information, pictures, sounds and the like in the multimedia file meet the requirements of national laws and regulations and whether the multimedia file is suitable for being played publicly.
An auditing platform: and the background system is used for auditing the multimedia files.
Transcoding: the signal of the multimedia file is converted from one coding format to another coding format, so that the multimedia file conforms to the standard and specification of the multimedia website.
Target transcoding time: time determined according to factors of transcoding the multimedia file, wherein the factors of transcoding comprise: file format, file length, definition, frame rate, and whether it is a timed task, etc.
Definition: definition of each detail shadow and its boundary on the image in the multimedia file.
Frame rate: is the frequency (rate) at which bitmap images appear continuously on the display in units of frames.
Code rate: the number of data bits transmitted per unit time during data transmission.
Fig. 1 schematically shows an environment architecture diagram of an embodiment of the present application, as shown in fig. 1:
a user of a client 301 uploads a multimedia file to be audited to a server 100 through a network 200 for transcoding and auditing, the client 302 acquires the multimedia file to be audited from the server 100 through the network 200 for auditing, a result is sent to the server 100 after auditing is finished, after transcoding and auditing of the multimedia file are both finished, the user of the client 303 can send a request for applying for playing the audited multimedia file to the server 100 through the network 200, and the server 100 transmits the audited multimedia file to the client 303 through the network 200 for playing according to the request, wherein the multimedia file can be a file such as audio, video and the like which needs transcoding; the client 302 may specifically be a client of the auditing platform, and the server 100 may specifically be a multimedia platform (e.g., a video platform). It should be noted that, a user of the client 301 may also send a request for applying for playing the audited multimedia file to the server 100 through the network 200, and the server 100 may also transmit the audited multimedia file to the client 301 through the network 200 for playing according to the request of the client 301, but in order to more clearly reflect the uploading, auditing and playing processes of the multimedia file, an interaction process with the server 100 and the network when the client 301 requests to play the multimedia file is not shown in fig. 1. In addition, the transcoding process of the multimedia file may be performed in the server 100, or may be performed by another system connected to the server 100. If a machine automatic review mode is adopted, the server 100 may also automatically review the multimedia files uploaded by the client 301.
In an exemplary embodiment, the server 100 may index a data center, such as a single house, or be distributed over different geographic locations (e.g., over several houses). The server 100 may provide services through one or more networks 200. Network 200 includes various network devices such as routers, switches, multiplexers, hubs, modems, bridges, repeaters, firewalls, proxy devices, and/or the like. Network 200 may include physical links such as coaxial cable links, twisted pair cable links, fiber optic links, combinations thereof, and/or the like. The network 200 may include wireless links, such as cellular links, satellite links, Wi-Fi links, and/or the like. Clients 301, 302, or 303 may include devices such as mobile devices, tablet devices, laptop computers, smart devices (e.g., smart apparel, smart watches, smart glasses), virtual reality headsets, gaming devices, set-top boxes, digital streaming devices, robots, vehicle terminals, smart televisions, television boxes, or e-book readers.
In the related art, when the multimedia file is checked, the checking is generally performed according to the sequence of the uploading completion time of the multimedia file. However, due to factors such as format, length, definition, and frame rate, the time duration required for transcoding different multimedia files is very different, so the following two situations can be caused when the multimedia file is audited according to the first-in first-out principle:
(1) although some multimedia files have been transcoded, the multimedia files still need to wait for a long time to be checked because the uploading is completed later, and the process is schematically shown in fig. 2.
(2) Although some multimedia files are not transcoded, the uploading is completed earlier and the auditing is completed, but the transcoding needs to be completed waiting for completion, and the process diagram is shown in fig. 3.
It can be seen that, in the multimedia file in the case (2), since the transcoding takes a long time, there is no need to complete the auditing earlier, and the auditing resource in this case should be preferentially used to audit the multimedia file in the case (1), so that the multimedia file can be audited immediately before, just after, or shortly after the transcoding is completed, and there is no need to wait for a long time in a queue to audit; after the multimedia file in the (1) th situation is audited, the multimedia file in the (2) th situation is audited, so that transcoding is finished, just finished or finished when auditing is finished, and the transcoding process is not required to be published for a long time, and therefore both situations can cause the waste of auditing resources.
The multimedia file processing scheme provided by the application can reduce the waste of auditing resources, realize the optimization of the processes of multimedia transcoding and auditing and improve the utilization efficiency of auditing resources.
The multimedia file processing scheme of the present application will be described below by way of several embodiments.
Example one
Fig. 4 schematically shows a flowchart of a multimedia file processing method provided in an embodiment of the present application. It should be noted that an execution subject of the multimedia file processing method provided in the first embodiment of the present application may be the server 100 in fig. 1, or may also be the client 302 in fig. 1, which will be described in detail later. As shown in fig. 4, the multimedia file processing method may include:
and step S1, determining the target transcoding time of each multimedia file to be audited.
In an exemplary embodiment, step S1 may include: and acquiring the estimated transcoding completion time of each multimedia file to be audited, and taking the estimated transcoding completion time as the target transcoding time of the multimedia file.
For example, if the estimated transcoding completion time of the multimedia file a is a, a is taken as the target transcoding time of the multimedia file a.
When the estimated transcoding completion time of each multimedia file to be audited is obtained, each multimedia file to be audited can be estimated manually according to practical experience, and can also be obtained from a transcoding system of the multimedia file. The transcoding system can abstract and fit the time length required by transcoding in a machine learning mode according to the format, code rate, definition, transcoding difficulty and the like of the multimedia file, so that the estimated transcoding completion time of the multimedia file can be output by combining the current time after the multimedia file is obtained. For example, if the transcoding system estimates that the time required for transcoding a certain multimedia file is 10 minutes, the estimated transcoding completion time of the multimedia file can be output as the current time plus 10 minutes.
The actual transcoding completion time of the multimedia file is unknown before the transcoding is finished, and the estimated transcoding completion time can better reflect the actual transcoding completion time, so that the estimated transcoding completion time of the multimedia file is used as the target transcoding time, a good sequence basis can be provided for the auditing of the multimedia file, the auditing and the transcoding of the multimedia file can be finished at a relatively close time point, and the time for waiting for the auditing to be finished or the transcoding to be finished is reduced.
In an exemplary embodiment, step S1 may further include: and under the condition that the multimedia file is a timed task, acquiring timed release time of the multimedia file, and taking the timed release time as target transcoding time of the multimedia file.
The timed release time can be set by an uploading user of the multimedia file, and after the uploading user sets the timed release time, the server 100 can mark the timed release time as a timed task, so that whether the multimedia file is the timed task can be determined according to the mark; and under the condition that the multimedia file is determined to be a timing task, acquiring timing release time.
It can be understood that if the multimedia file is not a timed task, the target transcoding time should be closely related to the time required for transcoding the multimedia file; however, if the multimedia file is a timed task, the target transcoding time has little relation with the time required by transcoding of the multimedia file, for example, the time required by transcoding of the multimedia file may be 5 minutes, and the timed release time is released after 2 hours of the current time. Therefore, if the audit sequence is determined according to the estimated transcoding completion time of the multimedia file which is a timing task, a result that the multimedia file can be transcoded after waiting for a long time after the audit is completed occurs, and therefore, audit resources are wasted.
By acquiring the timed release time of the multimedia file and taking the timed release time as the target transcoding time of the multimedia file, the target transcoding time can reflect the actual transcoding completion time of the multimedia file serving as a timed task, and good sequential basis is provided for the auditing of the multimedia file, so that the auditing and transcoding of the multimedia file can be finished at relatively close time points, the time for waiting for the auditing to be finished or the transcoding to be finished is reduced, and the waste of auditing resources is reduced.
And step S2, determining the weight of the multimedia file according to the target transcoding time, adding the multimedia file into a scheduling queue, wherein the weight determines the position of the multimedia file in the scheduling queue, and the weight can be dynamically adjusted.
When the weight of the multimedia file is determined according to the target transcoding time, the target transcoding time can be directly used as the weight of the multimedia file, and because the target transcoding time has a sequence, the weight of each multimedia file is different due to the difference of the sequence of the target transcoding time, so that the positions of the multimedia file in a scheduling queue are different; if the target transcoding time of some multimedia files is the same, the positions of the multimedia files in the scheduling queue can be randomly determined when the multimedia files are added into the scheduling queue. Optionally, the target transcoding time may also be adjusted or transformed according to a preset rule, and the adjusted or transformed target transcoding time is used as a weight of the multimedia file. The preset rule may be set according to actual needs, and is not limited here.
If the sequence of the scheduling queue is in a sequence from big to small according to the weight, when the weight of the multimedia file is determined according to the target transcoding time, the weight of the multimedia file with the earlier target transcoding time is larger, and the weight of the multimedia file with the later target transcoding time is smaller, because the target transcoding time reflects the actual transcoding completion time of the multimedia file, when the target transcoding time is earlier, the actual transcoding completion time of the multimedia file is indicated to be earlier, and in order to reduce the time for waiting for auditing after the transcoding is completed, the multimedia file is audited earlier, so the weight of the multimedia file is larger; when the target transcoding time is later, the actual transcoding completion time of the multimedia file is later, in order to reduce the time for waiting for transcoding after auditing, the multimedia file should be audited later, and therefore the weight of the multimedia file is smaller. Correspondingly, if the sequence of the scheduling queue is in the order from small to large according to the weight, when the weight of the multimedia file is determined according to the target transcoding time, the weight of the multimedia file with the earlier target transcoding time is smaller, and the weight of the multimedia file with the later target transcoding time is larger.
When adding a multimedia file into the scheduling queue, the weight of the multimedia file to be added may be compared with the weight of the multimedia file already in the scheduling queue, thereby determining the position of the multimedia file to be added in the scheduling queue. After the multimedia files are added into the scheduling queue, the weight of a certain multimedia file can be dynamically adjusted according to actual needs, so that the position of the multimedia file in the scheduling queue is changed, and the checked sequence of the multimedia file is adjusted.
It can be understood that the multimedia files include multimedia files with longer duration and multimedia files with shorter duration (such as long video files and short video files), and the multimedia files with longer duration are generally longer in transcoding time due to more contents; since the content of the multimedia file with a shorter duration is less, the transcoding time is generally shorter, and therefore, if the multimedia file with a shorter duration is too many, the auditing of the multimedia file with a longer duration may be affected. Therefore, when the multimedia files are added into the scheduling queues, the multimedia files can be classified according to time length, and the multimedia files of different types are added into different scheduling queues, so that the influence of excessive multimedia files with short time length on the auditing of multimedia files with long time length can be avoided. Optionally, other classification audits may be performed on the multimedia file, and the settings may be specifically performed according to actual needs, which is not limited here.
And step S3, acquiring the multimedia file from the scheduling queue for auditing.
As described above, an execution main body of the multimedia file processing method provided in the embodiment of the present application may be the server 100 in fig. 1, and the specific execution process is, for example: after receiving the multimedia file to be audited, the server 100 acquires the estimated transcoding completion time of the multimedia file from the transcoding system, and takes the estimated transcoding completion time as target transcoding time; and then determining the weight of the multimedia file according to the target transcoding time, adding the multimedia file into a scheduling queue according to the weight of the multimedia file, and finally acquiring the multimedia file from the scheduling queue according to the position sequence for auditing. When acquiring the multimedia file from the scheduling queue for auditing, the server 100 may send the multimedia file acquired from the scheduling queue to an auditing platform, and the auditing platform audits the multimedia file, where in this case, step S3 may be: and acquiring the multimedia file from the scheduling queue, and sending the acquired multimedia file to an auditing platform for auditing. The specific implementation process is, for example: the server 100 acquires the multimedia file from the scheduling queue, sends the acquired multimedia file to the client 302 (client of the auditing platform) through the network 200, and the client 302 audits the multimedia file. Optionally, an execution main body of the multimedia file processing method provided in this embodiment of the present application may also be the client 302 in fig. 1, and a specific execution process is, for example: the client 302 acquires the estimated transcoding completion time of the multimedia file from the transcoding system as target transcoding time, then determines the weight of the multimedia file according to the target transcoding time, puts the multimedia file into a scheduling queue according to the weight of the multimedia file, and acquires the multimedia file from the scheduling queue for auditing. In addition, when the multimedia file is audited by the auditing platform, the multimedia file can be audited manually by staff of the auditing platform.
In the related technology, the verification is performed according to the sequence of the uploading completion time of the multimedia file, so that the condition that the difference between the transcoding completion time and the verification completion time is relatively long easily occurs; in the multimedia file processing method provided in the embodiment of the present application, the weight is determined according to the target transcoding time of the multimedia file, the position of the multimedia file in the scheduling queue (that is, the order of the auditing) is determined according to the weight, and the target transcoding time reflects the actual transcoding completion time of the multimedia file, so that the auditing completion time and the transcoding completion time of the multimedia file can be relatively close to each other, and a schematic process diagram of the process is shown in fig. 5, that is, the auditing can be performed when the multimedia file completes most of the transcoding process, so that the time points of the auditing and the transcoding completion time are close to each other.
The multimedia file processing method provided by the first embodiment of the application determines the target transcoding time of each multimedia file to be audited, determines the weight of the multimedia file according to the target transcoding time, and adds the multimedia file into the scheduling queue, wherein the weight determines the position of the multimedia file in the scheduling queue, and the weight can be dynamically adjusted, acquires the multimedia file from the scheduling queue for auditing, because the target transcoding time can better reflect the actual transcoding completion time of the multimedia file, determines the weight of the multimedia file according to the target transcoding time, determines the position of the multimedia file in the scheduling queue according to the weight, and finally acquires the multimedia file from the scheduling queue for auditing, the transcoding completion time point of the multimedia file can be as close as possible to the auditing completion time point, and the time waiting for auditing or transcoding completion can be reduced, therefore, the waste of audit resources is reduced, the transcoding and audit processes are optimized, and the utilization efficiency of the audit resources is improved; meanwhile, the weight of the multimedia file is obtained on the basis of the target transcoding time, so that the auditing sequence can be properly adjusted according to actual needs on the basis of the target transcoding time, and the auditing mode is more flexible.
In an exemplary embodiment, the multimedia file processing method provided in the first embodiment of the present application may further include: and under the condition that the transcoding of the multimedia file is finished and the transcoded multimedia file is not checked, adjusting the weight of the transcoded multimedia file.
The position of the transcoded multimedia file in the scheduling queue can be changed by adjusting the weight of the transcoded multimedia file, so that the position of the transcoded multimedia file in the scheduling queue is changed, the auditing sequence is advanced, and the time for waiting for auditing and ending auditing after transcoding is finished is reduced.
In an exemplary embodiment, as shown in fig. 6, step S2 may include:
step S21, converting the target transcoding time into a first long integer.
Specifically, it may be time to convert the target transcoding time into an integer form, thereby obtaining a first long integer. For example, if the target transcoding time of a multimedia file is 20 o' clock 30 min 30 s of 11/month 30/year 2021, the target transcoding time may be converted into a format of "yyymmddhhmmss", that is, a format of "yearly, month, day, hour, minute and second", and the first long integer is 20211130203030. The integer form of conversion may be set according to actual needs, for example, conversion may also be "year, month, day, time, minute and second", and the like, and is not limited specifically here.
And step S22, obtaining the weight of the multimedia file according to the first long integer.
Specifically, the first long integer may be used as the weight of the multimedia file, or the first long integer may be adjusted to a certain degree, and the adjusted first long integer may be used as the weight of the multimedia file. For example, a value is subtracted from or added to the first long integer, or the first long integer is multiplied by a ratio, and the like, and the specific adjustment manner may be set according to the actual needs, and is not limited herein.
The target transcoding time is converted into a first long integer, and the weight of the multimedia file is obtained according to the first long integer, so that the position of the multimedia file in the scheduling queue can be determined conveniently by sorting the weight of the multimedia file in size in the follow-up process; meanwhile, the weight of the multimedia file is obtained according to the first long integer, and the position of the multimedia file in the scheduling queue can be adjusted according to actual needs, so that the auditing sequence of the multimedia file is adjusted, and the flexibility of adjusting the auditing sequence is improved.
In an exemplary embodiment, as shown in fig. 7, step S22 may further include:
step S221, the basic weight of the multimedia file is obtained according to the first long integer.
Specifically, the first long integer may be directly used as the basic weight of the multimedia file, or may be subjected to other processing, and the processed first long integer may be used as the basic weight of the multimedia file.
Step S222, adjusting the basic weight according to the attribute of the multimedia file to obtain the weight of the multimedia file.
The attributes of the multimedia file may include inherent attributes such as file format, file length, definition, frame rate, and bit rate, and the inherent attributes of each multimedia file may be different, so the basic weight of each multimedia file may be adjusted according to the inherent attributes, and the specific adjustment mode may be set according to actual needs, which is not limited herein. For example, if the multimedia files are not classified according to the file length (duration) before the auditing, the basic weight of the multimedia files with longer duration can be properly reduced, so that the auditing priority degree is properly improved; meanwhile, the basic weight of the multimedia file with shorter time is properly increased, so that the auditing priority degree of the multimedia file is properly reduced.
The attributes of the multimedia file may further include service attributes such as a user attribute (e.g., a designated user or an old user), a source attribute (e.g., a designated source), and a service type (e.g., a type of life, current affairs, or technology), and since the service attributes of different multimedia files may also be different, the basic weight may also be adjusted according to the service attributes, and a specific adjustment manner is not limited here. For example, if a multimedia file is uploaded by an old user, the basic weight of the multimedia file can be appropriately reduced, so that the auditing priority of the multimedia file can be appropriately improved.
The basic weight of the multimedia file is obtained through the first long integer, and then the basic weight is adjusted according to the attribute of the multimedia file to obtain the weight of the multimedia file.
In an exemplary embodiment, as shown in fig. 8, step S221 may further include:
and step S2211, adding adjusting bits in front of and/or behind the first long integer, wherein the adjusting bits comprise a plurality of digits.
Please refer to fig. 9, which is a schematic diagram of adding the adjustment bits based on the first long integer, as shown in fig. 9, the target time factor corresponds to the first long integer, which is determined by the target transcoding time and other factors, and a priority adjustment bit is added in front of the first long integer, where the priority adjustment bit includes two bits; and an adjusting bit of the sorting parameter is added behind the first long integer, and the adjusting bit also comprises two digits. The adjustment bit of the priority is at the top, and the size of the second long integer is most easily determined, so that the adjustment bit can be used for realizing large-amplitude adjustment of the position (namely, the audit sequence) of the adjustment bit in the scheduling queue; the adjustment bits of the sorting parameters have a small influence on the size of the second long integer due to the rearmost position, and therefore, the adjustment bits can be used for performing small-amplitude adjustment on the positions (namely, the audit sequence) of the preceding integers in the scheduling queue at the same time, and the two adjustment bits are two different-amplitude adjustments. It should be noted that the two-digit adjustment bits shown in fig. 9 are only examples, and are not limited to the adjustment bits comprising the number of bits, and here the second long integer composed of the adjustment bits (4 bits in total) and the first long integer (14 bits) is 18 bits, which is a factor combining the requirements of computer storage. In fact, the number of the adjusted bits may be other bits, and only needs to meet the requirement of computer storage, which is not limited herein.
And step S2212, forming a second long integer by the adjusting bit and the first long integer, and taking the second long integer as the basic weight of the multimedia file.
The adjustment bits are added in front of and/or behind the first long integer, then the adjustment bits and the first long integer form a second long integer, and the second long integer is used as the basic weight of the multimedia file.
In an exemplary embodiment, on the basis of the foregoing embodiment, the step S222 (i.e. adjusting the basic weight according to the attribute of the multimedia file to obtain the weight of the multimedia file) may further include: and adjusting the adjusting bit and/or the first long integer in the basic weight according to the attribute of the multimedia file to obtain the weight of the multimedia file.
That is, when the basic weight is adjusted according to the attribute of the multimedia file, the adjustment bit can be adjusted according to the attribute of the multimedia file. For example, the adjustment bits of the priority are adjusted, so that the multimedia files uploaded by the old users can be audited more preferentially. For another example, the adjustment bits of the sorting parameters of a plurality of multimedia files which are uploaded by the same uploading user at the same time and have a sequence are adjusted, so that the auditing sequence conforms to the sequence of the auditing user. Optionally, the first long integer may also be adjusted according to the attribute of the multimedia file, and the adjustment bit and the first long integer may also be adjusted simultaneously, so that the audit sequence meets the actual requirement.
Because the multimedia files have various different attributes, the attributes of different multimedia files are different, and the adjustment bits and the first long integer in the basic weight can be adjusted in different degrees or different rules, the adjustment bits and/or the first long integer in the basic weight can be adjusted according to the attributes of the multimedia files, so that various adjustment requirements of the multimedia files can be met, and the adjustment flexibility of the auditing sequence is improved.
In an exemplary embodiment, on the basis of the foregoing embodiment, the adjusting the weight of the transcoded multimedia file may include: adjusting an adjustment bit and/or a first long integer in the weight of the transcoded multimedia file.
Since the transcoded multimedia file needs to be audited quickly, the adjustment bits of the priority in the weight can be adjusted, so that the audited sequence is greatly accelerated; or adjusting the adjusting bits in the weights and the first long integer at the same time, for example, zeroing the adjusting bits and the first long integer at the same time so that they are audited immediately; the adjustment bit and/or the first long integer can also be adjusted according to a certain rule, so that the audited sequence of other multimedia files is properly accelerated on the premise of not causing great influence on the other multimedia files, and the specific rule can be set according to actual needs, and is not limited here.
By adjusting the adjusting bits and/or the first long integers in the weight of the transcoded multimedia files, the auditing sequence of the transcoded multimedia files can be accelerated to different degrees, and the time for waiting for auditing and ending auditing is shortened.
In an exemplary embodiment, adjusting the first long integer and/or the adjustment bits in the weights of the transcoded multimedia file may include: and acquiring the actual transcoding completion time of the transcoded multimedia file, regenerating a first long integer according to the actual transcoding completion time, and obtaining the weight of the transcoded multimedia file according to the regenerated first long integer.
The target transcoding time of the transcoded multimedia file may be inaccurate, so that the target transcoding time is later than the actual transcoding completion time of the transcoded multimedia file, the first long integer is regenerated according to the actual transcoding completion time, the weight of the transcoded multimedia file is obtained according to the regenerated first long integer, the regenerated weight is smaller than the original weight, and the auditing priority of the transcoded multimedia file can be properly improved. When the weight of the transcoded multimedia file is obtained according to the regenerated first long integer, the adjusting bit can be adjusted while the first long integer is regenerated, so that the auditing sequence of the transcoded multimedia file can be further adjusted, and the auditing priority of the transcoded multimedia file can be further changed.
In order to more clearly describe the multimedia file processing method in the first embodiment of the present application, the following description is made by way of example. Please refer to fig. 10, which is a diagram illustrating a multimedia file processing method according to an embodiment of the present application. As shown in fig. 10, a user uploads a multimedia file through an APP (application program) or a web (browser), transcoding is started after uploading, meanwhile, a weight of the multimedia file is calculated according to influence factors such as estimated transcoding completion time, multimedia file attributes, whether the multimedia file is a timing task, and the like, after the weight is calculated, the multimedia file is placed in a scheduling queue according to the weight of the multimedia file by a weight calculation module, the multimedia file is obtained from the scheduling queue by a scheduling module and is distributed to an auditing platform for auditing, and after the auditing is completed and the transcoding is completed, the multimedia file is published; and if the verification is not finished when the transcoding is finished, informing the verification platform to adjust the verification weight, and verifying according to the adjusted verification weight.
Please refer to fig. 11, which is a diagram illustrating a principle of calculating weights of multimedia files. As shown in fig. 11, the initial weight value of the static calculation is the weight of the multimedia file, and the updated weight of the dynamic calculation corresponds to the adjusted weight, when performing the audit weight calculation, configuration information of the calculation rule of the initial weight value may be obtained according to the estimated transcoding completion time, (the multimedia file) attribute, and whether the task is a timing task, each rule may be sequentially calculated, a value corresponding to a parameter required in the rule is obtained, a weight value is calculated, and the result is stored for the scheduling module to use; when the transcoding of the multimedia file is completed, dynamic calculation of the weight is triggered, a corresponding weight calculation rule set is obtained according to external conditions such as actual transcoding completion time, backlog to be checked, designated file tuning and the like, basic information (including attributes, estimated transcoding completion time, whether the task is a timing task or not) of a task of the transcoded multimedia file is obtained, the weight is recalculated, and a result is stored for a scheduling module to use.
Please refer to fig. 12, which is a diagram illustrating a process of obtaining a multimedia file from a scheduling queue for auditing. As shown in fig. 12, the tasks to be checked (i.e., multimedia files to be checked, each multimedia file to be checked may correspond to a task to be checked and may be created when the multimedia file is completely uploaded) are retrieved in the order of the weights from small to large, the tasks to be checked are pushed to the auditors for auditing, the auditors operate the tasks to audit the multimedia files, whether the multimedia files need to be opened (i.e., whether the multimedia files meet the published specifications) is determined, if yes, the state of the multimedia files is changed to open browsing, and the multimedia files can be openly played after transcoding is completed; if not, the state of the multimedia file is changed to be returned.
Example two
Fig. 13 schematically shows a block diagram of a multimedia file processing apparatus 400 provided in the second embodiment of the present application, where the multimedia file processing apparatus 400 may be divided into one or more program modules, and the one or more program modules are stored in a storage medium and executed by one or more processors to implement the second embodiment of the present application. The program modules referred to in the embodiments of the present application refer to a series of computer program instruction segments that can perform specific functions, and the following description will specifically describe the functions of each program module in the embodiments.
As shown in fig. 13, the multimedia file processing apparatus 400 may include a first confirmation module 401, a second confirmation module 402, and an audit module 403.
A first determining module 401, configured to determine a target transcoding time of each to-be-audited multimedia file;
a second determining module 402, configured to determine a weight of the multimedia file according to the target transcoding time, and add the multimedia file to the scheduling queue, where the weight determines a position of the multimedia file in the scheduling queue, and the weight may be dynamically adjusted;
and an auditing module 403, configured to obtain the multimedia file from the scheduling queue for auditing.
In an exemplary embodiment, the multimedia file processing apparatus 400 provided in the second embodiment of the present application further includes an adjusting module (not shown in the figure) configured to: and under the condition that the transcoding of the multimedia file is finished and the transcoded multimedia file is not checked, adjusting the weight of the transcoded multimedia file.
In an exemplary embodiment, the second determining module 402 is further configured to: converting the target transcoding time into a first long integer; and obtaining the weight of the multimedia file according to the first long integer.
In an exemplary embodiment, the second determining module 402 is further configured to: obtaining the basic weight of the multimedia file according to the first long integer; and adjusting the basic weight according to the attribute of the multimedia file to obtain the weight of the multimedia file.
In an exemplary embodiment, the second determining module 402 is further configured to: adding an adjusting bit in front of and/or behind the first long integer, wherein the adjusting bit comprises a plurality of digits; and forming a second long integer by the adjusting bit and the first long integer, and using the second long integer as the basic weight of the multimedia file.
In an exemplary embodiment, the second determining module 402 is further configured to: and adjusting the adjusting bit and/or the first long integer in the basic weight according to the attribute of the multimedia file to obtain the weight of the multimedia file.
In an exemplary embodiment, the adjustment module is further configured to: adjusting an adjustment bit and/or a first long integer in the weight of the transcoded multimedia file.
In an exemplary embodiment, the adjustment module is further configured to: acquiring actual transcoding completion time of the transcoded multimedia file; and regenerating the first long integer according to the actual transcoding completion time, and obtaining the weight of the transcoded multimedia file according to the regenerated first long integer.
In an exemplary embodiment, the first determining module 401 is further configured to: and acquiring the estimated transcoding completion time of each multimedia file to be audited, and taking the estimated transcoding completion time as the target transcoding time of the multimedia file.
In an exemplary embodiment, the first determining module 401 is further configured to: and under the condition that the multimedia file is a timed task, obtaining the timed release time of the multimedia file, and taking the timed release time as the target transcoding time of the multimedia file.
EXAMPLE III
Fig. 14 schematically shows a hardware architecture diagram of a computer device 500 suitable for the multimedia file processing method according to a third embodiment of the present application. The computer device 500 may be a device capable of automatically performing numerical calculations and/or data processing according to instructions set or stored in advance. For example, the server may be a rack server, a blade server, a tower server or a cabinet server (including an independent server or a server cluster composed of a plurality of servers), a gateway, and the like. As shown in fig. 14, computer device 500 includes at least, but is not limited to: the memory 501, processor 502, and network interface 503 may be communicatively linked to each other via a system bus. Wherein:
the memory 501 includes at least one type of computer-readable storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the storage 501 may be an internal storage module of the computer device 500, such as a hard disk or a memory of the computer device 500. In other embodiments, the memory 501 may also be an external storage device of the computer device 500, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the computer device 500. Of course, the memory 501 may also include both internal and external memory modules of the computer device 500. In this embodiment, the memory 501 is generally used for storing an operating system installed in the computer device 500 and various application software, such as program codes of a multimedia file processing method. Further, the memory 501 may also be used to temporarily store various types of data that have been output or are to be output.
Processor 502 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 502 generally serves to control overall operation of the computer device 500, such as performing control and processing related to data interaction or communication with the computer device 500. In this embodiment, the processor 502 is configured to execute program codes stored in the memory 501 or process data.
The network interface 503 may include a wireless network interface or a wired network interface, and the network interface 503 is typically used to establish communication links between the computer device 500 and other computer devices. For example, the network interface 503 is used to connect the computer device 500 to an external terminal via a network, establish a data transmission channel and a communication link between the computer device 500 and the external terminal, and the like. The network may be a wireless or wired network such as an Intranet (Internet), the Internet (Internet), a Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), 4G network, 5G network, Bluetooth (Bluetooth), Wi-Fi (wireless fidelity), or the like.
It is noted that fig. 14 only shows a computer device with components 501 and 503, but it is understood that not all of the shown components are required to be implemented, and that more or less components may be implemented instead.
In this embodiment, the multimedia file processing method stored in the memory 501 may be further divided into one or more program modules, and executed by one or more processors (in this embodiment, the processor 502) to complete the embodiments of the present application.
Example four
Embodiments of the present application also provide a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the multimedia file processing method in the embodiments.
In this embodiment, the computer-readable storage medium includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the computer readable storage medium may be an internal storage unit of the computer device, such as a hard disk or a memory of the computer device. In other embodiments, the computer readable storage medium may be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the computer device. Of course, the computer-readable storage medium may also include both internal and external storage devices of the computer device. In this embodiment, the computer-readable storage medium is generally used for storing an operating system and various types of application software installed in the computer device, for example, the program code of the multimedia file processing method in the embodiment, and the like. Further, the computer-readable storage medium may also be used to temporarily store various types of data that have been output or are to be output.
It will be apparent to those skilled in the art that the modules or steps of the embodiments of the present application described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different from that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, embodiments of the present application are not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (13)

1. A method for processing a multimedia file, comprising:
determining target transcoding time of each multimedia file to be audited;
determining the weight of the multimedia file according to the target transcoding time, and adding the multimedia file into a scheduling queue, wherein the weight determines the position of the multimedia file in the scheduling queue, and the weight can be dynamically adjusted;
and acquiring the multimedia file from the scheduling queue for auditing.
2. The multimedia file processing method of claim 1, further comprising:
and under the condition that the transcoding of the multimedia file is completed and the transcoded multimedia file is not checked, adjusting the weight of the transcoded multimedia file.
3. The method of claim 2, wherein the determining the weight of the multimedia file according to the target transcoding time comprises:
converting the target transcoding time to a first long integer;
and obtaining the weight of the multimedia file according to the first long integer.
4. The method of claim 3, wherein the deriving the weight of the multimedia file according to the first long integer comprises:
obtaining the basic weight of the multimedia file according to the first long integer;
and adjusting the basic weight according to the attribute of the multimedia file to obtain the weight of the multimedia file.
5. The method of claim 4, wherein the deriving the basis weight of the multimedia file according to the first long integer comprises:
adding an adjusting bit in front of and/or behind the first long integer, wherein the adjusting bit comprises a plurality of digits;
and forming a second long integer by using the adjusting bit and the first long integer, and using the second long integer as the basic weight of the multimedia file.
6. The method of claim 5, wherein the adjusting the basic weight according to the attribute of the multimedia file to obtain the weight of the multimedia file comprises:
and adjusting the adjusting bit and/or the first long integer in the basic weight according to the attribute of the multimedia file to obtain the weight of the multimedia file.
7. The method of claim 5, wherein the adjusting the weight of the transcoded multimedia file comprises:
adjusting the adjustment bits and/or the first long integer in the weights of the transcoded multimedia files.
8. The method of claim 7, wherein the adjusting the adjustment bits and/or the first long integer in the weights of the transcoded multimedia files comprises:
acquiring actual transcoding completion time of the transcoded multimedia file;
and regenerating a first long integer according to the actual transcoding completion time, and obtaining the weight of the transcoded multimedia file according to the regenerated first long integer.
9. The method for processing multimedia files according to any one of claims 1 to 8, wherein the determining the target transcoding time of each multimedia file to be audited comprises:
and acquiring the pre-estimated transcoding completion time of each multimedia file to be checked, and taking the pre-estimated transcoding completion time as the target transcoding time of the multimedia file.
10. The method for processing multimedia files according to any one of claims 1 to 8, wherein the determining the target transcoding time of each multimedia file to be audited comprises:
and under the condition that the multimedia file is a timing task, acquiring timing release time of the multimedia file, and taking the timing release time as target transcoding time of the multimedia file.
11. A multimedia file processing apparatus, comprising:
the first determining module is used for determining the target transcoding time of each multimedia file to be audited;
the second determining module is used for determining the weight of the multimedia file according to the target transcoding time and adding the multimedia file into a scheduling queue, wherein the weight determines the position of the multimedia file in the scheduling queue, and the weight can be dynamically adjusted;
and the auditing module is used for acquiring the multimedia file from the scheduling queue for auditing.
12. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor, when executing the computer program, is adapted to carry out the steps of the multimedia file processing method of any of claims 1 to 10.
13. A computer-readable storage medium, in which a computer program is stored which is executable by at least one processor to cause the at least one processor to perform the steps of the multimedia file processing method according to any one of claims 1 to 10.
CN202210288213.3A 2022-03-22 2022-03-22 Multimedia file processing method and device Active CN114710692B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210288213.3A CN114710692B (en) 2022-03-22 2022-03-22 Multimedia file processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210288213.3A CN114710692B (en) 2022-03-22 2022-03-22 Multimedia file processing method and device

Publications (2)

Publication Number Publication Date
CN114710692A true CN114710692A (en) 2022-07-05
CN114710692B CN114710692B (en) 2024-03-01

Family

ID=82168293

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210288213.3A Active CN114710692B (en) 2022-03-22 2022-03-22 Multimedia file processing method and device

Country Status (1)

Country Link
CN (1) CN114710692B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101651787A (en) * 2009-08-12 2010-02-17 北京中科大洋科技发展股份有限公司 Networking and documenting digital media program examining system
CN106447239A (en) * 2016-11-21 2017-02-22 北京字节跳动科技有限公司 Auditing method and device for data release
WO2017080168A1 (en) * 2015-11-13 2017-05-18 乐视控股(北京)有限公司 Video reviewing method and system
CN108512817A (en) * 2017-02-28 2018-09-07 北京大学 More video code conversion dispatching methods and device
CN110225373A (en) * 2019-06-13 2019-09-10 腾讯科技(深圳)有限公司 A kind of video reviewing method, device and electronic equipment
CN112148898A (en) * 2020-09-18 2020-12-29 京东数字科技控股股份有限公司 Data processing method and device for media content auditing
CN113158050A (en) * 2021-04-23 2021-07-23 南京诺飞尔信息科技有限公司 Suspected problem review, review and screening method and system and storage medium
CN113691839A (en) * 2021-08-26 2021-11-23 湖南快乐阳光互动娱乐传媒有限公司 Video file publishing method and device
CN113887869A (en) * 2021-09-01 2022-01-04 北京奇艺世纪科技有限公司 Multimedia data quality auditing and scheduling method and device and electronic equipment
CN114090236A (en) * 2021-10-27 2022-02-25 北京奇艺世纪科技有限公司 Multimedia production task processing method and device, electronic equipment and medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101651787A (en) * 2009-08-12 2010-02-17 北京中科大洋科技发展股份有限公司 Networking and documenting digital media program examining system
WO2017080168A1 (en) * 2015-11-13 2017-05-18 乐视控股(北京)有限公司 Video reviewing method and system
CN106447239A (en) * 2016-11-21 2017-02-22 北京字节跳动科技有限公司 Auditing method and device for data release
CN108512817A (en) * 2017-02-28 2018-09-07 北京大学 More video code conversion dispatching methods and device
CN110225373A (en) * 2019-06-13 2019-09-10 腾讯科技(深圳)有限公司 A kind of video reviewing method, device and electronic equipment
CN112148898A (en) * 2020-09-18 2020-12-29 京东数字科技控股股份有限公司 Data processing method and device for media content auditing
CN113158050A (en) * 2021-04-23 2021-07-23 南京诺飞尔信息科技有限公司 Suspected problem review, review and screening method and system and storage medium
CN113691839A (en) * 2021-08-26 2021-11-23 湖南快乐阳光互动娱乐传媒有限公司 Video file publishing method and device
CN113887869A (en) * 2021-09-01 2022-01-04 北京奇艺世纪科技有限公司 Multimedia data quality auditing and scheduling method and device and electronic equipment
CN114090236A (en) * 2021-10-27 2022-02-25 北京奇艺世纪科技有限公司 Multimedia production task processing method and device, electronic equipment and medium

Also Published As

Publication number Publication date
CN114710692B (en) 2024-03-01

Similar Documents

Publication Publication Date Title
US10872064B2 (en) Utilizing version vectors across server and client changes to determine device usage by type, app, and time of day
US11374995B2 (en) Multimedia file processing
CN110807128B (en) Video preloading method, device, equipment and storage medium
CN111611129B (en) Performance monitoring method and device of PaaS cloud platform
CN114401447A (en) Video stuck prediction method, device, equipment and medium
CN111490947A (en) Data packet transmitting method, data packet receiving method, system, device and medium
CN111756646A (en) Network transmission control method, network transmission control device, computer equipment and storage medium
CN113032410B (en) Data processing method, device, electronic equipment and computer storage medium
US20170013083A1 (en) Data processing method and apparatus used for terminal application
CN110008187B (en) File transmission scheduling method, device, equipment and computer readable storage medium
CN112650755A (en) Data storage method, method for querying data, database and readable medium
CN114710692B (en) Multimedia file processing method and device
CN114339252B (en) Data compression method and device
CN113326056B (en) Data processing method, data processing device, storage medium and processor
CN106487855B (en) File uploading method, file accessing method, file uploading device, file accessing device and equipment
CN112667393B (en) Method and device for building distributed task computing scheduling framework and computer equipment
CN112491939B (en) Multimedia resource scheduling method and system
US11182452B2 (en) Web acceleration via learning
CN114048059A (en) Method and device for adjusting timeout time of interface, computer equipment and storage medium
WO2020155538A1 (en) Video processing method and system, computer device and storage medium
CN113709214A (en) Message processing method and device, electronic equipment and storage medium
CN110119364B (en) Method and system for input/output batch submission
CN113891174B (en) Bandwidth statistics method and system for live video
CN108243091B (en) Information sharing device and information sharing method
CN117076119A (en) Super-calculation operation scheduling method and device, electronic equipment and storage medium

Legal Events

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