CN107318041A - The method and system that a kind of Video security is played - Google Patents
The method and system that a kind of Video security is played Download PDFInfo
- Publication number
- CN107318041A CN107318041A CN201710516755.0A CN201710516755A CN107318041A CN 107318041 A CN107318041 A CN 107318041A CN 201710516755 A CN201710516755 A CN 201710516755A CN 107318041 A CN107318041 A CN 107318041A
- Authority
- CN
- China
- Prior art keywords
- video
- played
- server
- frame
- frame informations
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/437—Interfacing the upstream path of the transmission network, e.g. for transmitting client requests to a VOD server
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
- H04N21/44008—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440236—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by media transcoding, e.g. video is transformed into a slideshow of still pictures, audio is converted into text
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/44236—Monitoring of piracy processes or activities
Abstract
The invention discloses the method and system that a kind of Video security is played, this method to the video file played on the terminal device by being parsed, being extracted the video I frame informations of video file, to video information pre-process that obtain can be with one I frame of unique mark by MD5 public algorithms, the video I frame informations video I frame informations uniquely determined are extracted in advance with server end, stored are compared, when receiving the server closing video playback instruction, the connection between server and terminal device is disconnected, terminates video playback;The video I frame informations that the original video I frame informations and terminal device of server storage are played can be compared by the application, to realize the detection to being tampered video, the broadcasting of dangerous video file is closed in time.
Description
Technical field
The present invention relates to digital TV technology, the method and system that more particularly to a kind of Video security is played.
Background technology
IPTV (Interactive Personality TV, IPTV) is that one kind passes through machine based on broadband networks
Top box accessing to wide band network realizes the network TV IPTV Web TV of the services such as digital television time-shifting TV interaction TV.It is
Integrate the multiple technologies such as internet, multimedia, communication, using " Internet set-box+general television set or computer as
User terminal ", provides the user a variety of interactive clothes such as living broadcast of programs, video request program, mobile phone interaction, 3D game, Edutainment
The Web TV of business.
For IPTV, review, the video content that program request cloud platform is all be all by several layers of examination & verifications, it is all to regard
Frequency content is all safe, but during server transmits video to terminal device, data may be distorted by hacker, be usurped
Making into may be containing violence, Pornograph or pirate video, and this distort can have undesirable effect and endanger to society.At present
In order to meet broadcasting and TV to IPTV, review, video content security screening requirement is broadcasted in program request, whether determines video
Safety is the embedded watermark in video file, is specially to treat playing video file in advance to be pre-processed, in video to be played
Watermark is added in file, terminal device checks whether there is corresponding watermark when playing video, to be played regard is illustrated if not
Frequency file is tampered, and is closed and is played, although the method is simple, but if hacker knows that the method for addition watermark can imitate addition
Watermark, such terminal device just can not detect whether video file to be played is tampered.
The content of the invention
It is an object of the invention to propose a kind of method and system of Video security broadcasting, prevent from being tampered video to realize
The problem of broadcast.
To reach above-mentioned purpose, the invention provides following technical scheme:
A kind of method that Video security is played, applied to terminal device, this method includes:
Receive video file to be played and carry out video playback;
Video parsing is carried out to the video file to be played by Video Decoder and obtains video flowing;
The video I frame informations of the video flowing are extracted, and the video I frame informations are sent to server;
By video I frame informations original video I frames corresponding with the video to be played for being stored in advance in the server
Information is compared, and when receiving the server closing video playback instruction, terminates video playback.
It is preferred that, it is described that video flowing is obtained to the video file progress video parsing to be played by Video Decoder,
Including:
Obtain the Program Association Table and Program Map Table of the video file to be played;
Parsing is carried out to the Program Association Table and the Program Map Table by Video Decoder and obtains described to be played
The video information of video file;
The video flowing of the video file to be played is parsed according to the video information.
Wherein, it is described to extract the video I frame informations of the video flowing, and the video I frame informations are sent to server,
Including:
I flag of frame is searched to the video flowing parsed;
I frame informations are then extracted when detecting I flag of frame, the I frame informations include I frames and show that time mark, bag are long and wrap
Data;
Using the bag data of the I frame informations as input, MD5 codes are calculated by MD5 algorithms;
Show that the time marks, the long and described MD5 codes of the bag constitute triple and are used as the video flowing by the I frames
Video I frame informations, and the video I frame informations are sent to server.
The system that a kind of Video security is played, applied to terminal device, the system includes:
First receiving unit, for receiving video file to be played and carrying out video playback;
Resolution unit, video is obtained for carrying out video parsing to the video file to be played by Video Decoder
Stream;
First extraction unit, the video I frame informations for extracting the video flowing, and the video I frame informations are sent
To server;
First comparison unit, for by the video I frame informations and the video to be played for being stored in advance in the server
Corresponding original video I frame informations are compared, and when receiving the server closing video playback instruction, terminate video and broadcast
Put.
It is preferred that, the resolution unit includes:
Acquiring unit, Program Association Table and Program Map Table for obtaining the video file to be played;
First resolution unit, for being solved by Video Decoder to the Program Association Table and the Program Map Table
Analysis obtains the video information of the video file to be played;
Second resolution unit, the video flowing for parsing the video file to be played according to the video information.
Wherein, first extraction unit includes:
Searching unit, for searching I flag of frame to the video flowing parsed;
Subelement is extracted, I frame informations are then extracted for I flag of frame ought to be detected, when the I frame informations include the display of I frames
Between mark, bag be long and bag data;
Computing unit, for using the bag data of the I frame informations as input, MD5 codes to be calculated by MD5 algorithms;
Transmitting element, for showing that the time marks, the long and described MD5 codes of the bag constitute triple and made by the I frames
For the video I frame informations of the video flowing, and the video I frame informations are sent to server.
A kind of method that Video security is played, applied to server, this method includes:
The I frames security inspection request that receiving terminal apparatus is sent, and extract the video I frame informations sended over;
By video I frame informations original video I frames corresponding with the video to be played for being stored in advance in the server
Information is compared, and when continuous comparison error exceedes predetermined threshold value, is sent to the terminal device and closes play instruction so that
The terminal device stops video playback.
It is preferred that, the I frames security inspection request that the receiving terminal apparatus is sent, and extract the video I sended over
Before frame information, this method also includes:
Extract and store in advance the original video I frame informations for the video file to be played for being uploaded to the server;
The video playback request of receiving terminal apparatus;
Video file to be played is extracted according to video playback request to send to terminal device progress video playback.
Wherein, it is described by video I frame informations original corresponding with the video to be played for being stored in advance in the server
Beginning video I frame information is compared, and when continuous comparison error exceedes predetermined threshold value, is sent to the terminal device and closes broadcasting
Instruction so that the terminal device stops video playback, including:
Judge that the video I frame informations have the corresponding original video I frame informations in the server;
If so, then will continuously compare error counts clear 0;
If it is not, then will continuously compare error, count is incremented;
Judge continuous compare malfunctions to count whether exceed predetermined threshold value;
Video playback instruction is closed if so, then being sent to terminal device so that terminal stops video playback.
The system that a kind of Video security is played, applied to server, the system includes:
Second receiving unit, the I frames security inspection request sent for receiving terminal apparatus, and extract what is sended over
Video I frame informations;
Second comparison unit, for by the video I frame informations and the video to be played for being stored in advance in the server
Corresponding original video I frame informations are compared, and when continuous comparison error exceedes predetermined threshold value, are sent to the terminal device
Close play instruction so that the terminal device stops video playback.
It is preferred that, before the receiving unit, the system also includes:
Pretreatment unit, is uploaded to the original of video file to be played of the server and regards for extracting and storing in advance
Frequency I frame informations;
3rd receiving unit, the video playback for receiving terminal apparatus is asked;
Broadcast unit, sends to the terminal device for extracting video file to be played according to video playback request
Carry out video playback.
Wherein, the comparing unit includes:
First judging unit, for judging that it is corresponding described original that the video I frame informations exist in the server
Video I frame informations;
If so, then will continuously compare error counts clear 0;
If it is not, then will continuously compare error, count is incremented;
Second judging unit, for judging continuous compare malfunctions to count whether exceed predetermined threshold value;
Video playback instruction is closed if so, then being sent to terminal device so that terminal stops video playback.
A kind of Video security play system, including terminal device and server, wherein, the terminal device is included as described above
The system that described Video security is played, the server includes the system that Video security as described above is played.
Understand, compared with prior art, played the invention discloses a kind of Video security via above-mentioned technical scheme
Method and system, this application provides the method and system that a kind of Video security is played, applied to terminal device, this method passes through
The video I frame informations of video file are parsed, extracted to the video file played on the terminal device, and calculation is disclosed by MD5
Method to video information pre-process that obtain can be with one I frame of unique mark, by the video I frame informations and server that uniquely determine
End is extracted in advance, the video I frame informations of storage are compared, and when receiving the server closing video playback instruction, is broken
The connection between server and terminal device is opened, terminates video playback;Present invention also provides the side that a kind of Video security is played
Method and system, applied to server, this method to the video file uploaded onto the server by being parsed, extracting video I frames
Information, then to video information pre-process that obtain can be with one I frame of unique mark and will be uniquely true by MD5 public algorithms
Fixed video I frame informations are stored to server, and the video I frame informations uniquely determined and server end extracted in advance, is stored
Video I frame informations are compared, and when continuous comparison error exceedes predetermined threshold value, close broadcasting to terminal device transmission and refer to
Order so that the terminal device stops video playback.By the application can to the original video I frame informations of server storage and
The video I frame informations that terminal device is played are compared, and to realize the detection to being tampered video, dangerous video is closed in time
The broadcasting of file.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
The embodiment of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis
The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 is that the method flow that a kind of Video security applied to terminal device that the embodiment of the present invention one is provided is played shows
It is intended to;
Fig. 2 is video I frame information file structure figures in the embodiment of the present invention;
Fig. 3 is that the system architecture that a kind of Video security applied to terminal device that the embodiment of the present invention one is provided is played is shown
It is intended to;
Fig. 4 is the method flow signal that a kind of Video security applied to server that the embodiment of the present invention two is provided is played
Figure;
Fig. 5 is the system architecture signal that a kind of Video security applied to server that the embodiment of the present invention two is provided is played
Figure;
Fig. 6 is a kind of Video security play system structural representation that the embodiment of the present invention three is provided;
A kind of Video security play system structural representation that Fig. 7 is provided for the embodiment of the present invention with IPTV;
A kind of Video security player method idiographic flow schematic diagram that Fig. 8 is provided for the embodiment of the present invention with IPTV.
Embodiment
Term is explained:
IPTV:IPTV is IPTV, is that one kind utilizes broadband networks, collects the technologies such as internet, multimedia, communication
In one, the brand-new technology of a variety of interactive services including DTV is provided to domestic consumer;
Video ID:The number of a video is identified, just as the ID card No. of people;
Dangerous video:The video for being not from given server is all referred to as dangerous video;
PTS:Presentation Time Stamp (display time mark) represent that display unit appears in aims of systems solution
The time of code device;
I frames:The image (intra picture) or key frame of intraframe coding method, I frames are typically each GOP (MPEG institutes
A kind of video compression technology used) first frame, by moderately compressing, as the reference point of random access, can work as
Into image;
MD5:The entitled Message Digest Algorithm 5 of Message Digest Algorithm MD5 Chinese, it is computer
A kind of widely used hash function in security fields, the integrity protection to provide message;
MD5 algorithms have the characteristics that:
1st, compressibility:The data of random length, the MD5 values length calculated is all fixed;
2nd, easily calculate:MD5 values are calculated from former data to be easy to;
3rd, anti-modification:Former data are made any change, even only changing 1 byte, resulting MD5 values have very
Big difference;
4th, strong impact resistant:Known former data and its MD5 value, want that finding a data with identical MD5 values (forges number
According to) it is extremely difficult;
MD5 codes:The spy of one 128 (bit) to prime information obtain after mathematic(al) manipulation according to disclosed MD5 algorithms
Levy code.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
Embodiment one
Accompanying drawing 1 is referred to, Fig. 1 is that a kind of Video security applied to terminal device that the embodiment of the present invention one is provided is played
Method flow schematic diagram.As shown in figure 1, the embodiments of the invention provide a kind of method that Video security is played, applied to end
End equipment, this method specific steps include as follows:
S101, reception video file to be played simultaneously carry out video playback.
Video file to be played is prestored on the server in the application, and terminal device will first be sent to server
Video request is played, corresponding video file is sent to terminal device progress video and broadcast by server according to broadcasting video request
Put.
S102, treat by Video Decoder playing video file and carry out video parsing and obtain video flowing.
Specifically, obtaining video stream packets for carrying out video parsing to the video file to be played by Video Decoder
Include:
Obtain the Program Association Table and Program Map Table of the video file to be played;
Parsing is carried out to the Program Association Table and the Program Map Table by Video Decoder and obtains described to be played
The video information of video file;
The video flowing of the video file to be played is parsed according to the video information.
S103, the video I frame informations for extracting video flowing, and video I frame informations are sent to server.
Specifically, for extracting the video I frame informations of video flowing, and video I frame informations are sent to server, including:
I flag of frame is searched to the video flowing parsed;
I frame informations are then extracted when detecting I flag of frame, I frame informations include I frames and show time mark, bag length and bag data;
Using the bag data of I frame informations as input, MD5 codes are calculated by MD5 algorithms;
Show that the time marks, bag is long and MD5 codes constitute triple as the video I frame informations of video flowing by I frames, and will
Video I frame informations are sent to server.
S104, by video I frame informations original video I frame informations corresponding with the video to be played for being stored in advance in server
It is compared, when receiving the instruction of server closing video playback, terminates video playback.
The explanation of the corresponding original video I frame informations of video to be played in the application for being stored in advance in server is
First by the video extraction I frame informations to be played uploaded onto the server:
One video I frame bag length typically has tens KB, and big even can reach hundreds of KB, if directly extracting I frames to deposit
Storage not only data volume than larger, compare it is also inconvenient, so needing to find the method that a kind of uniqueness represents I frames so that no
The characteristic value that same I frames are calculated using the method is different.
Because md5 algorithms have compressibility, easily calculate, anti-modification, the features such as strong impact resistant, different input datas
It can produce that value is different and length is the characteristic value of 16 bytes, therefore md5 codes can be calculated as input with I frame data and (use
Iframe_md5 is represented), in conjunction with the pts (being represented with iframe_pts) of I frames, I frame lengths (being represented with iframe_len) etc.
Characteristic can represent an I frame with uniqueness substantially, it is difficult to find two I frame data differences and (iframe_pts, iframe_
Len, iframe_md5) triple identical situation, it is possible to extract in advance all I frames of every video (iframe_pts,
Iframe_len, iframe_md5) information and it is stored into file, every video one file of correspondence uses video ID
To name, such as ID is 1000 the video entitled 1000.iframe.md5 of corresponding file, file format such as Fig. 2.Fig. 2 is included
Two video I frame informations, front and rear is respectively a video I frame information, and each video I frame informations include triple (iframe_
Pts, iframe_len, iframe_md5).
The present invention also discloses corresponding system on the basis of method disclosed above.
The system that a kind of Video security provided in an embodiment of the present invention is played is introduced below, it is necessary to illustrate,
Explanation about the system can refer to the method that Video security provided above is played, and not repeat below.
Accompanying drawing 3 is referred to, Fig. 3 is that a kind of Video security applied to terminal device that the embodiment of the present invention one is provided is played
System structure diagram.As shown in figure 3, the embodiments of the invention provide the system that a kind of Video security is played, applied to end
End equipment, the system specific steps include as follows:
First receiving unit 301, for receiving video file to be played and carrying out video playback;
Resolution unit 302, video flowing is obtained for treating playing video file progress video parsing by Video Decoder;
First extraction unit 303, the video I frame informations for extracting video flowing, and video I frame informations are sent to service
Device;
First comparison unit 304, for video I frame informations is corresponding with the video to be played for being stored in advance in server
Original video I frame informations are compared, and when receiving the instruction of server closing video playback, terminate video playback.
Specifically, resolution unit 302 includes:
Acquiring unit, Program Association Table and Program Map Table for obtaining video file to be played;
First resolution unit, is obtained for carrying out parsing to Program Association Table and the Program Map Table by Video Decoder
Take the video information of video file to be played;
Second resolution unit, the video flowing for parsing video file to be played according to video information.
Specifically, the first extraction unit 303 includes:
Searching unit, for searching I flag of frame to the video flowing parsed;
Subelement is extracted, for then extracting I frame informations when detecting I flag of frame, I frame informations include I frames and show time mark
Note, bag length and bag data;
Computing unit, for using the bag data of I frame informations as input, MD5 codes to be calculated by MD5 algorithms;
Transmitting element, for showing that the time marks, bag is long and MD5 codes constitute triple regarding as video flowing by I frames
Frequency I frame informations, and video I frame informations are sent to server.
This application provides the method and system that a kind of Video security is played, applied to terminal device, it is right that this method passes through
The video file played on the terminal device is parsed, extracted the video I frame informations of video file, passes through MD5 public algorithms
To video information pre-process that obtain can be with one I frame of unique mark, by the video I frame informations and server end that uniquely determine
Extract, the video I frame informations of storage are compared, when receiving the server closing video playback instruction, disconnect in advance
Connection between server and terminal device, terminates video playback.
Embodiment two
Accompanying drawing 4 is referred to, Fig. 4 is that a kind of Video security applied to server that the embodiment of the present invention two is provided is played
Method flow schematic diagram.As shown in figure 4, the embodiments of the invention provide a kind of method that Video security is played, applied to service
Device, this method specific steps include as follows:
The I frames security inspection request that S401, receiving terminal apparatus are sent, and extract the video I frame informations sended over.
S402, by video I frame informations original video I frame informations corresponding with the video to be played for being stored in advance in server
It is compared, when continuous comparison error exceedes predetermined threshold value, is sent to terminal device and close play instruction so that terminal device
Stop video playback.
, it is necessary to will first be uploaded onto the server in server end before server receives the request of I frames security inspections
Video file is pre-processed, and the video I frame informations for extracting video file are stored on the server, and server is receiving end
The video playback request that end equipment is sent carries out video playback, it is necessary to which corresponding video file is sent to terminal device.
Specifically, stating the I frames security inspection request of receiving terminal apparatus transmission, and extract the video I sended over
Before frame information, this method also includes:
Extract and store in advance the original video I frame informations of the video file to be played uploaded onto the server;
The video playback request of receiving terminal apparatus;
Video file to be played is extracted according to video playback request to send to terminal device progress video playback.
Specifically, step S402, the video I frame informations is corresponding with the video to be played for being stored in advance in server
Original video I frame informations are compared, and when continuous comparison error exceedes predetermined threshold value, close broadcasting to terminal device transmission and refer to
Order so that terminal device stops video playback, including:
Judge that video I frame informations have corresponding original video I frame informations in the server;
If so, then will continuously compare error counts clear 0;
If it is not, then will continuously compare error, count is incremented;
Judge continuous compare malfunctions to count whether exceed predetermined threshold value;
Video playback instruction is closed if so, then being sent to terminal device so that terminal stops video playback.
The present invention also discloses corresponding system on the basis of method disclosed above.
The system that a kind of Video security provided in an embodiment of the present invention is played is introduced below, it is necessary to illustrate,
Explanation about the system can refer to the method that Video security provided above is played, and not repeat below.
Accompanying drawing 5 is referred to, Fig. 5 is that a kind of Video security applied to server that the embodiment of the present invention two is provided is played
System structure diagram.As shown in figure 5, the embodiments of the invention provide the system that a kind of Video security is played, applied to service
Device, the system specific steps include as follows:
Second receiving unit 501, the I frames security inspection request sent for receiving terminal apparatus, and extraction are transmitted across
The video I frame informations come;
Second comparison unit 502, for by video I frame informations and the video pair to be played for being stored in advance in the server
The original video I frame informations answered are compared, and when continuous comparison error exceedes predetermined threshold value, send closing to terminal device and broadcast
Put instruction so that terminal device stops video playback.
Specifically, before receiving unit 501, the system also includes:
Pretreatment unit, the original video I for extracting and storing the video file to be played uploaded onto the server in advance
Frame information;
3rd receiving unit, the video playback for receiving terminal apparatus is asked;
Broadcast unit, sends to terminal device progress video for extracting video file to be played according to video playback request
Play.
Specifically, the second comparing unit 502 includes:
First judging unit, for judging that video I frame informations have corresponding original video I frame informations in the server;
If so, then will continuously compare error counts clear 0;
If it is not, then will continuously compare error, count is incremented;
Second judging unit, for judging continuous compare malfunctions to count whether exceed predetermined threshold value;
Video playback instruction is closed if so, then being sent to terminal device so that terminal stops video playback.
This application provides the method and system that a kind of Video security is played, applied to server, this method passes through to upper
The video file for reaching server is parsed, extracts video I frame informations, and then video information is entered by MD5 public algorithms
Row pretreatment obtains to store to server with one I frame of unique mark and by the video I frame informations uniquely determined, will be uniquely true
The video I frame informations that fixed video I frame informations extract in advance with server end, store are compared, and to compare error super when continuous
When crossing predetermined threshold value, sent to the terminal device and close play instruction so that the terminal device stops video playback.
The present invention also discloses a kind of Video security play system on the basis of method and system disclosed above.
A kind of Video security play system provided in an embodiment of the present invention is introduced, it is necessary to which explanation is below, had
The explanation for closing the system can refer to the method that Video security provided above is played, and not repeat below.
Embodiment three
Accompanying drawing 6 is referred to, Fig. 6 is a kind of Video security play system structural representation that the embodiment of the present invention three is provided.
As shown in fig. 6, the embodiments of the invention provide a kind of Video security play system, the system specific steps include terminal device
601 and server 602, wherein, the system that terminal device 601 includes the above-mentioned Video security for being applied to terminal device broadcasting,
Server 602 includes the system that the above-mentioned Video security applied to server is played.
Accompanying drawing 7 is referred to, Fig. 7 is a kind of Video security play system structural representation.In this application by taking IPTV as an example,
Wherein, IPTV is live, program request, reviews that cloud platform program is main to be spread based on transport format with TS, therefore the application agreement is all says
Address diagram and be based on TS stream format.System block diagram is as shown in fig. 7, mainly include terminal device and server, specifically:
Include on terminal device:TS resolution units, video I frames extraction unit, MD5 computing units and the first Video security
Property inspection unit, wherein:
TS resolution units, by parsing Program Association Table (PAT), the table such as Program Map Table (PMT) obtains video information, from
And parse video flowing (ES).
Video I frame extraction units, search I flag of frame to the ES parsed, have I flag of frame then to extract I frame informations, including I
Frame PTS, bag length, bag data etc..
MD5 computing units, md5 codes are calculated with I frames bag data.
The I frame informations of extraction, are sent to server and do security inspection by the first Video security inspection unit.
Server includes:TS resolution units, video I frames extraction unit, MD5 computing units, storage video I frame information units
With the second Video security inspection unit, wherein:
TS resolution units, video I frames extraction unit and the MD5 computing unit each units TS solution corresponding with terminal device
Analyse unit, video I frames extraction unit and MD5 computing unit functions consistent.
Video I frame information units are stored, the I frame informations of extraction are stored into the file of server.
Second Video security inspection unit, the I frame informations sent to terminal device compare, continuous certain number of times ratio
To the video playback of then closing a terminal that malfunctions.
Specifically, referring to accompanying drawing 8, Fig. 8 is that a kind of Video security player method that the embodiment of the present invention three is provided is specific
Schematic flow sheet.
Execution step between terminal device and server is as follows:
1st, terminal device and server start completion;
2nd, terminal device sends video playback request to server;
3rd, server sends video file to terminal device;
4th, the video file that terminal device the reception server is sent, and carry out video playback;
5th, judge whether the video data received is TS forms, if so, step 6 is then jumped to, if it is not, step 12 is then jumped to,
Terminate video playback;
6th, judge whether video finishes, if so, then jumping to step 12 terminates video playback, if it is not, then performing step
7;
7th, judge whether the video data played is I frames, if so, then performing next step, terminate if it is not, then performing step 12
Video playback;
8th, the video informations such as I frames pts, bag length, bag data are extracted;
9th, MD5 codes are calculated according to I frames bag data, generates the triple of video I frame informations;
10th, video I frame informations are sent to server, and the request of I frames security inspection is sent to server and carry out safety
Property inspection;
11st, judge whether to receive the dangerous receipt of video that server is sent, broadcast if so, then performing step 12 and terminating video
Put, if it is not, then return to step 5;
12nd, video playback is terminated;
13rd, judge whether to receive the I frames security inspection request that terminal device is sent, if so, next step is then performed,
Continue to determine whether to receive the I frames security inspection request that terminal device is sent if it is not, then jumping to step 13;
14th, judge whether I frame informations exist in corresponding video file, if so, 15 are then performed, if it is not, then performing step
Rapid 16;
15th, continuous error is counted clear 0, skips back to 13 and continue to determine whether to receive the I frames peace that terminal device is sent
Full property inspection request;
16th, count is incremented for connection error;
17th, judge that continuous error is counted and whether exceed pre-set threshold value, if so, next step is then performed, if it is not, then skipping back to 13
Continue to determine whether to receive the I frames security inspection request that terminal device is sent;
18th, equipment of closing a terminal video playback, and video is sent dangerous time to terminal device by order control passage
Hold, skip back to 13 and continue to determine whether to receive the I frames security inspection request that terminal device is sent.
By interacting between above-mentioned terminal device and server, terminal device and server use individually order control
Passage, which is interacted, facilitates server to manipulate the video playback of terminal, and can say the word the dangerous video of closing in time,
Regarded just closed when only the continuous certain number of times of server checks I frame informations mismatch when Video security is checked
Frequently broadcasting also ensure that broadcasting video can also normal work, reduction erroneous judgement in the environment of having certain wrong bag or packet loss.
In addition, the application uses MD5 public algorithms, than very fast when pre-processing video information, with (pts_
Iframe, iframe_len, iframe_md5) triple represents I frames and regarded while server storage video pre-filtering can be reduced
The data volume that frequency information is produced, also reduces the data volume interacted when terminal is compared with server progress I frames, saves server I frame
Information comparison time.
It should be noted that the present invention is not limited only to the safety broadcasting of IPTV videos, other internet videos are also suitable
Safety is played.
Video request program is accomplished that in the application, first by the parsing data storage of video information and video information to server
In, in premises equipment requests video playback, the video that device end is received parses data and the solution stored in server
Analysis data are compared, and send to terminal device whether video is tampered in server to verify;And for realization
It is net cast, it is necessary to which the existing live video stream received of server carries out the parsing of video information and video information, then
By parsing data storage into the memory of server, in premises equipment requests video playback, device end is received
Video parses parsing data of the data with being stored in server and is compared, and is sent to verify in server to terminal device process
Whether middle video is tampered.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality
Body or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or deposited between operating
In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to
Including for nonexcludability, so that article or equipment including a series of key elements not only include those key elements, but also is wrapped
Other key elements being not expressly set out are included, or are also included for this article or the intrinsic key element of equipment.Do not having more
In the case of many limitations, the key element limited by sentence "including a ...", it is not excluded that in the article including above-mentioned key element or
Also there is other identical element in person's equipment.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight
Point explanation be all between difference with other embodiment, each embodiment identical similar part mutually referring to.
The foregoing description of the disclosed embodiments, enables professional and technical personnel in the field to realize or using the present invention.
A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention
The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one
The most wide scope caused.
Claims (13)
1. a kind of method that Video security is played, it is characterised in that applied to terminal device, this method includes:
Receive video file to be played and carry out video playback;
Video parsing is carried out to the video file to be played by Video Decoder and obtains video flowing;
The video I frame informations of the video flowing are extracted, and the video I frame informations are sent to server;
By video I frame informations original video I frame informations corresponding with the video to be played for being stored in advance in the server
It is compared, when receiving the server closing video playback instruction, terminates video playback.
2. according to the method described in claim 1, it is characterised in that described literary to the video to be played by Video Decoder
Part carries out video parsing and obtains video flowing, including:
Obtain the Program Association Table and Program Map Table of the video file to be played;
Parsing is carried out to the Program Association Table and the Program Map Table by Video Decoder and obtains the video to be played
The video information of file;
The video flowing of the video file to be played is parsed according to the video information.
3. method according to claim 1 or 2, it is characterised in that the video I frame informations of the extraction video flowing,
And send the video I frame informations to server, including:
I flag of frame is searched to the video flowing parsed;
I frame informations are then extracted when detecting I flag of frame, the I frame informations include I frames and show time mark, bag length and bag data;
Using the bag data of the I frame informations as input, MD5 codes are calculated by MD5 algorithms;
Show that the time marks, the long and described MD5 codes of the bag constitute triple as the video of the video flowing by the I frames
I frame informations, and the video I frame informations are sent to server.
4. the system that a kind of Video security is played, it is characterised in that applied to terminal device, the system includes:
First receiving unit, for receiving video file to be played and carrying out video playback;
Resolution unit, video flowing is obtained for carrying out video parsing to the video file to be played by Video Decoder;
First extraction unit, the video I frame informations for extracting the video flowing, and the video I frame informations are sent to clothes
Business device;
First comparison unit, for the video I frame informations is corresponding with the video to be played for being stored in advance in the server
Original video I frame informations be compared, when receiving server closing video playback instruction, terminate video playback.
5. system according to claim 4, it is characterised in that the resolution unit includes:
Acquiring unit, Program Association Table and Program Map Table for obtaining the video file to be played;
First resolution unit, is obtained for carrying out parsing to the Program Association Table and the Program Map Table by Video Decoder
Take the video information of the video file to be played;
Second resolution unit, the video flowing for parsing the video file to be played according to the video information.
6. the system according to claim 4 or 5, it is characterised in that first extraction unit includes:
Searching unit, for searching I flag of frame to the video flowing parsed;
Subelement is extracted, for then extracting I frame informations when detecting I flag of frame, the I frame informations include I frames and show time mark
Note, bag length and bag data;
Computing unit, for using the bag data of the I frame informations as input, MD5 codes to be calculated by MD5 algorithms;
Transmitting element, for showing that the time marks, the long and described MD5 codes of the bag constitute triple and are used as institute by the I frames
The video I frame informations of video flowing are stated, and the video I frame informations are sent to server.
7. a kind of method that Video security is played, it is characterised in that applied to server, this method includes:
The I frames security inspection request that receiving terminal apparatus is sent, and extract the video I frame informations sended over;
By video I frame informations original video I frame informations corresponding with the video to be played for being stored in advance in the server
It is compared, when continuous comparison error exceedes predetermined threshold value, is sent to the terminal device and close play instruction so that be described
Terminal device stops video playback.
8. the method according to claim 7, it is characterised in that the I frame security inspections that the receiving terminal apparatus is sent
Request, and before extracting the video I frame informations that send over, this method also includes:
Extract and store in advance the original video I frame informations for the video file to be played for being uploaded to the server;
The video playback request of receiving terminal apparatus;
Video file to be played is extracted according to video playback request to send to terminal device progress video playback.
9. according to the method described in claim 1, it is characterised in that described by the video I frame informations and to be stored in advance in institute
The corresponding original video I frame informations of video to be played for stating server are compared, and error is compared more than predetermined threshold value when continuous
When, sent to the terminal device and close play instruction so that the terminal device stops video playback, including:
Judge that the video I frame informations have the corresponding original video I frame informations in the server;
If so, then will continuously compare error counts clear 0;
If it is not, then will continuously compare error, count is incremented;
Judge continuous compare malfunctions to count whether exceed predetermined threshold value;
Video playback instruction is closed if so, then being sent to terminal device so that terminal stops video playback.
10. the system that a kind of Video security is played, it is characterised in that applied to server, the system includes:
Second receiving unit, the I frames security inspection request sent for receiving terminal apparatus, and extract the video sended over
I frame informations;
Second comparison unit, for the video I frame informations is corresponding with the video to be played for being stored in advance in the server
Original video I frame informations be compared, when it is continuous compare error and exceed predetermined threshold value when, send and close to the terminal device
Play instruction so that the terminal device stops video playback.
11. the system according to claim 10, it is characterised in that before the receiving unit, the system also includes:
Pretreatment unit, the original video I for extracting and storing the video file to be played for being uploaded to the server in advance
Frame information;
3rd receiving unit, the video playback for receiving terminal apparatus is asked;
Broadcast unit, sends to terminal device progress for extracting video file to be played according to video playback request
Video playback.
12. system according to claim 1, it is characterised in that the comparing unit includes:
First judging unit, for judging that the video I frame informations have the corresponding original video I in the server
Frame information;
If so, then will continuously compare error counts clear 0;
If it is not, then will continuously compare error, count is incremented;
Second judging unit, for judging continuous compare malfunctions to count whether exceed predetermined threshold value;
Video playback instruction is closed if so, then being sent to terminal device so that terminal stops video playback.
13. a kind of Video security play system, it is characterised in that including terminal device and server, wherein, the terminal device
The system played including the Video security as described in claim 4-6 any one claims, the server is included as weighed
Profit requires the system that the Video security described in 10-12 any one claims is played.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710516755.0A CN107318041A (en) | 2017-06-29 | 2017-06-29 | The method and system that a kind of Video security is played |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710516755.0A CN107318041A (en) | 2017-06-29 | 2017-06-29 | The method and system that a kind of Video security is played |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107318041A true CN107318041A (en) | 2017-11-03 |
Family
ID=60180409
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710516755.0A Pending CN107318041A (en) | 2017-06-29 | 2017-06-29 | The method and system that a kind of Video security is played |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107318041A (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108495187A (en) * | 2018-04-13 | 2018-09-04 | 杭州联驱科技有限公司 | Broadcast control device, control method for playing back and play system |
CN109218721A (en) * | 2018-11-26 | 2019-01-15 | 南京烽火星空通信发展有限公司 | A kind of mutation video detecting method compared based on frame |
CN110796053A (en) * | 2019-10-21 | 2020-02-14 | 北京奇艺世纪科技有限公司 | Video detection method and device, electronic equipment and computer readable storage medium |
CN111294639A (en) * | 2018-11-21 | 2020-06-16 | 慧盾信息安全科技(苏州)股份有限公司 | System and method for preventing video from being tampered during real-time online sharing and browsing |
CN111818387A (en) * | 2020-06-30 | 2020-10-23 | 北京市地铁运营有限公司地铁运营技术研发中心 | Display content identification method, identification device, identification system and computer-readable storage medium for rail transit |
CN112203100A (en) * | 2020-09-03 | 2021-01-08 | 中国移动通信集团广东有限公司 | Transmission method and system for reducing uplink and downlink bandwidth requirements |
CN112347821A (en) * | 2019-08-09 | 2021-02-09 | 飞思达技术(北京)有限公司 | Method for extracting IPTV (Internet protocol television) and OTT (over the top) video features based on convolutional neural network |
CN113473243A (en) * | 2020-03-31 | 2021-10-01 | 华为技术有限公司 | Data processing method and apparatus thereof |
CN114339416A (en) * | 2021-12-29 | 2022-04-12 | 神州数码系统集成服务有限公司 | Method, system, equipment, medium and application for monitoring far-end large-screen playing content |
US20220174076A1 (en) * | 2020-11-30 | 2022-06-02 | Microsoft Technology Licensing, Llc | Methods and systems for recognizing video stream hijacking on edge devices |
CN115001710A (en) * | 2022-06-01 | 2022-09-02 | 山东福生佳信科技股份有限公司 | Video playing request management method based on signature parameter updating |
CN117156125A (en) * | 2023-10-25 | 2023-12-01 | 帕科视讯科技(杭州)股份有限公司 | IPTV live stream real-time monitoring method and server based on artificial intelligence |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101350043A (en) * | 2007-07-17 | 2009-01-21 | 华为技术有限公司 | Method and apparatus for detecting consistency of digital content |
CN101615411A (en) * | 2009-07-22 | 2009-12-30 | 福州星网视易信息系统有限公司 | The playlist of networked information delivery system and the encryption method of media task |
CN102012846A (en) * | 2010-12-12 | 2011-04-13 | 成都东方盛行电子有限责任公司 | Integrity check method for large video file |
CN102377684A (en) * | 2010-08-11 | 2012-03-14 | 腾讯科技(深圳)有限公司 | Method, terminal and system for automatically blocking transmission of pornographic video files |
CN103079054A (en) * | 2012-12-30 | 2013-05-01 | 广东九联科技股份有限公司 | Video signal monitoring system and monitoring method |
-
2017
- 2017-06-29 CN CN201710516755.0A patent/CN107318041A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101350043A (en) * | 2007-07-17 | 2009-01-21 | 华为技术有限公司 | Method and apparatus for detecting consistency of digital content |
CN101615411A (en) * | 2009-07-22 | 2009-12-30 | 福州星网视易信息系统有限公司 | The playlist of networked information delivery system and the encryption method of media task |
CN102377684A (en) * | 2010-08-11 | 2012-03-14 | 腾讯科技(深圳)有限公司 | Method, terminal and system for automatically blocking transmission of pornographic video files |
CN102012846A (en) * | 2010-12-12 | 2011-04-13 | 成都东方盛行电子有限责任公司 | Integrity check method for large video file |
CN103079054A (en) * | 2012-12-30 | 2013-05-01 | 广东九联科技股份有限公司 | Video signal monitoring system and monitoring method |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108495187A (en) * | 2018-04-13 | 2018-09-04 | 杭州联驱科技有限公司 | Broadcast control device, control method for playing back and play system |
CN108495187B (en) * | 2018-04-13 | 2023-09-08 | 杭州芯讯科技有限公司 | Play control device, play control method and play system |
CN111294639A (en) * | 2018-11-21 | 2020-06-16 | 慧盾信息安全科技(苏州)股份有限公司 | System and method for preventing video from being tampered during real-time online sharing and browsing |
CN109218721A (en) * | 2018-11-26 | 2019-01-15 | 南京烽火星空通信发展有限公司 | A kind of mutation video detecting method compared based on frame |
CN112347821A (en) * | 2019-08-09 | 2021-02-09 | 飞思达技术(北京)有限公司 | Method for extracting IPTV (Internet protocol television) and OTT (over the top) video features based on convolutional neural network |
CN110796053B (en) * | 2019-10-21 | 2022-07-29 | 北京奇艺世纪科技有限公司 | Video detection method and device, electronic equipment and computer readable storage medium |
CN110796053A (en) * | 2019-10-21 | 2020-02-14 | 北京奇艺世纪科技有限公司 | Video detection method and device, electronic equipment and computer readable storage medium |
CN113473243B (en) * | 2020-03-31 | 2022-10-04 | 华为技术有限公司 | Data processing method and apparatus thereof |
CN113473243A (en) * | 2020-03-31 | 2021-10-01 | 华为技术有限公司 | Data processing method and apparatus thereof |
CN111818387A (en) * | 2020-06-30 | 2020-10-23 | 北京市地铁运营有限公司地铁运营技术研发中心 | Display content identification method, identification device, identification system and computer-readable storage medium for rail transit |
CN112203100A (en) * | 2020-09-03 | 2021-01-08 | 中国移动通信集团广东有限公司 | Transmission method and system for reducing uplink and downlink bandwidth requirements |
CN112203100B (en) * | 2020-09-03 | 2022-07-29 | 中国移动通信集团广东有限公司 | Transmission method and system for reducing uplink and downlink bandwidth requirements |
US20220174076A1 (en) * | 2020-11-30 | 2022-06-02 | Microsoft Technology Licensing, Llc | Methods and systems for recognizing video stream hijacking on edge devices |
CN114339416A (en) * | 2021-12-29 | 2022-04-12 | 神州数码系统集成服务有限公司 | Method, system, equipment, medium and application for monitoring far-end large-screen playing content |
CN115001710A (en) * | 2022-06-01 | 2022-09-02 | 山东福生佳信科技股份有限公司 | Video playing request management method based on signature parameter updating |
CN117156125A (en) * | 2023-10-25 | 2023-12-01 | 帕科视讯科技(杭州)股份有限公司 | IPTV live stream real-time monitoring method and server based on artificial intelligence |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107318041A (en) | The method and system that a kind of Video security is played | |
CN110868600B (en) | Target tracking video plug-flow method, display method, device and storage medium | |
CN106686395A (en) | Illegal-video live-broadcast detection method and system | |
CN106162235B (en) | For the method and apparatus of Switch Video stream | |
AU2013204488B2 (en) | Methods and apparatus to measure exposure to streaming media | |
CN103188522B (en) | Method and system for providing and delivering a composite condensed stream | |
US20110188700A1 (en) | Apparatus for inserting watermark and method therefor | |
RU2486679C2 (en) | Apparatus and method for storing and reading file, having media data storage and metadata storage | |
US10015530B2 (en) | Extracting data from advertisement files for ad insertion | |
CN107682352A (en) | Monitor meter, method, storage medium and the system of Streaming Media | |
CN100484234C (en) | Method for real-time inserting signature and identifying signature in indigit TV transmission flow | |
US20130107118A1 (en) | System and method for transport stream sync byte detection with transport stream having multiple emulated sync bytes | |
CN107659538A (en) | A kind of method and apparatus of Video processing | |
CN109391585A (en) | Video data handling procedure, device, terminal and computer readable storage medium | |
CN112565224A (en) | Video processing method and device | |
CN110139128B (en) | Information processing method, interceptor, electronic equipment and storage medium | |
CN106572052B (en) | Verification method, set top box and system for Internet television playing content | |
CN106791903A (en) | Live processing system, unit and method | |
US8528033B2 (en) | Method and system for providing subscription data | |
CN104219212B (en) | Video file across a network transmission method, apparatus and system | |
CN110418176B (en) | Barrage information processing method and device, server and storage medium | |
CN116320431A (en) | Video compression coding data dynamic wireless network transmission system | |
CN102497269B (en) | A kind of bill method for authenticating and system | |
CN112423033A (en) | Remote monitoring and broadcasting platform, system and method | |
AU2015101273A4 (en) | A computer implemented system and method for transferring multimedia content |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171103 |