CN110753240B - Transcoding control method and device based on video network - Google Patents

Transcoding control method and device based on video network Download PDF

Info

Publication number
CN110753240B
CN110753240B CN201810819707.3A CN201810819707A CN110753240B CN 110753240 B CN110753240 B CN 110753240B CN 201810819707 A CN201810819707 A CN 201810819707A CN 110753240 B CN110753240 B CN 110753240B
Authority
CN
China
Prior art keywords
transcoding
request
equipment
user
sending
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
Application number
CN201810819707.3A
Other languages
Chinese (zh)
Other versions
CN110753240A (en
Inventor
王军
沈军
李金磊
崔永芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information 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 Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN201810819707.3A priority Critical patent/CN110753240B/en
Publication of CN110753240A publication Critical patent/CN110753240A/en
Application granted granted Critical
Publication of CN110753240B publication Critical patent/CN110753240B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234309Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4 or from Quicktime to Realvideo
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25808Management of client data

Abstract

The embodiment of the invention provides a transcoding control method and a transcoding control device based on a video network, wherein the method comprises the following steps: sending a transcoding request to a video networking distributed transcoding server; receiving a transcoding request success response sent by the video networking distributed transcoding server, wherein the transcoding request success response comprises an ID number of a transcoding device; a media stream link is established with the transcoding equipment corresponding to the ID number of the transcoding equipment; sending the media stream to the transcoding device for transcoding through the media stream link; and receiving the media stream after transcoding sent by the transcoding equipment. In the embodiment of the invention, the video network distributed transcoding server can master the state information of each managed transcoding device in real time and dispatch the received transcoding request to the idle transcoding device for transcoding, so that the transcoding resources are reasonably utilized, and the utilization rate of the transcoding device resources is improved.

Description

Transcoding control method and device based on video network
Technical Field
The invention relates to the technical field of video networking, in particular to a transcoding control method and device based on video networking.
Background
With the rapid development of the video networking, the video networking is an important milestone of the current network development and is a higher-level form of the internet. That is to say, the video networking is a real-time network, can realize the real-time transmission of the high definition video of the whole net that present internet can't realize, pushes numerous internet applications to high definition video ization, and the high definition is face-to-face. Finally, world no-distance is realized, and the distance between people in the world is only the distance of one screen.
However, in the prior art, due to the fact that a uniform control protocol is not available, the video network distributed transcoding server cannot uniformly control the transcoding devices, so that the video network distributed transcoding server cannot grasp the states of the transcoding devices in real time, and schedules media streams to idle transcoding devices for transcoding, and the utilization rate of resources of the transcoding devices is reduced.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a transcoding control method for a media stream, so as to solve the technical problem in the prior art that the utilization rate of transcoding device resources is reduced because video networking distributed transcoding devices transcode media streams to idle transcoding devices through a uniform control protocol differently.
Correspondingly, the embodiment of the invention also provides a transcoding control device of the media stream, which is used for ensuring the realization and the application of the method.
In order to solve the problems, the invention is realized by the following technical scheme:
a first aspect provides a transcoding control method based on video networking, the method comprising:
sending a transcoding request to a video networking distributed transcoding server;
receiving a transcoding request success response sent by the video networking distributed transcoding server, wherein the transcoding request success response comprises an ID number of a transcoding device;
a media stream link is established with the transcoding equipment corresponding to the ID number of the transcoding equipment;
sending the media stream to the transcoding device for transcoding through the media stream link;
and receiving the media stream after transcoding sent by the transcoding equipment.
A second aspect provides a transcoding control method based on video networking, the method comprising:
receiving a transcoding request sent by a user;
checking the state information of each locally stored transcoding device according to the transcoding request, and determining an idle transcoding device;
sending the transcoding request to the idle transcoding device;
receiving a transcoding request success response sent by the transcoding equipment;
and sending the transcoding request success response to the user so as to facilitate the user to establish a media stream link with the idle transcoding equipment.
A third aspect provides a video-networking based transcoding control apparatus, the apparatus comprising:
the first sending module is used for sending a transcoding request to the video networking distributed transcoding server;
the first receiving module is used for receiving a transcoding request success response sent by the video network distributed transcoding server, wherein the transcoding request success response comprises an ID number of a transcoding device;
the establishing module is used for establishing a media stream link with the transcoding equipment corresponding to the ID number of the transcoding equipment;
the second sending module is used for sending the media stream to the transcoding equipment through the media stream link for transcoding;
and the second receiving module is used for receiving the transcoded media stream sent by the transcoding device.
A fourth aspect provides a video-networking based transcoding control apparatus, the apparatus comprising:
the first receiving module is used for receiving a transcoding request sent by a user;
the determining module is used for checking the state information of each transcoding device according to the transcoding request and determining idle transcoding devices;
the first sending module is used for sending the transcoding request to the idle transcoding equipment;
the second receiving module is used for receiving a successful response of the transcoding request sent by the transcoding equipment;
and the second sending module is used for sending the successful transcoding request response to the user so as to facilitate the user to establish a media stream link with the idle transcoding device.
Compared with the prior art, the embodiment of the invention has the following advantages:
in the embodiment of the invention, a user sends a transcoding request to a video network distributed transcoding server, the video network distributed transcoding server sends the received transcoding request to an idle transcoding device, so that the transcoding device can make a corresponding transcoding request to the transcoding request according to the load of the video network distributed transcoding server and successfully respond to the transcoding request, the video network distributed transcoding server sends the received transcoding request to the user, a media stream link is conveniently established between the user and the transcoding device, and a media stream needing transcoding is generated through the media stream link. In other words, in the embodiment of the invention, the video network distributed transcoding server can grasp the state information of each managed transcoding device in real time and dispatch the received transcoding request to the idle transcoding device for transcoding, so that the transcoding resources are reasonably utilized, and the utilization rate of the transcoding device resources is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
Fig. 1 is a flowchart of a transcoding control method based on video networking according to an embodiment of the present invention;
fig. 2 is another flowchart of a transcoding control method based on video networking according to an embodiment of the present invention;
fig. 3 is another flowchart of a transcoding control method based on video networking according to an embodiment of the present invention;
fig. 4 is another flowchart of a transcoding control method based on video networking according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a transcoding control apparatus based on a video network according to an embodiment of the present invention;
fig. 6 is another schematic structural diagram of a transcoding control apparatus based on a video network according to an embodiment of the present invention;
fig. 7 is another schematic structural diagram of a transcoding control apparatus based on a video network according to an embodiment of the present invention;
fig. 8 is another schematic structural diagram of a transcoding control apparatus based on a video network according to an embodiment of the present invention;
FIG. 9 is a flowchart of an application example provided by an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
The video networking is an important milestone for network development, is a real-time network, can realize high-definition video real-time transmission, and pushes a plurality of internet applications to high-definition video, and high-definition faces each other.
The video networking adopts a real-time high-definition video exchange technology, can integrate required services such as dozens of services of video, voice, pictures, characters, communication, data and the like on a system platform on a network platform, such as high-definition video conference, video monitoring, intelligent monitoring analysis, emergency command, digital broadcast television, delayed television, network teaching, live broadcast, VOD on demand, television mail, Personal Video Recorder (PVR), intranet (self-office) channels, intelligent video broadcast control, information distribution and the like, and realizes high-definition quality video broadcast through a television or a computer.
To better understand the embodiments of the present invention, the following description refers to the internet of view:
please refer to fig. 1, which is a flowchart illustrating a transcoding control method based on video networking according to an embodiment of the present invention; the method comprises the following steps:
step 101: sending a transcoding request to a video networking distributed transcoding server;
in the step, a user sends a transcoding request to a distributed transcoding server of the video network, wherein the transcoding request is a transcoding request of one path of instance.
In this embodiment, after receiving the transcoding request, the video network distributed transcoding server checks state information of each locally stored transcoding device, and then determines an idle transcoding device, where it is to be noted that each transcoding device in this embodiment includes a multi-channel transcoding instance, and the idle transcoding device means that at least one transcoding instance in the transcoding device is idle, and the next transcoding instance is the same; and then sending the transcoding request to an idle transcoding device. And the transcoding device makes a transcoding request success response or a transcoding request failure response to the transcoding request according to the self load condition, and finally sends the transcoding request success response or the transcoding request failure response to the video network distributed transcoding server, namely the transcoding request success response or the transcoding request failure response receives the transcoding request success response or the transcoding request failure response sent by the transcoding device.
Step 102: receiving a transcoding request success response sent by the video networking distributed transcoding server, wherein the transcoding request success response comprises an ID number of a transcoding device;
in the step, when a transcoding request success response sent by the transcoding device is received by the video network distributed transcoding server, the transcoding request success response is sent to the user through a callback notification, wherein the transcoding request success response carries the ID number of the transcoding device.
Step 103: a media stream link is established with the transcoding equipment corresponding to the ID number of the transcoding equipment;
in the step, the user analyzes the successful response of the transcoding request to obtain the ID number of the transcoding equipment, and then the transcoding equipment corresponding to the ID number of the transcoding equipment establishes a media stream link.
Step 104: sending the media stream to the transcoding device for transcoding through the media stream link;
after the media stream link is established, a user can send a media stream link needing transcoding to the transcoding equipment through the media stream link, the transcoding equipment starts transcoding the received media stream, and the transcoded media stream is sent to the user;
step 105: and receiving the transcoded media stream sent by the transcoding equipment.
And the user receives the transcoded media stream sent by the transcoding device.
In the embodiment of the invention, a user sends a transcoding request to a distributed transcoding server of the video network, the distributed transcoding server of the video network sends the received transcoding request to an idle transcoding device, so that the transcoding device can make a corresponding transcoding request success response (or transcoding request failure response) to the transcoding request according to the self load to the distributed transcoding server of the video network, and the distributed transcoding server of the video network sends the received transcoding request success response to the user, so that the user and the transcoding device can establish a media stream link, and a media stream needing transcoding is generated through the media stream link. In other words, in the embodiment of the invention, the video network distributed transcoding server can grasp the state information of each managed transcoding device in real time and dispatch the received transcoding request to the idle transcoding device for transcoding, so that the transcoding resources are reasonably utilized, and the utilization rate of the transcoding device resources is improved.
Referring to fig. 2, a flowchart of a transcoding control method based on video networking according to an embodiment of the present invention is shown, where the embodiment may further include: upon receiving the terminate transcoding request, the terminate transcoding request is sent to the transcoding device to stop the transcoding operation. The method comprises the following steps:
step 201: sending a transcoding request to a video networking distributed transcoding server;
step 202: receiving a transcoding request success response sent by the video networking distributed transcoding server, wherein the transcoding request success response comprises an ID number of a transcoding device;
step 203: a media stream link is established with the transcoding equipment corresponding to the ID number of the transcoding equipment;
step 204: sending the media stream to the transcoding device for transcoding through the media stream link;
step 205: receiving the transcoded media stream sent by the transcoding equipment;
in this embodiment, steps 201 to 205 are the same as steps 101 to 105, and are described in detail above, and are not described herein again.
Step 206: sending a transcoding termination request to the video networking distributed transcoding server;
in this step, when the user needs to stop transcoding the media stream, a terminate transcoding request, which may be a terminate transcoding instruction, may be sent to the video network distributed transcoding server.
The distributed transcoding server of the video network sends a transcoding termination request to the transcoding device through a control protocol, when the transcoding device receives the transcoding termination request, the transcoding device makes a transcoding termination request success response or a transcoding termination request failure response to the transcoding termination request according to the transcoding processing condition of the transcoding device, sends the success response or the failure response to the distributed transcoding server of the video network, and sends the received success response or the received failure response to the user through a callback notice.
Step 207: receiving a successful response of a transcoding termination request sent by the video networking distributed transcoding server;
in this embodiment, if the user receives the successful response to the terminate transcoding request, step 208 and step 209 are executed, and if the user receives the failed response to the terminate transcoding request, it indicates that the transcoding device needs to continue transcoding the media stream until the end of transcoding and then sends a response to end of transcoding.
Step 208: removing a media stream link with the transcoding device;
in the step, after receiving a response of successfully terminating the transcoding request, the user removes a media stream link with the transcoding device.
Step 209: and stopping sending the streaming media to the transcoding equipment.
And after the media stream link with the transcoding equipment is removed, the user stops sending the stream media to the transcoding equipment.
In the embodiment of the invention, a user sends a transcoding request or a transcoding termination request to a video network distributed tree transcoding server, so that the video network distributed transcoding server can master the state information of each managed transcoding device in real time through a control protocol, dispatches the received transcoding request to an idle transcoding device for transcoding through the control protocol, and dispatches the received transcoding termination request to a corresponding transcoding device through the control protocol to stop transcoding. In other words, in the embodiment of the invention, the user can control the transcoding equipment through the video network distributed transcoding server, so that the transcoding resources are reasonably utilized, and the utilization rate of the transcoding equipment resources is improved.
Referring to fig. 3, another flowchart of a transcoding control method based on video networking according to an embodiment of the present invention is shown, where the method includes:
step 301: receiving a transcoding request sent by a user;
in this step, the transcoding request is received by the distributed transcoding server of the video network.
Step 302: checking the state information of each locally stored transcoding device according to the transcoding request, and determining an idle transcoding device;
in the step, after receiving the transcoding request, the video network distributed transcoding server checks the state information of each locally stored transcoding device, and finds out the idle transcoding device. The search method is well known to those skilled in the art and will not be described herein.
Furthermore, in this embodiment, each transcoding device stored locally may also be sorted in a descending order according to the idle degree to obtain a corresponding queue, so that each time a transcoding request is received, the transcoding request may be sent to the first transcoding device in the queue, thereby improving transcoding efficiency.
Step 303: sending the transcoding request to the idle transcoding device;
in the step, the video network distributed transcoding server sends the transcoding request to the idle transcoding device, so that when the transcoding device receives the transcoding request, the transcoding device makes a transcoding request success response or a transcoding request failure response to the transcoding request according to the load condition of the transcoding device, and sends the transcoding request success response or the transcoding request failure response to the video network distributed transcoding server. The present embodiment takes sending a transcoding request success response as an example.
Step 304: receiving a transcoding request success response sent by the transcoding equipment;
and when receiving the transcoding request success response, the video network distributed transcoding server includes the ID number of the transcoding device in the transcoding request success response.
Step 305: and sending the transcoding request success response to the user so as to facilitate the user to establish a media stream link with the idle transcoding equipment.
In the step, the video network distributed transcoding server sends the transcoding request success response to the user, and after receiving the transcoding request success response, the user establishes a media stream link with the transcoding device corresponding to the ID number carried in the transcoding request success response.
In the embodiment of the invention, the video network distributed transcoding server can master the state information of each managed transcoding device in real time and dispatch the received transcoding request to the idle transcoding device for transcoding through the control protocol, so that the transcoding resources are reasonably utilized, and the utilization rate of the transcoding device resources is improved.
Referring to fig. 4, another flowchart of a transcoding control method based on video networking according to an embodiment of the present invention is shown, where the method includes:
step 401: receiving a transcoding request sent by a user;
step 402: checking the state information of each locally stored transcoding device according to the transcoding request, and determining an idle transcoding device;
step 403: sending the transcoding request to the idle transcoding device;
step 404: receiving a transcoding request success response sent by the transcoding equipment;
step 405: sending the transcoding request success response to the user so as to facilitate the user to establish a media stream link with the idle transcoding device;
in this embodiment, steps 401 to 405 are the same as steps 301 to 305, and are described in detail above, and are not described herein again.
Step 406: receiving a transcoding termination request sent by the user;
in this step, when a user needs to stop transcoding of a media stream, a request for terminating transcoding may be sent to the video networking distributed transcoding server, that is, the video networking distributed transcoding server receives the request for terminating transcoding sent by the user.
Step 407: sending the transcoding termination request to a transcoding device;
the video network distributed transcoding server sends a transcoding termination request to the transcoding device through a control protocol, and when receiving the transcoding termination request, the transcoding device makes a transcoding termination request success response or a transcoding termination request failure response to the transcoding termination request according to the transcoding processing condition of the transcoding device, and sends the success response or the failure response to the video network distributed transcoding server.
Step 408: receiving a successful response of the transcoding termination request sent by the transcoding equipment;
the distributed transcoding server of the video network receives a successful response of the transcoding request termination sent by the transcoding device, where the successful response of the transcoding request termination has been received in this embodiment.
Step 409: and sending the transcoding request termination success response to the user so as to facilitate the user to remove a media stream link with the transcoding device.
And the video network distributed transcoding server sends the received success response or failure response to the user through a callback notification, so that the user can conveniently tear down the media stream link with the transcoding equipment.
In the embodiment of the invention, when receiving the transcoding request sent by the user, the video network distributed transcoding server sends the transcoding request to the idle transcoder, and when receiving the transcoding stopping request, sends the transcoding stopping request to the corresponding transcoder, so that the transcoding resources are reasonably utilized, and the utilization rate of the transcoding equipment resources is improved.
Optionally, in another embodiment, on the basis of the above embodiment, the method may further include:
before receiving a transcoding request sent by the user or when a media link sent by a transcoding device and the user is interrupted, receiving heartbeat registration information initiated by the transcoding device, wherein the heartbeat registration information comprises state information of the transcoding device.
In this embodiment, after the transcoding device is started or a media link with a user is interrupted, the state information of the transcoding device itself may be sent to the distributed transcoding server of the video network, so that the distributed transcoding server of the video network can know the state of the transcoding device itself (for example, busy or idle) in time, and the distributed transcoding server of the video network can send the transcoding request to an idle transcoding device when receiving the transcoding request, so that the transcoding resources are reasonably utilized, and the utilization rate of the transcoding device resources is improved.
For example, in a certain regional project of the video network, by adopting the technical scheme of the embodiment, 3000000 camera resources can be transcoded according to the requirements of users by using the distributed transcoding server of the video network, and the distributed transcoding server of the video network controls a plurality of transcoding devices to perform corresponding transcoding. Therefore, the transcoding service can be provided for all resources in a certain region.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 5, a schematic structural diagram of a transcoding control apparatus based on a video network is provided for an embodiment of the present invention, where the apparatus may include the following modules: a first sending module 51, a first receiving module 52, a building module 53, a second sending module 54 and a second receiving module 55, wherein,
a first sending module 51, configured to send a transcoding request to a video networking distributed transcoding server;
the first receiving module 52 is configured to receive a transcoding request success response sent by the video network distributed transcoding server, where the transcoding request success response includes an ID number of a transcoding device;
the establishing module 53 is configured to establish a media stream link with the transcoding device corresponding to the ID number of the transcoding device;
a second sending module 54, configured to send the media stream to the transcoding device through the media stream link for transcoding;
and a second receiving module 55, configured to receive the transcoded media stream sent by the transcoding device.
Optionally, in another embodiment, on the basis of the above embodiment, the apparatus may further include, on the basis of fig. 5: a third sending module 61, a second receiving module 62, a removing module 63 and a stop sending module 64, which are schematically shown in fig. 6, wherein,
a third sending module 61, configured to send a transcoding termination request to the video networking distributed transcoding server;
a second receiving module 62, configured to receive a successful transcoding request termination response sent by the video networking distributed transcoding server;
a removing module 63, configured to remove a media stream link with the transcoding device;
and a stop sending module 64, configured to stop sending the streaming media to the transcoding device.
The device may be integrated in a terminal or may be deployed independently, which is not limited in this embodiment.
Referring to fig. 7, a schematic structural diagram of a transcoding control apparatus based on video networking according to an embodiment of the present invention is shown, where the apparatus includes: a first receiving module 71, a determining module 72, a first sending module 73, a second receiving module 74 and a second sending module 75, wherein,
a first receiving module 71, configured to receive a transcoding request sent by a user;
the determining module 72 is configured to view the state information of each transcoding device according to the transcoding request, and determine an idle transcoding device;
a first sending module 73, configured to send the transcoding request to the idle transcoding device;
a second receiving module 74, configured to receive a successful response to the transcoding request sent by the transcoding device;
a second sending module 75, configured to send the successful transcoding request response to the user, so that the user establishes a media stream link with the idle transcoding device.
Optionally, in another embodiment, on the basis of the above embodiment, the apparatus may further include, on the basis of the embodiment in fig. 7: a third receiving module 81, a third sending module 82, a fourth receiving module 83 and a fourth sending module 84, which are schematically shown in fig. 8, wherein,
a third receiving module 81, configured to receive a transcoding termination request sent by the user;
a third sending module 82, configured to send the transcoding termination request to the transcoding device by the user;
a fourth receiving module 83, configured to receive a successful response to the transcoding termination request sent by the transcoding device;
a fourth sending module 84, configured to send the transcoding request termination success response to the user, so that the user tears down a media stream link with the transcoding device.
Optionally, in another embodiment, on the basis of the above embodiment, the apparatus may further include: a fifth receiving module (not shown), wherein,
and a fifth receiving module, configured to receive a heartbeat registration message initiated by the transcoding device before the first receiving module receives the transcoding request sent by the user or when a media link sent by the transcoding device and the user is interrupted, where the heartbeat registration message includes state information of the transcoding device itself.
Optionally, the apparatus may be integrated in a video networking distributed transcoding server, or may be deployed independently, which is not limited in this embodiment.
In the embodiment of the invention, when receiving the transcoding request sent by the user, the video network distributed transcoding server sends the transcoding request to the idle transcoder, and when receiving the transcoding stopping request, sends the transcoding stopping request to the corresponding transcoder, so that the transcoding resources are reasonably utilized, and the utilization rate of the transcoding equipment resources is improved.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
Referring to fig. 9, a flowchart of an application example provided in the embodiment of the present invention specifically includes: a terminal (client), a video network distributed transcoding server and a transcoding server, wherein,
step 901: the method comprises the steps that a transcoding device initiates heartbeat registration information to a video network distributed transcoding server, wherein the heartbeat registration information comprises state information of the transcoding device;
step 902: the video network distributed transcoding server stores the state information of the transcoding equipment;
step 903: the terminal sends a transcoding request to a video networking distributed transcoding server;
step 904: the video network distributed transcoding server checks the state information of each locally stored transcoding device according to the transcoding request and determines an idle transcoding device;
step 905: the video network distributed transcoding server sends the transcoding request to the idle transcoding equipment;
step 906: the transcoding equipment generates a transcoding request success response or a transcoding request failure response according to the self load condition;
the present embodiment takes the transcoding request success response as an example.
Step 907: the transcoding equipment transcodes a request success response to the video networking distributed transcoding server;
wherein the transcoding request success response comprises an ID number of the transcoding device;
step 908: the video networking distributed transcoding server sends the received successful response of the transcoding request to the terminal through a callback notification;
step 909: the terminal and the transcoding equipment corresponding to the ID number of the transcoding equipment establish a media stream link;
step 910: the terminal sends the media stream to the transcoding equipment through the media stream link;
step 911: the transcoding equipment transcodes the received media stream to obtain a transcoded media stream;
step 912: the transcoding equipment sends the transcoded media stream to the terminal through the media stream link;
step 913: the terminal sends a transcoding termination request to the video networking distributed transcoding server;
step 914: the video network distributed transcoding server sends the received transcoding termination request to the transcoding device;
step 915: the transcoding equipment generates a response of successful transcoding request termination or a response of failed transcoding request termination according to the transcoding condition of the transcoding equipment;
step 916: the transcoding equipment sends a transcoding request termination success response to the video network distributed transcoding server;
the present embodiment takes sending a successful response to terminate the transcoding request as an example.
Step 917: the distributed transcoding server of the video network sends a response of successfully stopping the transcoding request to the terminal through callback notification;
step 918: the terminal removes a media stream link with the transcoding equipment:
as shown in dashed lines.
Step 919: the terminal stops sending the streaming media to the transcoding equipment;
step 920: the transcoding device sends a heartbeat registration request to the video network distributed transcoding server to inform the video network distributed transcoding server that the transcoding device is in an idle state.
In the embodiment of the invention, when receiving the transcoding request sent by the user, the video network distributed transcoding server sends the transcoding request to the idle transcoder, and when receiving the transcoding stopping request, sends the transcoding stopping request to the corresponding transcoder, so that the transcoding resources are reasonably utilized, and the utilization rate of the transcoding equipment resources is improved.
Preferably, an embodiment of the present invention further provides a terminal, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program, when executed by the processor, implements each process of the transcoding control method embodiment based on video networking, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
Preferably, an embodiment of the present invention further provides a video network distributed transcoding server, which includes a processor, a memory, and a computer program that is stored in the memory and can run on the processor, and when being executed by the processor, the computer program implements each process of the foregoing video network-based transcoding control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the transcoding control method embodiment based on the video network, and can achieve the same technical effect, and in order to avoid repetition, the detailed description is omitted here. The computer-readable storage medium may be a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The method and the device for controlling transcoding based on video networking provided by the invention are introduced in detail, and a specific example is applied in the text to explain the principle and the implementation of the invention, and the description of the above embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (8)

1. A transcoding control method based on video networking, characterized in that the method comprises the following steps:
before a transcoding request sent by a user is received or when a media link which is sent by transcoding equipment and is disconnected with the user is received, a heartbeat registration message which is initiated by the transcoding equipment is received by a distributed transcoding server of the video network, wherein the heartbeat registration message comprises state information of the transcoding equipment;
sending a transcoding request to a distributed transcoding server of the video network, so that the distributed transcoding server of the video network sends the transcoding request to a transcoding device, the transcoding device makes a corresponding successful response or failed response of the transcoding request to the transcoding request according to the load of the transcoding device, and sends the successful response of the transcoding request to the distributed transcoding server of the video network;
receiving a transcoding request success response sent by the video networking distributed transcoding server, wherein the transcoding request success response comprises an ID number of a transcoding device;
a media stream link is established with a transcoding device corresponding to the ID number of the transcoding device, wherein the transcoding device is an idle transcoding device determined by the video network distributed transcoding server according to the transcoding request for viewing the state information of each locally stored transcoding device, and the idle transcoding device is an idle transcoding device with at least one transcoding instance in the transcoding device being idle;
sending the media stream to the transcoding device for transcoding through the media stream link;
and receiving the media stream after transcoding sent by the transcoding equipment.
2. The method of claim 1, further comprising:
sending a transcoding termination request to the video networking distributed transcoding server;
receiving a successful response of a transcoding termination request sent by the video networking distributed transcoding server;
removing a media stream link with the transcoding device;
and stopping sending the streaming media to the transcoding equipment.
3. A transcoding control method based on video networking, characterized in that the method comprises the following steps:
before a transcoding request sent by a user is received, or when a media link which is sent by a transcoding device and is disconnected with the user is received, a heartbeat registration message which is initiated by the transcoding device is received, wherein the heartbeat registration message comprises state information of the transcoding device;
receiving a transcoding request sent by a user; checking state information of each locally stored transcoding device according to the transcoding request, and determining idle transcoding devices, wherein the idle transcoding devices are idle at least one transcoding instance in the transcoding devices;
sending the transcoding request to the idle transcoding equipment, so that the transcoding equipment makes a corresponding transcoding request successful response or transcoding request failed response to the transcoding request according to the load of the transcoding equipment; receiving a transcoding request success response sent by the transcoding equipment;
and sending the transcoding request success response to the user so as to facilitate the user to establish a media stream link with the idle transcoding equipment.
4. The method of claim 3, further comprising:
receiving a transcoding termination request sent by the user;
sending the transcoding termination request to a transcoding device;
receiving a successful response of the transcoding termination request sent by the transcoding equipment;
and sending the transcoding request termination success response to the user so as to facilitate the user to remove a media stream link with the transcoding device.
5. An apparatus for controlling transcoding based on video networking, the apparatus comprising:
the system comprises a first sending module, a second sending module and a transcoding device, wherein the first sending module is used for receiving a heartbeat registration message initiated by the transcoding device by a video network distributed transcoding server before a transcoding request sent by a user is received or when a media link which is sent by the transcoding device and is connected with the user is interrupted, and the heartbeat registration message comprises state information of the transcoding device;
sending a transcoding request to a distributed transcoding server of the video network, so that the distributed transcoding server of the video network sends the transcoding request to a transcoding device, the transcoding device makes a corresponding successful response or failed response of the transcoding request to the transcoding request according to the load of the transcoding device, and sends the successful response of the transcoding request to the distributed transcoding server of the video network;
the first receiving module is used for receiving a transcoding request success response sent by the video network distributed transcoding server, wherein the transcoding request success response comprises an ID number of a transcoding device;
the establishing module is used for establishing a media stream link with transcoding equipment corresponding to the ID number of the transcoding equipment, wherein the transcoding equipment is idle transcoding equipment determined by the video network distributed transcoding server according to the transcoding request for checking the state information of each locally stored transcoding equipment, and the idle transcoding equipment is characterized in that at least one path of transcoding instances in the transcoding equipment is idle;
the second sending module is used for sending the media stream to the transcoding equipment through the media stream link for transcoding;
and the second receiving module is used for receiving the transcoded media stream sent by the transcoding device.
6. The apparatus of claim 5, further comprising:
the third sending module is used for sending a transcoding termination request to the video networking distributed transcoding server;
the second receiving module is used for receiving a transcoding termination request success response sent by the video network distributed transcoding server;
the removing module is used for removing a media stream link with the transcoding equipment;
and the sending stopping module is used for stopping sending the streaming media to the transcoding equipment.
7. An apparatus for controlling transcoding based on video networking, the apparatus comprising:
a fifth receiving module, configured to receive a heartbeat registration message initiated by a transcoding device before a transcoding request sent by a user is received by the first receiving module or when a media link sent by the transcoding device and the user is interrupted, where the heartbeat registration message includes state information of the transcoding device itself;
the first receiving module is used for receiving a transcoding request sent by a user;
the determining module is used for checking the state information of each transcoding device according to the transcoding request and determining idle transcoding devices, wherein the idle transcoding devices are idle at least one path of transcoding instances in the transcoding devices;
the first sending module is used for sending the transcoding request to the idle transcoding equipment so that the transcoding equipment can make a corresponding transcoding request successful response or transcoding request failed response to the transcoding request according to the load of the transcoding equipment;
the second receiving module is used for receiving a successful response of the transcoding request sent by the transcoding equipment;
and the second sending module is used for sending the successful transcoding request response to the user so as to facilitate the user to establish a media stream link with the idle transcoding device.
8. The apparatus of claim 7, further comprising:
a third receiving module, configured to receive a transcoding termination request sent by the user;
the third sending module is used for sending the transcoding termination request to the transcoding equipment by the user;
a fourth receiving module, configured to receive a successful response to the transcoding termination request sent by the transcoding device;
and a fourth sending module, configured to send the successful response to the request to terminate transcoding to the user, so that the user tears down a media stream link with the transcoding device.
CN201810819707.3A 2018-07-24 2018-07-24 Transcoding control method and device based on video network Active CN110753240B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810819707.3A CN110753240B (en) 2018-07-24 2018-07-24 Transcoding control method and device based on video network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810819707.3A CN110753240B (en) 2018-07-24 2018-07-24 Transcoding control method and device based on video network

Publications (2)

Publication Number Publication Date
CN110753240A CN110753240A (en) 2020-02-04
CN110753240B true CN110753240B (en) 2022-04-05

Family

ID=69275444

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810819707.3A Active CN110753240B (en) 2018-07-24 2018-07-24 Transcoding control method and device based on video network

Country Status (1)

Country Link
CN (1) CN110753240B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007125458A2 (en) * 2006-04-27 2007-11-08 Koninklijke Philips Electronics N.V. Method and apparatus for encoding/transcoding and decoding

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917326B (en) * 2009-11-17 2012-11-28 新奥特(北京)视频技术有限公司 Distributed trans-coding system and task scheduling method thereof
CN102404567A (en) * 2011-11-03 2012-04-04 深圳市融创天下科技股份有限公司 System and method for transcoding network monitoring video in real time according to need
CN104754366A (en) * 2015-03-03 2015-07-01 腾讯科技(深圳)有限公司 Audio and video file live broadcasting method, device and system
CN107968928B (en) * 2016-10-19 2019-02-05 视联动力信息技术股份有限公司 A kind of method and apparatus of terminal communication

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007125458A2 (en) * 2006-04-27 2007-11-08 Koninklijke Philips Electronics N.V. Method and apparatus for encoding/transcoding and decoding

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于Hadoop的云转码系统研究及性能优化;王利锋;《中国优秀硕士学位论文全文数据库信息科技辑》;20140615;全文 *

Also Published As

Publication number Publication date
CN110753240A (en) 2020-02-04

Similar Documents

Publication Publication Date Title
CN109889762B (en) Conference control method and device
CN112738140B (en) Video stream transmission method, device, storage medium and equipment based on WebRTC
EP2658232A1 (en) Method and system for an optimized multimedia communications system
CN108810581B (en) Software menu updating method and device
CN108881149B (en) Access method and system of video telephone equipment
CN108616823B (en) Method and system for adding group calling to dispatching desk
CN111884825A (en) Fault processing method and device, terminal equipment and storage medium
CN109964467A (en) The control based on node type for auxiliary data flow transmission
CN112565234A (en) Cross-network transmission system and method based on WebRTC
CN108600318B (en) Monitoring video calling method and device and server
CN112260946B (en) Link failure processing method and device, terminal equipment and storage medium
CN112866390B (en) Data transmission method, device, terminal equipment and storage medium
CN110753240B (en) Transcoding control method and device based on video network
CN111212043A (en) Multimedia file generation method and device
CN110187903A (en) A kind of upgrade method and device
CN110011891B (en) Cross-network service processing method and system
CN111131788A (en) Monitoring resource state detection method and device and computer readable storage medium
JP4917497B2 (en) Video distribution device, distribution video switching method, distribution video switching program, and distribution video switching program recording medium
CN111836020B (en) Code stream transmission method and device in monitoring system and storage medium
CN111726645A (en) Live broadcast control method and device, electronic equipment and storage medium
CN112423001A (en) Live broadcast processing method and device, terminal equipment and storage medium
CN110769187B (en) Network conference control method and device based on video network
CN100388781C (en) Conference delay method
CN110769183B (en) Video-on-demand method based on video networking, link establishment method, device and system
CN111212052A (en) Service processing method and device, electronic equipment and storage medium

Legal Events

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