CN110365998B - Audio and video data publishing method and device, computer equipment and storage medium - Google Patents
Audio and video data publishing method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN110365998B CN110365998B CN201910524592.XA CN201910524592A CN110365998B CN 110365998 B CN110365998 B CN 110365998B CN 201910524592 A CN201910524592 A CN 201910524592A CN 110365998 B CN110365998 B CN 110365998B
- Authority
- CN
- China
- Prior art keywords
- information
- sub
- server
- audio
- video data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 80
- 238000012545 processing Methods 0.000 claims abstract description 114
- 238000012544 monitoring process Methods 0.000 claims abstract description 13
- 230000015654 memory Effects 0.000 claims description 37
- 238000004891 communication Methods 0.000 claims description 30
- 230000008569 process Effects 0.000 claims description 27
- 230000001360 synchronised effect Effects 0.000 claims description 17
- 238000012958 reprocessing Methods 0.000 claims description 15
- 230000008859 change Effects 0.000 claims description 11
- 238000012550 audit Methods 0.000 claims description 7
- 230000002194 synthesizing effect Effects 0.000 claims description 6
- 238000012795 verification Methods 0.000 claims description 6
- 230000005540 biological transmission Effects 0.000 claims 2
- 230000004044 response Effects 0.000 abstract description 4
- 230000008878 coupling Effects 0.000 abstract description 3
- 238000010168 coupling process Methods 0.000 abstract description 3
- 238000005859 coupling reaction Methods 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 5
- 230000000694 effects Effects 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 230000010365 information processing Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/222—Secondary servers, e.g. proxy server, cable television Head-end
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/233—Processing of audio elementary streams
- H04N21/2335—Processing of audio elementary streams involving reformatting operations of audio signals, e.g. by converting from one coding standard to another
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
- H04N21/2343—Processing 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/235—Processing of additional data, e.g. scrambling of additional data or processing content descriptors
- H04N21/2355—Processing of additional data, e.g. scrambling of additional data or processing content descriptors involving reformatting operations of additional data, e.g. HTML pages
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention relates to an audio and video data publishing method, an audio and video data publishing device, computer equipment and a storage medium, wherein the method comprises the following steps: the method comprises the steps that a first server obtains data information to be processed corresponding to audio and video data to be uploaded, and splits the data information into first sub information and second sub information; processing the first sub information; if the first sub information is successfully processed, the second sub information is sent to a second server in an asynchronous mode to be processed; monitoring the processing state of the second server on the second sub information; if the second sub-information is successfully processed, the uploading success message of the audio and video data is sent to the client, the information of the data to be processed is split, the response time is shortened, the asynchronous processing mode is adopted, the coupling is reduced, the processing stability of each link is improved, and the stability of the whole audio and video data issuing link is further improved.
Description
Technical Field
The embodiment of the invention relates to the field of audio and video processing, in particular to an audio and video data publishing method and device, computer equipment and a storage medium.
Background
With the improvement of living standard of people, more and more users select to watch contents which are rich and novel and interesting, and more users want to share the novel and interesting ideas of the users to other people, so that a plurality of application programs with similar functions are derived in succession.
The existing video publishing interface depends on more third-party services, and long time is needed from submission to synchronous return of information about whether video publishing is successful. Moreover, the whole calling link is long, a large number of third party teams are involved, and if any team on the calling link has a service stability problem, the whole issuing process fails, so that the existing synchronous interaction mode has the problems of long response time and large service stability fluctuation.
Disclosure of Invention
In view of this, to solve the above technical problems or some technical problems, embodiments of the present invention provide an audio and video data distribution method and apparatus, a computer device, and a storage medium.
In a first aspect, an embodiment of the present invention provides an audio and video data publishing method, including:
the method comprises the steps that a first server obtains data information to be processed corresponding to audio and video data to be uploaded, and splits the data information into first sub information and second sub information;
processing the first sub information;
if the first sub information is successfully processed, the second sub information is sent to a second server in an asynchronous mode to be processed;
monitoring the processing state of the second server on the second sub information;
and if the second sub information is successfully processed, sending an uploading success message of the audio and video data to a client.
In a possible embodiment, the sending the second sub information to the second server for processing in an asynchronous manner includes:
the first server determines at least one second server for establishing a communication link to be connected based on the second sub information;
the first server establishes a communication link with at least one second server through an interface;
and the first server sends the second sub information to the corresponding second server for processing in an asynchronous mode.
In one possible embodiment, the method further comprises:
and if the second sub-information is unsuccessfully processed, sending a reprocessing instruction to the second server, wherein the reprocessing instruction is used for indicating the second server to reprocess the unsuccessfully processed second sub-information.
In a possible embodiment, the sending the upload success message of the audio and video data to the client includes:
receiving a second processing success message based on the second sub-information returned by the second server;
synthesizing a first processing success message corresponding to the first sub-information with the second processing success message to generate an uploading success message of the audio and video data;
and sending the uploading success message to the client to indicate the client to change the state of the audio and video data in the state table into uploading success.
In one possible embodiment, the method further comprises:
and if the first sub-information is not successfully processed, sending an uploading failure message of the audio and video data to the client to indicate the client to change the state of the audio and video data in the state table into uploading failure.
In a possible implementation manner, the acquiring, by the first server, to-be-processed data information corresponding to-be-uploaded audio/video data, and splitting the data information into first sub information and second sub information includes:
the method comprises the steps that a first server receives a data uploading request sent by a client through an Application Programming Interface (API) in a synchronous mode, wherein the data uploading request carries audio and video data to be uploaded;
determining data information to be processed corresponding to the audio and video data to be uploaded according to the data uploading request;
and splitting the data information into first sub information and second sub information according to the processing capacity of the first server.
In a possible embodiment, the first server processes the first sub-information to perform verification and audit on the first sub-information by the first server;
and the second server processes the second sub information to verify and verify the second sub information by the second server.
In a second aspect, an embodiment of the present invention provides an audio/video data publishing device, including:
the acquisition module is used for acquiring data information to be processed corresponding to the audio and video data to be uploaded and splitting the data information into first sub information and second sub information;
the processing module is used for processing the first sub information;
the sending module is used for sending the second sub information to a second server for processing in an asynchronous mode if the first sub information is successfully processed;
the monitoring module is used for monitoring the processing state of the second server on the second sub information;
and the sending module is further used for sending the uploading success message of the audio and video data to the client if the second sub-information is successfully processed.
In a third aspect, an embodiment of the present invention provides a computer device, where the computer device includes a processor, a memory, and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute an automatic printing program stored in the memory, so as to implement any one of the audio/video data distribution methods of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a storage medium, where the storage medium stores one or more programs, and the one or more programs are executable by one or more processors to implement any of the audio-video data distribution methods described in the first aspect.
According to the audio and video data release scheme provided by the embodiment of the invention, the data information to be processed corresponding to the audio and video data to be uploaded is acquired through the first server, and the data information is divided into the first sub information and the second sub information; processing the first sub information; if the first sub information is successfully processed, the second sub information is sent to a second server in an asynchronous mode to be processed; monitoring the processing state of the second server on the second sub information; if the second sub-information is successfully processed, the uploading success message of the audio and video data is sent to the client, the information of the data to be processed is split, the response time is shortened, the asynchronous processing mode is adopted, the coupling is reduced, the processing stability of each link is improved, and the stability of the whole audio and video data issuing link is further improved.
Drawings
Fig. 1 is an application scenario diagram of an audio/video data distribution method according to an embodiment of the present invention;
fig. 2 is a schematic distribution diagram of a second server according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a method for publishing audio and video data according to an embodiment of the present invention;
fig. 4 is a schematic flow chart of another audio/video data distribution method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an audio/video data distribution device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. 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 invention.
For the convenience of understanding of the embodiments of the present invention, the following description will be further explained with reference to specific embodiments, which are not to be construed as limiting the embodiments of the present invention.
Fig. 1 is an application scenario diagram of an audio and video data publishing method provided in an embodiment of the present invention, as shown in fig. 1, specifically including:
the audio and video data publishing method is applied to publishing of audio and video by a user through a client, and the client processes the audio and video to be uploaded through a third-party server, and specifically processes director information, coding information, content information and the like of the audio and video; the third-party server comprises a first server and a second server, the first server directly interacts with the client, and the plurality of second servers directly interact with the first server.
Further, the client interacts with the first server in a synchronous manner through an Application Programming Interface (API), and the first server interacts with the second server in an asynchronous manner through the API.
Specifically, a client acquires audio and video data to be uploaded, determines data information corresponding to the audio and video data (a third-party server needs to check the data information), and a first server acquires the data information, splits the data information into first sub-information processed by the first server and second sub-information processed by a second server.
It should be noted that, in this embodiment, the second sub information may include multiple levels of sub information, for example, the second sub information is a, and includes second sub information a1, second sub information a2, …, and second sub information an, …, as shown in fig. 2, and correspondingly, the second server may include multiple levels of servers, for example, the second server a may include: the first-level second server a and the second-level second server a … N-level second server a …, wherein the first-level second server a correspondingly processes the second sub-information a1, the second-level second server a correspondingly processes the second sub-information a2, …, and the N-level second server a correspondingly processes the second sub-information an, ….
Fig. 3 is a schematic flow diagram of an audio and video data publishing method provided in an embodiment of the present invention, and as shown in fig. 3, the method specifically includes:
s31, the first server obtains data information to be processed corresponding to the audio and video data to be uploaded, and splits the data information into first sub information and second sub information.
In this embodiment, the first service acquires, through an API interface of the client, data information corresponding to audio and video data to be uploaded, where the data information may include: title, cover page, a sentence recommendation and the like, and the first server and the second server process the data information.
The first server splits the data information, and may split the data information according to a function processed by the server, for example, split the data information into first sub-information and second sub-information, where the first sub-information is information processed by the first server, and the second sub-information is information processed by the second server, for example, the first sub-information may be a unique video ID, a title falling disc, or the like, and the second sub-information may be submission of an audit, an increase of broadcast control information, or the like.
And S32, the first server processes the first sub-information.
And S33, if the first sub information is successfully processed, sending the second sub information to a second server in an asynchronous mode for processing.
The first server processes the split first sub-information, and the processing mode may be verification and audit of the first sub-information, if the first sub-information is successfully processed (that is, the first sub-information passes verification and audit), a processing result of the first sub-information is returned to the client, meanwhile, verification of the second sub-information is started, and the second sub-information is sent to the second server for processing in an asynchronous mode (that is, the second server performs verification and audit of the second sub-information).
It should be noted that: the asynchronous mode referred to in this embodiment means: after the first server sends an asynchronous call to the second server, the first server may perform a subsequent operation (e.g., the first server sends other second sub-information to other second servers) before the first server does not receive the processing result of the second server.
Further, in this embodiment, the second sub information may include a plurality of sub information (e.g., sub information 1, sub information 2, and sub information 3), the sub information 1 is sent to the second server 1 for processing in an asynchronous manner, and the first server may send the sub information 2 to the second server 2 for processing and send the sub information 3 to the second server 3 for processing without waiting for the result of the second server 1 processing the sub information 1; correspondingly, compared with a synchronous mode (the first server sends the sub-information 1 to the second server 1 for processing, and the first server sends the sub-information 2 to the second server 2 when needing to receive the processing result of the second server 1 on the sub-information 1), the stability in the whole audio and video data issuing process can be improved, and the processing time of each link is reduced.
And S34, the first server monitors the processing state of the second sub information by the second server.
In the process that the second server processes the second sub-information, the first server monitors the processing state of the second server, and the monitoring mode may be: actively acquiring or actively reporting, specifically comprising: and the first server sends a processing state query instruction to the second server in real time to indicate the second server to return the corresponding processing state of the second sub-information according to the state query instruction, or the second server actively reports the processing state of the second sub-information to the first server in real time.
And S35, if the second sub-information is successfully processed, sending an uploading success message of the audio and video data to the client.
And when the first server monitors that the second sub information is successfully processed, the first server sends an uploading success message of the audio and video data to the client if the data information of the audio and video data to be uploaded is processed.
According to the audio and video data release method provided by the embodiment of the invention, the data information to be processed corresponding to the audio and video data to be uploaded is obtained through the first server, and the data information is divided into the first sub information and the second sub information; processing the first sub information; if the first sub information is successfully processed, the second sub information is sent to a second server in an asynchronous mode to be processed; monitoring the processing state of the second server on the second sub information; if the second sub-information is successfully processed, the uploading success message of the audio and video data is sent to the client, the information of the data to be processed is split, the response time is shortened, the asynchronous processing mode is adopted, the coupling is reduced, the processing stability of each link is improved, and the stability of the whole audio and video data issuing link is further improved.
Fig. 4 is a schematic flow chart of another audio and video data publishing method provided in the embodiment of the present invention, and as shown in fig. 4, the method specifically includes:
and S41, the first server receives the data uploading request sent by the client through the application programming interface API in a synchronous mode.
In the present embodiment, the client may be implemented in various forms. For example, the client described in the embodiment of the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The first server and the second server are servers capable of providing certain service, the service can be used for processing data information, the first server and the second server are servers of a third party, when the data information needs to be processed, the first server or the second server calls the corresponding service, and the data information is processed through the service.
The client and the first server interact in a synchronous mode, and the client sends a data uploading request to the first server through an API (application programming interface), wherein the data uploading request carries audio and video data to be uploaded.
It should be noted that: the synchronization method in this embodiment refers to: after the client sends a synchronous call to the first server, the client cannot execute subsequent operations until the client does not receive the processing result of the first server.
And S42, determining the to-be-processed data information corresponding to the to-be-uploaded audio and video data according to the data uploading request.
The first server analyzes the data uploading request, and determines to-be-processed data information corresponding to-be-uploaded audio and video data, where the data information may be, but is not limited to: generating video unique IDs, titles, etc. for storage on the ground
And S43, splitting the data information into first sub information and second sub information according to the processing capacity of the first server.
The first server splits the data information according to the processing capacity of the server, and splits the data information into first sub-information and second sub-information, wherein the first sub-information is information processed by the first server, and the second sub-information is information processed by the second server, for example, the first sub-information may be information for generating a unique video ID, a title, and the like, and the second sub-information may be information for submitting an audit, adding broadcast control information, and the like.
And S44, processing the first sub information.
The first server calls a service corresponding to the first sub-information to process the first sub-information, and the specific processing mode can be that the first sub-information is verified and audited through the service, and whether the first sub-information of the audited audio/video data meets the issuing rule or not is verified and audited.
Further, when the first server and the client are interactive in a synchronous manner, the first server processes the first sub-information, and when the first server completes processing the first sub-information, the first server performs the related processing step of the second sub-information.
If the first sub information processing is successful, executing S45-S47; if the first sub information processing is unsuccessful, S48 is executed.
S45, if the first sub information is processed successfully, the first server determines at least one second server for establishing the communication link to be connected based on the second sub information.
S46, the first server establishes a communication link with at least one second server through an interface.
If the first sub-information is successfully processed, processing second sub-information, and determining at least one second server for establishing a communication link to be connected by the first server according to the type of the second sub-information, wherein the second sub-information comprises a, b and c; the second server a is a server only processing the second sub-information a, the second server b is a server only processing the second sub-information b, and the second server c is a server only processing the second sub-information c; the first server inquires a server for processing the type information according to the type of the second sub information a, determines a corresponding second server a, and establishes a communication link (the communication link is used for transmitting the second sub information a and the processing state of the second sub information a) with the second server a through an interface; the first server inquires a server for processing the type information according to the type of the second sub information b, and determines a corresponding second server b, wherein the first server establishes a communication link (the communication link is used for transmitting the second sub information b and the processing state of the second sub information b) with the second server b through an interface; the first server inquires a server for processing the type information according to the type of the second sub information c, and determines a corresponding second server c, and the first server establishes a communication link with the second server c through an interface (the communication link is used for transmitting the second sub information c and the processing state of the second sub information c).
And S47, the first server sends the second sub-information to the corresponding second server in an asynchronous mode for processing.
After the first server establishes a communication link with the second server, the first server sends the second sub-information to the corresponding second server for processing in an asynchronous manner, for example, the first server sends the second sub-information a to the second server a through the communication link a, the first server sends the second sub-information b to the second server b through the communication link b, and the first server sends the second sub-information c to the second server c through the communication link c.
The second server processes the second sub information, and the specific processing mode may be that the second server calls the service to verify and check the second sub information, so as to verify whether the second sub information of the checked audio/video data meets the release rule.
And S48, if the first sub-information is not successfully processed, sending an uploading failure message of the audio and video data to the client to indicate that the client changes the state of the audio and video data in the state table into uploading failure.
If the first sub-information is not successfully processed, the condition that the audio and video data to be uploaded is unqualified is represented, therefore, an uploading failure message of the audio and video data is sent to the client, the uploading failure message is displayed on a display interface of the client, the client is indicated to change the state of the audio and video data in the state table into uploading failure, and the user is reminded to upload the audio and video data again.
And S49, the first server monitors the processing state of the second sub information by the second server.
S49 is similar to S34 in fig. 3, and reference may be made to the description of the relevant steps in fig. 3 for brevity, which is not repeated herein.
S410, receiving a second processing success message based on the second sub information returned by the second server.
S411, synthesizing a first processing success message corresponding to the first sub-information with the second processing success message, and generating an uploading success message of the audio and video data.
S412, sending the uploading success message to the client to indicate that the client changes the state of the audio and video data in the state table into uploading success.
And when the second server successfully processes the second sub-information, the data information of the whole audio and video data is processed, and the processing is successful, the first server synthesizes the first processing success message and the received second processing success message to generate an uploading success message corresponding to the data information, wherein the uploading success message is used for indicating the successful uploading of the audio and video data.
And the first server transmits the uploading success message of the audio and video data to the client, and the client changes the state of the audio and video data in the state table into uploading success according to the uploading success message when receiving the uploading success message.
S413, if the second sub information is unsuccessfully processed, sending a reprocessing instruction to the second server, where the reprocessing instruction is used to instruct the second server to reprocess the unsuccessfully processed second sub information.
And if the first server monitors that the second sub information is unsuccessfully processed, sending a reprocessing instruction to the second server, determining, by the second server, the second sub information which is unsuccessfully verified and a corresponding node based on the reprocessing instruction, and reprocessing the second sub information which is unsuccessfully processed through the node.
For example, the second sub information includes: a1, a2 and a 3; the first-level second server A corresponding to the second sub information a1, the second-level second server A corresponding to the second sub information a2, and the third-level second server A corresponding to the second sub information a 3; if the processing of the second sub-information a2 is not successful, the node corresponding to the second sub-information a2 is determined to be the second-level second server a, and the second-level second server a is instructed to re-process the second sub-information a2 through the re-processing instruction.
In an alternative scheme of the embodiment of the present invention, if it is monitored that the number of times of unsuccessful processing of the second sub information exceeds a set threshold, an upload failure message of the audio and video data is sent to a client, where the upload failure message is used to indicate to upload the audio and video data again.
The set threshold may be: 3. 5, 7, etc., the specific value of the set threshold may be set according to actual requirements, and the embodiment of the present invention is not limited specifically.
Fig. 5 is a schematic structural diagram of an audio/video data distribution device according to an embodiment of the present invention, and as shown in fig. 5, the device specifically includes:
the acquisition module 501 is configured to acquire data information to be processed corresponding to audio/video data to be uploaded, and split the data information into first sub information and second sub information;
a processing module 502, configured to process the first sub information;
a sending module 503, configured to send the second sub information to a second server for processing in an asynchronous manner if the first sub information is successfully processed;
a monitoring module 504, configured to monitor a processing state of the second sub information by the second server;
the sending module 503 is further configured to send a successful upload message of the audio and video data to the client if the second sub-information is successfully processed.
Optionally, the sending module 503 is specifically configured to determine, by the first server, at least one second server that establishes a to-be-connected communication link based on the second sub-information; the first server establishes a communication link with at least one second server through an interface; and the first server sends the second sub information to the corresponding second server for processing in an asynchronous mode.
Optionally, the sending module 503 is further configured to send a reprocessing instruction to the second server if the second sub information is unsuccessfully processed, where the reprocessing instruction is used to instruct the second server to reprocess the unsuccessfully processed second sub information.
Optionally, the sending module 503 is specifically configured to receive a second processing success message based on the second sub information, which is returned by the second server; synthesizing a first processing success message corresponding to the first sub-information with the second processing success message to generate an uploading success message of the audio and video data; and sending the uploading success message to the client to indicate the client to change the state of the audio and video data in the state table into uploading success.
Optionally, the sending module 503 is further configured to send an upload failure message of the audio and video data to the client if the first sub information is not successfully processed, so as to instruct the client to change the state of the audio and video data in the state table to an upload failure.
Optionally, the obtaining module 501 is specifically configured to receive, by a first server, a data upload request sent by a client through an application programming interface API in a synchronous manner, where the data upload request carries audio and video data to be uploaded; determining data information to be processed corresponding to the audio and video data to be uploaded according to the data uploading request; and splitting the data information into first sub information and second sub information according to the processing capacity of the first server.
Optionally, the first server processes the first sub-information to verify and check the first sub-information by the first server; and the second server processes the second sub information to verify and verify the second sub information by the second server.
The audio/video data distribution device provided in this embodiment may be an audio/video data distribution device as shown in fig. 5, and may perform all the steps of the audio/video data distribution method shown in fig. 2 to 3, so as to achieve the technical effect of the audio/video data distribution method shown in fig. 2 to 3, and refer to the description related to fig. 2 to 4, which is not described herein again for brevity.
Fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the present invention, where the computer device 600 shown in fig. 6 includes: at least one processor 601, memory 602, at least one network interface 604, and other user interfaces 603. The various components in the mobile terminal 600 are coupled together by a bus system 605. It is understood that the bus system 605 is used to enable communications among the components. The bus system 605 includes a power bus, an audio and video data distribution bus, and a status signal bus, in addition to the data bus. For clarity of illustration, however, the various buses are labeled as bus system 605 in fig. 6.
The user interface 603 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, trackball, touch pad, or touch screen, among others.
It will be appreciated that the memory 602 in embodiments of the invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile memory may be a Read-only memory (ROM), a programmable Read-only memory (PROM), an erasable programmable Read-only memory (erasabprom, EPROM), an electrically erasable programmable Read-only memory (EEPROM), or a flash memory. The volatile memory may be a Random Access Memory (RAM) which functions as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (staticiram, SRAM), dynamic random access memory (dynamic RAM, DRAM), synchronous dynamic random access memory (syncronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM ), Enhanced Synchronous DRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and direct memory bus RAM (DRRAM). The memory 602 described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 602 stores the following elements, executable units or data structures, or a subset thereof, or an expanded set thereof: an operating system 6021 and application programs 6022.
The operating system 6021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application program 6022 includes various application programs such as a media player (MediaPlayer), a Browser (Browser), and the like, and is used to implement various application services. A program implementing the method of an embodiment of the invention can be included in the application program 6022.
In the embodiment of the present invention, by calling a program or an instruction stored in the memory 602, specifically, a program or an instruction stored in the application program 6022, the processor 601 is configured to execute the method steps provided by the method embodiments, for example, including:
acquiring data information to be processed corresponding to audio and video data to be uploaded, and splitting the data information into first sub information and second sub information; processing the first sub information; if the first sub information is successfully processed, the second sub information is sent to a second server in an asynchronous mode to be processed; monitoring the processing state of the second server on the second sub information; and if the second sub information is successfully processed, sending an uploading success message of the audio and video data to a client.
Optionally, the first server determines at least one second server establishing a communication link to be connected based on the second sub information; the first server establishes a communication link with at least one second server through an interface; and the first server sends the second sub information to the corresponding second server for processing in an asynchronous mode.
Optionally, if the second sub-information is unsuccessfully processed, a reprocessing instruction is sent to the second server, where the reprocessing instruction is used to instruct the second server to reprocess the unsuccessfully processed second sub-information.
Optionally, receiving a second processing success message based on the second sub-information returned by the second server; synthesizing a first processing success message corresponding to the first sub-information with the second processing success message to generate an uploading success message of the audio and video data; and sending the uploading success message to the client to indicate the client to change the state of the audio and video data in the state table into uploading success.
Optionally, if the first sub-information is not successfully processed, sending an upload failure message of the audio and video data to the client to instruct the client to change the state of the audio and video data in the state table to an upload failure.
Optionally, the first server receives a data uploading request sent by the client through an application programming interface API in a synchronous manner, where the data uploading request carries audio and video data to be uploaded; determining data information to be processed corresponding to the audio and video data to be uploaded according to the data uploading request; and splitting the data information into first sub information and second sub information according to the processing capacity of the first server.
Optionally, the first server processes the first sub-information to verify and check the first sub-information by the first server; and the second server processes the second sub information to verify and verify the second sub information by the second server.
The method disclosed by the above-mentioned embodiment of the present invention can be applied to the processor 601, or implemented by the processor 601. The processor 601 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 601. The processor 601 may be a general-purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software elements in the decoding processor. The software elements may be located in ram, flash, rom, prom, or eprom, registers, among other storage media that are well known in the art. The storage medium is located in the memory 602, and the processor 601 reads the information in the memory 602 and completes the steps of the method in combination with the hardware thereof.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, audio-visual data publishers, micro-audio video data publishers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented by means of units performing the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
The computer device provided in this embodiment may be a computer device as shown in fig. 6, and may execute all steps of the audio and video data publishing method shown in fig. 2 to 3, so as to achieve the technical effect of the audio and video data publishing method shown in fig. 2 to 3, and please refer to the related description of fig. 2 to 3 for brevity, which is not described herein again.
The embodiment of the invention also provides a storage medium (computer readable storage medium). The storage medium herein stores one or more programs. Among others, the storage medium may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the kind described above.
When one or more programs in the storage medium can be executed by one or more processors, the audio and video data distribution method executed on the audio and video data distribution device side is realized.
The processor is used for executing the audio and video data release program stored in the memory so as to realize the following steps of the audio and video data release method executed on the audio and video data release equipment side:
acquiring data information to be processed corresponding to audio and video data to be uploaded, and splitting the data information into first sub information and second sub information; processing the first sub information; if the first sub information is successfully processed, the second sub information is sent to a second server in an asynchronous mode to be processed; monitoring the processing state of the second server on the second sub information; and if the second sub information is successfully processed, sending an uploading success message of the audio and video data to a client.
Optionally, the first server determines at least one second server establishing a communication link to be connected based on the second sub information; the first server establishes a communication link with at least one second server through an interface; and the first server sends the second sub information to the corresponding second server for processing in an asynchronous mode.
Optionally, if the second sub-information is unsuccessfully processed, a reprocessing instruction is sent to the second server, where the reprocessing instruction is used to instruct the second server to reprocess the unsuccessfully processed second sub-information.
Optionally, receiving a second processing success message based on the second sub-information returned by the second server; synthesizing a first processing success message corresponding to the first sub-information with the second processing success message to generate an uploading success message of the audio and video data; and sending the uploading success message to the client to indicate the client to change the state of the audio and video data in the state table into uploading success.
Optionally, if the first sub-information is not successfully processed, sending an upload failure message of the audio and video data to the client to instruct the client to change the state of the audio and video data in the state table to an upload failure.
Optionally, the first server receives a data uploading request sent by the client through an application programming interface API in a synchronous manner, where the data uploading request carries audio and video data to be uploaded; determining data information to be processed corresponding to the audio and video data to be uploaded according to the data uploading request; and splitting the data information into first sub information and second sub information according to the processing capacity of the first server.
Optionally, the first server processes the first sub-information to verify and check the first sub-information by the first server; and the second server processes the second sub information to verify and verify the second sub information by the second server.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, a software module executed by a processor, or a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.
Claims (10)
1. An audio and video data release method is characterized by comprising the following steps:
the method comprises the steps that a first server obtains data information to be processed corresponding to audio and video data to be uploaded, and splits the data information into first sub information and second sub information;
processing the first sub information;
if the first sub-information is successfully processed, sending the second sub-information to a second server for processing in an asynchronous mode, wherein the asynchronous mode comprises the following steps: the transmission among a plurality of second sub information is independent of the processing result of any second sub information;
monitoring the processing state of the second server on the second sub information;
and if the second sub information is successfully processed, sending an uploading success message of the audio and video data to a client.
2. The method of claim 1, wherein the sending the second sub-information to a second server for processing in an asynchronous manner comprises:
the first server determines at least one second server for establishing a communication link to be connected based on the second sub information;
the first server establishes a communication link with at least one second server through an interface;
and the first server sends the second sub information to the corresponding second server for processing in an asynchronous mode.
3. The method of claim 1, further comprising:
and if the second sub-information is unsuccessfully processed, sending a reprocessing instruction to the second server, wherein the reprocessing instruction is used for indicating the second server to reprocess the unsuccessfully processed second sub-information.
4. The method according to claim 3, wherein the sending the upload success message of the audio and video data to the client comprises:
receiving a second processing success message based on the second sub-information returned by the second server;
synthesizing a first processing success message corresponding to the first sub-information with the second processing success message to generate an uploading success message of the audio and video data;
and sending the uploading success message to the client to indicate the client to change the state of the audio and video data in the state table into uploading success.
5. The method of claim 1, further comprising:
and if the first sub-information is not successfully processed, sending an uploading failure message of the audio and video data to the client to indicate the client to change the state of the audio and video data in the state table into uploading failure.
6. The method according to any one of claims 1 to 5, wherein the acquiring, by the first server, the to-be-processed data information corresponding to the to-be-uploaded audio/video data, and splitting the data information into first sub information and second sub information, includes:
the method comprises the steps that a first server receives a data uploading request sent by a client through an Application Programming Interface (API) in a synchronous mode, wherein the data uploading request carries audio and video data to be uploaded;
determining data information to be processed corresponding to the audio and video data to be uploaded according to the data uploading request;
and splitting the data information into first sub information and second sub information according to the processing capacity of the first server.
7. The method according to claim 6, wherein the first server processes the first sub-information to perform verification and audit on the first sub-information by the first server;
and the second server processes the second sub information to verify and verify the second sub information by the second server.
8. An audio-video data distribution device, comprising:
the acquisition module is used for acquiring data information to be processed corresponding to the audio and video data to be uploaded and splitting the data information into first sub information and second sub information;
the processing module is used for processing the first sub information;
a sending module, configured to send the second sub-information to a second server for processing in an asynchronous manner if the first sub-information is successfully processed, where the asynchronous manner includes: the transmission among a plurality of second sub information is independent of the processing result of any second sub information;
the monitoring module is used for monitoring the processing state of the second server on the second sub information;
and the sending module is further used for sending the uploading success message of the audio and video data to the client if the second sub-information is successfully processed.
9. A computer device, comprising a processor, a memory, and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is used for executing an automatic printing program stored in the memory so as to realize the audio and video data release method of any one of claims 1 to 7.
10. A storage medium, wherein the storage medium stores one or more programs, and the one or more programs are executable by one or more processors to implement the method for distributing audio-video data according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910524592.XA CN110365998B (en) | 2019-06-17 | 2019-06-17 | Audio and video data publishing method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910524592.XA CN110365998B (en) | 2019-06-17 | 2019-06-17 | Audio and video data publishing method and device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110365998A CN110365998A (en) | 2019-10-22 |
CN110365998B true CN110365998B (en) | 2021-09-28 |
Family
ID=68217377
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910524592.XA Active CN110365998B (en) | 2019-06-17 | 2019-06-17 | Audio and video data publishing method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110365998B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105653697A (en) * | 2015-12-30 | 2016-06-08 | 北京奇艺世纪科技有限公司 | Recommended word retrieval method and system |
CN107896224A (en) * | 2017-12-04 | 2018-04-10 | 宁波升维信息技术有限公司 | A kind of Web information issuance method based on dual link safety check |
CN109618198A (en) * | 2018-12-10 | 2019-04-12 | 网易(杭州)网络有限公司 | Live content reports method and device, storage medium, electronic equipment |
CN109861966A (en) * | 2018-12-06 | 2019-06-07 | 北京达佳互联信息技术有限公司 | Method, apparatus, terminal and the storage medium of processing status event |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8839327B2 (en) * | 2008-06-25 | 2014-09-16 | At&T Intellectual Property Ii, Lp | Method and apparatus for presenting media programs |
US20160014165A1 (en) * | 2015-06-24 | 2016-01-14 | Bandwidth.Com, Inc. | Mediation Of A Combined Asynchronous And Synchronous Communication Session |
-
2019
- 2019-06-17 CN CN201910524592.XA patent/CN110365998B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105653697A (en) * | 2015-12-30 | 2016-06-08 | 北京奇艺世纪科技有限公司 | Recommended word retrieval method and system |
CN107896224A (en) * | 2017-12-04 | 2018-04-10 | 宁波升维信息技术有限公司 | A kind of Web information issuance method based on dual link safety check |
CN109861966A (en) * | 2018-12-06 | 2019-06-07 | 北京达佳互联信息技术有限公司 | Method, apparatus, terminal and the storage medium of processing status event |
CN109618198A (en) * | 2018-12-10 | 2019-04-12 | 网易(杭州)网络有限公司 | Live content reports method and device, storage medium, electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN110365998A (en) | 2019-10-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11736749B2 (en) | Interactive service processing method and system, device, and storage medium | |
USRE48430E1 (en) | Two-dimensional code processing method and terminal | |
CN110399848A (en) | Video cover generation method, device and electronic equipment | |
US20220263884A1 (en) | System and method for encoding image data and other data types into one data format and decoding of same | |
CN110134880B (en) | Comment data providing method, comment data displaying method, comment data providing device, comment data displaying device, electronic equipment and storage medium | |
JP2014519632A (en) | Customized launch of application | |
CN112351350B (en) | Content display method, device, system, equipment and storage medium | |
CN112311841A (en) | Information pushing method and device, electronic equipment and computer readable medium | |
CN109726390B (en) | Document processing method, device, electronic equipment and storage medium | |
CN112312222A (en) | Video sending method and device and electronic equipment | |
CN109510881A (en) | Method, apparatus, electronic equipment and the readable storage medium storing program for executing of sharing files | |
CN110618848A (en) | Page display method, device, equipment and storage medium | |
CN112788090B (en) | Network resource transmission method, device and system | |
US20160203144A1 (en) | Method and System for Processing Associated Content | |
CN110909241B (en) | Information recommendation method, user identification recommendation method, device and equipment | |
US10484327B1 (en) | Systems and methods for presenting in-application messages | |
CN110351581B (en) | Data request processing method and device, terminal equipment and storage medium | |
AU2018403361B2 (en) | Data transmission | |
CN107222559B (en) | Information calling method | |
CN110365998B (en) | Audio and video data publishing method and device, computer equipment and storage medium | |
CN111078437B (en) | Remote calling method and device for verification codes, electronic equipment and readable storage medium | |
CN110266813B (en) | Data request processing method and device, terminal equipment and storage medium | |
US20170279749A1 (en) | Modular Communications | |
CN114257572A (en) | Data processing method and device, computer readable medium and electronic equipment | |
US11086592B1 (en) | Distribution of audio recording for social networks |
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 |