CN112788348A - On-demand method, device, equipment, system and storage medium - Google Patents

On-demand method, device, equipment, system and storage medium Download PDF

Info

Publication number
CN112788348A
CN112788348A CN202011615407.7A CN202011615407A CN112788348A CN 112788348 A CN112788348 A CN 112788348A CN 202011615407 A CN202011615407 A CN 202011615407A CN 112788348 A CN112788348 A CN 112788348A
Authority
CN
China
Prior art keywords
media processing
processing service
service unit
demand
audio
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.)
Pending
Application number
CN202011615407.7A
Other languages
Chinese (zh)
Inventor
刘奇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Feixun Digital Technology Co ltd
Original Assignee
Beijing Feixun Digital Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Feixun Digital Technology Co ltd filed Critical Beijing Feixun Digital Technology Co ltd
Priority to CN202011615407.7A priority Critical patent/CN112788348A/en
Publication of CN112788348A publication Critical patent/CN112788348A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • 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/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/2385Channel allocation; Bandwidth allocation

Abstract

The embodiment of the invention provides an on-demand method, an on-demand device, on-demand equipment, an on-demand system and a storage medium, wherein the method is applied to a signaling control service unit and comprises the following steps: if an on-demand request of an on-demand target encoder sent by a decoding unit of a terminal is received, judging whether a media processing service unit already pulls an audio/video stream of the target encoder; and if so, controlling the media processing service unit to transmit the pulled audio and video stream to the decoding unit based on the on-demand request. The technical scheme provided by the embodiment of the invention can reduce the use of network broadband resources and save the network broadband resources.

Description

On-demand method, device, equipment, system and storage medium
Technical Field
The embodiments of the present invention relate to on-demand technologies, and in particular, to an on-demand method, apparatus, device, system, and storage medium.
Background
Currently, in the on-demand method, the responsibility of the media processing service unit is audio and video stream negotiation and audio and video stream receiving and forwarding. Each request is carried out with a signaling negotiation, after each signaling negotiation is finished, the media processing service unit receives at least one path of audio and video stream, and then forwards the audio and video stream to the corresponding decoding unit, so that the audio and video stream is played at the terminal of the user.
In the related art, if different terminals request the same encoder, multiple video streams are generated, which occupies a large amount of network broadband resources and causes waste of the network broadband resources.
Disclosure of Invention
The embodiment of the invention provides a video-on-demand method, a video-on-demand device, video-on-demand equipment, a video-on-demand system and a storage medium, which can reduce the use of network broadband resources and save the network broadband resources.
In a first aspect, an embodiment of the present invention provides an on-demand method, where the method is applied to a signaling control service unit, and the method includes:
if an on-demand request of an on-demand target encoder sent by a decoding unit of a terminal is received, judging whether a media processing service unit already pulls an audio/video stream of the target encoder;
and if so, controlling the media processing service unit to transmit the pulled audio and video stream to the decoding unit based on the on-demand request.
In a second aspect, an embodiment of the present invention further provides an on-demand device, where the device is configured in a signaling control service unit, and the device includes:
the judgment module is used for judging whether the media processing service unit pulls the audio and video stream of the target encoder or not if receiving a request of requesting the target encoder sent by a decoding unit of the terminal;
and the control transmission module is used for controlling the media processing service unit to transmit the pulled audio and video stream to the decoding unit based on the on-demand request if the request is positive.
In a third aspect, an embodiment of the present invention provides a video-on-demand device, including the video-on-demand apparatus provided in the embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention provides an on-demand system, including the on-demand device provided in the embodiment of the present invention, where the system further includes at least one individual media processing service unit and at least one encoder.
In a fifth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the method provided by the present invention.
According to the technical scheme provided by the embodiment of the invention, if the on-demand request of the on-demand target encoder sent by the decoding unit is received, whether the media processing service unit pulls the audio and video stream of the target encoder or not is judged, if the media processing service unit is controlled to transmit the pulled audio and video stream to the decoding unit, under the condition that a plurality of terminals request the same encoder, the situation of generating repeated audio and video streams is avoided, the occupation of excessive network broadband resources is avoided, and the multiplexing of stream media is realized. The invention also adopts a media processing service unit technology of adding a plurality of media processing service units, corresponding media processing service units are distributed for the on-demand request in the plurality of media processing service units, the corresponding media processing service units are controlled to pull the audio and video stream from the corresponding encoders, and the media processing service units are controlled to transmit the pulled audio and video stream to the decoding unit sending the on-demand request, the performance of the whole media forwarding service is the sum of the performances of all the media processing service units, the performance bottleneck of the media processing service units can be avoided, the condition that more audio and video streams cannot be forwarded is avoided, the performance of the media processing service units can be expanded, and the performance of the system can be improved. The invention combines the stream multiplexing and the media processing service unit stacking, thereby not only improving the bandwidth utilization rate, but also improving the performance.
Drawings
FIG. 1a is a flow chart of prior art on demand;
FIG. 1b is a diagram illustrating a prior art encoder for multiple terminals to request a program;
FIG. 1c is a flow chart of a method for requesting video programs according to an embodiment of the present invention;
FIG. 2a is a flow chart of an on-demand method according to an embodiment of the present invention;
FIG. 2b is a diagram of multiple terminals ordering the same encoder in an embodiment of the present invention;
FIG. 3 is a flow chart of an on-demand method according to an embodiment of the present invention;
FIG. 4 is a block diagram of an embodiment of a video-on-demand apparatus;
FIG. 5 is a block diagram of an embodiment of a video-on-demand apparatus;
fig. 6 is a schematic structural diagram of an on-demand system according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
In the related art, a Session Initiation Protocol (SIP) on-demand method flow is an on-demand flow based on the SIP signaling standard, and as shown in fig. 1a, the on-demand flow may include the following flows:
wherein, the steps 1, 11, 12, 13, 14, and 15 are that the signaling control service unit establishes a media stream signaling process between the decoding unit and the media processing service unit in a B2BUA manner after receiving the request of the decoding unit, the steps 2 to 9 are that the signaling control service unit establishes a media stream signaling process between the encoder and the media processing service unit, the steps 24 to 27 are that the decoding unit disconnects the media stream signaling process between the decoding unit and the media processing service unit, and the steps 28 to 32 are that the signaling control service unit disconnects the media stream signaling process between the media processing service unit and the encoder.
The flow is described as follows:
step 1, the decoding unit sends an INVITE request (request for request) to the signaling control service unit, the request contains the target address of the encoder for request, and carries an SDP message body, and has a one-way media receiving attribute (revonly), the message header field shall carry a Subject field to indicate the initial initiator of the session (the message header carries the identification information of the decoding unit), and the s field in the SDP message body is "Play" to represent real-time request.
Step 2, after receiving the INVITE request, the signaling control service unit establishes a media link between the media processing service unit and the encoder, and sends the INVITE request to the media processing service unit, wherein the request does not carry an SDP message body.
And 3, after receiving the INVITE request of the signaling service unit, the media processing service unit replies a 200OK response message, wherein the response message carries an SDP message body, the message body describes the contents of IP, ports, media formats and the like of the media stream received by the media processing service unit, the media has a bidirectional media transceiving attribute (sendrecv), and the media attribute comprises an rtpid attribute.
And 4, after receiving the 200OK response message returned by the media processing service unit, the signaling control service unit sends an INVITE request to the encoder, wherein the request carries a Subject field indicating the initial initiator of the session, and the request carries an SDP message body in the 200OK response message replied by the media processing service unit in the message step 3, wherein the s field is 'Play' to represent real-time on-demand, and the media attribute can not contain rtpid attribute.
And 5, after the encoder receives the INVITE request of the signaling control service unit, the encoder returns a 180Ringing response message (optional).
And 6, after receiving the 180Ringing response message of the encoder, the signaling control service unit returns the 180Ringing response message (optional) to the decoding unit.
And 7, after receiving the INVITE request of the signaling control service unit, the encoder replies a 200OK response message, wherein the response message carries an SDP message body, the SDP message body describes the contents of IP (Internet protocol), ports, media formats and the like of the media stream sent by the encoder, and the media has a unidirectional media sending attribute (sendonly).
And 8, after receiving the 200OK response message returned by the encoder, the signaling control service unit sends an ACK request to the media processing service unit, wherein the request carries an SDP message body carried by the 200OK response message returned by the encoder in the step 7, and the process of establishing the INVITE session with the media processing service unit is completed.
And 9, after receiving the 200OK response message returned by the encoder, the signaling control service unit sends an ACK request to the encoder, wherein the request does not carry a message body, and the process of establishing the INVITE session with the encoder is completed.
Step 10, after the encoder establishes media connection with the media processing service unit, the signaling control service unit sends a device state notification (the device is in session and has media connection) to the application service unit.
And 11, after the encoder establishes media connection with the media processing service unit, the signaling control service unit sends an INVITE request to the media processing service unit, wherein the request carries the SDP message body carried in the step 1.
Step 12, after receiving the INVITE request, the media processing service unit replies a 200OK response message, where the response message carries an SDP message body, where the SDP message body describes the content of the media processing service unit receiving the media stream, such as IP, port, and media format, and the media has a unidirectional media sending attribute (sendonly), and the media attribute should include rtpid attribute.
Step 13, after the signaling control service unit receives the 200OK response message replied by the media processing service unit, the response message in step 12 is forwarded to the decoding unit.
And 14, the decoding unit sends an ACK request (without carrying an SDP message body) to the signaling control service unit to complete the establishment process of the INVITE session with the signaling control service unit.
And 15, the signaling control service unit forwards the ACK request in the step 14 to the media processing service unit to complete the INVITE session establishment process with the media processing service unit.
Step 16, after the decoding unit establishes media connection with the media processing service unit, the signaling control service unit sends the decoding device state (the device is in session and has media connection) to the application service unit.
And step 17, the signaling control service unit sends an exchange command (media forwarding) to the media processing service unit to realize video on demand monitoring.
And 18, after receiving the exchange command, the media processing service unit processes the exchange command and sends an operation response to the signaling control service unit according to the processing result.
And 19, the on-demand establishment is successful, the encoder and the decoding unit establish the unidirectional media stream forwarded by the media processing service unit, and the media processing service unit sends a channel state notification of the established media transmission to the signaling control service unit.
Step 20, the decoding unit sends UPDATE request to the signaling control service unit to UPDATE the session duration.
Step 21, after the signaling control service unit receives the UPDATE request, it should UPDATE the session duration and reply to the 200OK response message.
Step 22, the encoder sends an UPDATE request to the signaling control service unit to UPDATE the session duration.
Step 23, after the signaling control service unit receives the UPDATE request, it should UPDATE the session duration and reply to the 200OK response message.
And step 24, the user finishes the request, the decoding unit sends a BYE message to the signaling control service unit, and the INVITE session which is established in the steps 1, 13 and 14 and is connected with the decoding unit is disconnected.
And step 25, the signaling control service unit replies a 200OK response message after receiving the BYE message, and the session is disconnected.
And step 26, the signaling control service unit sends a BYE message to the media processing service unit, and disconnects the INVITE session established in steps 11, 12 and 15 with the media processing service unit.
Step 27, the media processing service unit replies 200OK response message after receiving the BYE message, and the session is disconnected.
And 28, after the decoding unit and the media processing service unit disconnect the media connection, the signaling control service unit sends a device state notice (device on-line) to the application service unit.
And step 29, the signaling control service unit sends a BYE message to the media processing service unit, and disconnects the INVITE session established in the steps 2, 3 and 8 and the media processing service unit.
Step 30, the media processing service unit replies 200OK response message after receiving the BYE message, and the session is disconnected.
Step 31, the media processing service unit sends a channel state notification of media transmission termination to the signaling control service unit.
And step 32, the signaling control service unit sends a BYE message to the encoder and disconnects the INVITE session established in the steps 4, 7 and 9 and with the encoder.
And step 33, the encoder replies a 200OK response message after receiving the BYE message, and the session is disconnected.
Step 34, after the encoder disconnects the media from the media processing service unit, the signaling control service unit sends a device status notification (device on-line) to the application service unit.
It should be noted that the media stream may be an audio/video stream.
In the above on-demand method, the responsibility of the media processing service unit is audio and video stream negotiation and audio and video stream receiving and forwarding. Each request is carried out with a signaling negotiation, after each signaling negotiation is finished, the media processing service unit receives at least one path of audio and video stream, and then forwards the audio and video stream to the corresponding decoding unit, so that the audio and video stream is played at the terminal of the user. If different terminals request the same encoder, multiple video streams will be generated, which occupies a large amount of network broadband resources and results in the waste of network broadband resources. As shown in fig. 1b, audio and video streams generated by the same encoder at the same time are the same, and different terminals 400 request the same encoder 300, as shown in fig. 1b, the encoder 300 pushes three audio and video streams to the media processing service unit 200 based on the same network line, which occupies a large amount of network broadband resources and causes waste of network broadband resources.
In order to solve the above problem, fig. 1c is a flowchart of a video-on-demand method provided by an embodiment of the present invention, where the method may be performed by a video-on-demand device, the device may be implemented by software and/or hardware, and the device may be configured in a signaling control service unit. The signaling control service unit can be configured in background on-demand equipment which can be a server; the method can be applied to the situation that a plurality of terminals request the same encoder in a video monitoring scene.
S110: and if an on-demand request of an on-demand target encoder sent by a decoding unit of the terminal is received, judging whether the media processing service unit already pulls the audio and video stream of the target encoder.
In the embodiment of the invention, after one terminal requests the target encoder, if other terminals also request the target encoder, the condition that a plurality of terminals request the encoders occurs, at the moment, the audio and video stream of the encoder is pushed to the media processing service unit, the audio and video stream can be multiplexed, and a core audio and video stream does not need to be pulled from the target encoder again. The method comprises the following steps: if the signaling control service unit receives a request of requesting the target encoder sent by a decoding unit of the terminal, the signaling control service unit judges whether the media processing service unit pulls the audio and video stream of the target encoder. If the media processing service unit is judged to pull the audio/video stream of the target encoder, the decoding unit of the terminal requests the target encoder; and if the media processing service unit judges that the audio/video stream of the target encoder is not pulled, the fact that no decoding unit of the terminal requests the target encoder is indicated.
In an implementation manner of the embodiment of the present invention, optionally, the determining whether the media processing service unit has pulled the audio/video stream of the target encoder includes: judging whether the target encoder has on-demand records or not; if yes, the media processing service unit judges that the audio and video stream of the target encoder is pulled; if not, the media processing service unit judges that the audio and video stream of the target encoder is not pulled. And if the on-demand record of the target encoder exists, the corresponding media processing service unit judges that the audio/video stream of the target encoder is pulled by the corresponding media processing service unit.
S120: and if so, controlling the media processing service unit to transmit the pulled audio and video stream to the decoding unit based on the on-demand request.
In the embodiment of the invention, if the media processing service unit judges that the audio/video stream of the target encoder is pulled by the media processing service unit, the media processing service unit does not need to pull the audio/video stream of the target encoder again, directly transmits the pulled audio/video stream to the decoding unit of the terminal, processes the audio/video stream through the decoding unit, and plays the audio/video stream on the terminal so as to realize monitoring.
In an implementation manner of the embodiment of the present invention, optionally, controlling, based on the on-demand request, a media processing service unit to transmit the pulled audio/video stream to the decoding unit includes: sending the on-demand request to a media processing service unit, wherein the on-demand request carries the identification information of the decoding unit; receiving a response message of the media processing service unit, and sending the response message to a decoding unit corresponding to the identification information; receiving the confirmation message sent by the decoding unit and sending the confirmation message to a media processing service unit; and sending an exchange instruction to a media processing service unit, transmitting the pulled audio and video stream to a decoding unit corresponding to the identification information through the media processing service unit based on the exchange instruction, and processing the audio and video stream through the decoding unit based on the parameter information.
The request for requesting may be an INVITE request, and the request for requesting may also carry a target address of the target encoder, may also carry other information, and the like. The acknowledgement message may be an ACK request.
In the embodiment of the invention, the signaling control service unit receives the on-demand request and sends the on-demand request to the media processing service unit, but the on-demand request is not sent to the target encoder so that the target encoder pushes the audio and video stream again, but the audio and video stream of the target encoder which is pulled by the media processing service unit is directly used, so that repeated audio and video streams cannot be generated, and excessive network broadband resources cannot be occupied.
According to the technical scheme provided by the embodiment of the invention, if the on-demand request of the on-demand target encoder sent by the decoding unit is received, whether the media processing service unit pulls the audio and video stream of the target encoder or not is judged, if the media processing service unit is controlled to transmit the pulled audio and video stream to the decoding unit, under the condition that a plurality of terminals request the same encoder, the situation of generating repeated audio and video streams is avoided, the occupation of excessive network broadband resources is avoided, and the network broadband resources can be used.
In order to describe the technical solution of the embodiment of the present invention more clearly, as shown in fig. 2a, the flow of the on-demand method provided by the embodiment of the present invention includes the following steps:
step 1, a decoding unit sends an INVITE request (request for request) to a signaling control service unit, wherein the request comprises a target address of a target encoder for request, carries an SDP message body and has a one-way media receiving attribute (revonly), a message header field carries a Subject field to indicate an initial initiator of a session (the message header carries identification information of the decoding unit), and an s field in the SDP message body is 'Play' to represent real-time request.
Step 2, the signaling control service unit judges whether the media processing service unit has pulled the audio/video stream of the target encoder, if the audio/video stream of the target encoder exists, the audio/video stream of the target encoder is directly transmitted to the decoding unit according to the flow shown in fig. 2 a; if the audio/video stream of the target encoder does not exist, the audio/video stream of the target encoder is pulled according to the flow shown in fig. 1a, and then is transmitted to the decoding unit. Specifically, the signaling control service unit sends an INVITE request to the media processing service unit, where the INVITE request carries the SDP body in step 1.
And 3, after receiving the INVITE request, the media processing service unit replies a 200OK response message, wherein the response message carries an SDP message body which describes the contents of IP (Internet protocol), ports, media formats and the like of the media stream (audio and video stream) received by the media processing service unit, and the media has a one-way media sending attribute (sendonly) which comprises an rtpid attribute.
And 4, after the signaling control service unit receives the 200OK response message replied by the media processing service unit, the response message is forwarded to the decoding unit.
And 5, the decoding unit sends an ACK request (without carrying an SDP message body) to the signaling control service unit to complete the establishment process of the INVITE session with the signaling control service unit.
And 6, the signaling control service unit forwards the ACK request in the step 5 to the media processing service unit to complete the INVITE session establishment process with the media processing service unit.
And 7, the signaling control service unit sends an exchange command (media forwarding) to the media processing service unit to realize on-demand monitoring of the audio and video.
And 8, the media processing service unit transmits the pulled target encoder audio/video stream to the decoding unit.
According to the technical scheme provided by the embodiment of the invention, the INVITE request does not need to be sent to the corresponding encoder, but the audio and video stream pushed by the encoder in the last on-demand playing is multiplexed. As shown in fig. 2b, when there are a plurality of terminals 400 ordering the same encoder 300, there is only one path of audio/video stream from the encoder 300 to the media processing service unit 200, and the path of audio/video stream is sent to the plurality of terminals 400.
Fig. 3 is a flowchart of an on-demand method according to an embodiment of the present invention, which may be applied to a video monitoring scenario where a terminal requests different encoders, and optionally, the method may be applied to a situation where one or more terminals request different encoders. In this embodiment, the method provided in the embodiment of the present invention may further include:
if the media processing service unit is judged not to pull the audio/video stream of the target encoder, distributing a corresponding media processing service unit for the on-demand request in a plurality of media processing service units;
and controlling a corresponding media processing service unit to pull audio and video streams from a corresponding encoder, and controlling the media processing service unit to transmit the pulled audio and video streams to a decoding unit which sends the on-demand request. As shown in fig. 3, the technical solution provided by the embodiment of the present invention includes:
s310: and if an on-demand request of an on-demand target encoder sent by a decoding unit of the terminal is received, judging whether the media processing service unit already pulls the audio and video stream of the target encoder.
If yes, go to S320, otherwise, go to S330.
S320: and controlling the media processing service unit to transmit the pulled audio and video stream to the decoding unit based on the on-demand request.
Wherein, S310 and S330 can be detailed in the description of the above embodiments.
S330: and distributing a corresponding media processing service unit for the on-demand request in a plurality of media processing service units.
In the embodiment of the present invention, if the signaling control service unit determines that the media processing service unit does not pull the audio/video stream of the encoder, which indicates that the encoder is not requested, the signaling control service unit may allocate a corresponding media processing service unit for the request based on a preset algorithm (e.g., a media stacking algorithm) in the multiple media processing service units, so that the corresponding media processing service unit processes the request. Wherein the number of media processing service units may be at least two. And if the signaling control service unit judges that the media processing service unit already pulls the audio and video stream of the target encoder, the media processing service unit is controlled to transmit the pulled audio and video stream to the decoding unit based on the on-demand request of the target encoder. The specific procedures can be referred to the description of the above embodiments.
In an implementation manner of the embodiment of the present invention, optionally, the allocating, among the plurality of media processing service units, a corresponding media processing service unit for the on-demand request includes: the on-demand requests are evenly distributed to a plurality of media processing service units in sequence; or randomly selecting a media processing service unit from a plurality of media processing service units which do not reach the maximum forwarding amount, and distributing the on-demand request to the selected media processing service unit; or selecting the media processing service unit which does not reach the maximum forwarding amount and has the highest priority from the plurality of media processing service units, and distributing the on-demand request to the selected media processing service unit.
In the embodiment of the present invention, optionally, a corresponding media processing service unit may be allocated for each on-demand request based on the average allocation policy. Specifically, the on-demand requests may be evenly distributed to the multiple media processing service units in sequence, for example, each on-demand request is evenly distributed to the media processing service unit 1 to the media processing service unit n, and if a decoding unit of a different terminal requests the same encoder, the media processing service unit of the pulled encoder is preferentially negotiated and forwarded with the audio/video stream, and the specific flow may refer to the description of the foregoing embodiment.
In the embodiment of the present invention, optionally, a corresponding media processing service unit may be allocated for the on-demand request based on a random allocation policy. Specifically, it may be determined whether there is an audio/video stream of a certain target encoder that has been pulled by the media processing service unit on demand in all the media processing service units, and if so, the media processing service unit that has pulled the video stream of the target encoder is preferentially used to transmit the pulled audio/video stream to the decoding unit based on the demand request. If the media processing service unit which has pulled the encoder video stream is not found, one of the media processing service units which does not reach the maximum forwarding amount is randomly selected, the on-demand request is distributed to the randomly selected media processing service unit, and the on-demand request is processed through the media processing service unit, so that the negotiation and the forwarding of the audio/video stream are realized (steps 1-19 shown in fig. 1 a).
In the embodiment of the present invention, optionally, a corresponding media processing service unit may be allocated to the on-demand request based on the priority usage policy, and specifically, if the background device (which may be a server) has the priority of the media processing service unit, the media processing service unit with the highest priority may be allocated to the on-demand request that is not received at present and has the maximum forwarding amount. When the media processing service unit reaches the maximum forwarding amount, the received on-demand request is distributed to the media processing service unit with the second priority, so that the media processing service unit processes the on-demand request to implement negotiation and forwarding of audio/video stream (the specific process may refer to steps 1-19 shown in fig. 1 a).
Therefore, by distributing the corresponding media processing service units in the multicast requests among the plurality of media processing service units, when a performance bottleneck occurs in one media processing service unit, the performance can be expanded through other media processing service units, the performance of the media processing service units can be more conveniently expanded, and the performance of the system is improved; under the condition of ordering different encoders, if the signaling control service unit judges that the media processing service unit pulls the audio and video stream of the target encoder, the media processing service unit is controlled to transmit the pulled audio and video stream to the decoding unit based on the ordering request of the target encoder, namely, the pulled audio and video stream is sent to the decoding unit, so that repeated audio and video streams cannot be generated, and the occupation of a network broadband can be greatly reduced.
S340: and controlling a corresponding media processing service unit to pull audio and video streams from a corresponding encoder, and controlling the media processing service unit to transmit the pulled audio and video streams to a decoding unit which sends the on-demand request.
In the embodiment of the present invention, after the on-demand request is allocated to the corresponding media processing service unit, the signaling control service unit controls the corresponding media processing service unit to pull the audio and video stream from the corresponding encoder, and controls the media processing service unit to transmit the pulled audio and video stream to the decoding unit corresponding to the on-demand request. The specific process may refer to the flow shown in fig. 1a, may refer to steps 1-19 shown in fig. 1a, or other methods in the related art.
Therefore, the corresponding media processing service units are distributed to the on-demand request in the plurality of media processing service units, the corresponding media processing service units are controlled to pull the audio and video streams from the corresponding encoders, and the media processing service units are controlled to transmit the pulled audio and video streams to the decoding unit sending the on-demand request, so that the performance bottleneck of the media processing service units can be avoided, the condition that more audio and video streams cannot be forwarded is avoided, the performance of the media processing service units can be expanded, and the performance of the system can be improved.
Fig. 4 is a flowchart of an on-demand method according to an embodiment of the present invention, which can be applied to a case where there are multiple media processing service units in this embodiment.
Optionally, the determining whether the media processing service unit has pulled the audio/video stream of the target encoder is performed;
judging whether the target encoder has on-demand records or not;
the controlling the media processing service unit to transmit the pulled audio and video stream to the decoding unit based on the on-demand request comprises:
and in a plurality of media processing service units, determining a media processing service unit which pulls the audio and video stream of the target encoder based on the on-demand record of the target encoder, and controlling the determined media processing service unit to transmit the pulled audio and video stream to the decoding unit based on the on-demand request.
As shown in fig. 4, the technical solution provided by the embodiment of the present invention includes:
s410: and if an on-demand request of an on-demand target encoder sent by a decoding unit of the terminal is received, judging whether the target encoder has an on-demand record.
And if the on-demand record of the target encoder exists, the corresponding media processing service unit judges that the audio/video stream of the target encoder is pulled by the corresponding media processing service unit.
S420: if yes, in the multiple media processing service units, determining a media processing service unit which pulls the audio and video stream of the target encoder based on the on-demand record of the target encoder, and controlling the determined media processing service unit to transmit the pulled audio and video stream to the decoding unit based on the on-demand request.
In the embodiment of the present invention, in the case that there are multiple media processing service units, the media processing service unit corresponding to the target encoder may be determined based on the on-demand record of the target encoder, and then it may be determined that the media processing service unit corresponding to the target encoder has pulled the audio/video stream of the target encoder. The above-mentioned embodiments may be referred to for the introduction of "controlling the determined media processing service unit to transmit the pulled audio/video stream to the decoding unit based on the on-demand request".
It should be noted that the embodiment of the present invention is not limited to the technical solutions formed by S410 and S420, and in other embodiments, S410-S420 may also be combined with the alternatives of the above embodiments.
Fig. 5 is a block diagram of an on-demand device configured in a signaling control service unit according to an embodiment of the present invention, where the device includes: a decision block 510 and a control transfer block 520.
A judging module 510, configured to judge whether a media processing service unit has pulled an audio/video stream of a target encoder if an on-demand request of an on-demand target encoder sent by a decoding unit of a terminal is received;
and a control transmission module 520, configured to control, if yes, the media processing service unit to transmit the pulled audio/video stream to the decoding unit based on the on-demand request.
Optionally, controlling, based on the on-demand request, a media processing service unit to transmit the pulled audio/video stream to the decoding unit includes:
sending the on-demand request to a media processing service unit, wherein the on-demand request carries the identification information of the decoding unit;
receiving a response message of the media processing service unit, and sending the response message to a decoding unit corresponding to the identification information;
receiving the confirmation message sent by the decoding unit and sending the confirmation message to a media processing service unit;
and sending an exchange instruction to a media processing service unit, transmitting the pulled audio and video stream to a decoding unit corresponding to the identification information through the media processing service unit based on the exchange instruction, and processing the audio and video stream through the decoding unit based on the parameter information.
Optionally, the determining module 510 is further configured to allocate, in the multiple media processing service units, a corresponding media processing service unit for the on-demand request if it is determined that the media processing service unit does not pull the audio/video stream of the target encoder;
the control transmission module 520 is further configured to control the corresponding media processing service unit to pull the audio and video stream from the corresponding encoder, and control the media processing service unit to transmit the pulled audio and video stream to the decoding unit that sends the on-demand request.
Optionally, the determining whether the media processing service unit has pulled the audio/video stream of the target encoder is performed;
judging whether the target encoder has on-demand records or not;
the controlling the media processing service unit to transmit the pulled audio and video stream to the decoding unit based on the on-demand request comprises:
and in a plurality of media processing service units, determining a media processing service unit which pulls the audio and video stream of the target encoder based on the on-demand record of the target encoder, and controlling the determined media processing service unit to transmit the pulled audio and video stream to the decoding unit based on the on-demand request.
Optionally, the on-demand recording includes a correspondence between the encoder and the media processing service unit.
Optionally, the allocating, in the multiple media processing service units, a corresponding media processing service unit for the on-demand request includes:
the on-demand requests are evenly distributed to a plurality of media processing service units in sequence; alternatively, the first and second electrodes may be,
randomly selecting a media processing service unit from a plurality of media processing service units which do not reach the maximum forwarding amount, and distributing the on-demand request to the selected media processing service unit; alternatively, the first and second electrodes may be,
and selecting the media processing service unit which does not reach the maximum forwarding amount and has the highest priority from the plurality of media processing service units, and distributing the on-demand request to the selected media processing service unit.
The device can execute the method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
The embodiment of the present invention provides a video-on-demand device, where the video-on-demand device provided in the above embodiment of the present invention is configured in a signaling control service unit, and the device may further include an application service unit, or other units.
The embodiment of the invention provides a video-on-demand system, which can comprise video-on-demand equipment provided by the embodiment of the invention, and the video-on-demand equipment can comprise a video-on-demand device provided by the embodiment of the invention, wherein the system can be a fusion communication platform system, and can multiplex audio and video streams under the condition that a plurality of terminals play on the same encoder, and can ensure certain audio and video quality under the low-broadband environment.
Optionally, fig. 6 is a schematic structural diagram of a video-on-demand system according to an embodiment of the present invention, where the system includes the video-on-demand apparatus according to an embodiment of the present invention, where the video-on-demand device is configured in the signaling control service unit 100, and the system may further include at least one media processing service unit 200 and at least one encoder 300. The system can be an integrated audio and video scheduling transmission system, and the media processing service unit can be a media processing service unit externally arranged outside the on-demand equipment (server) provided by the embodiment of the invention.
Among them, as shown in fig. 6, in the case where there are one or more terminals 400 ordering different encoders 300, a plurality of media processing service units 200 may be included in the system. When one of the media processing service units has a performance bottleneck, the performance of media forwarding and the like can be realized through the other media processing service units, the performance of the media processing service units can be expanded, and the overall performance of the system can be improved, wherein the performance of the media forwarding service is the sum of the performance of the media forwarding service of all the media processing service units.
An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements an on-demand method according to an embodiment of the present invention:
if an on-demand request of an on-demand target encoder sent by a decoding unit of a terminal is received, judging whether a media processing service unit already pulls an audio/video stream of the target encoder;
and if so, controlling the media processing service unit to transmit the pulled audio and video stream to the decoding unit based on the on-demand request.
Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. An on-demand method applied to a signaling control service unit, the method comprising:
if an on-demand request of an on-demand target encoder sent by a decoding unit of a terminal is received, judging whether a media processing service unit already pulls an audio/video stream of the target encoder;
and if so, controlling the media processing service unit to transmit the pulled audio and video stream to the decoding unit based on the on-demand request.
2. The method of claim 1, wherein controlling a media processing service unit to transmit the audio/video stream that has been pulled to the decoding unit based on the on-demand request comprises:
sending the on-demand request to a media processing service unit, wherein the on-demand request carries the identification information of the decoding unit;
receiving a response message of the media processing service unit, and sending the response message to a decoding unit corresponding to the identification information;
receiving the confirmation message sent by the decoding unit, and sending the confirmation message to the media processing service unit;
and sending an exchange instruction to the media processing service unit, transmitting the pulled audio and video stream to a decoding unit corresponding to the identification information through the media processing service unit based on the exchange instruction, and processing the audio and video stream through the decoding unit.
3. The method of claim 1, further comprising:
if the media processing service unit is judged not to pull the audio/video stream of the target encoder, distributing a corresponding media processing service unit for the on-demand request in a plurality of media processing service units;
and controlling a corresponding media processing service unit to pull audio and video streams from a corresponding encoder, and controlling the media processing service unit to transmit the pulled audio and video streams to a decoding unit which sends the on-demand request.
4. The method of claim 1, wherein the determining whether the media processing service unit has pulled the audio/video stream of the target encoder;
judging whether the target encoder has on-demand records or not;
the controlling the media processing service unit to transmit the pulled audio and video stream to the decoding unit based on the on-demand request comprises:
and in a plurality of media processing service units, determining a media processing service unit which pulls the audio and video stream of the target encoder based on the on-demand record of the target encoder, and controlling the determined media processing service unit to transmit the pulled audio and video stream to the decoding unit based on the on-demand request.
5. The method of claim 4, wherein the on-demand recording comprises a correspondence of the encoder to the media processing service.
6. The method of claim 4, wherein said allocating the corresponding media processing service unit among the plurality of media processing service units for the on-demand request comprises:
the on-demand requests are evenly distributed to a plurality of media processing service units in sequence; alternatively, the first and second electrodes may be,
randomly selecting a media processing service unit from a plurality of media processing service units which do not reach the maximum forwarding amount, and distributing the on-demand request to the selected media processing service unit; alternatively, the first and second electrodes may be,
and selecting the media processing service unit which does not reach the maximum forwarding amount and has the highest priority from the plurality of media processing service units, and distributing the on-demand request to the selected media processing service unit.
7. An on-demand device configured at a signaling control service, the device comprising:
the judgment module is used for judging whether the media processing service unit pulls the audio and video stream of the target encoder or not if receiving a request of requesting the target encoder sent by a decoding unit of the terminal;
and the control transmission module is used for controlling the media processing service unit to transmit the pulled audio and video stream to the decoding unit based on the on-demand request if the request is positive.
8. A jukebox device, comprising the apparatus of claim 7.
9. An on-demand system comprising the on-demand apparatus of claim 8, the system further comprising at least one media processing service and at least one encoder.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 6.
CN202011615407.7A 2020-12-30 2020-12-30 On-demand method, device, equipment, system and storage medium Pending CN112788348A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011615407.7A CN112788348A (en) 2020-12-30 2020-12-30 On-demand method, device, equipment, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011615407.7A CN112788348A (en) 2020-12-30 2020-12-30 On-demand method, device, equipment, system and storage medium

Publications (1)

Publication Number Publication Date
CN112788348A true CN112788348A (en) 2021-05-11

Family

ID=75754141

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011615407.7A Pending CN112788348A (en) 2020-12-30 2020-12-30 On-demand method, device, equipment, system and storage medium

Country Status (1)

Country Link
CN (1) CN112788348A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113489717A (en) * 2021-07-02 2021-10-08 北京飞讯数码科技有限公司 Internal and external network intercommunication method, device, equipment and storage medium based on SIP protocol

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110010741A1 (en) * 2008-03-21 2011-01-13 Liao Yongxiong Method, system and device for controlling interactive video service
CN109802932A (en) * 2017-11-17 2019-05-24 华为技术有限公司 A kind of method and apparatus of cast communication
CN110971873A (en) * 2019-11-20 2020-04-07 武汉虹信技术服务有限责任公司 Real-time monitoring method, monitoring system and storage medium
CN111818360A (en) * 2020-09-14 2020-10-23 平安国际智慧城市科技股份有限公司 Media on-demand method, system and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110010741A1 (en) * 2008-03-21 2011-01-13 Liao Yongxiong Method, system and device for controlling interactive video service
CN109802932A (en) * 2017-11-17 2019-05-24 华为技术有限公司 A kind of method and apparatus of cast communication
CN110971873A (en) * 2019-11-20 2020-04-07 武汉虹信技术服务有限责任公司 Real-time monitoring method, monitoring system and storage medium
CN111818360A (en) * 2020-09-14 2020-10-23 平安国际智慧城市科技股份有限公司 Media on-demand method, system and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113489717A (en) * 2021-07-02 2021-10-08 北京飞讯数码科技有限公司 Internal and external network intercommunication method, device, equipment and storage medium based on SIP protocol

Similar Documents

Publication Publication Date Title
US9906573B2 (en) Streaming media
RU2530016C2 (en) Content localisation method and content delivery network node
JP5064414B2 (en) Bi-directional media session establishment system, method and apparatus based on IP multimedia subsystem
US8683007B2 (en) Seamless transfer of media streams
JP4794440B2 (en) Apparatus and method for handling high-speed changes in digital streaming format or source
KR101528389B1 (en) Method and arrangement for providing relevant service levels
US8228945B2 (en) Streaming communication system
CN112738140B (en) Video stream transmission method, device, storage medium and equipment based on WebRTC
US20050071494A1 (en) Method and apparatus for providing fixed bandwidth communications over a local area network
US20080209065A1 (en) Method for sending stream media, signaling forwarding device and stream media system
CN110502259B (en) Server version upgrading method, video networking system, electronic equipment and storage medium
EP2209312A1 (en) Video conference method and system, application server and media resource server
JPWO2006077935A1 (en) AV server equipment
EP1806870A1 (en) Method for providing data and data transmission system
CN101990113B (en) Content uplinking method and content delivery functional entity
US20080137654A1 (en) Method of managing signaling message in path-based signaled paths to mpls-enabled core network
US7899058B2 (en) Using a hash value as a pointer to an application class in a communications device
KR102494603B1 (en) Distribution of bandwidth in the network
US20120023239A1 (en) Creation Method of Multimedia Service and System Thereof
CN112788348A (en) On-demand method, device, equipment, system and storage medium
CN110519331B (en) Method and device for processing resources of video network
US20120198024A1 (en) Content distribution system
US20120203903A1 (en) Content distribution system
JP2013510477A (en) Method, apparatus and system for media session negotiation
US20070076614A1 (en) Method for changing channels in wireless communication terminal and content service system

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210511

RJ01 Rejection of invention patent application after publication