CN106791923B - A kind of stream of video frames processing method and video server - Google Patents

A kind of stream of video frames processing method and video server Download PDF

Info

Publication number
CN106791923B
CN106791923B CN201611262073.3A CN201611262073A CN106791923B CN 106791923 B CN106791923 B CN 106791923B CN 201611262073 A CN201611262073 A CN 201611262073A CN 106791923 B CN106791923 B CN 106791923B
Authority
CN
China
Prior art keywords
image
video
stream
module
terminal device
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.)
Active
Application number
CN201611262073.3A
Other languages
Chinese (zh)
Other versions
CN106791923A (en
Inventor
纪琦华
蒲珂
方宏
李哲山
胡彬
陈传海
蔡忠善
张毅萍
魏明
蔡辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Science And Technology Co Ltd
Original Assignee
China Science And Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by China Science And Technology Co Ltd filed Critical China Science And Technology Co Ltd
Priority to CN201611262073.3A priority Critical patent/CN106791923B/en
Publication of CN106791923A publication Critical patent/CN106791923A/en
Application granted granted Critical
Publication of CN106791923B publication Critical patent/CN106791923B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2347Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving video stream encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25808Management of client data
    • H04N21/25816Management of client data involving client authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/26613Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel for generating or managing keys in general
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/462Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
    • H04N21/4627Rights management associated to the content

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Graphics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The present invention provides a kind of stream of video frames processing method, video server and terminal devices, the treating method comprises following steps: the tableaux image of each video frame in the stream of video frames of video server acquisition terminal device request;Position of the tableaux image in stream of video frames is encoded;Fuzzy Processing is carried out to the tableaux image, obtains blurred picture and error image;According to the Encryption Algorithm and encryption key negotiated in advance with the terminal device, the error image of acquisition is encrypted, generates encryption file;The encryption file of stream of video frames and generation after image procossing is transmitted to the terminal device.It is provided by the invention that the tableaux image of video frame has been subjected to Fuzzy Processing acquisition blurred picture and error image, and error image is encrypted, it avoids other people from being directly viewable or obtain clearly video frame images, realizes effective encryption to video, improve the safety of transmission of video.

Description

A kind of stream of video frames processing method and video server
Technical field
The present invention relates to multi-media safety technical field, in particular to a kind of stream of video frames processing method, video server And terminal device.
Background technique
Today's society is the society of advanced IT application, and information security issue is to national economy, social development and people's lives Seem ever more important, and in information security issue, the secrecy technology of network multimedia is played a very important role.With calculating The fast development and extensive use of machine technology, network technology and multimedia technology obtain information for people and provide great side Just, while also contain huge commercial interest, the safety of multimedia messages how to be protected to become international research hot spot.
With the rapid development of computer networking technology and hardware device, network video Streaming Media is also increasingly popular, such as me Common Online Video site for service, paid video, on-line film etc., user can not only watch the terminal itself used and set The video file of standby middle storage, can also watch the video file of network side, when user wants the Video service of viewing network side When the video file stored in device, can by using terminal device to video server send transmission of video request, video After server receives transmission of video request, corresponding video file transfer is given to the terminal device, terminal device will receive Video file play out.But since the features such as opening, sharing, dynamic of internet, makes the safety of the network information Serious threat and interference are received, there is rogue attacks, distorts, download and the safety problems such as piracy, existing patent application Number pass through for stream of video frames processing method, video server and terminal device disclosed in 201110293983.9 to video frame flow point Random orderingization is carried out after group to handle, while obtaining random orderingization treated frame sequential information, then by encrypted frame sequential information And the stream of video frames after random orderingization is sent to terminal device, after terminal device is decrypted, then is ranked up processing, that is, has been formed Whole video, the technology in application process, are easy to appear packet loss after stream of video frames grouping, such video will be unable to sequence completely, The viewing of user is seriously affected, in addition, being also possible to be stolen after random orderingization treated frame sequential information encryption, this will be complete The effect of video-encryption is not had.
Summary of the invention
Rogue attacks can not be avoided completely in order to solve existing the summarization of encryption techniques, distorted, are downloaded and pirate, safety The problems such as lower, the present invention provides one kind to be effectively encrypted for every frame picture in video flowing, improves and decodes Difficulty, stream of video frames processing method, video server and the terminal device of multi-layer security processing.
Specific technical solution of the present invention is as follows:
The present invention provides a kind of stream of video frames processing methods, the treating method comprises following steps:
S1, video server acquisition terminal device request stream of video frames in each video frame tableaux image;
S2, position of the tableaux image in stream of video frames is encoded;
S3, Fuzzy Processing is carried out to the tableaux image, obtains blurred picture and error image;
The Encryption Algorithm and encryption key that S4, basis are negotiated in advance with the terminal device, by the differential chart of acquisition As being encrypted, encryption file is generated;
S5, the encryption file of stream of video frames and generation after image procossing is transmitted to the terminal device.
Further, in step S1, each video frame in the stream of video frames of video server acquisition terminal device request The specific method of tableaux image includes:
S1-1: the facility information of the terminal device and the viewing time of stream of video frames are prestored in the video server Corresponding relationship list between section;
S1-2: the facility information of presently described terminal device is acquired, and searches current institute in the corresponding relationship list State the period that terminal device can be watched in stream of video frames;
S1-3: the stream of video frames that the terminal device can be watched is acquired according to the viewing time section of lookup.
Further, in step S3, the specific method for carrying out Fuzzy Processing to the tableaux image of acquisition includes:
S3-1: carrying out Fuzzy Processing to the tableaux image by image fuzzy algorithmic approach and obtain blurred picture, described Blurred picture algorithm is Gaussian Blur algorithm;
S3-2: the tableaux image is subtracted into the blurred picture and obtains error image;
S3-3: by preset threshold values will be rejected in the error image the lesser noise of area and background area to get To only containing the error image of picture area.
Further, it in step S4, according to the Encryption Algorithm and encryption key negotiated in advance with the terminal device, will obtain The error image obtained is encrypted, and is specifically included:
S4-1: the error image position encoded letter corresponding with the tableaux image before Fuzzy Processing is determined Breath;
S4-2: processing is carried out to the error image and forms image data, specifically includes: the error image is decomposed into Several pixels;Color value label is carried out to each pixel, sequentially extracts the described of each pixel It is image data that color value, which forms a discrete display,;
S4-3: according to the Encryption Algorithm and encryption key negotiated in advance with the terminal device, by the determining position Encoded information is encrypted with described image data information, generates encryption file corresponding with stream of video frames.
Preferably, the processing method further include:
S6, the video server will be inserted into several spring windows, the bullet in the stream of video frames of the premises equipment requests The display interface for jumping window is equipped with decoding problem, while solution corresponding with the decoding problem is stored in the video server Code answer, and according to the Encryption Algorithm and encryption key negotiated in advance with the terminal device, decoding answer is subjected to encryption shape At cryptographic attachment, it is sent to the terminal device;
S7, the bounce time point for presetting the spring window, reach the preset bounce time point, the spring window Automatic spring;
The decoding answer that S8, the video server input the terminal device on the display interface of the spring window Judged, if answer is correct, the spring window is hidden automatically, if answer mistake, video playing position is jumped to initially Sart point in time, and stop playing.
Invention also provides a kind of video server, including communicate memory module, image capture module, position Coding module, Fuzzy Processing module, encrypting module and transmission module;
Several stream of video frames are preserved in the memory module;
Described image acquisition module is used to acquire each view in the memory module in the stream of video frames of premises equipment requests The tableaux image of frequency frame;
The position encoded module is for encoding position of the tableaux image in stream of video frames;
The Fuzzy Processing module is used to carry out Fuzzy Processing to the tableaux image, obtains blurred picture and difference Image;
The encrypting module is used to be obtained according to the Encryption Algorithm and encryption key negotiated in advance with the terminal device The error image encrypted, generate encryption file;
The transmission module is used to the encryption file of stream of video frames and generation after image procossing being transmitted to the end End equipment.
Further, the video server further includes communicating with the memory module, described image acquisition module Stream of video frames determining module, the stream of video frames determining module include that equipment information collection unit, searching unit, stream of video frames are adopted Collect unit;
The equipment information collection unit is used to acquire the facility information of presently described terminal device
The searching unit is used for the corresponding relationship list prestored according to the facility information in the memory module The middle period searching presently described terminal device and capable of being watched in stream of video frames;
The stream of video frames acquisition unit is used to acquire the terminal device according to the viewing time section of lookup and can watch Stream of video frames, and be sent to described image acquisition module.
Further, the encrypting module includes the location information determination unit to communicate, image data processing unit, adds Close subelement;
The location information determination unit is used to determine the tableaux figure before the error image and Fuzzy Processing As corresponding position encoded information;
Described image data processing unit is used to carry out the error image processing to form image data;
The encryption sub-unit operable is used for according to the Encryption Algorithm and encryption key negotiated in advance with the terminal device, will be true The fixed position encoded information is encrypted with described image data information, generates encryption file corresponding with stream of video frames.
Preferably, the video server further includes and the memory module, the encrypting module, the transmission module phase Spring window insertion module, the spring module, answer judgment module, video frame jump module of communication, wherein
The spring window insertion module in the stream of video frames of the premises equipment requests for being inserted into several spring windows, institute The display interface for stating spring window is equipped with decoding problem;
Decoding answer corresponding with the decoding problem is also stored in the memory module;The encrypting module is also used to According to the Encryption Algorithm and encryption key negotiated in advance with the terminal device, it is attached that decoding answer is subjected to encryption formation encryption Part, and the terminal device is sent to by the transmission module;
The spring module is used to preset the bounce time point of the spring window, reaches the preset bounce time Point, the spring module are used to pop up the spring window;
The answer judgment module is used for the decoding inputted on the display interface of the spring window to the terminal device Answer is judged, if answer is correct, the spring window is hidden automatically, if answer mistake, video playing position passes through institute It states video frame jump module and jumps to initial sart point in time, and stop playing.
The present invention also provides a kind of terminal device, including communicate acquisition module, deciphering module, synthesis reduction mould Block, playing module, wherein
The module that obtains is used to obtain the stream of video frames after Fuzzy Processing and encryption file corresponding with stream of video frames;
The deciphering module is used to negotiate in advance according to the terminal device before stream of video frames progress Fuzzy Processing Encryption Algorithm and encryption key, to it is described acquisition module obtain the encryption file be decrypted, obtain the differential chart As with before Fuzzy Processing the corresponding position encoded information of the tableaux image and the error image carry out processing and formed Image data;
The image data of the error image that the synthesis recovery module is used to decrypt the deciphering module and described Position encoded information carries out synthesis with the blurred picture and handles to be reduced into the tableaux image before Fuzzy Processing, Stream of video frames before obtaining Fuzzy Processing;
The playing module is used to play the stream of video frames before the Fuzzy Processing obtained after the synthesis recovery module reduction.
Beneficial effects of the present invention are as follows: compared with prior art, the present invention overcomes be easy after stream of video frames grouping Existing packet loss, and treated is also possible to be stolen after frame sequential information encrypts for random orderingization, this will not have video-encryption completely Effect the defects of, the tableaux image of video frame has been carried out Fuzzy Processing and has obtained blurred picture and differential chart by the present invention Picture, and error image is encrypted, it avoids other people from being directly viewable or obtain clearly video frame images, realizes to video Effectively encryption, improves the safety of transmission of video, avoids video stolen, is effectively protected video file by this method Copyright, it is therefore prevented that generation the problems such as pirate, jack.
Detailed description of the invention
Fig. 1 is a kind of stream of video frames processing method described in embodiment 1, the method flow schematic diagram of the processing method;
Fig. 2 is a kind of stream of video frames processing method as described in example 2, the method flow of step S1 in the processing method Schematic diagram;
Fig. 3 is a kind of stream of video frames processing method as described in example 2, the method flow of step S3 in the processing method Schematic diagram;
Fig. 4 is a kind of stream of video frames processing method as described in example 2, the method flow of step S4 in the processing method Schematic diagram;
Fig. 5 is a kind of further flow chart of stream of video frames processing method described in embodiment 3;
Fig. 6 is a kind of structural block diagram of video server as described in example 4;
Fig. 7 is a kind of structural block diagram of video server described in embodiment 5;
Fig. 8 is the structural block diagram of encrypting module in a kind of video server described in embodiment 5;
Fig. 9 is a kind of structural block diagram of video server described in embodiment 5;
Figure 10 is a kind of structural block diagram of terminal device described in embodiment 6.
Wherein: 1, memory module;2, image capture module;3, position encoded module;4, Fuzzy Processing module;5, mould is encrypted Block;501, location information determination unit;502, image data processing unit;503, encryption sub-unit operable;6, transmission module;7, video Frame stream determining module;701, equipment information collection unit;702, searching unit;703, stream of video frames acquisition unit;8, it bounces Window is inserted into module;9, spring module;10, answer judgment module;11, video frame jump module;12, module is obtained;13, mould is decrypted Block;14, recovery module is synthesized;15, playing module.
Specific embodiment
Invention is further described in detail with following embodiment with reference to the accompanying drawing.
Embodiment 1
As shown in Figure 1, the embodiment of the present invention 1 provides a kind of stream of video frames processing method, the treating method comprises with Lower step:
S1, video server acquisition terminal device request stream of video frames in each video frame tableaux image;Root According to the request of terminal device, video server receives request, and the file of request is handled, and acquires the stream of video frames of request In each video frame tableaux image, the video frame is the tableaux of single width.
S2, position of the tableaux image in stream of video frames is encoded;Every tableaux image Position Number is carried out according to play time sequence, Position Number is unable to entanglement.
S3, Fuzzy Processing is carried out to the tableaux image, obtains blurred picture and error image;Specifically, passing through Image fuzzy algorithmic approach carries out Fuzzy Processing to obtain the fuzzy data of image being fuzzy graph to each Zhang Suoshu tableaux image The data that the data of the original tableaux image subtract the blurred picture are obtained the number of the error image by picture According to, storage when, the blurred picture and the error image are stored together.
The Encryption Algorithm and encryption key that S4, basis are negotiated in advance with the terminal device, by the differential chart of acquisition As being encrypted, encryption file is generated;
S5, the encryption file of stream of video frames and generation after image procossing is transmitted to the terminal device.
Then the present invention is carried out error image by the way that the picture of each video frame in video has been carried out Fuzzy Processing It is sent to terminal device together with the blurred picture after Fuzzy Processing after encryption, encrypted file is decrypted in terminal device Afterwards, then by error image and blurred picture the video before processing is synthesized, therefore carries out video playing.
Method provided by the invention is not only simple, but also can effectively avoid video by piracy, distort, by video The processing of frame picture carries out effective protection to the tableaux of video frame, for this purpose, by the way that the method achieve to the effective of video Encryption, prevents video from being revealed in transmission process by video, and effective video could be formed by only being synthesized again by video.
Embodiment 2
As shown in Fig. 2, the embodiment of the present invention 2 further defines on the basis of embodiment 1, and in step S1, video clothes The specific method of tableaux image of each video frame in the stream of video frames for device acquisition terminal device request of being engaged in includes:
S1-1: the facility information of the terminal device and the viewing time of stream of video frames are prestored in the video server Corresponding relationship list between section;
Since some videos only go to watch or download for certain terminal devices, it is played according to facility information confirmation Stream of video frames, for example, first terminal equipment is only capable of viewing 10-20 minutes, second terminal equipment is only capable of viewing 5-15 minutes.
S1-2: the facility information of presently described terminal device is acquired, and searches current institute in the corresponding relationship list State the period that terminal device can be watched in stream of video frames;The facility information for acquiring present terminal equipment, according to the equipment Information inquires the period that can be watched in corresponding relationship list.
S1-3: the stream of video frames that the terminal device can be watched is acquired according to the viewing time section of lookup.According to viewing The stream of video frames that period can be watched to confirmation.
The determination of stream of video frames plays audit and judgement to terminal device, only for use by the terminal device of audit, Corresponding stream of video frames can be acquired, video download or broadcasting otherwise can not be carried out.
The design of this method has prevented downloading of the unauthenticated terminal device to video, effectively increases video download Or the safety of viewing, prevent video to be arbitrarily downloaded, distort or piracy etc..
As shown in figure 3, it is further, in step S3, the tool of Fuzzy Processing is carried out to the tableaux image of acquisition Body method includes:
S3-1: carrying out Fuzzy Processing to the tableaux image by image fuzzy algorithmic approach and obtain blurred picture, described Blurred picture algorithm is Gaussian Blur algorithm;Wherein, Gaussian Blur is an image of Adobe image software company, U.S. exploitation Processing software: a filter in Adobe Photoshop (series), in the principle of Gaussian Blur, it is according to Gaussian curve Pixel color value is adjusted, it is selectively blurred picture, that is, Gaussian Blur can press the pixel color value around certain point Gaussian curve statistics is got up, and mathematically average weighted calculation method obtains the color value of this curve for use, can finally leave The profile of personage, i.e. curve.
S3-2: the tableaux image is subtracted into the blurred picture and obtains error image;By tableaux image Data subtract the data that the data of blurred picture obtained after Gaussian Blur processing obtain error image;
S3-3: by preset threshold values will be rejected in the error image the lesser noise of area and background area to get To only containing the error image of picture area.Error image is carried out noise and background area to divide and reject to get to containing only There are the error image of personage or specific picture area, which is effective image.
As shown in figure 4, needing further exist for explanation, in step S4, add according to what the terminal device was negotiated in advance The error image of acquisition is encrypted, is specifically included by close algorithm and encryption key:
S4-1: the error image position encoded letter corresponding with the tableaux image before Fuzzy Processing is determined Breath;According to the position encoded information of the tableaux image, the corresponding position encoded information of the error image is determined.
S4-2: processing is carried out to the error image and forms image data information, is specifically included: by the error image point Solution is several pixels;Color value label is carried out to each pixel, sequentially extracts each pixel It is image data information that the color value, which forms a discrete display,;Obtain the image data in error image.
S4-3: according to the Encryption Algorithm and encryption key negotiated in advance with the terminal device, by the determining position Encoded information is encrypted with described image data information, generates encryption file corresponding with stream of video frames.By to differential chart The position encoded information and image data information of picture are encrypted, and the encryption to error image is effectively realized, to prevent letter Breath is divulged a secret.
Embodiment 3
As shown in figure 5, the embodiment of the present invention 3 is on the basis of embodiment 1 in addition to carrying out mould for the image to video frame Paste processing is outer, has also carried out the processing of video frame, has realized the secondary encryption of video.The processing method further include:
S6, the video server will be inserted into several spring windows, the bullet in the stream of video frames of the premises equipment requests The display interface for jumping window is equipped with decoding problem, while solution corresponding with the decoding problem is stored in the video server Code answer, and according to the Encryption Algorithm and encryption key negotiated in advance with the terminal device, decoding answer is subjected to encryption shape At cryptographic attachment, it is sent to the terminal device;Window bounce in the form of video frame and in the stream of video frames of premises equipment requests Video frame be associated, be inserted into decoding problem in the video frame of spring window, at the same by the video frame of associated spring window with Terminal device is sent to after decoding answer encryption.
S7, the bounce time point for presetting the spring window, reach the preset bounce time point, the spring window Automatic spring;The video frame that spring window preferably can be set is associated with the video frame in which video flowing, is preset described The bounce time point of spring window jumps out spring window when playing video to bounce time point automatically.
S8, the input decoding answer on spring window, the video server is to the terminal device in the spring window The decoding answer inputted on display interface is judged, if answer is correct, the spring window is hidden automatically, if answer mistake, Then video playing position jumps to initial sart point in time, and stops playing.
This method is used for through related question video frame in video streaming, when only input decodes the correct premise of answer Under, video playing can be carried out, for this purpose, improving the peace of transmission of video by the method achieve the secondary encryption of video Quan Xing.
Embodiment 4
As shown in fig. 6, invention also provides a kind of video server, adopted including the memory module 1 that communicates, image Collect module 2, position encoded module 3, Fuzzy Processing module 4, encrypting module 5 and transmission module 6;
Several stream of video frames are preserved in the memory module 1, video server is used for for storing video to biography The encryption of defeated video.
Described image acquisition module 2 is each in the stream of video frames of premises equipment requests in the memory module 1 for acquiring The tableaux image of video frame;The position encoded module 3 is for the position to the tableaux image in stream of video frames It sets and is encoded;The Fuzzy Processing module 4 is used to carry out Fuzzy Processing to the tableaux image, obtains blurred picture And error image;The encrypting module 5 is used for according to the Encryption Algorithm and encryption key negotiated in advance with the terminal device, will The error image obtained is encrypted, and encryption file is generated;The transmission module 6 is used for the video frame after image procossing Stream and the encryption file generated are transmitted to the terminal device.
Video server structure provided by the invention is simple, by Fuzzy Processing module 4 to the still image of video frame into Row Fuzzy Processing, and treated blurred picture and it will be sent to terminal device after error image encryption, only work as terminal device Ability synthetic video after decryption, and then video is played, for this purpose, improving the safety of transmission of video, prevent video from arbitrarily downloading, It plays, usurp, distort.
Embodiment 5
As shown in fig. 7, the embodiment of the present invention 5 further defines the video server also on the basis of embodiment 4 Including the stream of video frames determining module to communicate with the memory module 1, described image acquisition module 2, the stream of video frames is true Cover half block includes equipment information collection unit 701, searching unit 702, stream of video frames acquisition unit 703;
The equipment information collection unit 701 is used to acquire the facility information of presently described terminal device;The lookup is single Member 702 is presently described for being searched in the corresponding relationship list that the memory module 1 prestores according to the facility information The period that terminal device can be watched in stream of video frames;The stream of video frames acquisition unit 703 is used for the sight according to lookup It sees that the period acquires the stream of video frames that the terminal device can be watched, and is sent to described image acquisition module 2.
It is acquired by the facility information to terminal device, then carries out identification certification, by the terminal device of identification, The stream of video frames played will be determined according to the relationship of facility information and play time section, and then determines the video-frequency band played, for this purpose, Restriction with this configuration effectively increases the safety of transmission of video.
As shown in figure 8, it should be further noted that the encrypting module 5 includes that the location information to communicate determines list First 501, image data processing unit 502, encryption sub-unit operable 503;The location information determination unit 501 is for determining the difference It is worth image position encoded information corresponding with the tableaux image before Fuzzy Processing;Described image data processing unit 502 form image data for carrying out processing to the error image;The encryption sub-unit operable 503 is used for basis and the terminal The Encryption Algorithm and encryption key that equipment is negotiated in advance, by the determining position encoded information and described image data information into Row encryption, generates encryption file corresponding with stream of video frames.
As shown in Figure 9, it is preferred that the video server further includes and the memory module 1, the encrypting module 5, institute Spring window insertion module 8, spring module 9, answer judgment module 10, video frame jump module 11 that transmission module 6 communicates are stated, Wherein, the spring window insertion module 8 is described for being inserted into several spring windows in the stream of video frames of the premises equipment requests The display interface of spring window is equipped with decoding problem;Solution corresponding with the decoding problem is also stored in the memory module 1 Code answer;The encrypting module 5 is also used to be solved according to the Encryption Algorithm and encryption key negotiated in advance with the terminal device Code answer carries out encryption and forms cryptographic attachment, and is sent to the terminal device by the transmission module 6;The spring module 9, for presetting the bounce time point of the spring window, reach the preset bounce time point, the spring module 9 is used It is popped up in by the spring window;The answer judgment module 10 be used for the terminal device it is described spring window display interface The decoding answer of upper input is judged, if answer is correct, the spring window is hidden automatically, if answer mistake, video are broadcast It puts position and initial sart point in time is jumped to by the video frame jump module 11, and stop playing.
This method is used for through related question video frame in video streaming, when only input decodes the correct premise of answer Under, video playing can be carried out, for this purpose, improving the peace of transmission of video by the method achieve the secondary encryption of video Quan Xing.
Embodiment 6
As shown in Figure 10, the present invention also provides a kind of terminal device, including communicate acquisition module 12, deciphering module 13, recovery module 14, playing module 15 are synthesized, wherein
The module 12 that obtains is for the stream of video frames and encryption corresponding with stream of video frames text after obtaining Fuzzy Processing Part;The deciphering module 13 is used to add according to negotiate the terminal device before stream of video frames progress Fuzzy Processing in advance Close algorithm and encryption key, the encryption file obtained to the acquisition module 12 are decrypted, and obtain the error image With before Fuzzy Processing the corresponding position encoded information of the tableaux image and the error image carry out processing formation Image data;The image data of the error image that the synthesis recovery module 14 is used to decrypt the deciphering module 13 and The position encoded information carries out synthesis processing with the blurred picture to be reduced into the tableaux figure before Fuzzy Processing As to get to the stream of video frames before Fuzzy Processing;
The playing module 15 is used to play the video before the Fuzzy Processing obtained after the synthesis recovery module 14 restores Frame stream.
After terminal device receives encryption file, it is decrypted for file will to be encrypted, the error image after being decrypted, The still image of video frame before encrypting is formed by the way that error image and blurred picture are carried out synthesis, so that video is formed, into And video is played out, improve the safety and validity of video, effectively prevent video stolen, once terminal device it Between when mutually transmitting, since the period that different terminal devices plays is different, so, video will not be played arbitrarily, only It can be played out on facility information is corresponding with play time section, and after image synthesis accurately, this arrangement enhances videos The safety for playing and transmitting.
The present invention is not limited to above-mentioned preferred forms, anyone can show that other are various under the inspiration of the present invention The product of form, however, make any variation in its shape or structure, it is all that there is skill identical or similar to the present application Art scheme, is within the scope of the present invention.

Claims (4)

1. a kind of stream of video frames processing method, which is characterized in that the treating method comprises following steps:
S1, video server acquisition terminal device request stream of video frames in each video frame tableaux image;
S2, position of the tableaux image in stream of video frames is encoded;
S3, Fuzzy Processing is carried out to the tableaux image, obtains blurred picture and error image;
S4, according to the Encryption Algorithm negotiated in advance with the terminal device and encryption key, by the error image of acquisition into Row encryption generates encryption file;
S5, the encryption file of stream of video frames and generation after image procossing is transmitted to the terminal device;
In step S1, the tableaux image of each video frame in the stream of video frames of video server acquisition terminal device request Specific method includes:
S1-1: prestored in the video server terminal device facility information and stream of video frames viewing time section it Between corresponding relationship list;
S1-2: the facility information of presently described terminal device is acquired, and searches presently described end in the corresponding relationship list The period that end equipment can watch in stream of video frames;
S1-3: the stream of video frames that the terminal device can be watched is acquired according to the viewing time section of lookup;
In step S4, according to the Encryption Algorithm and encryption key negotiated in advance with the terminal device, by the difference of acquisition Image is encrypted, and is specifically included:
S4-1: the error image position encoded information corresponding with the tableaux image before Fuzzy Processing is determined;
S4-2: processing is carried out to the error image and forms image data information, specifically includes: the error image is decomposed into Several pixels;Color value label is carried out to each pixel, sequentially extracts the described of each pixel It is image data information that color value, which forms a discrete display,;
S4-3:, will be determining described position encoded according to the Encryption Algorithm and encryption key negotiated in advance with the terminal device Information is encrypted with described image data information, generates encryption file corresponding with stream of video frames;
In step S3, the specific method for carrying out Fuzzy Processing to the tableaux image of acquisition includes:
S3-1: carrying out Fuzzy Processing to the tableaux image by image fuzzy algorithmic approach and obtain blurred picture, described fuzzy Image algorithm is Gaussian Blur algorithm;
S3-2: the tableaux image is subtracted into the blurred picture and obtains error image;
S3-3: the lesser noise of area and background area will be rejected to get to only by preset threshold values in the error image Error image containing picture area.
2. stream of video frames processing method as described in claim 1, which is characterized in that the processing method further include:
S6, the video server will be inserted into several spring windows, the spring window in the stream of video frames of the premises equipment requests Display interface be equipped with decoding problem, while be stored in the video server it is corresponding with the decoding problem decoding answer Case, and according to the Encryption Algorithm and encryption key negotiated in advance with the terminal device, decoding answer is subjected to encryption formation and is added Close attachment is sent to the terminal device;
S7, the bounce time point for presetting the spring window, reach the preset bounce time point, the spring window is automatic Pop-up;
The decoding answer that S8, the video server input the terminal device on the display interface of the spring window carries out Judgement, if answer is correct, the spring window is hidden automatically, if answer mistake, video playing position jumps to initial beginning Time point, and stop playing.
3. a kind of video server, which is characterized in that including communicate memory module (1), image capture module (2), position Coding module (3), Fuzzy Processing module (4), encrypting module (5) and transmission module (6);
Several stream of video frames are preserved in the memory module (1);
Described image acquisition module (2) is each in the stream of video frames of premises equipment requests in the memory module (1) for acquiring The tableaux image of video frame;
The position encoded module (3) is for encoding position of the tableaux image in stream of video frames;
The Fuzzy Processing module (4) is used to carry out Fuzzy Processing to the tableaux image, obtains blurred picture and difference Image;
The encrypting module (5) is used to be obtained according to the Encryption Algorithm and encryption key negotiated in advance with the terminal device The error image encrypted, generate encryption file;
The transmission module (6) is used to the encryption file of stream of video frames and generation after image procossing being transmitted to the terminal Equipment;
The video server further includes the stream of video frames to communicate with the memory module (1), described image acquisition module (2) Determining module (7), the stream of video frames determining module (7) include equipment information collection unit (701), searching unit (702), view Frequency frame stream acquisition unit (703);
The equipment information collection unit (701) is used to acquire the facility information of presently described terminal device;
The searching unit (702) is used for the corresponding relationship prestored according to the facility information in the memory module (1) The period that presently described terminal device can be watched in stream of video frames is searched in list;
The stream of video frames acquisition unit (703) is used to acquire the terminal device according to the viewing time section of lookup and can watch Stream of video frames, and be sent to described image acquisition module (2);
The encrypting module (5) includes the location information determination unit (501) to communicate, image data processing unit (502), adds Close subelement (503);
The location information determination unit (501) is used to determine the tableaux figure before the error image and Fuzzy Processing As corresponding position encoded information;
Described image data processing unit (502) is used to carry out the error image processing to form image data;
The encryption sub-unit operable (503) is used for according to the Encryption Algorithm and encryption key negotiated in advance with the terminal device, will The determining position encoded information is encrypted with described image data information, generates encryption text corresponding with stream of video frames Part.
4. video server as claimed in claim 3, which is characterized in that the video server further includes and the storage mould The spring window that block (1), the encrypting module (5), the transmission module (6) communicate is inserted into module (8), spring module (9), answers Case judgment module (10), video frame jump module (11), wherein
Spring window insertion module (8) in the stream of video frames of the premises equipment requests for being inserted into several spring windows, institute The display interface for stating spring window is equipped with decoding problem;
Decoding answer corresponding with the decoding problem is also stored in the memory module (1);The encrypting module (5) is also used According to the Encryption Algorithm and encryption key negotiated in advance with the terminal device, it is attached that decoding answer is subjected to encryption formation encryption Part, and the terminal device is sent to by the transmission module (6);
Spring module (9) is used to preset the bounce time point of the spring window, reaches the preset bounce time Point, the spring module (9) are used to pop up the spring window;
The answer judgment module (10) is used for the decoding inputted on the display interface of the spring window to the terminal device Answer is judged, if answer is correct, the spring window is hidden automatically, if answer mistake, video playing position passes through institute It states video frame jump module (11) and jumps to initial sart point in time, and stop playing.
CN201611262073.3A 2016-12-30 2016-12-30 A kind of stream of video frames processing method and video server Active CN106791923B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611262073.3A CN106791923B (en) 2016-12-30 2016-12-30 A kind of stream of video frames processing method and video server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611262073.3A CN106791923B (en) 2016-12-30 2016-12-30 A kind of stream of video frames processing method and video server

Publications (2)

Publication Number Publication Date
CN106791923A CN106791923A (en) 2017-05-31
CN106791923B true CN106791923B (en) 2019-08-27

Family

ID=58954019

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611262073.3A Active CN106791923B (en) 2016-12-30 2016-12-30 A kind of stream of video frames processing method and video server

Country Status (1)

Country Link
CN (1) CN106791923B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11025900B2 (en) * 2018-07-18 2021-06-01 Universal City Studios Llc System and method for identifying b-roll conditions in live streams or live rendered content
CN113163395A (en) * 2020-01-07 2021-07-23 阿里巴巴集团控股有限公司 Method and device for communication between terminal and server and key configuration
CN111277865A (en) * 2020-01-17 2020-06-12 深圳市春盛海科技有限公司 Method and device for encrypting image in real time
CN115623282B (en) * 2022-12-02 2023-04-07 杭州海康威视数字技术股份有限公司 Fixed-point playing method and device of encrypted video, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102883230A (en) * 2012-09-26 2013-01-16 深圳市九洲电器有限公司 Method and device for controlling program broadcasting
CN103605928A (en) * 2013-11-18 2014-02-26 清华大学 Method and system for protecting privacy of images
CN104254004A (en) * 2013-06-28 2014-12-31 中国科学院声学研究所 Digital rights management method and system suitable for high-bit-rate audio and video content
CN105426724A (en) * 2015-11-24 2016-03-23 上海斐讯数据通信技术有限公司 Electronic image encryption method and device, electronic image decryption method and device, and equipment
CN105530548A (en) * 2014-10-27 2016-04-27 乐视网信息技术(北京)股份有限公司 Smart TV and program interaction method and server thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070260595A1 (en) * 2006-05-02 2007-11-08 Microsoft Corporation Fuzzy string matching using tree data structure

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102883230A (en) * 2012-09-26 2013-01-16 深圳市九洲电器有限公司 Method and device for controlling program broadcasting
CN104254004A (en) * 2013-06-28 2014-12-31 中国科学院声学研究所 Digital rights management method and system suitable for high-bit-rate audio and video content
CN103605928A (en) * 2013-11-18 2014-02-26 清华大学 Method and system for protecting privacy of images
CN105530548A (en) * 2014-10-27 2016-04-27 乐视网信息技术(北京)股份有限公司 Smart TV and program interaction method and server thereof
CN105426724A (en) * 2015-11-24 2016-03-23 上海斐讯数据通信技术有限公司 Electronic image encryption method and device, electronic image decryption method and device, and equipment

Also Published As

Publication number Publication date
CN106791923A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106791923B (en) A kind of stream of video frames processing method and video server
CN101076109B (en) Two-way CA system of digital TV-set and method for ordering and cancelling programm based on it
CN107277456A (en) A kind of video security monitoring system based on Android device
CN105959728A (en) System and method for counting number of online users of live platform
CN107809436A (en) Authority discrimination method, encryption method, the apparatus and system of Internet video access
CN106331751A (en) Online encrypted slice video playing method based on iOS operating system
CN100442839C (en) Information transmitting method and apparatus for interactive digital broadcast television system
CN106791934A (en) For the encryption player method and encryption system of VIP videos
CN108881966A (en) A kind of information processing method and relevant device
Sharma et al. Guess: genetic uses in video encryption with secret sharing
CN103237011B (en) Digital content encryption transmission method and server end
CN109275030A (en) WEB terminal key based on HLS technology obscures incorrect order video encryption method
CN109348293A (en) The end APP key based on HLS technology obscures incorrect order video encryption method
RU2554825C2 (en) Method of determining illegal use of processing device of security system
EP3910959A1 (en) Systems and methods for identifying a content receiving device
TWI448920B (en) Methods for transmitting, receiving and identifying, security processor and information-recording carrier for these methods
ES2551173T3 (en) Procedure for receiving encoded multimedia content with the help of control and captcha words
CN103428530B (en) Method and system for preventing user from skipping advertisements and media play client
CN110380843B (en) Information processing method and related equipment
CN110381342B (en) Information processing method and related equipment
CN201699807U (en) Digital image scrambling device
CN103988513B (en) For method, encryption system and the security module of the content packet for descrambling digital transport stream
Fadhil et al. A Proposed Text Encryption inside Video Using Harris Corner Detection and Salas20 Encryption Algorithm
CN108040271A (en) A kind of DTV fingerprint implant system, method and Conditional Access Module
CN108769748A (en) A kind of information processing method and relevant device

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
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A video frame stream processing method and video server

Effective date of registration: 20210622

Granted publication date: 20190827

Pledgee: Beijing culture science and technology financing Company limited by guarantee

Pledgor: CBC CLOUD TECHNOLOGY Co.,Ltd.

Registration number: Y2021980005035

PE01 Entry into force of the registration of the contract for pledge of patent right