Summary of the invention
The present invention provides a kind of video file across a network sending method and device, with safely, effectively, be accurately realized video
The across a network of file transmits.
Another aspect of the present invention also provides a kind of video file across a network method of reseptance and device, with safely, effectively, accurately
Realize the across a network transmission of video file in ground.
Another aspect of the present invention also provides a kind of video file across a network Transmission system, with safely, effectively, be accurately realized
The across a network of video file transmits.
For this purpose, the invention provides the following technical scheme:
The embodiment of the present invention provides a kind of video file across a network sending method, comprising:
Extract the meta data file and video file for needing to send;
It parses the meta data file and obtains metadata information, the metadata is sent by 422 channel USB or serial and is believed
Breath;
The video file is decoded to obtain vision signal, the vision signal is sent by the channel SDI.
Preferably, the meta data file is XML format file;The metadata information includes: to broadcast channel, program names
The check code of title, program ID, broadcast time, program duration etc. and video file.
The embodiment of the present invention also provides a kind of video file across a network method of reseptance, comprising:
Pass through 422 channel reception metadata information of USB or serial;
Meta data file is generated according to the metadata information;
Triggering encodes the vision signal and generates video file by SDI channel reception vision signal;
The video file is verified, check code is generated;
The check code of generation is compared with the check code in the metadata information;
If two check codes are consistent, the meta data file and the video file are stored.
Preferably, the metadata information includes: to broadcast channel, programm name, program ID, broadcast time, program duration
Deng and video file check code;The meta data file is XML format file.
Preferably, the method also includes:
Before storing the meta data file and the video file, the video file is detected, if symbol
Pre-provisioning request is closed, then executes the step of storing the meta data file and the video file.
Preferably, it is described to the video file carry out detection include:
Black field in the video file content, color field, colour bar, still frame are detected;
The format, grammer, document structure information of the video file are detected.
The embodiment of the present invention also provides a kind of video file across a network sending device, comprising:
File extraction module, for extracting the meta data file and video file that need to send;
Parsing module obtains metadata information for parsing the meta data file;
Decoder module, for being decoded to obtain vision signal to the video file;
Metadata information sending module, for sending the metadata information by 422 channel USB or serial;
Vision signal sending module, for sending the vision signal by the channel SDI.
Preferably, the meta data file is XML format file;The metadata information includes: to broadcast channel, program names
The check code of title, program ID, broadcast time, program duration etc. and video file.
The embodiment of the present invention also provides a kind of video file across a network reception device, comprising:
Metadata information receiving module, for passing through 422 channel reception metadata information of USB or serial;
Meta data file generation module, for generating meta data file according to the metadata information;
Video reception module passes through SDI channel reception vision signal for triggering;
Coding module generates video file for encoding to the vision signal;
Correction verification module generates check code for verifying to the video file;
Comparison module, for the check code of generation to be compared with the check code in the metadata information;
Memory module, for when the comparison result of the comparison module is that two check codes are consistent, storing first number
According to file and the video file.
Preferably, the metadata information includes: to broadcast channel, programm name, program ID, broadcast time, program duration
Deng and video file check code;The meta data file is XML format file.
Preferably, described device further include:
Detection module is used for before the memory module stores the meta data file and the video file, to institute
It states video file to be detected, if meeting pre-provisioning request, leads to the memory module and store the meta data file and described
Video file.
Preferably, the detection module, specifically for black field, the color field, colour bar, still frame in the video file content
It is detected, and the format, grammer, document structure information of the video file is detected.
The embodiment of the present invention also provides a kind of video file across a network Transmission system, and the transmission including being located at different sub-network takes
Business device and reception server, the transmission server includes mentioned-above video file across a network sending device, the reception
Server includes mentioned-above video file across a network reception device.
Video file across a network transmission method provided in an embodiment of the present invention, apparatus and system, pass through USB(Universal
Serial BUS, universal serial bus) or serial 422(balanced voltage digital interface circuit electrical characteristic) channel and SDI
(serial digital interface, digital serial interface) channel is respectively transmitted metadata information and vision signal, realizes
The transmission of video file across a network, it is therefore prevented that automatic spread of the virus based on IP network and infected file via IP network or USB or
After serial 422 channel transfer, extend influence to the virus for receiving network, so that video file across a network transmission safety, and in time,
Effectively, accurately.
Specific embodiment
The scheme of embodiment in order to enable those skilled in the art to better understand the present invention with reference to the accompanying drawing and is implemented
Mode is described in further detail the embodiment of the present invention.
For the demand of radio and television video file transmission safety, the embodiment of the present invention passes through 422 channel USB or serial
It is respectively transmitted metadata information and vision signal with the channel SDI, realizes the transmission of video file across a network, it is therefore prevented that virus is based on
After the automatic spread and infected file of IP network are via 422 channel transfer of IP network or USB or serial, the virus for receiving network is expanded
Influence is dissipated, so that video file across a network transmission safety, and in time, effectively, accurately.
As shown in Figure 1, being the flow chart of video file across a network sending method of the embodiment of the present invention, comprising the following steps:
Step 101, the meta data file and video file for needing to send are extracted.
The meta data file is, and one-to-one file associated with video file, for describing video file
Index information, such as video content types, send destination, reception standard, recipient's permission, comment content, remark information, broadcast
Channel, programm name, program ID, broadcast time, program duration etc. and the check code of video file etc. out.In concrete application,
The meta data file can be the file of XML format.
The check code can be MD5(Message Digest Algorithm MD5) check code, naturally it is also possible to be
Other kinds of check code.
The video file refers to the data of the video and audio content formed after video content is compressed according to compression algorithm
File.
It should be noted that above-mentioned meta data file and video file can store in Sender side Storage system.
Step 102, it parses the meta data file and obtains metadata information, by described in the transmission of 422 channel USB or serial
Metadata information.
For the meta data file of XML format, can be parsed using key-value mode, i.e., after acquisition field name,
Data value is obtained according to field name.
The maximum transmission distance in serial 422 channel is 4000 feet (about 1219 meters), peak transfer rate 10Mb/s.
Step 103, the video file is decoded to obtain vision signal, the video is sent by the channel SDI and is believed
Number.
It is decoded the coded format for being principally obtaining the video file to the video file, and whether can solve
The information such as code broadcasting.
In embodiments of the present invention, using the channel SDI, each bit of video data word and corresponding data are passed through
Single channel sequence transmits.Since the data transfer rate of serial digital signal is very high, processing is had to pass through before transmission.By rate: mark
Quasi- clarity SD-SDI, high definition standard HD-SDI and 3G-SDI, corresponding speed be respectively 270Mb/s, 1.485Gb/s and
2.97Gb/s。
It can be seen that the method for the embodiment of the present invention is from the security isolation truly reached when intranet and extranet connect, it is real
The demand of existing trans-departmental across different brackets network (such as office subnet, non-volume subnet, broadcast subnet etc.), realizes video file
Across a network transmission, it is therefore prevented that automatic spread and infected file of the virus based on IP network are via 422 channel IP network or USB or serial
After transmission, extend influence to the virus for receiving network, so that video file across a network transmission safety, and it is timely, effective, accurate.
Correspondingly, the embodiment of the present invention also provides a kind of video file across a network method of reseptance, as shown in Fig. 2, being the party
The flow chart of method, comprising the following steps:
Step 201, pass through 422 channel reception metadata information of USB or serial.
Step 202, meta data file is generated according to the metadata information.
The metadata information includes: to broadcast channel, programm name, program ID, broadcast time, program duration etc. and view
The check code etc. of frequency file.The meta data file can be XML format file.
Step 203, triggering is by SDI channel reception vision signal, and encodes to the vision signal and generate video file.
Step 204, the video file is verified, generates check code.
The check code can be MD5 check code.
Step 205, the check code of generation is compared with the check code in the metadata information.
Step 206, if two check codes are consistent, the meta data file and the video file are stored.
By by the check code in meta data file and carrying out the check code that verification is calculated to the video file
It compares, file can be prevented to be disturbed, destroy or distort.
It in a particular application, can also be further to view before storing the meta data file and the video file
Frequency signal carries out quality testing, for example detects to the black field of material, still frame, mute etc., that is, to the video text received
The video data and audio data of part content carry out quality testing, wherein the video data detection includes: to file content
In black field, color field, colour bar, still frame detection, and video file format, grammer, document structure information etc. are detected.
Such as: video encoding format (H.264, Mpeg2 etc.) is packaged format (PS, TS etc.), and code rate (8mbps, 15Mbps etc.) is wide
Height is than (SD 4:3, high definition 16:9 etc.), GOP length (usual 33 frame data), audio sample rate, the infomation detections such as bit rate, with
Code requirement is ensured compliance with, finds error message in advance.These detections specifically can be by extracting the characteristic value in video file
Description information is compared or extracts in video file packet header with defined feature value to be compared with pre-defined description information
To realize.
Certainly, if detection finds that the video file does not meet code requirement, it can not be stored.
Using the method for the embodiment of the present invention, automatic spread and infected file warp of the virus based on IP network can be not only prevented
It after 422 channel transfer of IP network or USB or serial, extends influence to the virus for receiving network, guarantees video file in difference
It is reliably and securely transmitted between subnet.Further, by received vision signal coding generate video file content and
Format is detected, and ensure that the quality of video file.
Correspondingly, the embodiment of the present invention also provides a kind of video file across a network sending device, as shown in figure 3, being the dress
A kind of structural schematic diagram set.
In this embodiment, described device includes:
File extraction module 301, for extracting the meta data file and video file that need to send;
Parsing module 302 obtains metadata information for parsing the meta data file;
Decoder module 303, for being decoded to obtain vision signal to the video file;
Metadata information sending module 304, for sending the metadata information by 422 channel USB or serial;
Vision signal sending module 305, for sending the vision signal by the channel SDI.
Above-mentioned meta data file is XML format file;The metadata information includes: to broadcast channel, programm name, program
The check code of ID, broadcast time, program duration etc. and video file.
Using the device of the embodiment of the present invention, automatic spread and infected file warp of the virus based on IP network can be effectively prevented
It after 422 channel transfer of IP network or USB or serial, extends influence to the virus for receiving network, guarantees video file across a network
The safety of transmission.
Correspondingly, the embodiment of the present invention also provides a kind of video file across a network reception device, as shown in figure 4, being the dress
A kind of structural schematic diagram set.
In this embodiment, described device includes:
Metadata information receiving module 401, for passing through 422 channel reception metadata information of USB or serial;
Meta data file generation module 402, for generating meta data file according to the metadata information;
Video reception module 403 passes through SDI channel reception vision signal for triggering;
Coding module 404 generates video file for encoding to the vision signal;
Correction verification module 405 generates check code for verifying to the video file;
Comparison module 406, for the check code of generation to be compared with the check code in the metadata information;
Memory module 407, for storing the member when the comparison result of the comparison module is that two check codes are consistent
Data file and the video file.
Above-mentioned metadata information includes: to broadcast channel, programm name, program ID, broadcast time, program duration etc. and view
The check code of frequency file;The meta data file is XML format file.
In order to further ensure the quality of video file, in another embodiment of the video file across a network reception device
In further include:
Detection module is used for before the memory module stores the meta data file and the video file, to institute
It states video file to be detected, if meeting pre-provisioning request, leads to the memory module and store the meta data file and described
Video file.
Above-mentioned detection module can specifically examine the black field in the video file content, color field, colour bar, still frame
It surveys, and the format, grammer, document structure information of the video file is detected.Detailed process can refer to the front present invention
Description in embodiment of the method, details are not described herein.
Using the device of the embodiment of the present invention, automatic spread and infected file warp of the virus based on IP network can be not only prevented
It after 422 channel transfer of IP network or USB or serial, extends influence to the virus for receiving network, guarantees video file in difference
It is reliably and securely transmitted between subnet.Further, by received vision signal coding generate video file content and
Format is detected, and ensure that the quality of video file.
Correspondingly, the embodiment of the present invention also provides a kind of video file across a network Transmission system, as shown in figure 5, being that this is
A kind of networking schematic diagram of system.
The system comprises: positioned at the transmission server 51 and reception server 52 of different sub-network.Wherein:
The transmission server 51 includes mentioned-above video file across a network sending device, passes through IP transmission channel
The meta data file and video file for needing to send are extracted from Sender side Storage system, and are sent out by 422 channel USB or serial
Metadata information is sent to give reception server 52;Vision signal, which is sent, by the channel SDI gives reception server 52.
Correspondingly, the reception server 52 includes mentioned-above video file across a network reception device, passes through USB
Or serial 422 channel reception metadata information, it is verified by SDI channel reception vision signal, and to the video file,
Check code is generated, and when the check code of generation is consistent with the check code in the metadata information, it will by IP transmission channel
Meta data file and video file storage are into receiving end storage system.
It, can be real from security isolation when truly reaching intranet and extranet connection using the system of the embodiment of the present invention
The demand of existing trans-departmental across different brackets network (such as office subnet, non-volume subnet, broadcast subnet etc.), realizes video file
Across a network transmission, it is therefore prevented that automatic spread and infected file of the virus based on IP network are via 422 channel IP network or USB or serial
After transmission, extend influence to the virus for receiving network, so that video file across a network transmission safety, and it is timely, effective, accurate.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device and
For system embodiment, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to method
The part of embodiment illustrates.System embodiment described above is only schematical, wherein described be used as separation unit
The unit that part illustrates may or may not be physically separated, and component shown as a unit can be or can also
Not to be physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to reality
Need that some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art exist
In the case where not making the creative labor, it can understand and implement.
The embodiment of the present invention has been described in detail above, and specific embodiment used herein carries out the present invention
It illustrates, the above description of the embodiments is only used to help understand the method and apparatus of the present invention;Meanwhile for the one of this field
As technical staff, according to the thought of the present invention, there will be changes in the specific implementation manner and application range, to sum up institute
It states, the contents of this specification are not to be construed as limiting the invention.