Summary of the invention
The invention provides a kind of video acquisition playback system and method, can realize gathering video, and make collection be associated with playback according to programme.
A kind of video acquisition playback system comprises:
The programme receiver is used to obtain programme in real-time day of program broadcasting system, generates the collection programme information according to programme in real-time day and also sends;
Include server, connect described programme receiver, be used for receiving and gather programme information, include video and be stored as video file, obtain and store the store path of described video file and gather programme information according to gathering programme information by network;
Playback server connects the described server of including by network, is used for the playback program information according to user's input, extracts the store path of corresponding video file from database, and searches corresponding video file according to store path and carry out playback;
Database is used for the store path of store video files and gathers programme information.
Further, described system also comprises: the matrix scheduler module, wherein:
The described server of including, also be used for selecting the corresponding video signals source according to gathering programme information gating matrix scheduler module, and include video and be stored as video file by the voice frequency link of looking that described matrix scheduler module is set up, obtain and store the store path of described video file and gather programme information; And
Described matrix scheduler module is used for setting up video signal source and including the voice frequency link of looking between the server according to the control of including server.
Further, described system also comprises:
The task management server, be connected described programme receiver and include between the server by network, be used for the collection programme information that the program receiving single collector sends, when the collection programme information of having preserved in confirm gathering programme information and task management server does not conflict, will gather the programme information preservation and mail to and include server.
Further, described system also comprises:
Detect server, connect the described server of including, be used for carrying out signal quality and detecting, and testing result is added in the collection programme information corresponding in the database including video file that server includes by network.
Wherein, described playback server also is used for the testing result at database inquiry video file, and selects particular detection result's video file, from database, extract the store path of corresponding video file, and search corresponding video file according to store path and carry out playback.
Wherein, described task management server also is used for when confirming that programme acquisition information has when conflict with the programme acquisition information that the task management server is preserved, and returns conflicting information to the programme receiver; And
The programme receiver also is used to receive conflicting information and demonstration.
Further, described system also comprises:
Task application client, connect described task management server by network, be used for acquisition time, channel information according to user's input, gather programme information according to automatic generation of the time interval of setting, perhaps acquisition time and the channel information according to user's input generates the collection programme information automatically, and sends to described task management server.
A kind of video acquisition back method comprises:
The programme receiver obtains the real-time day programme of program broadcasting system, generates according to programme in real-time day and gathers programme information and transmission;
Include server and receive the collection programme information, include video and be stored as video file, obtain and store the store path of described video file and gather programme information in database according to gathering programme information;
Playback server is extracted the store path of corresponding video file, and is searched corresponding video file according to store path and carry out playback according to the playback program information of user's input from database.
Wherein, the described server of including is included video and is specially according to gathering programme information:
Include server and select the corresponding video signals source according to gathering programme information gating matrix scheduler module;
The matrix scheduler module is set up video signal source according to the control of including server and is included the voice frequency link of looking between the server;
Include server and include video by the described voice frequency link of looking.
Further, the described server of including receives before the collection programme information, and described method also comprises:
The collection programme information that task management server program receiving single collector sends when the collection programme information of having preserved in confirming to gather programme information and task management server does not conflict, will be gathered the programme information preservation and mail to and include server.
Further, described method also comprises:
Detect server and the video file of including server and including is carried out signal quality detect, and testing result is added in the collection programme information corresponding in the database.
Wherein, described collection programme information comprises: the time of collection and the channel information of collection.
The video acquisition playback system that the embodiment of the invention provides, can generate the collection programme information automatically according to the programme of broadcast system, and include video and form video file and be kept in the hard disk according to gathering programme information, the store path of acquisition and store video files and collection programme information are in database simultaneously, playback server is according to user's inquiry, from database, extract the store path of video file, and from hard disk, search corresponding video file according to store path and carry out playback.Can adopt the matrix scheduler module to select corresponding video signal source when wherein, including video.So just can realize gathering video, and realize that collection and playback are associated according to the programme of broadcast system.
Further, the video acquisition playback system that the embodiment of the invention provides, also comprise the detection server, connect and include server, record the video file of finishing to including server, carrying out signal quality detects, and the testing result of video file deposited in the database, realize the automatic detection of video file like this, and playback server can be inquired about the testing result of video file from database, and selects particular detection result's video file to extract the store path of corresponding video file from database, and searches corresponding video file according to store path from hard disk and carry out playback, like this, just can realize the collection of video, automatically detect and playback; And feasible collection, detection and playback are associated.
Embodiment
In existing broadcast television technique, the video acquisition playback system can not be gathered and playback according to the broadcast items list, and collection is not related with playback, the embodiment of the invention provides a kind of video acquisition playback system, can generate the collection programme information automatically according to the programme of broadcast system, and include video and form video file and be kept in the hard disk according to gathering programme information, the store path of acquisition and store video files and collection programme information are in database simultaneously, playback server is according to user's inquiry, from database, extract the store path of video file, and from hard disk, search corresponding video file according to store path and carry out playback.Can adopt the matrix scheduler module to select corresponding video signal source when wherein, including video.So just can realize gathering video, and realize that collection and playback are associated according to the programme of broadcast system.
Further, the video acquisition playback system that the embodiment of the invention provides, also comprise the detection server, connect and include server, record the video file of finishing to including server, carrying out signal quality detects, and the testing result of video file deposited in the video file descriptor corresponding in the database, realize the automatic detection of video file like this, and playback server can be inquired about the testing result of video file from database, and the video file of selecting the particular detection result extracts the store path of corresponding video file from database, and from hard disk, search corresponding video file according to store path and carry out playback, like this, just can realize the collection of video, automatically detect and playback; And feasible collection, detection and playback are associated.
The embodiment of the invention provides a kind of video acquisition playback system, as shown in Figure 1, comprising:
Programme receiver 11, be used for obtaining programme in real-time day of broadcast system from the programme interface, and according to the also transmission of real-time day programme generation collection programme information, this collection programme information comprises the channel information and the acquisition time of collection, can also comprise programm name etc.;
Wherein, the programme receiver can adopt network mode or serial 422 modes to obtain programme in real-time day of broadcast system, network mode adopts ICP/IP protocol, 422 modes adopt 422 agreements to realize the data serial transmission, 422 modes are safer, avoid the interference of virus and guarantee the transfer of data promptness, loud, high-pitched sound Lip river clogging can not occur;
Wherein, the playbill data of reception is the data of XML form, and the programme receiver can generate the collection programme information according to XML standard and data content;
Include server 14, connect programme receiver 11 by network, be used for receiving the collection programme information, according to channel information and the acquisition time gathered in the programme information, include video and form video file, and video file is stored in this locality or central hard disk, obtain the store path of video file, and the store path of store video files and gather programme information in database 13;
Wherein include server 14 and adopt two threads, the control thread is that control is included server and begun to include, judge that thread is to judge whether to arrive the startup recording time, when reaching the startup recording time, the judgement thread can notify the control thread to begin to include, can there be delay because judge thread and control cross-thread, cause the time of receipt of video file can have time-delay, therefore by controlling corrected value start-up time of two threads, can reach accurate control, for example: starting time of receipt is 10:00, the delay time of two cross-threads is 1 second, judging then that thread can be notified the control thread to start when 9:59:59 to include server begins to include, and the time of receipt of video file just can not postpone like this, can reach accurate control;
Wherein, include server 14 when the video file of including is stored in this locality or central hard disk, can be during storage according to the channel or the time corresponding memory allocated space of correspondence, when according to the channel allocation memory space of correspondence, include server and can be each channel allocation corresponding memory space, the content of including when this channel reach the memory space set point 90% the time, the meeting alarm, if the space is not organized or discharges, include the video file that the automatic deletion of server meeting is included the earliest, discharge memory space, finish and follow-uply include normally.
Playback server 16 is included server 14 by the network connection, is used for the playback program information according to user's input, extracts the store path of corresponding video file from database 13, and searches corresponding video file according to store path and carry out playback;
Database 13 is used for the store path of store video files and gathers programme information.
Adopt above-mentioned video acquisition playback system, can realize generating the collection programme information automatically according to programme, and gather video generation video file according to the collection programme information and also preserve, and playback server can be searched and playback video file according to the playback program information that the user imports.
Wherein, in order to realize including the flexible UNICOM between server and the video signal source, can also comprise matrix scheduler module 15 in the preferable said system, be used at video signal source and include between the server 14 to set up and look voice frequency link, the input of matrix scheduler module 15 connects video signal source, and output connects includes server 14;
Wherein include server 14 by network mode or 422 mode gating matrix scheduler modules 15, select corresponding video signal source according to the channel information of gathering in the programme information according to the channel information gating matrix scheduler module of gathering in the programme information; And include video by the voice frequency link of looking that matrix scheduler module 15 is set up;
Matrix scheduler module 15 is used for realizing the UNICOM of input to output according to including the control of server 14, sets up video signal source and includes the voice frequency link of looking between the server.
Further, for fear of effective operation of gathering the programme information conflict and the system of assurance, preferable said system also comprises:
Task management server 12, be connected programme receiver 11 and include between the server 14 by network, be used for the collection programme information that program receiving single collector 11 sends, when the collection programme information of having preserved in confirming this collections programme information and task management server 12 does not conflict, will gather the programme information preservation and mail to and include server 14;
When the collection programme information of having preserved in gathering programme information and task management server 12 conflict, to programme receiver 11 transmission conflicting informations, programme receiver 11 received conflicting information, and the demonstration conflicting information;
Wherein, detect to gather the programme information conflict mainly be meant check gather Pgmtime and corresponding channel whether overlapping, confirm to gather programme information and do not conflict, will gather programme information and mail to and include server 14;
Wherein, the task management server can also be stored in the database 13 simultaneously with gathering programme information, can avoid gathering programme information like this and lose;
Wherein, if when task management server 12 will be gathered programme information and be stored in the database 13, then include server 14 and can also from database 13, obtain the collection programme information;
In said system, increased the task management server, can guarantee to gather programme information and conflict can not occur, guarantee effective operation of system.
Further, in order can the video file of including to be detected, preferable said system also comprises:
Detect server 17, connect the described server 14 of including, be used for that the video file of including server 14 formation is carried out signal quality and detect, and testing result is added in the collection programme information corresponding in the database 13 by network;
Wherein, the signal quality that detects 17 pairs of video files of server detects, and the signal source of the video file that checking is gathered has or not colour bar, color field, Hei Chang, quiet frame etc., and provides the testing result of video file;
The detection server that increases in the said system can detect the video file of including, and makes the video file detection be associated with collection and playback.
Wherein, for the detection that realizes video file is associated with collection and playback, preferable playback server 16, also be used for testing result at database inquiry video file, and selection particular detection result's video file, from database 13, extract the store path of corresponding video file, and from hard disk, search corresponding video file according to store path and carry out playback;
Wherein, playback server 16 can also broadcast system broadcasts the back programme, according to the channel of correspondence, the store path that the time is extracted corresponding video file, and searches corresponding video file according to store path from hard disk and carries out playback from database 13;
Wherein, playback server 16 can also be obtained from database and include all video file descriptors that server is included, and forms tabulation, and the video file of layout appointment, carries out playback;
And playback server 16 is also supported to begin when the playback video file, is stopped, frame advances, frame moves back, F.F., rewind down, drag operation; Playback server 16 can also provide the remote operation to video file.
Further, in order to satisfy user's demand, can include video according to user's needs, preferable in said system, can also comprise task application client 18, can gather programme information according to automatic generation of the time interval of setting according to acquisition time section, the channel information of user's input; Perhaps acquisition time section and the channel information according to user's input generates the collection programme information automatically;
For example: the acquisition time section of user's input is 10:00-12:00, and the time interval of setting is 30 minutes, and channel information is A, then can generate 4 and gather programme information, and the collection duration of every acquisition tasks is 30 minutes; If the acquisition time section of user's input is 10:00-12:00, channel information is A, does not have setting-up time at interval, then only can generate 1 and gather programme information.
Task management server 12 is connected with task application client 18 networks simultaneously, be used to receive the collection programme information of task application client, when the collection programme information of having preserved in confirming this collections programme information and task management server 12 does not conflict, will gather the programme information preservation and mail to and include server 14;
When the collection programme information of having preserved in gathering programme information and task management server 12 conflict, to task application client transmission conflicting information, task application client received conflicting information, and the demonstration conflicting information.
As shown in Figure 2, in said system, programme receiver 11 specifically comprises:
Programme obtains unit 21, is used to obtain programme in real-time day of program broadcasting system;
Information Monitoring generation unit 22 is used for gathering programme information and sending according to a day programme generation in real time.
The embodiment of the invention also provides a kind of video acquisition back method, as shown in Figure 3, comprising:
S301: the programme receiver obtains programme in real-time day of broadcast system;
S302: generate collection programme information and transmission according to programme in real-time day, wherein, gather programme information and comprise: the channel information of acquisition time and collection;
S303: the task management server receives gathers programme information;
S304: whether the task management server detect is gathered programme information and is conflicted, judged result when being, execution in step S305, judged result when denying, execution in step S306;
S305: the task management server sends conflicting information to the programme receiver, and the programme receiver shows conflicting information, finishes;
S306: the task management server will be gathered programme information and send to and include server;
Wherein, the task management server can also be kept in the database with gathering programme information simultaneously;
Wherein, in above-mentioned steps, S303~S306 can carry out, and directly sends to behind the programme receiver generation collection programme information among the S302 and includes server, execution in step S307;
S307: include server and receive the collection programme information,, include video and form video file according to channel information and the acquisition time gathered in the programme information;
Wherein, include server according to channel information and the acquisition time gathered in the programme information, select the corresponding video signals source at acquisition time by network mode or 422 mode gating matrix scheduler modules, and generate video signal source and include the voice frequency link of looking between the server by the matrix scheduler module, include server and include the video of video signal source and form video file by looking voice frequency link;
S308: include server video file is stored in this locality or central hard disk;
S309: include the store path that server obtains video file, and store path and collection programme information are stored in the database;
If the task management server has been preserved the collection programme information in step S306, then in this step, only need to preserve store path and get final product;
Above step can form an independently video acquisition process;
S310: detect server video file is carried out the signal quality detection, and add testing result in the database corresponding the collection in the programme information;
Wherein, this step can be carried out, and just the video file that collects is not carried out signal quality and detects, directly execution in step S311;
S311: playback server is extracted the store path of corresponding video file according to the playback program information of user's input from database;
Wherein, if carried out step S310, promptly video file has been carried out input, playback server also can be inquired about the testing result of video file from database, and selection particular detection result's video file, the store path of the corresponding video file of extraction from database;
S312: playback server obtains corresponding video file according to store path and carries out playback from hard disk.
Wherein, in above-mentioned steps, the collection programme information that the task management server receives among the step S303, can also generate by task application client, then in step S305, the task management server can send collision message to task application client, and task application client receives collision message and shows.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.