Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The data processing scheme of the embodiment of the present invention, can be applied in data handling system to carry out real-time transcoding process to the data flow of programme televised live; Wherein, the data flow of programme televised live can be live audio stream, live video stream etc.
Referring to Fig. 1, is the structural representation of the data handling system that the embodiment of the present invention provides; This data handling system can comprise main broadcaster's client, at least one spectator client, at least one front-end server, transcoding management server and at least one transcoding server.In system shown in Figure 1, main broadcaster's client, supervisor front-end server, at least one spectator client and at least one member's front-end server form live platform jointly, transcoding management server and at least one transcoding server form real-time transcoding service system jointly, real-time transcoding service system is connected with live platform, for providing real-time transcoding service for live platform.
Wherein, the space resources that programme televised live is shared in live platform, can be called channel.In at least one front-end server in live platform, each front-end server is respectively used to manage one or more channel.Any client can create channel to the front-end server application be connected with this client, front-end server can create with completing channel according to channel creation application allocation space resource, and can be this channel allocation such as: the attribute information of title, ID, access pin etc.At least one client can access in the channel created, therefore, channel can be described as again be made up of at least one client, for providing the group of space resources for the live process of programme televised live.After the client application in certain access channel obtains main broadcaster authority, the client obtaining main broadcaster's authority can be described as main broadcaster's client, and other access in this channel and the client not obtaining main broadcaster's authority then can be described as spectator client.Main broadcaster's client possess programme televised live recording, the operating right such as to upload, spectator client possesses the browse right of programme televised live.Main broadcaster's client can be such as PC (Personal Computer, personal computer), notebook computer, mobile phone, PAD (panel computer), intelligence wearable device, any one client of the band such as car-mounted terminal network function, main broadcaster's client can record the data message of programme televised live, and by the data message of programme televised live according to such as H.264 (a kind of compression of digital video form) or H.265 the stream data form such as (a kind of compression of digital video form) carry out compression process, obtain the source traffic of programme televised live and be pushed to supervisor's front-end server.Particularly, main broadcaster's client can based on TCP (Transmission Control Protocol, transmission control protocol) RTSP (the Real Time Streaming Protocol of message, real time streaming transport protocol) agreement, the source traffic of programme televised live is pushed to supervisor's front-end server.
The front-end server be connected with main broadcaster's client can be described as supervisor's front-end server, is called member's front-end server with spectator client in the front-end server be connected.Supervisor's front-end server can be used for management programme televised live place channel, at least one the member's front-end server searched all spectator client in this channel and be connected with each spectator client.Supervisor's front-end server can receive the source traffic of the programme televised live of main broadcaster's client push based on the RTSP agreement of TCP message, and the data flow of this programme televised live is pushed at least one the member's front-end server watching that all spectator client of programme televised live are corresponding, by each member's front-end server, the source traffic of programme televised live is forwarded to each spectator client further and plays.
Transcoding management server can be used for managing real-time transcoding service, includes but not limited to: the transcoding application responding live platform, manages the operating state of at least one transcoding server, carries out task scheduling etc. at least one transcoding server described.In practical application, the quantity of the transcoding management server in real-time transcoding service system can be one or more, when possessing multiple transcoding management server in real-time transcoding service system, one of them transcoding management server can as master server, for bearing transcoding management role in real-time transcoding service process, remaining transcoding management server can as standby server, for carrying out redundancy backup for master server.In order to promote transcoding efficiency, promote hardware handles performance, transcoding server in the embodiment of the present invention preferably can adopt DSP (Digital Signal Processing, Digital Signal Processing) chip, GPU (Graphic Processing Unit, graphics processing unit) chip or ASIC (Application Specific Integrated Circuit, integrated circuit) chip.
Transcoding management server is connected with live platform, and particularly, transcoding management server is connected with the supervisor's front-end server in live platform.When supervisor's front-end server detects that programme televised live exists transcoding demand, can transcoding application be sent to transcoding management server and push the source traffic of programme televised live, particularly, supervisor's front-end server can based on UDP (User Datagram Protocol, User Datagram Protoco (UDP)) the RTSP agreement of message, the source traffic of programme televised live is pushed to transcoding management server.Transcoding management server is dispatched at least one transcoding server and is accepted this transcoding application, carries out transcoding process to the source traffic of programme televised live, obtains the target data stream of programme televised live.The target data stream of programme televised live is fed back to supervisor's front-end server by transcoding management server, by each member's front-end server by supervisor's front-end server target data stream is sent to and can be play the spectator client that this target data stream is decoded.
Based on the data handling system shown in Fig. 1, below in conjunction with Fig. 2-Fig. 6, describe in detail to the data processing method that the embodiment of the present invention provides, the data processing method shown in Fig. 2-Fig. 6, can specifically perform by the one or more devices in data handling system as shown in Figure 1.
Referring to Fig. 2, is the flow chart of a kind of data processing method that the embodiment of the present invention provides; The present embodiment sets forth the idiographic flow of data processing method from supervisor front-end server side; The method can comprise the following steps S101-step S104.
S101, when receiving the source traffic of programme televised live, supervisor's front-end server, according to the state information of described programme televised live place channel, arranges transcoding parameter.
The state information of described channel can comprise: the characteristic information accessing at least one spectator client of described channel, and the mark of at least one member's front-end server that is connected with at least one spectator client described.Wherein, described transcoding parameter can comprise: target bit rate and target data form.Wherein, data format refers to the coding compression format of data flow, can include but not limited to: H.264 form, H.265 form etc.The characteristic information of described spectator client can comprise: the type information of described spectator client and the decoding capacity information of described spectator client.
Described type information comprises: mobile type or fixed type; The spectator client of mobile type can include but not limited to: notebook computer, mobile phone, intelligent wearable device etc. possess the client of portability, mobility feature; The spectator client of fixed type can include but not limited to: PC etc. possess the client of position relative immobility feature.The decoding capacity information of described spectator client refers to the information for describing the decoding capability that described spectator client possesses, such as: the decoding capacity information of certain spectator client for describe this spectator client can to 600Kbps code check, data flow H.264 decodes; Or, the decoding capacity information of certain spectator client for describe this spectator client ability to 1024Kbps code check, data flow H.265 decodes.
In this step, supervisor's front-end server can receive the source traffic of the programme televised live that main broadcaster's client sends in the channel of its management, supervisor's front-end server can obtain the state information of described programme televised live place channel, and arranges transcoding parameter according to the state information of this channel.
S102, described supervisor's front-end server sends the transcoding application of carrying described transcoding parameter to transcoding management server, and push described source traffic to described transcoding management server, from at least one transcoding server, target transcoding server is chosen to make described transcoding management server, and described transcoding application and described source traffic are sent to described target transcoding server, the transcoding parameter carried according to described transcoding application by described target transcoding server, transcoding process is carried out to described source traffic, obtain target data stream and push to described transcoding management server.
Described supervisor's front-end server can be set up TCP with described transcoding management server and be connected, and sends the transcoding application of carrying described transcoding parameter to described transcoding management server; And based on the RTSP agreement of UDP message, described source traffic can be pushed to described transcoding management server.At least one transcoding server that described transcoding management server schedulable manages, according to the instruction of described transcoding parameter, is converted into the target data stream of described programme televised live by the source traffic of described programme televised live.
S103, described supervisor's front-end server receives the described target data stream that described transcoding management server pushes.
Described transcoding management server based on the RTSP agreement of UDP message, can push the described target data stream of transcoding acquisition to described supervisor's front-end server; Described supervisor's front-end server then based on the RTSP agreement of this UDP message, can receive the described target data stream that described transcoding management server pushes.
S104, described supervisor's front-end server exports described target data stream.
Target data stream can be exported to by each member's front-end server the spectator client can decoded to this target data stream by described supervisor's front-end server, is play this target data stream by the spectator client receiving this target data stream.In practical application, each member's front-end server can based on C/S (Client/Server, client/server) RTSP agreement or P2P (Peer to Peer, peer-to-peer network) RTSP agreement, export described target data stream to the spectator client can decoded to described target data stream.
In the embodiment of the present invention, can by supervisor's front-end server according to the state information of programme televised live place channel, transcoding parameter is set, and the transcoding application and propelling movement source traffic of carrying this transcoding parameter is sent to transcoding management server, by described transcoding management server regulation goal transcoding server according to transcoding parameter, transcoding process is carried out to described source traffic and obtains target data stream and final output, owing to directly carrying out transcoding process to source traffic in the process of programme televised live, transcoding real-time is high, postpone low, the actual transcoding demand of live scene can be met, promote efficiency and the suitability of data processing.
Referring to Fig. 3, is the flow chart of the another kind of data processing method that the embodiment of the present invention provides; The present embodiment sets forth the idiographic flow of data processing method from transcoding management server side; The method can comprise the following steps S201-step S204.
S201, transcoding management server receives the transcoding application of carrying transcoding parameter that supervisor's front-end server sends, and receive the source traffic of the programme televised live that described supervisor's front-end server pushes, described transcoding parameter be described supervisor's front-end server when receiving the source traffic of described programme televised live, set by the state information of described programme televised live place channel.
The state information of described channel comprises: the characteristic information accessing at least one spectator client of described channel, and the mark of at least one member's front-end server that is connected with at least one spectator client described; The characteristic information of described spectator client comprises: the type information of described spectator client and the decoding capacity information of described spectator client; Described type information comprises: mobile type or fixed type; Described transcoding parameter comprises: target bit rate and target data form.
In this step, described transcoding management server can be set up TCP with described supervisor's front-end server and be connected, and receives the transcoding application of carrying described transcoding parameter that described supervisor's front-end server sends; And based on the RTSP agreement of UDP message, the source traffic of the programme televised live that described supervisor's front-end server pushes can be received.
S202, described transcoding management server chooses target transcoding server from least one transcoding server.
Transcoding management server can be used for managing the operating state of at least one transcoding server and carries out task scheduling at least one transcoding server described.In this step, described transcoding management server can according to the operating state of at least one transcoding server described, task scheduling is carried out at least one transcoding server described, from least one transcoding server described, chooses the target transcoding server accepting scheduler task.
S203, described transcoding application and described source traffic are sent to described target transcoding server by described transcoding management server, with the transcoding parameter making described target transcoding server carry according to described transcoding application, transcoding process is carried out to described source traffic, obtain target data stream, and described target data stream is pushed to described transcoding management server.
Described transcoding management server sends described transcoding application to described target transcoding server, and based on the RTSP agreement of UDP message, can push described source traffic to described target transcoding server.The instruction of the transcoding parameter that described target transcoding server can carry according to described transcoding application, is converted into the target data stream of described programme televised live by the source traffic of described programme televised live.Described target data stream also based on the RTSP agreement of UDP message, can be pushed to described transcoding management server by described target transcoding server.
S204, described target data stream is pushed to described supervisor's front-end server and exports by described transcoding management server.
Described transcoding management server based on the RTSP agreement of UDP message, can push described target data stream to described supervisor's front-end server.Target data stream can be exported to by each member's front-end server the spectator client can decoded to this target data stream by described supervisor's front-end server, is play this target data stream by the spectator client receiving this target data stream.
In the embodiment of the present invention, can by supervisor's front-end server according to the state information of programme televised live place channel, transcoding parameter is set, and the transcoding application and propelling movement source traffic of carrying this transcoding parameter is sent to transcoding management server, by described transcoding management server regulation goal transcoding server according to transcoding parameter, transcoding process is carried out to described source traffic and obtains target data stream and final output, owing to directly carrying out transcoding process to source traffic in the process of programme televised live, transcoding real-time is high, postpone low, the actual transcoding demand of live scene can be met, promote efficiency and the suitability of data processing.
Referring to Fig. 4, is the flow chart of another data processing method that the embodiment of the present invention provides; The present embodiment sets forth the idiographic flow of data processing method from target transcoding server side; The method can comprise the following steps S301-step S303.
S301, what target transcoding server reception transcoding management server sent carries the transcoding application of transcoding parameter and the source traffic of programme televised live, wherein, described transcoding application and described source traffic are obtained from the reception of supervisor's front-end server by described transcoding management server, described transcoding parameter be described supervisor's front-end server when receiving the source traffic of described programme televised live, set by the state information of described programme televised live place channel.
The state information of described channel comprises: the characteristic information accessing at least one spectator client of described channel, and the mark of at least one member's front-end server that is connected with at least one spectator client described; The characteristic information of described spectator client comprises: the type information of described spectator client and the decoding capacity information of described spectator client; Described type information comprises: mobile type or fixed type; Described transcoding parameter comprises: target bit rate and target data form.
In this step, described target transcoding server receives the described transcoding application that described transcoding management server sends, and show the scheduler task accepting described transcoding management server, and based on the RTSP agreement of UDP message, the source traffic of the programme televised live that described transcoding management server pushes can be received.
S302, the transcoding parameter that described target transcoding server carries according to described transcoding application, carries out transcoding process to described source traffic, obtains target data stream.
The instruction of the transcoding parameter that described target transcoding server can carry according to described transcoding application, is converted into the target data stream of described programme televised live by the source traffic of described programme televised live.
S303, described target data stream is pushed to described transcoding management server by described target transcoding server, to make described transcoding management server, described target data stream is pushed to described supervisor's front-end server and exports.
Described target transcoding server can based on the RTSP agreement of UDP message, to the target data stream of the programme televised live that described transcoding management server pushes; Described transcoding management server then can based on the RTSP agreement of UDP message, the target data stream of described programme televised live is pushed to described supervisor's front-end server, by each member's front-end client by described supervisor's front-end server described target data stream is pushed to and can play the spectator client that described target data stream is decoded.
In the embodiment of the present invention, can by supervisor's front-end server according to the state information of programme televised live place channel, transcoding parameter is set, and the transcoding application and propelling movement source traffic of carrying this transcoding parameter is sent to transcoding management server, by described transcoding management server regulation goal transcoding server according to transcoding parameter, transcoding process is carried out to described source traffic and obtains target data stream and final output, owing to directly carrying out transcoding process to source traffic in the process of programme televised live, transcoding real-time is high, postpone low, the actual transcoding demand of live scene can be met, promote efficiency and the suitability of data processing.
Referring to Fig. 5, is the flow chart of another data processing method that the embodiment of the present invention provides; The present embodiment sets forth the idiographic flow of data processing method from the mutual side be responsible between front-end server, transcoding management server and target transcoding server; The method can comprise the following steps S401-step S408.
S401, when receiving the source traffic of programme televised live, supervisor's front-end server, according to the state information of described programme televised live place channel, arranges transcoding parameter.
The state information of described channel can comprise: the characteristic information accessing at least one spectator client of described channel, and the mark of at least one member's front-end server that is connected with at least one spectator client described.Wherein, described transcoding parameter can comprise: target bit rate and target data form.Wherein, data format refers to the coding compression format of data flow, can include but not limited to: H.264 form, H.265 form etc.The characteristic information of described spectator client can comprise: the type information of described spectator client and the decoding capacity information of described spectator client.
Described type information comprises: mobile type or fixed type; The spectator client of mobile type can include but not limited to: notebook computer, mobile phone, intelligent wearable device etc. possess the client of portability, mobility feature; The spectator client of fixed type can include but not limited to: PC etc. possess the client of position relative immobility feature.The decoding capacity information of described spectator client refers to the information for describing the decoding capability that described spectator client possesses, such as: the decoding capacity information of certain spectator client for describe this spectator client can to 600Kbps code check, data flow H.264 decodes; Or, the decoding capacity information of certain spectator client for describe this spectator client can to 1024Kbps code check, data flow H.265 decodes.
In this step, supervisor's front-end server can receive the source traffic of the programme televised live that main broadcaster's client sends in the channel of its management, supervisor's front-end server can obtain the state information of described programme televised live place channel, and arranges transcoding parameter according to the state information of this channel.
S402, described supervisor's front-end server sends the transcoding application of carrying described transcoding parameter to transcoding management server, and pushes described source traffic to described transcoding management server.
Described supervisor's front-end server can be set up TCP with described transcoding management server and be connected, and sends the transcoding application of carrying described transcoding parameter to described transcoding management server; And based on the RTSP agreement of UDP message, described source traffic can be pushed to described transcoding management server.
S403, described transcoding management server chooses target transcoding server from least one transcoding server.
Described transcoding management server can be used for managing the operating state of at least one transcoding server and carries out task scheduling at least one transcoding server described.In this step, described transcoding management server can according to the operating state of at least one transcoding server described, task scheduling is carried out at least one transcoding server described, from least one transcoding server described, chooses the target transcoding server accepting scheduler task.
S404, described transcoding application and described source traffic are sent to described target transcoding server by described transcoding management server.
Described transcoding management server sends described transcoding application to described target transcoding server, and based on the RTSP agreement of UDP message, can push described source traffic to described target transcoding server.
S405, the transcoding parameter that described target transcoding server carries according to described transcoding application, carries out transcoding process to described source traffic, obtains target data stream.
The instruction of the transcoding parameter that described target transcoding server can carry according to described transcoding application, is converted into the target data stream of described programme televised live by the source traffic of described programme televised live.
S406, described target data stream is pushed to described transcoding management server by described target transcoding server.
Described target data stream also based on the RTSP agreement of UDP message, can be pushed to described transcoding management server by described target transcoding server.
S407, described target data stream is pushed to described supervisor's front-end server by described transcoding management server.
Described transcoding management server based on the RTSP agreement of UDP message, can push described target data stream to described supervisor's front-end server.
S408, described supervisor's front-end server exports described target data stream.
Target data stream can be exported to by each member's front-end server the spectator client can decoded to this target data stream by described supervisor's front-end server, is play this target data stream by the spectator client receiving this target data stream.In practical application, each member's front-end server based on the RTSP agreement of the RTSP agreement of C/S or P2P, can export described target data stream to the spectator client can decoded to described target data stream.
In the embodiment of the present invention, can by supervisor's front-end server according to the state information of programme televised live place channel, transcoding parameter is set, and the transcoding application and propelling movement source traffic of carrying this transcoding parameter is sent to transcoding management server, by described transcoding management server regulation goal transcoding server according to transcoding parameter, transcoding process is carried out to described source traffic and obtains target data stream and final output, owing to directly carrying out transcoding process to source traffic in the process of programme televised live, transcoding real-time is high, postpone low, the actual transcoding demand of live scene can be met, promote efficiency and the suitability of data processing.
Referring to Fig. 6, is the flow chart of another data processing method that the embodiment of the present invention provides; The present embodiment sets forth the idiographic flow of data processing method from the mutual side be responsible between front-end server, transcoding management server and target transcoding server; The method can comprise the following steps S501-step S517.
S501, when receiving the source traffic of the programme televised live that main broadcaster's client of being connected with described supervisor's front-end server sends, described supervisor's front-end server obtains the state information of described programme televised live place channel.
Supervisor's front-end server can receive the source traffic of the programme televised live that main broadcaster's client sends in the channel of its management, such as: supervisor's front-end server can receive the source traffic of the high-definition live broadcasting program XX that main broadcaster's client sends, the code check of this source traffic is 10Mbps, and H.264 data format is.Supervisor's front-end server can obtain the configuration file of the state information for recording each managed channel in the memory space of this locality, and from this configuration file, read the state information of described programme televised live place channel.The state information of described channel can comprise: the characteristic information accessing at least one spectator client of described channel, and the mark of at least one member's front-end server that is connected with at least one spectator client described.The characteristic information of described spectator client can comprise: the type information of described spectator client and the decoding capacity information of described spectator client.
S502, the spectator client that type information at least one spectator client described is mobile type by described supervisor's front-end server is defined as target audience client.
The spectator client of mobile type can include but not limited to: notebook computer, mobile phone, intelligent wearable device etc. possess the client of portability, mobility feature.Usually, there is some difference for the hardware performance of the spectator client of mobile type and the spectator client of fixed type, the hardware performance of the spectator client of mobile type is low compared to the hardware performance of the spectator client of fixed type, often cannot be competent at the decoding task of high-definition program, such as: be 10Mbps for code check, data format is the source traffic of high-definition live broadcasting program XX H.264, the hardware performance of certain cell-phone customer terminal cannot support the decoding task of this source traffic preferably, make this source traffic by after this cell-phone customer terminal decoding process, there is frame losing, Caton phenomenon, increase the power consumption of cell-phone customer terminal, the normal play affecting this source traffic exports.In this step, the spectator client that type information at least one spectator client described is mobile type by described supervisor's front-end server is defined as target audience client, thinks that determined target audience client provides real-time decoding service.
S503, described supervisor's front-end server judges whether the quantity of described target audience client is greater than predetermined number threshold value; If the quantity of described target audience client is greater than predetermined number threshold value, then proceed to step S504.
Step S503 is the optional step of the present embodiment, namely after step S502, can skip this step S503 and directly performs step S504.In this step, described predetermined number threshold value can set according to actual needs, and this predetermined number threshold value is positive integer, such as: described predetermined number threshold value can be set as 3,5,20 etc.If the quantity of described target audience client is greater than predetermined number threshold value, shows that the spectator client that there is sufficient amount in live platform waits for real-time transcoding service, then can proceed to step S504 to start subsequent decoding flow process.
S504, described supervisor's front-end server, according to the decoding capacity information of described target audience client, arranges transcoding parameter.
The decoding capacity information of described target audience client refers to the information for describing the decoding capability that described target audience client possesses, such as: the decoding capacity information of certain cell-phone customer terminal for describe this cell-phone customer terminal can to 600Kbps code check, data flow H.264 decodes, it is 600Kbps that described supervisor's front-end server then can arrange the target bit rate that transcoding parameter comprises, and H.264 target data form is; For another example: the decoding capacity information of certain PAD client for describe this PAD client can to 1024Kbps code check, data flow H.265 decodes, it is 1024Kbps that described supervisor's front-end server then can arrange the target bit rate that transcoding parameter comprises, and H.265 target data form is.
The step S501-step S504 of the present embodiment can be the concrete refinement step of step S401 embodiment illustrated in fig. 5.
S505, described supervisor's front-end server sends the transcoding application of carrying described transcoding parameter to transcoding management server, and pushes described source traffic to described transcoding management server.
Described supervisor's front-end server can based on the host-host protocol consulted with described transcoding management server, such as Transmission Control Protocol, encapsulation process is carried out to described transcoding parameter and generates transcoding application, and set up TCP with described transcoding management server and be connected, the transcoding application of carrying described transcoding parameter is sent to described transcoding management server; And based on the RTSP agreement of UDP message, described source traffic can be pushed to described transcoding management server.
S506, described transcoding management server detects the resource idleness of each transcoding server at least one transcoding server described.
Described transcoding management server can be used for managing the operating state of at least one transcoding server and carries out task scheduling at least one transcoding server described.Described transcoding management server, by detecting the resource idleness of each transcoding server at least one transcoding server described, determines the operating state of at least one transcoding server described.Usually, a transcoding task performed can take a road transcoding resource of a transcoding server, such as: certain transcoding server always co-exists in 10 road transcoding resources, currently performing 9 transcoding tasks, i.e. current occupied 9 road transcoding resources, then the resource idleness of this transcoding server is 1/10.
S507, the transcoding server that resource idleness is greater than default Tidle threshold by described transcoding management server is defined as target transcoding server.
Described default Tidle threshold is (0,1] numerical value between, described default Tidle threshold can set according to actual needs, such as: in order to ensure transcoding efficiency, reduce the processing load of transcoding server, can arrange described default Tidle threshold is 1,0.5 etc.If the resource idleness of certain transcoding server is greater than described default Tidle threshold, show that described transcoding server exists enough transcoding resources, have the ability to accept new transcoding task, the transcoding server that resource idleness then can be greater than described default Tidle threshold by described transcoding management server is defined as target transcoding server.
The step S506-step S507 of the present embodiment can be the concrete refinement step of step S403 embodiment illustrated in fig. 5.
S508, whether described transcoding management server detects described target data form is data format that described target transcoding server is supported.
Described transcoding management server can based on the host-host protocol consulted with described supervisor's front-end server, and such as Transmission Control Protocol, resolves described transcoding application, obtain described transcoding parameter.Described transcoding management server can obtain the management information of the data format supported for recording described target transcoding server from local memory space, judges the target data form whether described target transcoding server supports described transcoding parameter to comprise.
S509, if described target data form is not the data format that described target transcoding server is supported, described transcoding management server downloads upgrade file according to described target data form.
If the data format that described target data form is supported for described target transcoding server, show that described target transcoding server can complete the data format requirement of described transcoding application; If described target data form is not the data format that described target transcoding server is supported, show that described target transcoding server cannot complete the data format requirement of described transcoding application, described target transcoding server needs upgrading; Such as: if H.265 the data format included by described transcoding parameter is, H.264 described transcoding management server reads described target transcoding server institute supported data form is, then show that described target transcoding server only can carry out transcoding process to the data flow of H.264 form, transcoding process cannot be carried out to the data flow of H.265 form, described transcoding management server then determines that described target transcoding server needs to upgrade, then download upgrade file.
S510, described upgrade file is sent to described target transcoding server by described transcoding management server, adopts described upgrade file to upgrade to make described target transcoding server.
According to example shown in step S509, after described target transcoding server is upgraded, data format H.265 can be supported, the data format requirement of described transcoding application can be completed.Described transcoding management server can in management information target transcoding management server institute supported data form described in synchronized update.
S511, described transcoding application and described source traffic are sent to described target transcoding server by described transcoding management server.
Described transcoding management server based on the host-host protocol consulted between described target transcoding server, can send described transcoding application and described source traffic to described target transcoding server.In specific implementation, the process of transmitting of this step can comprise:
A, described transcoding management server can send the transcoding application of not carrying described transcoding parameter to described target transcoding server, described target transcoding server receives this when not carrying the transcoding application of described transcoding parameter, self-inspection can be carried out, such as: check whether this transcoding task corresponding to transcoding application repeats; Or check that whether local transcoding resource is enough etc., if transcoding task does not repeat, and local transcoding resource is enough, then can return to described transcoding management server and successfully accept information.
B, described transcoding management server receive after success that described target transcoding server returns accepts information, then transmit described transcoding parameter to described target transcoding server.Realize in application, described transcoding parameter can adopt the mode of transcoding configuration words (AVCDecoderConfigurationRecord) to transmit, and the structure of this transcoding configuration words can be expressed as follows:
AVCDecoderConfigurationRecord=
unit32_t?uri(104)+
unit32_t?length;
unit32_t?reserve;
unit64_t?originalStreamID+;
unit32_t?originalFarmePerSec+;
unit32_t?avcSize;
string?avcContent;
Described target transcoding server receives described transcoding configuration words, and returns configuration successful information to described transcoding management server.It should be noted that, the present embodiment also can arrange disaster tolerance mechanism, described target transcoding server can detect whether in Preset Time (such as: 30s, 40s etc.), receive described transcoding configuration words, if receive described transcoding configuration words in Preset Time, show that there is reliable, stable transmission between described target transcoding server with described transcoding management server is connected; If do not receive described transcoding configuration words in Preset Time, show that the transmission between described target transcoding server with described transcoding management server is connected instability, be not suitable for carrying out transcoding process, now described target transcoding server can return configuration failure information to described transcoding management server.
After c, described transcoding management server receive described configuration successful information, then based on the RTSP agreement of UDP message, described source traffic can be pushed to described transcoding management server.
S512, described target transcoding server judges whether the present frame of the described source traffic received is key frame.
S513, if the present frame of described source traffic is key frame, the code check of described source traffic is converted into target bit rate by described target transcoding server, and is described target data form by the Data Format Transform of described source traffic, obtains target data stream.
Source traffic is made up of key frame and non-key frame, and key frame is the important frame in source traffic, can ensure complete reconstruction when decoding; For live video stream, live video stream can be made up of I frame and P frame, and I frame is wherein the key frame of live video stream, and P frame is the non-key frame of live video stream, can reconstruct complete image when I frame can ensure decoding.If the present frame of described source traffic is non-key frame, described target transcoding server then abandons the present frame of described source traffic, and continue receive described source traffic carry out step S512 repeat judge, till the key frame receiving described source traffic; For live video stream, step S512 judges whether the present frame of the live video stream received is I frame, if the present frame of the live video stream received is P frame, then abandon and continue to judge, if the present frame of the live video stream received is I frame, then stop abandoning and the judgement of step S512, proceed to step S513 and carry out transcoding process from I frame, source traffic is converted into target data stream.
Step S512-step S513 can be the concrete refinement step of step S405 embodiment illustrated in fig. 5.Step S512-step S513 can ensure that described target transcoding server carries out transcoding process from the key frame of described source traffic, thus ensures the accuracy of the target data stream that transcoding obtains.
S514, described target data stream is pushed to described transcoding management server by described target transcoding server.
Described target data stream also based on the RTSP agreement of UDP message, can be pushed to described transcoding management server by described target transcoding server.
S515, described target data stream is pushed to described supervisor's front-end server by described transcoding management server.
Described transcoding management server based on the RTSP agreement of UDP message, can push described target data stream to described supervisor's front-end server.
S516, described supervisor's front-end server searches the target members's front-end server be connected with described target audience client.
Because the real-time transcoding processing procedure of the present embodiment is served by described target audience client, therefore, described target audience client is the spectator client can decoded to described target data stream.
S517, described supervisor's front-end server pushes described target data stream to described target members's front-end server, exports described target data stream to described target audience client to make described target members's front-end server.
In practical application, described target members's front-end server based on the RTSP agreement of the RTSP agreement of C/S or P2P, can export described target data stream to flowing to described target audience client to described target data.
Step S516-step S517 can be the concrete refinement step of step S408 embodiment illustrated in fig. 5.
In the embodiment of the present invention, can by supervisor's front-end server according to the state information of programme televised live place channel, transcoding parameter is set, and the transcoding application and propelling movement source traffic of carrying this transcoding parameter is sent to transcoding management server, by described transcoding management server regulation goal transcoding server according to transcoding parameter, transcoding process is carried out to described source traffic and obtains target data stream and final output, owing to directly carrying out transcoding process to source traffic in the process of programme televised live, transcoding real-time is high, postpone low, the actual transcoding demand of live scene can be met, promote efficiency and the suitability of data processing.
Below in conjunction with accompanying drawing 7-accompanying drawing 9, a kind of data processing equipment that the embodiment of the present invention provides is described in detail.This device can run in a front-end server, specifically can run in supervisor's front-end server, to be applied in method shown in above-mentioned Fig. 2-Fig. 6.
Referring to Fig. 7, is the structural representation of a kind of data processing equipment that the embodiment of the present invention provides; This device can comprise: parameter setting module 101, transcoding application module 102, target data receiver module 103 and target data output module 104.
Parameter setting module 101, for when receiving the source traffic of programme televised live, according to the state information of described programme televised live place channel, arranges transcoding parameter.
The state information of described channel can comprise: the characteristic information accessing at least one spectator client of described channel, and the mark of at least one member's front-end server that is connected with at least one spectator client described.Wherein, described transcoding parameter can comprise: target bit rate and target data form.Wherein, data format refers to the coding compression format of data flow, can include but not limited to: H.264 form, H.265 form etc.The characteristic information of described spectator client can comprise: the type information of described spectator client and the decoding capacity information of described spectator client.
Described type information comprises: mobile type or fixed type; The spectator client of mobile type can include but not limited to: notebook computer, mobile phone, intelligent wearable device etc. possess the client of portability, mobility feature; The spectator client of fixed type can include but not limited to: PC etc. possess the client of position relative immobility feature.The decoding capacity information of described spectator client refers to the information for describing the decoding capability that described spectator client possesses, such as: the decoding capacity information of certain spectator client for describe this spectator client can to 600Kbps code check, data flow H.264 decodes; Or, the decoding capacity information of certain spectator client for describe this spectator client ability to 1024Kbps code check, data flow H.265 decodes.
Described parameter setting module 101 can receive the source traffic of the programme televised live that main broadcaster's client sends in the channel of its management, described parameter setting module 101 can obtain the state information of described programme televised live place channel, and arranges transcoding parameter according to the state information of this channel.
Transcoding application module 102, for sending the transcoding application of carrying described transcoding parameter to transcoding management server, and push described source traffic to described transcoding management server, from at least one transcoding server, target transcoding server is chosen to make described transcoding management server, and described transcoding application and described source traffic are sent to described target transcoding server, the transcoding parameter carried according to described transcoding application by described target transcoding server, transcoding process is carried out to described source traffic, obtains target data stream and push to described transcoding management server.
Described supervisor's front-end server can be set up TCP with described transcoding management server and be connected, and described transcoding application module 102 can connect the transcoding application of carrying described transcoding parameter to described transcoding management server transmission based on this TCP; And based on the RTSP agreement of UDP message, described source traffic can be pushed to described transcoding management server.At least one transcoding server that described transcoding management server schedulable manages, according to the instruction of described transcoding parameter, is converted into the target data stream of described programme televised live by the source traffic of described programme televised live.
Target data receiver module 103, for receiving the described target data stream that described transcoding management server pushes.
Described transcoding management server based on the RTSP agreement of UDP message, can push the described target data stream of transcoding acquisition to described supervisor's front-end server; Described target data receiver module 103 based on the RTSP agreement of this UDP message, can receive the described target data stream that described transcoding management server pushes.
Target data output module 104, for exporting described target data stream.
Target data stream can be exported to by each member's front-end server the spectator client can decoded to this target data stream by described target data output module 104, is play this target data stream by the spectator client receiving this target data stream.In practical application, each member's front-end server based on the RTSP agreement of the RTSP agreement of C/S or P2P, can export described target data stream to the spectator client can decoded to described target data stream.
In the embodiment of the present invention, can by supervisor's front-end server according to the state information of programme televised live place channel, transcoding parameter is set, and the transcoding application and propelling movement source traffic of carrying this transcoding parameter is sent to transcoding management server, by described transcoding management server regulation goal transcoding server according to transcoding parameter, transcoding process is carried out to described source traffic and obtains target data stream and final output, owing to directly carrying out transcoding process to source traffic in the process of programme televised live, transcoding real-time is high, postpone low, the actual transcoding demand of live scene can be met, promote efficiency and the suitability of data processing.
Referring to Fig. 8, is the structural representation of the embodiment of the parameter setting module shown in Fig. 7; This parameter setting module 101 can comprise: state information acquisition unit 1101, target determination unit 1102 and parameter set unit 1103.
State information acquisition unit 1101, for when receiving the source traffic of the programme televised live that main broadcaster's client of being connected with described supervisor's front-end server sends, obtains the state information of described programme televised live place channel.
The source traffic of the programme televised live that main broadcaster's client sends is received in the channel that described state information acquisition unit 1101 can manage at described supervisor's front-end server, such as: described state information acquisition unit 1101 can receive the source traffic of the high-definition live broadcasting program XX that main broadcaster's client sends, the code check of this source traffic is 10Mbps, and H.264 data format is.Described state information acquisition unit 1101 can obtain the configuration file of the state information for recording each managed channel from the memory space of described supervisor's front-end server, and from this configuration file, read the state information of described programme televised live place channel.The state information of described channel can comprise: the characteristic information accessing at least one spectator client of described channel, and the mark of at least one member's front-end server that is connected with at least one spectator client described.The characteristic information of described spectator client can comprise: the type information of described spectator client and the decoding capacity information of described spectator client.
Target determination unit 1102, is defined as target audience client for the spectator client being mobile type by type information at least one spectator client described.
The spectator client of mobile type can include but not limited to: notebook computer, mobile phone, intelligent wearable device etc. possess the client of portability, mobility feature.Usually, there is some difference for the hardware performance of the spectator client of mobile type and the spectator client of fixed type, the hardware performance of the spectator client of mobile type is low compared to the hardware performance of the spectator client of fixed type, often cannot be competent at the decoding task of high-definition program, such as: be 10Mbps for code check, data format is the source traffic of high-definition live broadcasting program XX H.264, the hardware performance of certain cell-phone customer terminal cannot support the decoding task of this source traffic preferably, make this source traffic by after this cell-phone customer terminal decoding process, there is frame losing, Caton phenomenon, increase the power consumption of cell-phone customer terminal, the normal play affecting this source traffic exports.The spectator client that type information at least one spectator client described is mobile type by described target determination unit 1102 is defined as target audience client, thinks that determined target audience client provides real-time decoding service.
Parameter set unit 1103, for the decoding capacity information according to described target audience client, arranges transcoding parameter.
The decoding capacity information of described target audience client refers to the information for describing the decoding capability that described target audience client possesses, such as: the decoding capacity information of certain cell-phone customer terminal for describe this cell-phone customer terminal can to 600Kbps code check, data flow H.264 decodes, it is 600Kbps that described parameter set unit 1103 can arrange the target bit rate that transcoding parameter comprises, and H.264 target data form is; For another example: the decoding capacity information of certain PAD client for describe this PAD client can to 1024Kbps code check, data flow H.265 decodes, it is 1024Kbps that described parameter set unit 1103 can arrange the target bit rate that transcoding parameter comprises, and H.265 target data form is.
Alternatively, this parameter setting module 101 also can comprise: quantity judging unit 1104.
Quantity judging unit 1104, for judging whether the quantity of described target audience client is greater than predetermined number threshold value, if the quantity of described target audience client is greater than predetermined number threshold value, then notify the decoding capacity information of described parameter set unit according to described target audience client, transcoding parameter is set.
Described predetermined number threshold value can set according to actual needs, and this predetermined number threshold value is positive integer, such as: described predetermined number threshold value can be set as 3,5,20 etc.If the quantity of described target audience client is greater than predetermined number threshold value, show that the spectator client that there is sufficient amount in live platform waits for real-time transcoding service, described quantity judging unit 1104 can notify that described parameter set unit arranges transcoding parameter.
In the embodiment of the present invention, can by supervisor's front-end server according to the state information of programme televised live place channel, transcoding parameter is set, and the transcoding application and propelling movement source traffic of carrying this transcoding parameter is sent to transcoding management server, by described transcoding management server regulation goal transcoding server according to transcoding parameter, transcoding process is carried out to described source traffic and obtains target data stream and final output, owing to directly carrying out transcoding process to source traffic in the process of programme televised live, transcoding real-time is high, postpone low, the actual transcoding demand of live scene can be met, promote efficiency and the suitability of data processing.
Referring to Fig. 9, is the structural representation of the embodiment of the target data output module shown in Fig. 7; This target data output module 104 can comprise: search unit 1401 and output unit 1402.
Search unit 1401, for searching the target members's front-end server be connected with described target audience client.Due to real-time transcoding processing procedure by described target audience client is served, therefore, described target audience client is the spectator client can decoded to described target data stream.
Output unit 1402, for pushing described target data stream to described target members's front-end server, exports described target data stream to described target audience client to make described target members's front-end server.
In practical application, described target members's front-end server based on the RTSP agreement of the RTSP agreement of C/S or P2P, can export described target data stream to flowing to described target audience client to described target data.
In the embodiment of the present invention, can by supervisor's front-end server according to the state information of programme televised live place channel, transcoding parameter is set, and the transcoding application and propelling movement source traffic of carrying this transcoding parameter is sent to transcoding management server, by described transcoding management server regulation goal transcoding server according to transcoding parameter, transcoding process is carried out to described source traffic and obtains target data stream and final output, owing to directly carrying out transcoding process to source traffic in the process of programme televised live, transcoding real-time is high, postpone low, the actual transcoding demand of live scene can be met, promote efficiency and the suitability of data processing.
The embodiment of the invention also discloses a kind of front-end server, this front-end server can be supervisor's front-end server, this supervisor's front-end server comprises a data processing equipment, the 26S Proteasome Structure and Function of this data processing equipment see the associated description of above-mentioned Fig. 7-embodiment illustrated in fig. 9, can be not repeated herein.
In the embodiment of the present invention, can by supervisor's front-end server according to the state information of programme televised live place channel, transcoding parameter is set, and the transcoding application and propelling movement source traffic of carrying this transcoding parameter is sent to transcoding management server, by described transcoding management server regulation goal transcoding server according to transcoding parameter, transcoding process is carried out to described source traffic and obtains target data stream and final output, owing to directly carrying out transcoding process to source traffic in the process of programme televised live, transcoding real-time is high, postpone low, the actual transcoding demand of live scene can be met, promote efficiency and the suitability of data processing.
Below in conjunction with accompanying drawing 10-accompanying drawing 11, the another kind of data processing equipment that the embodiment of the present invention provides is described in detail.This device can run in transcoding management server, to be applied in method shown in above-mentioned Fig. 2-Fig. 6.
Referring to Figure 10, is the structural representation of the another kind of data processing equipment that the embodiment of the present invention provides; This device can comprise: transcoding application receiver module 201, choose module 202, transcoded processing module 203 and target data pushing module 204.
Transcoding application receiver module 201, for receiving the transcoding application of carrying described transcoding parameter that supervisor's front-end server sends, and receive the source traffic of the programme televised live that described supervisor's front-end server pushes, described transcoding parameter be described supervisor's front-end server when receiving the source traffic of described programme televised live, set by the state information of described programme televised live place channel.
The state information of described channel comprises: the characteristic information accessing at least one spectator client of described channel, and the mark of at least one member's front-end server that is connected with at least one spectator client described; The characteristic information of described spectator client comprises: the type information of described spectator client and the decoding capacity information of described spectator client; Described type information comprises: mobile type or fixed type; Described transcoding parameter comprises: target bit rate and target data form.
Described transcoding management server can be set up TCP with described supervisor's front-end server and be connected, described transcoding application receiver module 201 can connect based on this TCP the transcoding application of carrying described transcoding parameter receiving described supervisor's front-end server and send, and based on the RTSP agreement of UDP message, the source traffic of the programme televised live that described supervisor's front-end server pushes can be received.
Choose module 202, for choosing target transcoding server from least one transcoding server.
Transcoding management server can be used for managing the operating state of at least one transcoding server and carries out task scheduling at least one transcoding server described.Described module 202 of choosing according to the operating state of at least one transcoding server described, can carry out task scheduling at least one transcoding server described, chooses the target transcoding server accepting scheduler task from least one transcoding server described.
Transcoded processing module 203, for described transcoding application and described source traffic are sent to described target transcoding server, with the transcoding parameter making described target transcoding server carry according to described transcoding application, transcoding process is carried out to described source traffic, obtain target data stream, and described target data stream is pushed to described transcoding management server.
Described transcoded processing module 203 sends described transcoding application to described target transcoding server, and based on the RTSP agreement of UDP message, can push described source traffic to described target transcoding server.The instruction of the transcoding parameter that described target transcoding server can carry according to described transcoding application, is converted into the target data stream of described programme televised live by the source traffic of described programme televised live.Described target data stream also based on the RTSP agreement of UDP message, can be pushed to described transcoding management server by described target transcoding server.
Target data pushing module 204, exports for described target data stream being pushed to described supervisor's front-end server.
Described target data pushing module 204 based on the RTSP agreement of UDP message, can push described target data stream to described supervisor's front-end server.Target data stream can be exported to by each member's front-end server the spectator client can decoded to this target data stream by described supervisor's front-end server, is play this target data stream by the spectator client receiving this target data stream.
Alternatively, this device also can comprise: upgrading detection module 205, download module 206 and upgraded module 207.
Whether upgrading detection module 205 is data format that described target transcoding server is supported for detecting described target data form.
Described upgrading detection module 205 can based on the host-host protocol consulted with described supervisor's front-end server, and such as Transmission Control Protocol, resolves described transcoding application, obtain described transcoding parameter.Described upgrading detection module 205 can obtain the management information of the data format supported for recording described target transcoding server from the memory space of described transcoding management server, judges the target data form whether described target transcoding server supports described transcoding parameter to comprise.
Download module 206, if be not the data format that described target transcoding server is supported for described target data form, downloads upgrade file according to described target data form.
If the data format that described target data form is supported for described target transcoding server, show that described target transcoding server can complete the data format requirement of described transcoding application; If described target data form is not the data format that described target transcoding server is supported, show that described target transcoding server cannot complete the data format requirement of described transcoding application, described target transcoding server needs upgrading; Such as: if H.265 the data format included by described transcoding parameter is, H.264 described upgrading detection module 205 reads described target transcoding server institute supported data form is, then show that described target transcoding server only can carry out transcoding process to the data flow of H.264 form, transcoding process cannot be carried out to the data flow of H.265 form, described target transcoding server needs to upgrade, and described download module 206 downloads upgrade file.
Upgraded module 207, for described upgrade file is sent to described target transcoding server, adopts described upgrade file to upgrade to make described target transcoding server.
According to the example in the present embodiment, after described target transcoding server is upgraded, data format H.265 can be supported, the data format requirement of described transcoding application can be completed.Described transcoding management server can in management information target transcoding management server institute supported data form described in synchronized update.
In the embodiment of the present invention, can by supervisor's front-end server according to the state information of programme televised live place channel, transcoding parameter is set, and the transcoding application and propelling movement source traffic of carrying this transcoding parameter is sent to transcoding management server, by described transcoding management server regulation goal transcoding server according to transcoding parameter, transcoding process is carried out to described source traffic and obtains target data stream and final output, owing to directly carrying out transcoding process to source traffic in the process of programme televised live, transcoding real-time is high, postpone low, the actual transcoding demand of live scene can be met, promote efficiency and the suitability of data processing.
Referring to Figure 11, is the structural representation choosing the embodiment of module shown in Figure 10; This is chosen module 202 and can comprise: resources measurement unit 2201 and determining unit 2202.
Resources measurement unit 2201, for detecting the resource idleness of each transcoding server at least one transcoding server described.
Described transcoding management server can be used for managing the operating state of at least one transcoding server and carries out task scheduling at least one transcoding server described.Described resources measurement unit 2201, by detecting the resource idleness of each transcoding server at least one transcoding server described, determines the operating state of at least one transcoding server described.Usually, a transcoding task performed can take a road transcoding resource of a transcoding server, such as: certain transcoding server always co-exists in 10 road transcoding resources, currently performing 9 transcoding tasks, i.e. current occupied 9 road transcoding resources, then the resource idleness of this transcoding server is 1/10.
Determining unit 2202, is defined as target transcoding server for transcoding server resource idleness being greater than default Tidle threshold.
Described default Tidle threshold is (0,1] numerical value between, described default Tidle threshold can set according to actual needs, such as: in order to ensure transcoding efficiency, reduce the processing load of transcoding server, can arrange described default Tidle threshold is 1,0.5 etc.If the resource idleness of certain transcoding server is greater than described default Tidle threshold, show that described transcoding server exists enough transcoding resources, have the ability to accept new transcoding task, the transcoding server that resource idleness can be greater than described default Tidle threshold by described determining unit 2202 is defined as target transcoding server.
In the embodiment of the present invention, can by supervisor's front-end server according to the state information of programme televised live place channel, transcoding parameter is set, and the transcoding application and propelling movement source traffic of carrying this transcoding parameter is sent to transcoding management server, by described transcoding management server regulation goal transcoding server according to transcoding parameter, transcoding process is carried out to described source traffic and obtains target data stream and final output, owing to directly carrying out transcoding process to source traffic in the process of programme televised live, transcoding real-time is high, postpone low, the actual transcoding demand of live scene can be met, promote efficiency and the suitability of data processing.
The embodiment of the invention also discloses a kind of transcoding management server, this transcoding management server can comprise a data processing equipment, and the 26S Proteasome Structure and Function of this data processing equipment see the associated description of Figure 10-embodiment illustrated in fig. 11, can be not repeated herein.
In the embodiment of the present invention, can by supervisor's front-end server according to the state information of programme televised live place channel, transcoding parameter is set, and the transcoding application and propelling movement source traffic of carrying this transcoding parameter is sent to transcoding management server, by described transcoding management server regulation goal transcoding server according to transcoding parameter, transcoding process is carried out to described source traffic and obtains target data stream and final output, owing to directly carrying out transcoding process to source traffic in the process of programme televised live, transcoding real-time is high, postpone low, the actual transcoding demand of live scene can be met, promote efficiency and the suitability of data processing.
Below in conjunction with accompanying drawing 12-accompanying drawing 13, another data processing equipment that the embodiment of the present invention provides is described in detail.This device can run in a transcoding server, specifically can run in target transcoding server, to be applied in method shown in above-mentioned Fig. 2-Fig. 6.
Referring to Figure 12, is the structural representation of another data processing equipment that the embodiment of the present invention provides; This device can comprise: transcoding application receiver module 301, transcoded processing module 302 and target data pushing module 303.
Transcoding application receiver module 301, for receive transcoding management server send carry the transcoding application of transcoding parameter and the source traffic of programme televised live, wherein, described transcoding application and described source traffic are obtained from the reception of supervisor's front-end server by described transcoding management server, described transcoding parameter be described supervisor's front-end server when receiving the source traffic of described programme televised live, set by the state information of described programme televised live place channel.
The state information of described channel comprises: the characteristic information accessing at least one spectator client of described channel, and the mark of at least one member's front-end server that is connected with at least one spectator client described; The characteristic information of described spectator client comprises: the type information of described spectator client and the decoding capacity information of described spectator client; Described type information comprises: mobile type or fixed type; Described transcoding parameter comprises: target bit rate and target data form.
Described transcoding application receiver module 301 receives the described transcoding application that described transcoding management server sends, and show the scheduler task accepting described transcoding management server, and based on the RTSP agreement of UDP message, the source traffic of the programme televised live that described transcoding management server pushes can be received.
Transcoded processing module 302, for the transcoding parameter carried according to described transcoding application, carries out transcoding process to described source traffic, obtains target data stream.
The instruction of the transcoding parameter that described transcoded processing module 302 can be carried according to described transcoding application, is converted into the target data stream of described programme televised live by the source traffic of described programme televised live.
Target data pushing module 303, for described target data stream is pushed to described transcoding management server, pushes to described supervisor's front-end server to make described transcoding management server by described target data stream and exports.
Described target data pushing module 303 can based on the RTSP agreement of UDP message, to the target data stream of the programme televised live that described transcoding management server pushes; Described transcoding management server then can based on the RTSP agreement of UDP message, the target data stream of described programme televised live is pushed to described supervisor's front-end server, by each member's front-end client by described supervisor's front-end server described target data stream is pushed to and can play the spectator client that described target data stream is decoded.
In the embodiment of the present invention, can by supervisor's front-end server according to the state information of programme televised live place channel, transcoding parameter is set, and the transcoding application and propelling movement source traffic of carrying this transcoding parameter is sent to transcoding management server, by described transcoding management server regulation goal transcoding server according to transcoding parameter, transcoding process is carried out to described source traffic and obtains target data stream and final output, owing to directly carrying out transcoding process to source traffic in the process of programme televised live, transcoding real-time is high, postpone low, the actual transcoding demand of live scene can be met, promote efficiency and the suitability of data processing.
Referring to Figure 13, is the structural representation of the embodiment of the transcoded processing module shown in Figure 12; This transcoded processing module 302 can comprise: frame judging unit 3201 and transcoding processing unit 3202..
Frame judging unit 3201, for judging whether the present frame of the described source traffic received is key frame.
Transcoding processing unit 3202, if be key frame for the present frame of described source traffic, is converted into target bit rate by the code check of described source traffic, and is described target data form by the Data Format Transform of described source traffic, obtains target data stream.
Source traffic is made up of key frame and non-key frame, and key frame is the important frame in source traffic, can ensure complete reconstruction when decoding; For live video stream, live video stream can be made up of I frame and P frame, and I frame is wherein the key frame of live video stream, and P frame is the non-key frame of live video stream, can reconstruct complete image when I frame can ensure decoding.If described frame judging unit 3201 judges that the present frame of described source traffic is non-key frame, described target transcoding server then abandons the present frame of described source traffic, described frame judging unit 3201 continues to receive described source traffic and carries out repeating to judge, till the key frame receiving described source traffic; For live video stream, described frame judging unit 3201 judges whether the present frame of the live video stream received is I frame, if the present frame of the live video stream received is P frame, then abandon and continue to judge, if the present frame of the live video stream received is I frame, then stop abandoning and judging, described transcoding processing unit 3202 carries out transcoding process from I frame, and source traffic is converted into target data stream.
In the embodiment of the present invention, can by supervisor's front-end server according to the state information of programme televised live place channel, transcoding parameter is set, and the transcoding application and propelling movement source traffic of carrying this transcoding parameter is sent to transcoding management server, by described transcoding management server regulation goal transcoding server according to transcoding parameter, transcoding process is carried out to described source traffic and obtains target data stream and final output, owing to directly carrying out transcoding process to source traffic in the process of programme televised live, transcoding real-time is high, postpone low, the actual transcoding demand of live scene can be met, promote efficiency and the suitability of data processing.
The embodiment of the invention also discloses a kind of transcoding server, this transcoding server can be target transcoding server, this target transcoding server can comprise a data processing equipment, the 26S Proteasome Structure and Function of this data processing equipment see the associated description of Figure 12-embodiment illustrated in fig. 13, can be not repeated herein.
In the embodiment of the present invention, can by supervisor's front-end server according to the state information of programme televised live place channel, transcoding parameter is set, and the transcoding application and propelling movement source traffic of carrying this transcoding parameter is sent to transcoding management server, by described transcoding management server regulation goal transcoding server according to transcoding parameter, transcoding process is carried out to described source traffic and obtains target data stream and final output, owing to directly carrying out transcoding process to source traffic in the process of programme televised live, transcoding real-time is high, postpone low, the actual transcoding demand of live scene can be met, promote efficiency and the suitability of data processing.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.