Summary of the invention
The invention provides a kind of video collection playback system and method, can realize according to programme and gather video, and collection is associated with playback.
, comprising:
Programme receiver, for obtaining programme in real-time day of program broadcasting system, generates and gathers programme information and send according to programme in real-time day;
Include server, by network, connect described programme receiver, for receiving collection programme information, according to gathering programme information, include video and be stored as video file, obtain and store the store path of described video file and gather programme information;
Playback server, described in connecting by network, include server, for the testing result of inquiring about video file at database, and select the video file of particular detection result, from database, extract the store path of corresponding video file, and according to store path, search corresponding video file and carry out playback;
Database, for store path and the collection programme information of store video files;
Detect server, described in connecting by network, include server, for carrying out signal quality detection to including the video file that server includes, and testing result is added in collection programme information corresponding in database.
Further, described system also comprises: matrix scheduler module, wherein:
The described server of including, also for selecting corresponding video signal source according to gathering programme information gating matrix scheduler module, and include video and be stored as video file by the video and audio link of described matrix scheduler module foundation, obtain and store the store path of described video file and gather programme information; And
Described matrix scheduler module, for setting up video signal source and include the video and audio link between server according to the control of including server.
Further, described system also comprises:
Task management server, by network, be connected to described programme receiver and include between server, the collection programme information sending for program receiving single collector, when confirm gathering programme information and do not conflict with the collection programme information of having preserved in task management server, collection programme information is preserved and mail to and include server.
Wherein, described task manager also has while conflict for the programme acquisition information of preserving with task management server when confirmation programme acquisition information, to programme receiver, returns to conflicting information; And
Programme receiver, also for receiving conflicting information and showing.
Further, described system also comprises:
Task application client, by network, connect described task management server, for acquisition time, the channel information of inputting according to user, according to the time interval of setting, automatically generate and gather programme information, or according to acquisition time and the channel information of user's input, automatically generate collection programme information, and send to described task management server.
A back method, comprising:
Programme receiver obtains programme in real-time day of program broadcasting system, according to programme in real-time day, generates and gathers programme information and send;
Include server and receive collection programme information, according to gathering 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;
Detect server the video file of including server and including is carried out to signal quality detection, and testing result is added in collection programme information corresponding in database;
Playback server, according to the playback program information of user's input, is extracted the store path of corresponding video file, and according to store path, is searched corresponding video file and carry out playback from database.
Wherein, described in, including server includes video and is specially according to gathering programme information:
Include server and select corresponding video signal source according to gathering programme information gating matrix scheduler module;
Matrix scheduler module is set up video signal source and is included the video and audio link between server according to the control of including server;
Include server and include video by described video and audio link.
Further, described in include before server receive to gather programme information, described method also comprises:
The collection programme information that task management server program receiving single collector sends, when confirming that gathering programme information does not conflict with the collection programme information of having preserved in task management server, preserves collection programme information mail to and include server.
Wherein, described collection programme information comprises: the time of collection and the channel information of collection.
The video collection playback system that the embodiment of the present invention provides, can automatically generate collection programme information according to the programme of broadcast system, and include video formation video file and be kept in hard disk according to gathering programme information, the store path of acquisition 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 according to store path, from hard disk, search corresponding video file and carry out playback.While wherein, including video, can adopt matrix scheduler module to select corresponding video signal source.So just can realize according to the programme of broadcast system and gather video, and realization gathers and playback is associated.
Further, the video collection playback system that the embodiment of the present invention provides, also comprise detection server, connect and include server, the video file of having recorded including server, carry out signal quality detection, and the testing result of video file is deposited in database, realize so the automatic detection of video file, and playback server can be inquired about the testing result of video file from database, and the video file of selecting particular detection result extracts the store path of corresponding video file from database, and according to store path, from hard disk, search corresponding video file and carry out playback, like this, just can realize the collection of video, automatically detect and playback, and collection, detection and playback are associated.
Embodiment
In existing broadcast television technique, video collection playback system can not gather and playback according to broadcast items list, and collection is not associated with playback, the embodiment of the present invention provides a kind of video collection playback system, can automatically generate collection programme information according to the programme of broadcast system, and include video formation video file and be kept in hard disk according to gathering programme information, the store path of acquisition 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 according to store path, from hard disk, search corresponding video file and carry out playback.While wherein, including video, can adopt matrix scheduler module to select corresponding video signal source.So just can realize according to the programme of broadcast system and gather video, and realization gathers and playback is associated.
Further, the video collection playback system that the embodiment of the present invention provides, also comprise detection server, connect and include server, the video file of having recorded including server, carry out signal quality detection, and the testing result of video file is deposited in video file descriptor corresponding in database, realize so the automatic detection of video file, and playback server can be inquired about the testing result of video file from database, and the video file of selecting particular detection result extracts the store path of corresponding video file from database, and according to store path, from hard disk, search corresponding video file and carry out playback, like this, just can realize the collection of video, automatically detect and playback, and collection, detection and playback are associated.
The embodiment of the present invention provides a kind of video collection playback system, as shown in Figure 1, comprising:
Programme receiver 11, for obtain programme in real-time day of broadcast system from programme interface, and generate and gather programme information and send according to programme in real-time day, this collection programme information comprises channel information and the acquisition time of collection, can also comprise programm name etc.;
Wherein, programme receiver can Adoption Network mode or serial 422 modes obtain programme in real-time day of broadcast system, network mode adopts ICP/IP protocol, 422 modes adopt 422 agreements to realize data serial transmission, 422 modes are safer, avoid viral interference and guarantee transfer of data promptness, there will not be loud, high-pitched sound Lip river clogging;
Wherein, the playbill data of reception is the data of XML form, and programme receiver can generate collection programme information according to XML standard and data content;
Include server 14, by network, connect program single collector 11, be used for receiving collection programme information, according to the channel information and the acquisition time that gather in programme information, include video and form video file, and video file is stored in to 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, control thread and be to control and include server and start to include, judgement thread is to judge whether to arrive startup recording time, when reaching startup recording time, judgement thread can notify control thread to start to include, because can there is delay in judgement 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 that thread can be notified when 9:59:59 controls thread and starts and include server and start to include, 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 to this locality or central hard disk, can be according to corresponding channel or corresponding time memory allocated space during storage, when channel allocation memory space according to corresponding, including server can be memory space corresponding to each channel allocation, the content of including when this channel reach memory space set point 90% time, meeting alarm, if space is not organized or discharges, include the video file that the automatic deletion of server meeting is included the earliest, discharge memory space, complete and follow-uply include normally.
Playback server 16, is connected and is included server 14 by network, for according to the playback program information of user's input, extracts the store path of corresponding video file, and according to store path, search corresponding video file and carry out playback from database 13;
Database 13, for store path and the collection programme information of store video files.
Adopt above-mentioned video collection playback system, can realize according to programme and automatically generate collection programme information, and gather video generating video file and preserve according to gathering programme information, and playback server can be searched and playback video file according to the playback program information of user's input.
Wherein, in order to realize the flexible UNICOM including between server and video signal source, preferably in said system, can also comprise matrix scheduler module 15, for at video signal source with include and set up video and audio link between server 14, 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, according to the channel information gating matrix scheduler module gathering in programme information, according to the channel information gathering in programme information, select corresponding video signal source; And the video and audio link of setting up by matrix scheduler module 15 is included video;
Matrix scheduler module 15, for according to the control of including server 14, realizes input to the UNICOM of output, sets up video signal source and includes the video and audio link between server.
Further, for fear of the effective operation that gathers programme information conflict and the system of assurance, preferably said system also comprises:
Task management server 12, by network, be connected to programme receiver 11 and include between server 14, the collection programme information sending for program receiving single collector 11, when confirming that this collection programme information does not conflict with the collection programme information of having preserved in task management server 12, collection programme information is preserved and mail to and include server 14;
When collection programme information conflicts with the collection programme information of having preserved in task management server 12, to programme receiver 11, send conflicting informations, programme receiver 11 receives conflicting information, and shows conflicting information;
Wherein, the conflict of detection collection programme information mainly refers to checks that whether the channel of collection Pgmtime and correspondence is overlapping, confirms that collection programme information does not conflict, and mails to collection programme information to include server 14;
Wherein, task management server can also be stored in database 13 gathering programme information simultaneously, can avoid like this gathering programme information and lose;
Wherein, if when task management server 12 is stored in database 13 by collection programme information, includes server 14 and can also from database 13, obtain collection programme information;
In said system, increased task management server, can guarantee that gathering programme information there will not be conflict, guarantee effective operation of system.
Further, in order to detect the video file of including, preferably said system also comprises:
Detect server 17, described in connecting by network, include server 14, for carrying out signal quality detection to including the video file of server 14 formation, and testing result is added in collection programme information corresponding in database 13;
Wherein, the signal quality that detects 17 pairs of video files of server detects, and the signal source of the video file that checking gathers has or not colour bar, color field, Hei Chang, quiet frame etc., and provides the testing result of video file;
The detection server increasing in said system, can detect the video file of including, and video file detection is associated with collection and playback.
Wherein, in order to realize the detection of video file, be associated with collection and playback, preferably playback server 16, also for inquire about the testing result of video file at database, and select the video file of particular detection result, from database 13, extract the store path of corresponding video file, and according to store path, from hard disk, search corresponding video file and carry out playback;
Wherein, playback server 16 can also broadcast system broadcasts rear programme, extracts the store path of corresponding video file, and according to store path, from hard disk, search corresponding video file and carry out playback from database 13 according to corresponding channel, time;
Wherein, playback server 16 can also be obtained and include all video file descriptors that server is included from database, forms list, and the video file of layout appointment, carries out playback;
And playback server 16 is also supported to start, is stopped when playback video file, frame enters, 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 meet user's demand, can be according to user need to include video, preferably in said system, can also comprise task application client 18, can, according to acquisition time section, the channel information of user's input, according to the time interval of setting, automatically generate and gather programme information; Or automatically generate collection programme information according to acquisition time section and the channel information of user's input;
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, can generate 4 and gather programme information, 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, there is no setting-up time interval, only can generate 1 and gather programme information.
Task management server 12 is connected with task application client 18 networks simultaneously, for receiving the collection programme information of task application client, when confirming that this collection programme information does not conflict with the collection programme information of having preserved in task management server 12, collection programme information is preserved and mail to and include server 14;
When gathering programme information and conflict with the collection programme information of having preserved in task management server 12, to task application client transmission conflicting information, task application client is to conflicting information, and shows conflicting information.
As shown in Figure 2, in said system, programme receiver 11 specifically comprises:
Programme obtains unit 21, for obtaining programme in real-time day of program broadcasting system;
Information Monitoring generation unit 22, for generating and gather programme information and send according to day programme in real time.
The embodiment of the present invention also provides a kind of video acquisition back method, as shown in Figure 3, comprising:
S301: programme receiver obtains programme in real-time day of broadcast system;
S302: generate and gather programme information and send according to programme in real-time day, wherein, gather programme information and comprise: the channel information of acquisition time and collection;
S303: task manager receives and gathers programme information;
S304: whether task manager detects collection programme information and conflict, judgment result is that while being, execution step S306, and when the determination result is NO, execution step S305;
S305: task management server sends conflicting information to programme receiver, and programme receiver shows conflicting information, finishes;
S306: task management server sends to collection programme information to include server;
Wherein, task management server can also be kept in database by gathering programme information simultaneously;
Wherein, in above-mentioned steps, S303~S306 can carry out, and in S302, after programme receiver generation collection programme information, directly sends to and includes server, execution step S307;
S307: include server and receive collection programme information, according to the channel information and the acquisition time that gather in programme information, include video and form video file;
Wherein, include server according to the channel information and the acquisition time that gather in programme information, at acquisition time, by network mode or 422 mode gating matrix scheduler modules, select corresponding video signal source, and by matrix scheduler module generating video signal source and include the video and audio link between server, include server and include the video of video signal source and form video file by video and audio link;
S308: include server video file is stored in to 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 database;
If task management server has been preserved collection programme information in step S306, in this step, only need to preserve store path;
Above step can form an independently video acquisition process;
S310: detect server video file is carried out to signal quality detection, and add testing result in database corresponding collection in programme information;
Wherein, this step can be carried out, and namely the video file collecting is not carried out to signal quality detection, directly performs step S311;
S311: playback server, according to the playback program information of user's input, is extracted the store path of corresponding video file from database;
Wherein, if carried out step S310, video file has been carried out to input, playback server also can be inquired about the testing result of video file from database, and select the video file of particular detection result, from database, extract the store path of corresponding video file;
S312: playback server obtains corresponding video file and carries out playback from hard disk according to store path.
Wherein, in above-mentioned steps, the collection programme information that in step S303, task management server receives, can also be generated by task application client, in step S305, task management server can send collision message to task application client, and task application client collision message also shows.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if within of the present invention these are revised and modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.