Summary of the invention
At the above-mentioned defective of conventional art, the embodiment of the invention provides a kind of media program edit methods and system.It is ageing to have realized guaranteeing that media data broadcasts, and can carry out certain adjustment to the media data that collects again, makes it to meet the virtual direct-seeding of broadcast request.
The embodiment of the invention provides a kind of media program edit methods, comprising:
It is single to obtain the acquisition tasks of uploading the office terminal, according to the single media data of gathering of described acquisition tasks;
To the compression of encoding of described media data, generate program data stream;
Obtain the broadcast program list of uploading the office terminal, according to described broadcast program list described program data stream is arranged connection, generation has the virtual programs data flow of playing sequence;
Send described virtual programs data flow to described programme televised live server, export the virtual programs data flow for described programme televised live server according to the unidirectional the Internet of described broadcast program.
In the technical scheme of present embodiment, the media program editing system is according to acquisition tasks single collection media data and the compression of encoding automatically, obtain the broadcast program list that the system manager uploads, the media data editing that will gather in real time according to the broadcast program list is the virtual programs data flow that has certain playing sequence or meet certain broadcast request then.By in virtual programs data flow generative process it being adjusted control, it is ageing to have realized guaranteeing that media data broadcasts, and can carry out certain adjustment to the media data that collects again, makes it to meet the virtual direct-seeding of broadcast request.
Preferably, the described acquisition tasks list of uploading the office terminal that obtains, according to the single media data of gathering of described acquisition tasks, also comprise: it is single to obtain the described acquisition tasks of uploading described office terminal; Judge whether to exist current compression duty, described current compression duty refers to the encoding task of compression of described media data; If there is not described current compression duty, then singly carry out pre-acquisition tasks according to described acquisition tasks, described pre-acquisition tasks refers to receive the task of the audio signal of presetting audio types.
Preferably, describedly judge whether to exist after the current compression duty, also comprise: if there is described current compression duty, judge then whether the sign of described current compression duty is identical with the sign of described pre-acquisition tasks; If inequalityly then finish described current compression duty, carry out described pre-acquisition tasks.
In the technical scheme of present embodiment, ongoing task was judged in advance during the media program editing system needed system before carrying out acquisition tasks, when having ongoing compression duty in the system, if ongoing compression duty is different with pre-acquisition tasks, then stop this compression duty, carry out pre-acquisition tasks, make pre-acquisition tasks to obtain according to system manager's demand priority to handle, improve the editorial efficiency of pre-acquisition tasks.
Preferably, described to the compression of encoding of described media data, generate program data stream, comprising: obtain the data acquisition configuration information; , generate program data stream and/or generate the media file of predetermined format the compression of encoding of described media data according to described data acquisition configuration information.
Preferably, after the media file of described generation program data stream and/or generation predetermined format, also comprise: send described media file to vod server, export described media file to the Internet for described vod server.
In the technical scheme of present embodiment, the media program editing system obtains the data acquisition configuration information that the system manager arranges, and the mode that media data is encoded and compressed is set automatically according to the data acquisition configuration information.When needs outwards provide order program service, can when generating program data stream, generate the media file of predetermined format, need not manually to carry out compressed encoding, improved the editorial efficiency of media data.
Preferably, described to the compression of encoding of described media data, generate after the program data stream, also comprise: send described program data and flow to the programme televised live server, export described program data stream to the Internet for described programme televised live server.
In the technical scheme of present embodiment, the media program editing system is according to the single media data of gathering automatically of acquisition tasks, and the direct coding boil down to can provide the program data stream of direct broadcast service, need not manually to carry out compressed encoding, improved the editorial efficiency of media data.
The embodiment of the invention provides a kind of media program editing system, comprises the acquisition server, coding compression service device, the editing server that communicate to connect, and information delivery server, wherein:
Described acquisition server, it is single to be used for obtaining the acquisition tasks of uploading the office terminal, according to the single media data of gathering of described acquisition tasks;
Described coding compression service device for compression that described media data is encoded, generates program data stream;
Described editing server is used for obtaining the broadcast program list of uploading the office terminal, according to described broadcast program list described program data stream is arranged connection, generates to have the virtual programs data flow of playing sequence;
Described information delivery server is used for sending described virtual programs data flow to described programme televised live server, exports the virtual programs data flow for described programme televised live server according to the unidirectional the Internet of described broadcast program.
Preferably, described acquisition server also is used for obtaining the described acquisition tasks list that upload described office terminal; Judge whether to exist current compression duty, described current compression duty refers to the encoding task of compression of described media data; If there is not described current compression duty, then singly carry out pre-acquisition tasks according to described acquisition tasks, described pre-acquisition tasks refers to receive the task of the audio signal of presetting audio types.
Preferably, described acquisition server also is used for if there is described current compression duty, judges then whether the sign of described current compression duty is identical with the sign of described pre-acquisition tasks; If inequalityly then finish described current compression duty, carry out described pre-acquisition tasks.
Preferably, described coding compression service device also is used for obtaining the data acquisition configuration information; , generate program data stream and/or generate the media file of predetermined format the compression of encoding of described media data according to described data acquisition configuration information.
Preferably, described information delivery server also is used for sending described media file to vod server, exports described media file to the Internet for described vod server.
Preferably, described information delivery server also is used for sending described program data and flow to the programme televised live server, exports described program data stream to the Internet for described programme televised live server.
In the technical scheme of present embodiment, the media program editing system is according to acquisition tasks single collection media data and the compression of encoding automatically, obtain the broadcast program list that the system manager uploads, the media data that will gather in real time according to the broadcast program list directly is compiled as the virtual programs data flow that has certain playing sequence or meet certain broadcast request then.By in virtual programs data flow generative process it being adjusted control, it is ageing to have realized guaranteeing that media data broadcasts, and can carry out certain adjustment to the media data that collects again, makes it to meet the virtual direct-seeding of broadcast request.
The further feature of the embodiment of the invention and advantage will be set forth in the following description, and, partly from specification, become apparent, perhaps understand by implementing the embodiment of the invention.The purpose of the embodiment of the invention and other advantages can realize and obtain by specifically noted structure in the specification of writing, claims and accompanying drawing.
Below by drawings and Examples, the technical scheme of the embodiment of the invention is described in further detail.
Embodiment
Below in conjunction with accompanying drawing the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein only is used for description and interpretation the present invention, and be not used in restriction the present invention.
Fig. 1 is the media program edit methods first embodiment flow chart of the present invention, as shown in Figure 1, the media program edit methods that the embodiment of the invention provides is carried out by the media program editing system, the media program editing system combines for the server of carrying different software, can adopt the form of software and/or hardware to realize, this method comprises:
Step S100, it is single to obtain the acquisition tasks of uploading the office terminal, according to the single media data of gathering of described acquisition tasks;
Step S102 to the compression of encoding of described media data, generates program data stream;
Step S104 obtains the broadcast program list of uploading the office terminal, according to described broadcast program list described program data stream is arranged connection, generates to have the virtual programs data flow of playing sequence;
Step S106 sends described virtual programs data flow to described programme televised live server, exports the virtual programs data flow for described programme televised live server according to the unidirectional the Internet of described broadcast program.
Particularly, after the media program editing system started, it was single to obtain the acquisition tasks that the system manager uploads, and kept copy after the normal load in this locality and be updated periodically acquisition tasks single.Gather media data according to acquisition tasks is single, because the media data that collects is analog signal, the compression of need encoding becomes the digital signal that the programme televised live server can be identified, therefore to the media data compression of encoding, generation program data stream.In the coding compression process, the system manager can upload configuration information to the media program editing system, set the parameter of coding compression process.
Finish the real-time collection and coding compression of media data when system after, the system manager uploads the broadcast program list to management platform by the office terminal, system obtains the broadcast program list by the WebService interface that management platform provides, according to the broadcast program list program data stream is carried out recompile, connection, multiplexing and plug-flow, form the virtual programs data flow with playing sequence that continues broadcast.
At last, send the virtual programs data flow to the programme televised live server, push the virtual programs data flow to the Internet for the programme televised live server, virtual direct broadcast service is provided.After wherein virtual direct broadcast service is real-time collection media data, the program sequential flow that generates is singly adjusted according to the program broadcast, thereby the direct broadcast service that has certain playing sequence or satisfy certain broadcast request externally is provided.
Further, the system manager uploads the broadcast program list to management platform, system carries out the file fluidisation to the broadcast program list, makes editing server to update program data stream according to the broadcast program list of file fluidisation, at last with the broadcast program single transmit to direct broadcast server.
For example, the virtual programs data flow is pushed on the programme televised live server of appointment and broadcasts, broadcast program list for the sequence type broadcast, program began from beginning broadcast time of broadcast program list, broadcast the virtual programs data flow in order one by one, after programme concluding time or virtual programs data flow finish, stop to broadcast.
Further, judge whether there is current compression duty in the current system, specific as follows:
It is single to obtain described acquisition configuration information and the described acquisition tasks uploaded the office terminal, carries out initialization according to described acquisition configuration information; Judge the current effective current compression duty that whether exists; If do not exist then and singly carry out pre-acquisition tasks according to described acquisition tasks, described pre-acquisition tasks is for receiving the digital audio and video signals of presetting audio types and carrying out the real-time coding compression.If have effectively described current compression duty, judge then whether described current compression duty is identical with the sign of described pre-acquisition tasks; If identically then do not do further processing, if inequalityly then finish described current compression duty and carry out described pre-acquisition tasks.
In the technical scheme of present embodiment, the media program editing system is according to acquisition tasks single collection media data and the compression of encoding automatically, obtain the broadcast program list that the system manager uploads, the media data editing that will gather in real time according to the broadcast program list is the virtual programs data flow that has certain playing sequence or meet certain broadcast request then.By in virtual programs data flow generative process it being adjusted control, it is ageing to have realized guaranteeing that media data broadcasts, and can carry out certain adjustment to the media data that collects again, makes it to meet the virtual direct-seeding of broadcast request.
Fig. 2 is the media program edit methods second embodiment flow chart of the present invention, and as shown in Figure 2, this method comprises:
Step S200, it is single to obtain the acquisition tasks of uploading the office terminal, according to the single media data of gathering of described acquisition tasks;
Step S202 obtains the data acquisition configuration information;
Step S204, generates program data stream and/or generates the media file of predetermined format the compression of encoding of described media data according to described data acquisition configuration information, selects to enter step S206 or step S208 according to the data acquisition configuration information;
Step S206 sends described media file to vod server, exports described media file to the Internet for described vod server;
Step S208 sends described program data and flow to the programme televised live server, exports described program data stream to the Internet for described programme televised live server.
Particularly, the data acquisition configuration information of uploading by the office terminal is according to the running parameter of data acquisition configuration information initialization application program.If obtain the failure of data acquisition configuration information, then should select to load the local configuration file copy that keeps.If both there be not local replica, can not correctly obtain the data acquisition configuration information, then periodically attempt reading the data acquisition configuration information from the office terminal, up to success.After obtaining the data acquisition configuration information, should keep copy in this locality, after the normal startup of system, send the normal daily record that starts of a program.In system's running, periodically update the data acquisition configuration information, and compare with the content that correctly obtained last time, change if find the configuration item content, stop the task of gathering, write a daily record of withdrawing from, quit a program.
After the normal startup of system has also been obtained the data acquisition configuration information, obtain and load the acquisition tasks list of uploading the office terminal.Gather media data according to acquisition tasks is single, because the media data that collects is analog signal, the compression of need encoding becomes the digital signal that the programme televised live server can be identified, therefore need be to the media data compression of encoding, generation program data stream.
Three kinds of coding compress modes are arranged in the data acquisition configuration information, be respectively: generate the media file of predetermined format but do not export program data stream; Uninterrupted output 24 hours every days program data stream, but do not generate media file; Uninterrupted output 24 hours every days program data stream, and press predetermined format generation media file.According to the data acquisition configuration information, to the media data compression of encoding, according to the set-up mode of system manager to data acquisition configuration information, select the mode to the coding compression.
The data acquisition configuration information is set for the media file that generates predetermined format as the system manager but does not export program data stream or uninterrupted output 24 hours every days program data stream, and when pressing predetermined format and generating media file, enter step S206, send media file to vod server, for vod server to the Internet output medium file.
Particularly, system is published to this media file on the vod server after generating the media file of predetermined format according to the data acquisition configuration information, and the system manager uploads programme information by the office terminal and submits to the management platform warehouse-in.Vod server obtains active configuration information and release tasks from the Web Service interface service of management platform, provides program request to broadcast service according to the definition of configuration information and release tasks.Wherein, vod server provides program request to broadcast service by http protocol.
Be uninterrupted output 24 hours every days program data stream when the system manager arranges the data acquisition configuration information, but do not generate media file, or uninterrupted output 24 hours every days program data stream, and when pressing predetermined format and generating media file, then enter step S208, send described program data and flow to the programme televised live server, export described program data stream to the Internet for described programme televised live server, after the programme televised live server obtains program data stream, provide the network direct broadcasting service at network in real time.
Wherein, the programme televised live server provides the network direct broadcasting service by RTMP and two kinds of agreements of HTTP.
In the technical scheme of present embodiment, the media program editing system obtains acquisition tasks list and configuration information automatically, according to the single collection of acquisition tasks media data, the compression of encoding automatically then.The type service that provides is provided in indication according to configuration information, directly program data stream is sent to the programme televised live server when network direct broadcasting service is provided; When order program service is provided then system generate the media file of predetermined format, and media file is sent to vod server, provide program request to broadcast service by vod server.Whole broadcast process only needs the system manager, and single and data acquisition configuration information is uploaded to management platform and gets final product with acquisition tasks in advance, system obtains information automatically broadcast program is compressed broadcast automatically, improve compression layout efficient greatly, saved a large amount of manual work.
Fig. 3 is the media program editing system first example structure schematic diagram of the present invention, and as shown in Figure 3, this system comprises acquisition server 11, coding compression service device 12, the editing server 13 that communicates to connect, and information delivery server 14, wherein:
Described acquisition server 11, it is single to be used for obtaining the acquisition tasks of uploading the office terminal, according to the single media data of gathering of described acquisition tasks;
Described coding compression service device 12 for compression that described media data is encoded, generates program data stream;
Described editing server 13 is used for obtaining the broadcast program list of uploading the office terminal, according to described broadcast program list described program data stream is arranged connection, generates to have the virtual programs data flow of playing sequence;
Described information delivery server 14 is used for sending described virtual programs data flow to described programme televised live server, exports the virtual programs data flow for described programme televised live server according to the unidirectional the Internet of described broadcast program.
Particularly, the system manager uploads the acquisition tasks list to management platform by the office terminal.After the media program editing system started, it is single that the interface that acquisition server 11 provides by management platform obtains acquisition tasks, according to the single media data of gathering of acquisition tasks, sends media data then to the compression service device 12 of encoding.
The compression of encoding of coding compression service device 12 pairs of media datas, the generation program data stream is sent to editing server 13.
The interface that editing server 13 provides by management platform obtains the broadcast program list that the system manager uploads, according to the broadcast program list with media data encode, connection, multiplexing and plug-flow, form the virtual programs data flow that continues broadcast, be sent to information delivery server 14 then.
Information delivery server 14 sends described virtual programs data flow to described programme televised live server, exports the virtual programs data flow for described programme televised live server according to the unidirectional the Internet of described broadcast program.
For example, program data stream is pushed on the programme televised live server of appointment and broadcasts, and for the broadcast program list that sequence type broadcasts, program began from beginning broadcast time of broadcast program list, broadcast items data flow one by one in order stops to broadcast after programme concluding time or program data stream finish
Further, the system manager uploads the broadcast program list to management platform, and 13 pairs of broadcast program lists of editing server carry out the file fluidisation.
The media program editing system that various embodiments of the present invention provide is used for carrying out the media program edit methods that the embodiment of the invention provides, and possesses corresponding functional module, repeats no more herein.
In the technical scheme of present embodiment, the media program editing system is according to acquisition tasks single collection media data and the compression of encoding automatically, obtain the broadcast program list that the system manager uploads, the media data editing that will gather in real time according to the broadcast program list is the virtual programs data flow that has certain playing sequence or meet certain broadcast request then.By in virtual programs data flow generative process it being adjusted control, it is ageing to have realized guaranteeing that media data broadcasts, and can carry out certain adjustment to the media data that collects again, makes it to meet the virtual direct-seeding of broadcast request.
Fig. 4 is the media program editing system second example structure schematic diagram of the present invention, and as shown in Figure 4, this system comprises acquisition server 21, coding compression service device 22, the editing server 23 that communicates to connect, and information delivery server 24, wherein:
It is single that acquisition server 21 is used for obtaining the described acquisition tasks of uploading described office terminal; Judge whether to exist current compression duty, described current compression duty refers to the encoding task of compression of described media data.If there is not described current compression duty, then singly carry out pre-acquisition tasks according to described acquisition tasks, described pre-acquisition tasks refers to receive the task of the audio signal of presetting audio types.If there is described current compression duty, judge then whether the sign of described current compression duty is identical with the sign of described pre-acquisition tasks; If inequalityly then finish described current compression duty, carry out described pre-acquisition tasks.
Coding compression service device 22 is used for obtaining the data acquisition configuration information; , generate program data stream and/or generate the media file of predetermined format the compression of encoding of described media data according to described data acquisition configuration information.
Particularly, three kinds of coding compress modes are arranged in the data acquisition configuration information, be respectively: generate the media file of predetermined format but do not export program data stream; Uninterrupted output 24 hours every days program data stream, but do not generate media file; Uninterrupted output 24 hours every days program data stream, and press predetermined format generation media file.According to the data acquisition configuration information, to the media data compression of encoding, according to the set-up mode of system manager to data acquisition configuration information, select the mode to the coding compression.
The data acquisition configuration information is set for the media file that generates predetermined format as the system manager but does not export program data stream or uninterrupted output 24 hours every days program data stream, and when pressing predetermined format and generating media file, send media file to information delivery server 24.Information delivery server 24 is used for sending described media file to vod server, exports described media file to the Internet for described vod server.
Be uninterrupted output 24 hours every days program data stream when the system manager arranges the data acquisition configuration information, but do not generate media file, or uninterrupted output 24 hours every days program data stream, and when press predetermined format and generating media file, the transmission program data flow to information delivery server 24.Information delivery server 24 is used for sending described program data and flow to the programme televised live server, exports described program data stream to the Internet for described programme televised live server.
The media program editing system that various embodiments of the present invention provide is used for carrying out the media program edit methods that the embodiment of the invention provides, and possesses corresponding functional module, repeats no more herein.
Further, the programme televised live server provides the network direct broadcasting service by RTMP and two kinds of agreements of HTTP; Vod server provides program request to broadcast service by http protocol.
In the technical scheme of present embodiment, the media program editing system obtains acquisition tasks list and configuration information automatically, according to the single collection of acquisition tasks media data, the compression of encoding automatically then.The type service that provides is provided in indication according to configuration information, directly program data stream is sent to the programme televised live server when network direct broadcasting service is provided; When order program service is provided then system generate the media file of predetermined format, and media file is sent to vod server, provide program request to broadcast service by vod server.Whole broadcast process only needs the system manager, and single and data acquisition configuration information is uploaded to management platform and gets final product with acquisition tasks in advance, system obtains information automatically broadcast program is compressed broadcast automatically, improve compression layout efficient greatly, saved a large amount of manual work.
Those skilled in the art should understand that the embodiment of the invention can be provided as method, system or computer program.Therefore, the embodiment of the invention can adopt complete hardware embodiment, complete software embodiment or in conjunction with the form of the embodiment of software and hardware aspect.And the embodiment of the invention can adopt the form of the computer program of implementing in one or more computer-usable storage medium (including but not limited to magnetic disc store and optical memory etc.) that wherein include computer usable program code.
The embodiment of the invention is that reference is described according to flow chart and/or the block diagram of method, equipment (system) and the computer program of the embodiment of the invention.Should understand can be by the flow process in each flow process in computer program instructions realization flow figure and/or the block diagram and/or square frame and flow chart and/or the block diagram and/or the combination of square frame.Can provide these computer program instructions to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, make the instruction of carrying out by the processor of computer or other programmable data processing device produce to be used for the device of the function that is implemented in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame appointments.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, make the instruction that is stored in this computer-readable memory produce the manufacture that comprises command device, this command device is implemented in the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame.
These computer program instructions also can be loaded on computer or other programmable data processing device, make and carry out the sequence of operations step producing computer implemented processing at computer or other programmable devices, thereby be provided for being implemented in the step of the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame in the instruction that computer or other programmable devices are carried out.
Obviously, those skilled in the art can carry out various changes and modification to the embodiment of the invention and not break away from the spirit and scope of the embodiment of the invention.Like this, if these of the embodiment of the invention are revised and modification belongs within the scope of claim and equivalent technologies thereof, then the embodiment of the invention also is intended to comprise these changes and modification interior.