TWI679884B - A video encryption and decryption method and device - Google Patents

A video encryption and decryption method and device Download PDF

Info

Publication number
TWI679884B
TWI679884B TW106111157A TW106111157A TWI679884B TW I679884 B TWI679884 B TW I679884B TW 106111157 A TW106111157 A TW 106111157A TW 106111157 A TW106111157 A TW 106111157A TW I679884 B TWI679884 B TW I679884B
Authority
TW
Taiwan
Prior art keywords
frame
video
original
playback
frame rate
Prior art date
Application number
TW106111157A
Other languages
Chinese (zh)
Other versions
TW201838420A (en
Inventor
李享貢
Shiang-Kung Lee
Original Assignee
鴻海精密工業股份有限公司
Hon Hai Precision Industry 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 鴻海精密工業股份有限公司, Hon Hai Precision Industry Co., Ltd. filed Critical 鴻海精密工業股份有限公司
Priority to TW106111157A priority Critical patent/TWI679884B/en
Publication of TW201838420A publication Critical patent/TW201838420A/en
Application granted granted Critical
Publication of TWI679884B publication Critical patent/TWI679884B/en

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

一種視頻加密和解密的方法,應用於播放幀率可變的一視頻播放系統,包括步驟:獲取待加密的一視頻資料的一原始播放幀率和每一個原始視頻幀;將每一個該原始視頻幀進行轉置和分解處理以生成對應的一個幀序列,從而得到加密後的視頻資料;調整該幀序列對應的原始播放幀率並控制該視頻播放系統以調整後的播放幀率對該幀序列進行播放。本發明還提供一種視頻加密和解密的裝置。 A method for video encryption and decryption, applied to a video playback system with variable frame rate, includes the steps of: obtaining an original playback frame rate of a video material to be encrypted and each original video frame; Frames are transposed and decomposed to generate a corresponding frame sequence to obtain encrypted video data; adjust the original playback frame rate corresponding to the frame sequence and control the video playback system to adjust the frame sequence to the frame sequence with the adjusted playback frame rate Play. The invention also provides a device for video encryption and decryption.

Description

視頻加密和解密的方法及裝置 Method and device for video encryption and decryption

本發明涉及資料處理技術,尤其是涉及一種視頻加密和解密的方法及裝置。 The present invention relates to data processing technology, and particularly to a method and device for video encryption and decryption.

隨著投影設備小型化發展的趨勢,在未來生活中,人們可隨時隨地找一塊牆面或者桌面,拿出迷你型投影設備連上網路,開始流覽網頁、照片、影片或者做影音會議。然而,人們並不希望投射出來的影像內容毫無隱私地在其他人面前呈現。 With the development trend of miniaturization of projection equipment, in the future, people can find a wall or desktop anytime, anywhere, take out a mini-type projection equipment and connect to the Internet, and start browsing web pages, photos, videos, or making video conferences. However, people do not want the projected image content to be presented in front of others without privacy.

鑒於以上內容,有必要提供一種視頻加密和解密的方法可以對播放的影像內容進行有效加密,用戶再通過解密後觀看,保護了用戶隱私。 In view of the above, it is necessary to provide a method for video encryption and decryption, which can effectively encrypt the content of the video being played, and the user can view it after decryption, thereby protecting the privacy of the user.

鑒於以上內容,還有必要提供一種視頻加密和解密的裝置,用以對播放的影像內容進行有效加密,用戶再通過解密後觀看,保護了用戶隱私。 In view of the above, it is also necessary to provide a device for video encryption and decryption, which is used to effectively encrypt the content of the video that is played, and the user can view it after decryption, thereby protecting the user's privacy.

該視頻加密裝置,應用於播放幀率可變的一視頻播放系統,該視頻加密裝置包括:一第一獲取模組,用於獲取待加密的一視頻資料的一原始播放幀率和每一個原始視頻幀;一加密模組,用於將每一個該原始視頻幀進行轉置和分解處理以生成對應的一個幀序列,從而得到加密後的一視 頻資料;一調整模組,用於調整該幀序列對應的一原始播放幀率並控制該視頻播放系統以調整後的播放幀率對該幀序列進行播放。 The video encryption device is applied to a video playback system with a variable playback frame rate. The video encryption device includes a first acquisition module for acquiring an original playback frame rate of each video material to be encrypted and each original playback frame rate. Video frame; an encryption module, which is used to transpose and decompose each original video frame to generate a corresponding frame sequence, so as to obtain an encrypted view Frequency data; an adjustment module for adjusting an original playback frame rate corresponding to the frame sequence and controlling the video playback system to play the frame sequence at the adjusted playback frame rate.

該視頻解密裝置,包括:一第二獲取模組,用於獲取加密後的一視頻資料對應的一原始播放幀率和調整後的一播放幀率,該加密後的視頻資料為經過轉置和分解處理的一視頻資料;一判斷模組,用於根據該原始播放幀率和該調整後的播放幀率判斷出每一個幀序列;一解密模組,用於根據預設的一解密規則從該幀序列讀取出一原始視頻幀。 The video decryption device includes a second acquisition module for acquiring an original playback frame rate and an adjusted playback frame rate corresponding to encrypted video data. The encrypted video data is transposed and A video data that is decomposed and processed; a judging module for judging each frame sequence according to the original playback frame rate and the adjusted playback frame rate; a decryption module for deciphering from a preset decryption rule from The frame sequence reads out an original video frame.

該視頻加密方法,應用於播放幀率可變的一視頻播放系統,該視頻加密方法包括步驟:獲取待加密的一視頻資料的一原始播放幀率和每一個原始視頻幀;將每一個該原始視頻幀進行轉置和分解處理以生成對應的一個幀序列,從而得到加密後的視頻資料;調整該幀序列對應的一原始播放幀率並控制該視頻播放系統以調整後的一播放幀率對該幀序列進行播放。 The video encryption method is applied to a video playback system with a variable frame rate. The video encryption method includes the steps of: obtaining an original playback frame rate of a video material to be encrypted and each original video frame; Video frames are transposed and decomposed to generate a corresponding frame sequence to obtain encrypted video data; adjust an original playback frame rate corresponding to the frame sequence and control the video playback system to adjust the adjusted playback frame rate to The frame sequence is played.

該視頻解密方法,包括步驟:獲取加密後的一視頻資料對應的一原始播放幀率和調整後的一播放幀率,該加密後的視頻資料為經過轉置和分解處理的一視頻資料;根據該原始播放幀率和該調整後的播放幀率判斷出每一個幀序列;根據預設的一解密規則從該幀序列讀取出一原始視頻幀。 The video decryption method includes the steps of obtaining an original playback frame rate and an adjusted playback frame rate corresponding to encrypted video data, and the encrypted video data is a video data that has been transposed and decomposed; according to The original playback frame rate and the adjusted playback frame rate determine each frame sequence; an original video frame is read from the frame sequence according to a preset decryption rule.

1‧‧‧視頻加密裝置 1‧‧‧Video Encryption Device

20‧‧‧第一記憶體 20‧‧‧first memory

30‧‧‧第一處理器 30‧‧‧first processor

40‧‧‧第一獲取模組 40‧‧‧First acquisition module

50‧‧‧加密模組 50‧‧‧Encryption Module

510‧‧‧轉置子模組 510‧‧‧ transpose submodule

520‧‧‧分解子模組 520‧‧‧Decomposed submodule

530‧‧‧排序子模組 530‧‧‧Sorting submodule

60‧‧‧調整模組 60‧‧‧adjustment module

2‧‧‧視頻解密裝置 2‧‧‧Video decryption device

70‧‧‧第二記憶體 70‧‧‧Second memory

80‧‧‧第二處理器 80‧‧‧ second processor

90‧‧‧第二獲取模組 90‧‧‧Second Acquisition Module

100‧‧‧判斷模組 100‧‧‧ Judgment Module

110‧‧‧解密模組 110‧‧‧Decryption Module

圖1是本發明一較佳實施例之視頻加密裝置的功能模組圖。 FIG. 1 is a functional module diagram of a video encryption device according to a preferred embodiment of the present invention.

圖2是本發明一較佳實施例之視頻解密裝置的功能模組圖。 FIG. 2 is a functional module diagram of a video decryption device according to a preferred embodiment of the present invention.

圖3是本發明一較佳實施例之視頻加密過程視頻幀變化示意圖。 FIG. 3 is a schematic diagram of video frame changes during a video encryption process according to a preferred embodiment of the present invention.

圖4是本發明一較佳實施例之視頻解密過程視頻幀變化示意圖。 FIG. 4 is a schematic diagram of video frame changes during a video decryption process according to a preferred embodiment of the present invention.

圖5是本發明一較佳實施例之視頻加密方法的流程圖。 FIG. 5 is a flowchart of a video encryption method according to a preferred embodiment of the present invention.

圖6是本發明一較佳實施例之視頻解密方法的流程圖。 FIG. 6 is a flowchart of a video decryption method according to a preferred embodiment of the present invention.

參閱圖1所示,是本發明一較佳實施例之視頻加密裝置1的功能模組圖,該視頻加密裝置1主要由一第一獲取模組40、一加密模組50、一調整模組60以及一第一記憶體20和一第一處理器30組成。該加密模組50中還包括一轉置子模組510、一分解子模組520和一排序子模組530。該視頻加密裝置1應用於播放幀率可變的一視頻播放系統,可以是一投影裝置或者一影像播放裝置中的一部分,也可以是附加在一投影裝置上的一外接裝置,或者是單獨存在的一電子裝置,用於控制和管理視頻播放。 1 is a functional module diagram of a video encryption device 1 according to a preferred embodiment of the present invention. The video encryption device 1 is mainly composed of a first acquisition module 40, an encryption module 50, and an adjustment module. 60 and a first memory 20 and a first processor 30. The encryption module 50 further includes a transposed submodule 510, a decomposition submodule 520, and a sorting submodule 530. The video encryption device 1 is applied to a video playback system with a variable playback frame rate, which may be a projection device or a part of an image playback device, or an external device attached to a projection device, or it may exist separately. An electronic device for controlling and managing video playback.

該模組被配置成由一個或複數處理器(本實施例為第一處理器30)執行,以完成本發明。本發明所稱的模組是完成一特定功能的一電腦程式段。該第一記憶體20用於存儲該視頻加密裝置1的程式碼等資料。 The module is configured to be executed by one or a plurality of processors (the first processor 30 in this embodiment) to complete the present invention. The module referred to in the present invention is a computer program segment that performs a specific function. The first memory 20 is used to store data such as codes of the video encryption device 1.

該第一獲取模組40用於獲取待加密的一視頻資料的一原始播放幀率和每一個原始視頻幀。在本實施例中,該第一獲取模組40將該待加密的一視頻資料中的影像和聲音分離,得到該影像包含的複數原始視頻幀。例如,該第一獲取模組40獲取待加密的一原始視頻幀A和一原始視頻幀B,以及該原始播放幀率25Hz。也就是說,待加密的該視頻資料包含一原始視頻幀A和B,該原始播放幀率為25Hz,即播放一幀的時間為0.04秒。參閱圖3(1)所示,該原始視頻幀A,B分別佔有T1到T2和T2到T3的時間段,而T3-T2=T2-T1=0.04秒。 The first obtaining module 40 is configured to obtain an original playback frame rate and each original video frame of a video material to be encrypted. In this embodiment, the first acquisition module 40 separates the image and sound in a video material to be encrypted to obtain a plurality of original video frames included in the image. For example, the first obtaining module 40 obtains an original video frame A and an original video frame B to be encrypted, and the original playback frame rate is 25 Hz. That is, the video material to be encrypted includes an original video frame A and B, and the original playback frame rate is 25 Hz, that is, the time for playing one frame is 0.04 seconds. Referring to FIG. 3 (1), the original video frames A and B respectively occupy time periods T1 to T2 and T2 to T3, and T3-T2 = T2-T1 = 0.04 seconds.

該加密模組50用於將每一個該原始視頻幀進行轉置和分解處理以生成對應的一個幀序列,從而得到加密後的一視頻資料。 The encryption module 50 is used for transposing and decomposing each of the original video frames to generate a corresponding frame sequence, so as to obtain encrypted video data.

該轉置子模組510用於將該原始視頻幀進行轉置以生成對應的互補幀。在本實施例中,該轉置模組510將該原始視頻幀A和B分別進行轉置,得到該原始視頻幀A對應的一互補幀X和該原始視頻幀B對應的一互補幀Y(參閱圖3(2)所示)。 The transpose sub-module 510 is used to transpose the original video frame to generate a corresponding complementary frame. In this embodiment, the transposition module 510 transposes the original video frames A and B respectively to obtain a complementary frame X corresponding to the original video frame A and a complementary frame Y corresponding to the original video frame B ( (See Figure 3 (2)).

該分解子模組520用於根據預設的不同的複數分解模式將該原始視頻幀和該互補幀分別分解為複數分解幀。在本實施例中,以將該原始視頻幀和該互補幀分別分解為兩個分解幀為例進行說明。在其他實施例中,還可以根據需要分解為複數分解幀。該分解子模組520根據預設的不同的複數分解模式將該原始視頻幀A和B,以及該互補幀X和Y分別分解為分解幀A+和A-,B+和B-,X+和X-,Y+和Y-。 The decomposition submodule 520 is configured to decompose the original video frame and the complementary frame into complex decomposition frames respectively according to different preset complex decomposition modes. In this embodiment, the original video frame and the complementary frame are respectively decomposed into two decomposed frames for description. In other embodiments, it may be decomposed into complex decomposed frames as required. The decomposition sub-module 520 decomposes the original video frames A and B and the complementary frames X and Y into decomposition frames A + and A-, B + and B-, X + and X- respectively according to different preset complex decomposition modes. , Y + and Y-.

其中,針對該原始視頻幀A和B的分解模式與針對該倒置幀X和Y的複數分解模式不相同。也就是說,所得到的分解幀A+、A-、X+、X-中的任意兩個之間均不能互補,同樣地,分解幀B+、B-、Y+、Y-中的任意兩個之間也不能互補。 The decomposition mode for the original video frames A and B is different from the complex decomposition mode for the inverted frames X and Y. That is, any two of the obtained decomposition frames A +, A-, X +, and X- cannot be complementary. Similarly, any two of the decomposition frames B +, B-, Y +, and Y- Nor can they complement each other.

該分解幀進行疊加可直接獲得對應的該原始視頻幀或者該互補幀。而不同的分解模式,可以認為是分解為不同的複數樣式。比如對原始視頻幀A根據3*3分解成9個部分,其中一個分解幀A+包含其中5個部分,另一個分解幀A-包含剩餘的4個部分,當兩個分解幀進行疊加時,可直接獲得一原始視頻幀A。而對互補幀X,則根據3*7分解成21個部分,其中一個分解幀X+包含其中13個部分,另一個分解幀X-包含剩餘的8個部分,當兩個分解幀進行疊加時,可直接獲得一互補幀X。 Superposition of the decomposed frames can directly obtain the corresponding original video frame or the complementary frame. The different decomposition modes can be considered as different complex numbers. For example, the original video frame A is decomposed into 9 parts according to 3 * 3. One of the decomposed frames A + contains 5 of them and the other decomposed frame A- contains the remaining 4 parts. When two decomposed frames are superimposed, Obtain an original video frame A directly. For the complementary frame X, it is decomposed into 21 parts according to 3 * 7. One of the decomposed frames X + contains 13 of them, and the other decomposed frame X- contains the remaining 8 parts. When two decomposed frames are superimposed, A complementary frame X can be obtained directly.

該排序子模組530根據預設的一排序規則將該原始視頻幀的所有分解幀和該互補幀的所有分解幀在該原始視頻幀所占的一時間區間段內進行排序以生成一個幀序列。在本實施例中,該排序子模組530將分解幀A+和 A-以及X+和X-在一原始視頻幀A所占的時間段T1到T2的時間段內進行排序,得到該原始視頻幀A對應的幀序列,將分解幀B+和B-以及Y+和Y-在一原始視頻幀B所占的時間段T2到T3的時間段內進行排序,得到該原始視頻幀B對應的幀序列。該排序規則,本實施例中預先設定的是一偽隨機排序方法,例如,將分解幀A+,A-,X+,X-按照1,4,2,3的序號進行排序,而將分解幀B+,B-,Y+,Y-按照1,3,2,4的序號進行排序(參閱圖3(3)所示)。該偽隨機排序方法就是說該排序方法是可逆的一隨機排序方法。所謂可逆的,就是說可以依據加密的一排序規則可以計算出解密的一排序規則。在其他實施例中該排序規則也可以是其他的一排序方式。所得到的所有幀序列組成該加密後的一視頻資料。 The sorting submodule 530 sorts all the decomposed frames of the original video frame and all the decomposed frames of the complementary frame within a time interval occupied by the original video frame according to a preset sorting rule to generate a frame sequence. . In this embodiment, the sorting submodule 530 will decompose the frames A + and A- and X + and X- are sorted within a time period T1 to T2 occupied by an original video frame A, and a frame sequence corresponding to the original video frame A is obtained, and frames B + and B- and Y + and Y will be decomposed. -Sort within a time period T2 to T3 occupied by an original video frame B to obtain a frame sequence corresponding to the original video frame B. This sorting rule is preset in this embodiment by a pseudo-random sorting method. For example, the decomposition frames A +, A-, X +, and X- are sorted according to the sequence numbers of 1, 4, 2, and 3, and the decomposition frame B + is sorted. , B-, Y +, Y- are sorted according to the serial numbers 1, 3, 2, and 4 (see Figure 3 (3)). The pseudo-random sorting method means that the sorting method is a reversible random sorting method. The so-called reversible means that a sorting rule for decryption can be calculated based on a sorting rule for encryption. In other embodiments, the sorting rule may be another sorting method. All the obtained frame sequences constitute the encrypted video data.

在其他實施例中,該加密模組50還可以在該原始視頻幀之間插入一干擾視頻幀,對該干擾視頻幀也做上述互補和分解處理,並將該干擾視頻幀對應的一分解幀及其干擾互補幀的分解幀與該原始視頻幀的一分解幀及其互補幀的一分解幀一起進行排序,得到該幀序列,從而加強該加密後的一視頻資料的保密效果。 In other embodiments, the encryption module 50 may also insert an interfering video frame between the original video frames, perform the above complementary and decomposition processing on the interfering video frame, and decompose a decomposed frame corresponding to the interfering video frame. The decomposed frames of the interference complementary frame and the decomposed frame of the original video frame and the decomposed frame of the complementary frame are sorted together to obtain the frame sequence, thereby enhancing the security effect of the encrypted video data.

該調整模組60用於調整該幀序列(加密後的視頻資料)對應的一原始播放幀率並控制該視頻播放系統以調整後的一播放幀率對該幀序列進行播放。該調整模組60根據該原始播放幀率25Hz以及該幀序列包含的幀數4,計算出調整後的一播放幀率為25Hz*4=100Hz。然後該調整模組60控制該視頻播放系統將該播放幀率25Hz調整至100Hz以播放該幀序列。 The adjustment module 60 is configured to adjust an original playback frame rate corresponding to the frame sequence (encrypted video data) and control the video playback system to play the frame sequence at the adjusted playback frame rate. The adjustment module 60 calculates an adjusted playback frame rate of 25 Hz * 4 = 100 Hz based on the original playback frame rate of 25 Hz and the number of frames contained in the frame sequence. The adjustment module 60 then controls the video playback system to adjust the playback frame rate from 25 Hz to 100 Hz to play the frame sequence.

值得說明的是,該幀序列根據調整後的100Hz的播放幀率進行播放時,T1到T2時間段及T2到T3時間段包含了該原始視頻幀的所有分解幀及其對應的一互補幀的所有分解幀的幀序列,根據視覺暫留的效果,該幀序列 播放出來後最終顯示為一灰階影像(參閱圖3(4)所示)。因此,該視頻加密裝置可有效對播放的一視頻影像進行加密。 It is worth noting that when the frame sequence is played according to the adjusted 100Hz playback frame rate, the time periods T1 to T2 and T2 to T3 include all the decomposed frames of the original video frame and their corresponding complementary frames The frame sequence of all decomposed frames, according to the effect of visual persistence, the frame sequence After playing out, it is finally displayed as a grayscale image (see Figure 3 (4)). Therefore, the video encryption device can effectively encrypt a video image being played.

參閱圖2所示,是本發明一較佳實施例之視頻解密裝置2的功能模組圖,該視頻解密裝置2主要由一第二獲取模組90、一判斷模組100、一解密模組110、以及一第二記憶體70和一第二處理器80組成。該視頻解密裝置2是與該視頻播放系統配套使用的獨立的一電子裝置,可以是一可穿戴式電子設備,比如一智慧眼鏡等。 2 is a functional module diagram of a video decryption device 2 according to a preferred embodiment of the present invention. The video decryption device 2 is mainly composed of a second acquisition module 90, a judgment module 100, and a decryption module. 110, and a second memory 70 and a second processor 80. The video decryption device 2 is an independent electronic device used in conjunction with the video playback system, and may be a wearable electronic device, such as a smart glasses.

該模組被配置成由一個或多個處理器(本實施例為第二處理器80)執行,以完成本發明。本發明所稱的模組是完成一特定功能的一電腦程式段。該第二記憶體70用於存儲該視頻解密裝置2的一程式碼等資料。 The module is configured to be executed by one or more processors (the second processor 80 in this embodiment) to complete the present invention. The module referred to in the present invention is a computer program segment that performs a specific function. The second memory 70 is used for storing data such as a code of the video decryption device 2.

該第二獲取模組90用於獲取加密後的一視頻資料對應的一原始播放幀率和調整後的一播放幀率。由於該視頻解密裝置2是與該視頻播放系統配套使用,因此,該第二獲取模組90可以向該視頻播放系統請求獲取該加密後的一視頻資料對應的一原始播放幀率和調整後的一播放幀率。該視頻播放系統根據第二獲取模組90的獲取請求將該原始播放幀率、該調整後的播放幀率發送給該第二獲取模組90。另外,該視頻播放系統存儲有加密過程中的一排序規則也會同時發送給該第二獲取模組90。在本實施例中,該第二獲取模組90獲取到該原始播放幀率為25Hz,該調整後的播放幀率為100Hz。 The second obtaining module 90 is configured to obtain an original playback frame rate and an adjusted playback frame rate corresponding to encrypted video data. Since the video decryption device 2 is used in conjunction with the video playback system, the second acquisition module 90 may request the video playback system to obtain an original playback frame rate and an adjusted playback data corresponding to the encrypted video data. A playback frame rate. The video playback system sends the original playback frame rate and the adjusted playback frame rate to the second acquisition module 90 according to the acquisition request of the second acquisition module 90. In addition, a sorting rule stored in the encryption process of the video playback system is also sent to the second obtaining module 90 at the same time. In this embodiment, the second acquisition module 90 acquires the original playback frame rate of 25 Hz and the adjusted playback frame rate of 100 Hz.

該判斷模組100根據該原始播放幀率和該調整後的播放幀率判斷出每一個幀序列。具體的,該判斷模組100將該調整後的播放幀率除以該原始播放幀率得到一個幀序列包含的幀數,再結合該視頻播放系統同步的一播放時間判斷出每個幀序列。該同步的播放時間,可以認為是每個幀序列的起始和終止時間,以及該幀序列中每個幀的起始和終止時間。在本實施例 中,該判斷模組100判斷出加密後的一視頻資料中每0.25秒中的一個幀序列的包含4個視頻幀,例如A+,X+,X-,A-或B+,Y+,B-,Y-(參閱圖4(1)所示)。在本實施例中,該判斷模組100僅需要獲取每個幀序列包含的幀數及該幀序列中每個幀的一時間區間,而不需要獲取幀的內容。在其他實施例中,該判斷模組100還可以根據該視頻播放系統獲取該幀序列中每個幀的內容。 The determining module 100 determines each frame sequence according to the original playback frame rate and the adjusted playback frame rate. Specifically, the determining module 100 divides the adjusted playback frame rate by the original playback frame rate to obtain the number of frames included in a frame sequence, and then determines each frame sequence in combination with a playback time synchronized by the video playback system. The synchronized playback time can be considered as the start and end time of each frame sequence, and the start and end time of each frame in the frame sequence. In this embodiment In the judgment module 100, it is determined that a frame sequence in encrypted video data every 4 seconds contains 4 video frames, such as A +, X +, X-, A- or B +, Y +, B-, Y. -(See Figure 4 (1)). In this embodiment, the determining module 100 only needs to obtain the number of frames included in each frame sequence and a time interval of each frame in the frame sequence, and does not need to obtain the content of the frames. In other embodiments, the determination module 100 may also obtain the content of each frame in the frame sequence according to the video playback system.

該調整模組60用於調整該幀序列(加密後的視頻資料)對應的一原始播放幀率並控制該視頻播放系統以調整後的一播放幀率對該幀序列進行播放。該調整模組60根據該原始播放幀率25Hz以及該幀序列包含的幀數4,計算出調整後的一播放幀率為25Hz*4=100Hz。然後該調整模組60控制該視頻播放系統將該播放幀率25Hz調整至100Hz以播放該幀序列。 The adjustment module 60 is configured to adjust an original playback frame rate corresponding to the frame sequence (encrypted video data) and control the video playback system to play the frame sequence at the adjusted playback frame rate. The adjustment module 60 calculates an adjusted playback frame rate of 25 Hz * 4 = 100 Hz based on the original playback frame rate of 25 Hz and the number of frames contained in the frame sequence. The adjustment module 60 then controls the video playback system to adjust the playback frame rate from 25 Hz to 100 Hz to play the frame sequence.

值得說明的是,該幀序列根據調整後的100Hz的播放幀率進行播放時,T1到T2時間段及T2到T3時間段包含了該原始視頻幀的所有分解幀及其對應的一互補幀的所有分解幀的幀序列,根據視覺暫留的效果,該幀序列播放出來後最終顯示為一灰階影像(參閱圖3(4)所示)。因此,該視頻加密裝置可有效對播放的一視頻影像進行加密。 It is worth noting that when the frame sequence is played according to the adjusted 100Hz playback frame rate, the time periods T1 to T2 and T2 to T3 include all the decomposed frames of the original video frame and their corresponding complementary frames. According to the effect of visual persistence, the frame sequence of all the decomposed frames is finally displayed as a grayscale image after being played out (see FIG. 3 (4)). Therefore, the video encryption device can effectively encrypt a video image being played.

參閱圖2所示,是本發明一較佳實施例之視頻解密裝置2的功能模組圖,該視頻解密裝置2主要由一第二獲取模組90、一判斷模組100、一解密模組110、以及一第二記憶體70和一第二處理器80組成。該視頻解密裝置2是與該視頻播放系統配套使用的獨立的一電子裝置,可以是一可穿戴式電子設備,比如一智慧眼鏡等。 2 is a functional module diagram of a video decryption device 2 according to a preferred embodiment of the present invention. The video decryption device 2 is mainly composed of a second acquisition module 90, a judgment module 100, and a decryption module. 110, and a second memory 70 and a second processor 80. The video decryption device 2 is an independent electronic device used in conjunction with the video playback system, and may be a wearable electronic device, such as a smart glasses.

該模組被配置成由一個或多個處理器(本實施例為第二處理器80)執行,以完成本發明。本發明所稱的模組是完成一特定功能的一電腦程式段。該第二記憶體70用於存儲該視頻解密裝置2的一程式碼等資料。 The module is configured to be executed by one or more processors (the second processor 80 in this embodiment) to complete the present invention. The module referred to in the present invention is a computer program segment that performs a specific function. The second memory 70 is used for storing data such as a code of the video decryption device 2.

該第二獲取模組90用於獲取加密後的一視頻資料對應的一原始播放幀率和調整後的一播放幀率。由於該視頻解密裝置2是與該視頻播放系統配套使用,因此,該第二獲取模組90可以向該視頻播放系統請求獲取該加密後的一視頻資料對應的一原始播放幀率和調整後的一播放幀率。該視頻播放系統根據第二獲取模組90的獲取請求將該原始播放幀率、該調整後的播放幀率發送給該第二獲取模組90。另外,該視頻播放系統存儲有加密過程中的一排序規則也會同時發送給該第二獲取模組90。在本實施例中,該第二獲取模組90獲取到該原始播放幀率為25Hz,該調整後的播放幀率為100Hz。 The second obtaining module 90 is configured to obtain an original playback frame rate and an adjusted playback frame rate corresponding to encrypted video data. Since the video decryption device 2 is used in conjunction with the video playback system, the second acquisition module 90 may request the video playback system to obtain an original playback frame rate and an adjusted playback data corresponding to the encrypted video data. A playback frame rate. The video playback system sends the original playback frame rate and the adjusted playback frame rate to the second acquisition module 90 according to the acquisition request of the second acquisition module 90. In addition, a sorting rule stored in the encryption process of the video playback system is also sent to the second obtaining module 90 at the same time. In this embodiment, the second acquisition module 90 acquires the original playback frame rate of 25 Hz and the adjusted playback frame rate of 100 Hz.

該判斷模組100根據該原始播放幀率和該調整後的播放幀率判斷出每一個幀序列。具體的,該判斷模組100將該調整後的播放幀率除以該原始播放幀率得到一個幀序列包含的幀數,再結合該視頻播放系統同步的一播放時間判斷出每個幀序列。該同步的播放時間,可以認為是每個幀序列的起始和終止時間,以及該幀序列中每個幀的起始和終止時間。在本實施例中,該判斷模組100判斷出加密後的一視頻資料中每0.25秒中的一個幀序列的包含4個視頻幀,例如A+,X+,X-,A-或B+,Y+,B-,Y-(參閱圖4(1)所示)。在本實施例中,該判斷模組100僅需要獲取每個幀序列包含的幀數及該幀序列中每個幀的一時間區間,而不需要獲取幀的內容。在其他實施例中,該判斷模組100還可以根據該視頻播放系統獲取該幀序列中每個幀的內容。 The determining module 100 determines each frame sequence according to the original playback frame rate and the adjusted playback frame rate. Specifically, the determining module 100 divides the adjusted playback frame rate by the original playback frame rate to obtain the number of frames included in a frame sequence, and then determines each frame sequence in combination with a playback time synchronized by the video playback system. The synchronized playback time can be considered as the start and end time of each frame sequence, and the start and end time of each frame in the frame sequence. In this embodiment, the judging module 100 judges that a frame sequence in encrypted video data every 4 seconds contains 4 video frames, such as A +, X +, X-, A- or B +, Y +, B-, Y- (see Figure 4 (1)). In this embodiment, the determining module 100 only needs to obtain the number of frames included in each frame sequence and a time interval of each frame in the frame sequence, and does not need to obtain the content of the frames. In other embodiments, the determination module 100 may also obtain the content of each frame in the frame sequence according to the video playback system.

該調整模組60用於調整該幀序列(加密後的視頻資料)對應的一原始播放幀率並控制該視頻播放系統以調整後的一播放幀率對該幀序列進行播放。該調整模組60根據該原始播放幀率25Hz以及該幀序列包含的幀數 4,計算出調整後的一播放幀率為25Hz*4=100Hz。然後該調整模組60控制該視頻播放系統將該播放幀率25Hz調整至100Hz以播放該幀序列。 The adjustment module 60 is configured to adjust an original playback frame rate corresponding to the frame sequence (encrypted video data) and control the video playback system to play the frame sequence at the adjusted playback frame rate. The adjustment module 60 is based on the original playback frame rate of 25 Hz and the number of frames included in the frame sequence. 4. Calculate a adjusted playback frame rate of 25Hz * 4 = 100Hz. The adjustment module 60 then controls the video playback system to adjust the playback frame rate from 25 Hz to 100 Hz to play the frame sequence.

值得說明的是,該幀序列根據調整後的100Hz的播放幀率進行播放時,T1到T2時間段及T2到T3時間段包含了該原始視頻幀的所有分解幀及其對應的一互補幀的所有分解幀的幀序列,根據視覺暫留的效果,該幀序列播放出來後最終顯示為一灰階影像(參閱圖3(4)所示)。因此,該視頻加密裝置可有效對播放的一視頻影像進行加密。 It is worth noting that when the frame sequence is played according to the adjusted 100Hz playback frame rate, the time periods T1 to T2 and T2 to T3 include all the decomposed frames of the original video frame and their corresponding complementary frames. According to the effect of visual persistence, the frame sequence of all the decomposed frames is finally displayed as a grayscale image after being played out (see FIG. 3 (4)). Therefore, the video encryption device can effectively encrypt a video image being played.

參閱圖2所示,是本發明一較佳實施例之視頻解密裝置2的功能模組圖,該視頻解密裝置2主要由一第二獲取模組90、一判斷模組100、一解密模組110、以及一第二記憶體70和一第二處理器80組成。該視頻解密裝置2是與該視頻播放系統配套使用的獨立的一電子裝置,可以是一可穿戴式電子設備,比如一智慧眼鏡等。 2 is a functional module diagram of a video decryption device 2 according to a preferred embodiment of the present invention. The video decryption device 2 is mainly composed of a second acquisition module 90, a judgment module 100, and a decryption module. 110, and a second memory 70 and a second processor 80. The video decryption device 2 is an independent electronic device used in conjunction with the video playback system, and may be a wearable electronic device, such as a smart glasses.

該模組被配置成由一個或多個處理器(本實施例為第二處理器80)執行,以完成本發明。本發明所稱的模組是完成一特定功能的一電腦程式段。該第二記憶體70用於存儲該視頻解密裝置2的一程式碼等資料。 The module is configured to be executed by one or more processors (the second processor 80 in this embodiment) to complete the present invention. The module referred to in the present invention is a computer program segment that performs a specific function. The second memory 70 is used for storing data such as a code of the video decryption device 2.

該第二獲取模組90用於獲取加密後的一視頻資料對應的一原始播放幀率和調整後的一播放幀率。由於該視頻解密裝置2是與該視頻播放系統配套使用,因此,該第二獲取模組90可以向該視頻播放系統請求獲取該加密後的一視頻資料對應的一原始播放幀率和調整後的一播放幀率。該視頻播放系統根據第二獲取模組90的獲取請求將該原始播放幀率、該調整後的播放幀率發送給該第二獲取模組90。另外,該視頻播放系統存儲有加密過程中的一排序規則也會同時發送給該第二獲取模組90。在本實施例中,該第二獲取模組90獲取到該原始播放幀率為25Hz,該調整後的播放幀率為100Hz。 The second obtaining module 90 is configured to obtain an original playback frame rate and an adjusted playback frame rate corresponding to encrypted video data. Since the video decryption device 2 is used in conjunction with the video playback system, the second acquisition module 90 may request the video playback system to obtain an original playback frame rate and an adjusted playback data corresponding to the encrypted video data. A playback frame rate. The video playback system sends the original playback frame rate and the adjusted playback frame rate to the second acquisition module 90 according to the acquisition request of the second acquisition module 90. In addition, a sorting rule stored in the encryption process of the video playback system is also sent to the second obtaining module 90 at the same time. In this embodiment, the second acquisition module 90 acquires the original playback frame rate of 25 Hz and the adjusted playback frame rate of 100 Hz.

該判斷模組100根據該原始播放幀率和該調整後的播放幀率判斷出每一個幀序列。具體的,該判斷模組100將該調整後的播放幀率除以該原始播放幀率得到一個幀序列包含的幀數,再結合該視頻播放系統同步的一播放時間判斷出每個幀序列。該同步的播放時間,可以認為是每個幀序列的起始和終止時間,以及該幀序列中每個幀的起始和終止時間。在本實施例中,該判斷模組100判斷出加密後的一視頻資料中每0.25秒中的一個幀序列的包含4個視頻幀,例如A+,X+,X-,A-或B+,Y+,B-,Y-(參閱圖4(1)所示)。在本實施例中,該判斷模組100僅需要獲取每個幀序列包含的幀數及該幀序列中每個幀的一時間區間,而不需要獲取幀的內容。在其他實施例中,該判斷模組100還可以根據該視頻播放系統獲取該幀序列中每個幀的內容。 The determining module 100 determines each frame sequence according to the original playback frame rate and the adjusted playback frame rate. Specifically, the determining module 100 divides the adjusted playback frame rate by the original playback frame rate to obtain the number of frames included in a frame sequence, and then determines each frame sequence in combination with a playback time synchronized by the video playback system. The synchronized playback time can be considered as the start and end time of each frame sequence, and the start and end time of each frame in the frame sequence. In this embodiment, the judging module 100 judges that a frame sequence in encrypted video data every 4 seconds contains 4 video frames, such as A +, X +, X-, A- or B +, Y +, B-, Y- (see Figure 4 (1)). In this embodiment, the determining module 100 only needs to obtain the number of frames included in each frame sequence and a time interval of each frame in the frame sequence, and does not need to obtain the content of the frames. In other embodiments, the determination module 100 may also obtain the content of each frame in the frame sequence according to the video playback system.

該解密模組110用於根據預設的一解密規則從該幀序列中讀取出一原始視頻幀。該解密規則實際上是根據加密過程中的一排序規則計算出解密的一排序規則,再根據該解密的排序規則將該幀序列中的該原始視頻幀對應的複數分解幀讀取出來。在本實施例中,該幀序列A+,X+,X-,A-和幀序列B+,Y+,B-,Y-,在加密過程中的排序規則是1,4,2,3和1,3,2,4。因此,解密的排序規則就是1,4和1,3。該解密模組110將該幀序列A+,X+,X-,A-中的第1,4幀讀取出來,將幀序列B+,Y+,B-,Y-中的第1,3幀讀取出來,得到一原始視頻幀A的兩個分解幀和一原始視頻幀B的兩個分解幀(參閱圖4(2)所示)。 The decryption module 110 is configured to read an original video frame from the frame sequence according to a preset decryption rule. The decryption rule actually calculates a decryption order according to a sort rule in the encryption process, and then reads out a complex decomposition frame corresponding to the original video frame in the frame sequence according to the decryption order rule. In this embodiment, the order of the frame sequence A +, X +, X-, A- and frame sequence B +, Y +, B-, Y- in the encryption process is 1, 4, 2, 3, and 1, 3 , 2,4. Therefore, the collation for decryption is 1,4 and 1,3. The decryption module 110 reads out frames 1, 4 in the frame sequence A +, X +, X-, A-, and reads frames 1, 3 in the frame sequence B +, Y +, B-, Y- Out, two decomposed frames of an original video frame A and two decomposed frames of an original video frame B are obtained (see FIG. 4 (2)).

在本實施例中,該解密模組110將該原始視頻幀對應的複數分解幀讀取出來,而對於該互補幀的複數分解幀可以不做任何處理。在其他實施例中,也可以是將該原始視頻幀對應的該些分解幀讀取出來,將該互補幀的該些分解幀進行濾除或者讀取等其他處理。解密後,T1到T2時間段及T2 到T3時間段分別包含了一原始視頻幀A的兩個分解幀和一原始視頻幀B的兩個分解幀,根據視覺暫留的效果,該幀序列播放出來後最終顯示為該原始視頻幀A和B(參閱圖4(3)所示)。 In this embodiment, the decryption module 110 reads out the complex decomposition frame corresponding to the original video frame, and does not perform any processing on the complex decomposition frame of the complementary frame. In other embodiments, the decomposed frames corresponding to the original video frame may also be read out, and the decomposed frames of the complementary frame may be filtered or read and other processing may be performed. After decryption, the time period from T1 to T2 and T2 The period from T3 to T2 respectively include two original frames of original video frame A and two original frames of original video frame B. According to the effect of visual persistence, the frame sequence is displayed as the original video frame A after being played out. And B (see Figure 4 (3)).

參閱圖5所示,是本發明一較佳實施例之視頻加密方法的流程圖。該視頻加密方法,應用於播放幀率可變的一視頻播放系統,通過一處理器執行一記憶體存儲的一程式碼實現。 FIG. 5 is a flowchart of a video encryption method according to a preferred embodiment of the present invention. The video encryption method is applied to a video playback system with a variable playback frame rate, and is implemented by a processor executing a code stored in a memory.

該視頻加密方法主要包括以下步驟:。 The video encryption method mainly includes the following steps:.

步驟S12:獲取待加密的一視頻資料的原始播放幀率和每一個原始視頻幀。 Step S12: Obtain an original playback frame rate of a video material to be encrypted and each original video frame.

步驟S14:將該原始視頻幀進行轉置以生成對應的一互補幀。 Step S14: Transpose the original video frame to generate a corresponding complementary frame.

步驟S16:根據預設的不同的複數分解模式將該原始視頻幀和對應的該互補幀分別分解為複數分解幀。該些分解幀,可以認為同一個原始視頻幀或者互補幀的所有分解幀進行疊加可直接獲得該原始視頻幀或者該互補幀。而不同的複數分解模式,可以認為是分解為不同的複數樣式。 Step S16: Decompose the original video frame and the corresponding complementary frame into complex decomposition frames respectively according to different preset complex decomposition modes. For these decomposed frames, it can be considered that superimposing all decomposed frames of the same original video frame or complementary frame can directly obtain the original video frame or the complementary frame. The different complex number decomposition modes can be considered as different complex number patterns.

步驟S18:根據預設的一排序規則將該原始視頻幀的所有分解幀和該互補幀的所有分解幀在該原始視頻幀所占的一時間區間段內進行排序以生成一個幀序列:。 Step S18: Sort all the decomposed frames of the original video frame and all the decomposed frames of the complementary frame within a time interval occupied by the original video frame according to a preset sorting rule to generate a frame sequence :.

步驟S22:調整該幀序列對應的一原始播放幀率並控制該視頻播放系統以調整後的一播放幀率對該幀序列進行播放。值得說明的是,該幀序列根據該調整後的一播放幀率進行播放時,包含了該原始視頻幀的所有分解幀及其對應的一互補幀的所有分解幀的幀序列,根據視覺暫留的效果,該幀序列播放出來後最終顯示為灰階影像。 Step S22: Adjust an original playback frame rate corresponding to the frame sequence and control the video playback system to play the frame sequence at the adjusted playback frame rate. It is worth noting that when the frame sequence is played according to the adjusted playback frame rate, the frame sequence that includes all the decomposed frames of the original video frame and all the decomposed frames of a corresponding complementary frame is based on visual persistence. Effect, the frame sequence is finally displayed as a grayscale image after being played out.

參閱圖6所示,是本發明一較佳實施例之視頻解密方法的流程圖。該視頻解密方法,應用於一視頻播放系統,通過一處理器執行一記憶體存儲的程式碼實現。 Refer to FIG. 6, which is a flowchart of a video decryption method according to a preferred embodiment of the present invention. The video decryption method is applied to a video playback system and is implemented by a processor executing a program code stored in a memory.

該視頻解密方法主要包括以下步驟。 The video decryption method mainly includes the following steps.

步驟S32:獲取加密後的一視頻資料對應的一原始播放幀率和調整後的一播放幀率,該加密後的視頻資料為經過轉置和分解處理的一視頻資料:。 Step S32: Obtain an original playback frame rate and an adjusted playback frame rate corresponding to the encrypted video data. The encrypted video data is a video data that has been transposed and decomposed:

步驟S34:根據該原始播放幀率和該調整後的播放幀率判斷出每一個幀序列。具體為:將該調整後的播放幀率除以該原始播放幀率得到一個幀序列包含的幀數,再結合該視頻播放系統同步的一播放時間和播放的每一個視頻幀,判斷出每個幀序列。 Step S34: Determine each frame sequence according to the original playback frame rate and the adjusted playback frame rate. Specifically: Divide the adjusted playback frame rate by the original playback frame rate to obtain the number of frames contained in a frame sequence, and then combine a playback time synchronized with the video playback system and each video frame played to determine each Frame sequence.

步驟S36:根據預設的一解密規則從該幀序列中讀取出一原始視頻幀。該解密規則實際上是根據加密過程中的一排序規則將該幀序列中的一原始視頻幀的所有分解幀讀取出來。解密之後,幀序列中則只包含了該原始視頻幀的所有分解幀,因此,根據視覺暫留的效果,該解密後的幀序列播放出來後最終顯示為一原始視頻幀。 Step S36: Read an original video frame from the frame sequence according to a preset decryption rule. The decryption rule actually reads all the decomposed frames of an original video frame in the frame sequence according to a sorting rule in the encryption process. After decryption, the frame sequence only contains all the decomposed frames of the original video frame. Therefore, according to the effect of visual persistence, the decrypted frame sequence is displayed as an original video frame after being played out.

以上實施例僅用以說明本發明的技術方案而非限制,儘管參照較佳實施例對本發明進行了詳細說明,本領域的普通技術人員應當理解,可以對本發明的技術方案進行修改或等同替換,而不脫離本發明技術方案的精神和範圍。 The above embodiments are only used to illustrate the technical solution of the present invention and are not limiting. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention may be modified or equivalently replaced. Without departing from the spirit and scope of the technical solution of the present invention.

Claims (10)

一種視頻加密裝置,應用於播放幀率可變的一視頻播放系統,該視頻加密裝置包括:一第一獲取模組,用於獲取待加密的一視頻資料的一原始播放幀率和每一個原始視頻幀;一加密模組,用於將該原始視頻幀進行轉置以生成對應的一互補幀,根據預設的不同的複數分解模式將該原始視頻幀和該互補幀分別分解為複數分解幀以生成對應的一個幀序列,從而得到加密後的一視頻資料;一調整模組,用於調整該幀序列對應的一原始播放幀率並控制該視頻播放系統以調整後的一播放幀率對該幀序列進行播放。A video encryption device is applied to a video playback system with a variable playback frame rate. The video encryption device includes: a first acquisition module for acquiring an original playback frame rate and each original of a video material to be encrypted; Video frame; an encryption module for transposing the original video frame to generate a corresponding complementary frame, and respectively decomposing the original video frame and the complementary frame into complex decomposed frames according to different preset complex decomposition modes A corresponding frame sequence is generated to obtain encrypted video data. An adjustment module is used to adjust an original playback frame rate corresponding to the frame sequence and control the video playback system to adjust the adjusted playback frame rate. The frame sequence is played. 如權利要求1所述的視頻加密裝置,其中,該加密模組具體包括:一排序子模組,用於根據預設的一排序規則將該原始視頻幀的該些分解幀和該互補幀的該些分解幀在該原始視頻幀所占的一時間區間段內進行排序以生成該幀序列。The video encryption device according to claim 1, wherein the encryption module specifically comprises: a sorting submodule, configured to sort the decomposed frames of the original video frame and the complementary frames according to a preset sorting rule. The decomposed frames are sorted within a time interval period occupied by the original video frame to generate the frame sequence. 如權利要求1所述的視頻加密裝置,其中,該調整模組還用於:將該原始播放幀率與該幀序列包含的幀數相乘計算出該調整後的一播放幀率。The video encryption device according to claim 1, wherein the adjustment module is further configured to multiply the original playback frame rate by the number of frames included in the frame sequence to calculate the adjusted playback frame rate. 一種視頻解密裝置,該視頻解密裝置包括:一第二獲取模組,用於獲取加密後的一視頻資料對應的一原始播放幀率和調整後的一播放幀率以及一排序規則,該加密後的視頻資料為經過轉置和分解處理的一視頻資料;一判斷模組,用於根據該原始播放幀率和該調整後的播放幀率判斷出每一個幀序列;一解密模組,用於根據該排序規則計算出解密的一解密規則從該幀序列讀取出一原始視頻幀。A video decryption device. The video decryption device includes a second acquisition module for acquiring an original playback frame rate and an adjusted playback frame rate and an ordering rule corresponding to encrypted video data. The video data is a video data that has been transposed and decomposed; a judgment module is used to determine each frame sequence according to the original playback frame rate and the adjusted playback frame rate; a decryption module is used to A decryption rule, which is calculated according to the sorting rule, reads an original video frame from the frame sequence. 如權利要求4所述的視頻解密裝置,其中,該解密模組還用於根據該解密規則將該幀序列中的一原始視頻幀的所有分解幀讀取出來。The video decryption device according to claim 4, wherein the decryption module is further configured to read all the decomposed frames of an original video frame in the frame sequence according to the decryption rule. 一種視頻加密方法,應用於播放幀率可變的一視頻播放系統,該視頻加密方法包括步驟:獲取待加密的一視頻資料的一原始播放幀率和每一個原始視頻幀;將每一個該原始視頻幀進行轉置以生成對應的一互補幀,並根據預設的不同的複數分解模式將該原始視頻幀和該互補幀分別分解為複數分解幀以生成對應的一個幀序列,從而得到加密後的視頻資料;調整該幀序列對應的一原始播放幀率並控制該視頻播放系統以調整後的一播放幀率對該幀序列進行播放。A video encryption method is applied to a video playback system with variable frame rate. The video encryption method includes the steps of: obtaining an original playback frame rate of a video material to be encrypted and each original video frame; The video frame is transposed to generate a corresponding complementary frame, and the original video frame and the complementary frame are respectively decomposed into a plurality of decomposed frames to generate a corresponding frame sequence according to different preset complex decomposition modes to obtain the encrypted frame sequence. Video data; adjusting an original playback frame rate corresponding to the frame sequence and controlling the video playback system to play the frame sequence at the adjusted playback frame rate. 如權利要求6所述的視頻加密方法,其中,該將每一個該原始視頻幀進行轉置以生成對應的一互補幀,並根據預設的不同的複數分解模式將該原始視頻幀和該互補幀分別分解為複數分解幀以生成對應的一個幀序列具體包括:根據預設的排序規則將該原始視頻幀的該些分解幀和該互補幀的該些分解幀在該原始視頻幀所占的一時間區間段內進行排序以生成該幀序列。The video encryption method according to claim 6, wherein the original video frame is transposed to generate a corresponding complementary frame, and the original video frame and the complementary frame are generated according to different preset complex decomposition modes. Decomposing a frame into a plurality of decomposed frames to generate a corresponding frame sequence specifically includes: according to a preset sorting rule, the decomposed frames of the original video frame and the decomposed frames of the complementary frame in the original video frame. Sort within a time interval to generate the frame sequence. 如權利要求6所述的視頻加密方法,其中,該調整該幀序列對應的一原始播放幀率的步驟還包括:將該原始播放幀率與該幀序列包含的幀數相乘計算出該調整後的一播放幀率。The video encryption method according to claim 6, wherein the step of adjusting an original playback frame rate corresponding to the frame sequence further comprises: multiplying the original playback frame rate by the number of frames included in the frame sequence to calculate the adjustment. The next playback frame rate. 一種視頻解密方法,該視頻解密方法包括步驟:獲取加密後的一視頻資料對應的一原始播放幀率和調整後的一播放幀率以及一排序規則,該加密後的視頻資料為經過轉置和分解處理的一視頻資料;根據該原始播放幀率和該調整後的播放幀率判斷出每一個幀序列;根據該排序規則計算出解密的一解密規則從該幀序列讀取出一原始視頻幀。A video decryption method. The video decryption method includes the steps of obtaining an original playback frame rate and an adjusted playback frame rate and an ordering rule corresponding to an encrypted video material. The encrypted video data is transposed and Decompose a piece of video data; determine each frame sequence according to the original playback frame rate and the adjusted playback frame rate; calculate a decryption rule based on the sorting rule to decrypt a raw video frame from the frame sequence . 如權利要求9所述的視頻解密方法,其中,該根據該排序規則計算出解密的一解密規則從該幀序列讀取出一原始視頻幀具體包括:根據該解密規則將該幀序列中的一原始視頻幀的所有分解幀讀取出來。The video decryption method according to claim 9, wherein the decoding of a decryption rule calculated according to the sorting rule to read an original video frame from the frame sequence specifically comprises: according to the decryption rule, one of the frame sequences All decomposed frames of the original video frame are read out.
TW106111157A 2017-03-31 2017-03-31 A video encryption and decryption method and device TWI679884B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW106111157A TWI679884B (en) 2017-03-31 2017-03-31 A video encryption and decryption method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW106111157A TWI679884B (en) 2017-03-31 2017-03-31 A video encryption and decryption method and device

Publications (2)

Publication Number Publication Date
TW201838420A TW201838420A (en) 2018-10-16
TWI679884B true TWI679884B (en) 2019-12-11

Family

ID=64797159

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106111157A TWI679884B (en) 2017-03-31 2017-03-31 A video encryption and decryption method and device

Country Status (1)

Country Link
TW (1) TWI679884B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200820755A (en) * 2006-06-23 2008-05-01 Broadcom Corp Simultaneous video and sub-frame metadata capture system
CN102254328A (en) * 2011-05-17 2011-11-23 西安电子科技大学 Video motion characteristic extracting method based on local sparse constraint non-negative matrix factorization
CN103024449A (en) * 2011-09-28 2013-04-03 中国移动通信集团公司 Method for processing video frame stream, video server and terminal equipment
WO2014197106A1 (en) * 2013-06-07 2014-12-11 Apple Inc. Tuning video compression for high frame rate and variable frame rate capture
US9179123B2 (en) * 2007-11-29 2015-11-03 Mitsubishi Electric Corporation Stereoscopic video recording method, stereoscopic video recording medium, stereoscopic video reproducing method, stereoscopic video recording apparatus, stereoscopic video reproducing apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200820755A (en) * 2006-06-23 2008-05-01 Broadcom Corp Simultaneous video and sub-frame metadata capture system
US9179123B2 (en) * 2007-11-29 2015-11-03 Mitsubishi Electric Corporation Stereoscopic video recording method, stereoscopic video recording medium, stereoscopic video reproducing method, stereoscopic video recording apparatus, stereoscopic video reproducing apparatus
CN102254328A (en) * 2011-05-17 2011-11-23 西安电子科技大学 Video motion characteristic extracting method based on local sparse constraint non-negative matrix factorization
CN103024449A (en) * 2011-09-28 2013-04-03 中国移动通信集团公司 Method for processing video frame stream, video server and terminal equipment
WO2014197106A1 (en) * 2013-06-07 2014-12-11 Apple Inc. Tuning video compression for high frame rate and variable frame rate capture

Also Published As

Publication number Publication date
TW201838420A (en) 2018-10-16

Similar Documents

Publication Publication Date Title
JP4931924B2 (en) Media data processing apparatus and media data processing method
JP5321174B2 (en) Terminal device, communication control method, and communication control program
CN111327947B (en) Screen capture management method and device and mobile terminal
CN103460708B (en) Method and apparatus for realizing the purchase or information request for the object of the object in digital content
US20180189510A1 (en) Method, apparatus and computer program product for controlling access to at least one or multiple images captured concurrently
CN105791893B (en) Video file encryption and decryption method and device
CN108366299A (en) A kind of media playing method and device
US7471806B2 (en) Method, apparatus and computer program for inserting a watermarking program into an image processing program
TWI519994B (en) Image encryption and decryption method for using physiological features and device for capturing images thereof
JP5646187B2 (en) Access method, generation method, user apparatus, and generation apparatus
TWI679884B (en) A video encryption and decryption method and device
US10192075B2 (en) Method of secret information entering into electronic digital devices
CN108668133B (en) Video encryption and decryption method and device
KR101879954B1 (en) Method for processing secure image through visual cryptography based on temporal domain and apparatus therefor
KR101675134B1 (en) Data storage system and method for storing information distributed
US9449179B2 (en) Information processor
US20140376892A1 (en) Display data processor and display data processing method
CN115550691A (en) Video processing method, video transmission method, video viewing method and device
WO2017064517A1 (en) Messaging security
CN111372023B (en) Code stream encryption and decryption method and device
US20220309607A1 (en) Apparatus, method, and program product for preventing data snipping
JP2002149497A (en) System and method for protecting privacy information
KR20230064583A (en) Streaming service providing system and method thereof
CN115048169A (en) Information processing method and device
JP2022175938A (en) Image processing system, image processing method, and image processing program