[go: up one dir, main page]

CN108900868A - Based on video transmission method, device and storage medium H.264 - Google Patents

Based on video transmission method, device and storage medium H.264 Download PDF

Info

Publication number
CN108900868A
CN108900868A CN201810921507.9A CN201810921507A CN108900868A CN 108900868 A CN108900868 A CN 108900868A CN 201810921507 A CN201810921507 A CN 201810921507A CN 108900868 A CN108900868 A CN 108900868A
Authority
CN
China
Prior art keywords
target
parameter
transformation rule
code
code element
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.)
Granted
Application number
CN201810921507.9A
Other languages
Chinese (zh)
Other versions
CN108900868B (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.)
Suzhou Keda Technology Co Ltd
Original Assignee
Suzhou Keda 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 Suzhou Keda Technology Co Ltd filed Critical Suzhou Keda Technology Co Ltd
Priority to CN201810921507.9A priority Critical patent/CN108900868B/en
Publication of CN108900868A publication Critical patent/CN108900868A/en
Application granted granted Critical
Publication of CN108900868B publication Critical patent/CN108900868B/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
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/61Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding
    • 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/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • 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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4405Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video stream decryption

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

Signal processing technology field is belonged to based on video transmission method, device and storage medium H.264 this application involves a kind of, this method includes:Obtain the nonzero coefficient number and hangover coefficient number in residual error data block;Parameter of tabling look-up is calculated according to the context of the residual error data block;The corresponding target code element of target code parameter in target look-up table is converted into out-of-order code element according to transformation rule;Video code flow is generated according to the out-of-order code element;The transformation rule is encrypted, encrypted transformation rule is obtained;The video code flow and the encrypted transformation rule are sent to decoder, the target code parameter includes the nonzero coefficient number, the hangover coefficient number and the parameter of tabling look-up;Can solve to video code flow encrypted when destroy video frame formats the problem of;Both the safety of video code flow can have been guaranteed;The video frame formats that can keep video code flow again, reduce the difficulty of data manipulation.

Description

Based on video transmission method, device and storage medium H.264
Technical field
This application involves based on video transmission method, device and storage medium H.264, belong to signal processing technology neck Domain.
Background technique
H.264 (or AVC) is by International Telecommunication Union's telecommunication standardsization tissue (ITU-T for ITU Telecommunication Standardization Sector, ITU-T) Video Coding Experts Group (Video Coding Experts Group, VCEG) and International Organization for standardization (International Organization for Standardization, ISO)/International Electrotechnical Commission (International Electrical Commission, IEC) Joint video team (the Joint that dynamic image expert group (Moving Pictures Experts Group, MPEG) constitutes jointly Video Team, JVT) propose high compression digital video coding-coding device standard.
H.264 it is widely used in field of video transmission.When based on H.264 transmission of video is carried out, in order to guarantee video counts According to safety, need to encrypt video data.
Currently, including to the mode of video data encryption:Video code flow after coding is encrypted.
However, the process encrypted to video code flow can destroy video frame formats, so as to cause data manipulation is increased The problem of difficulty.
Summary of the invention
This application provides a kind of based on video transmission method, device and storage medium H.264, can solve to video Code stream carries out the problem of encryption destroys video frame formats.The application provides the following technical solutions:
In a first aspect, provide it is a kind of based on video transmission method H.264, the method includes:
The nonzero coefficient number and hangover coefficient number in residual error data block are obtained, the residual error data block is to be encoded Image carries out predictive coding, data transform and quantization obtains later;
Parameter of tabling look-up is calculated according to the context of the residual error data block;
The corresponding target code element of target code parameter described in target look-up table is converted into unrest according to transformation rule Sequence code element;The target look-up table includes at least one set of coding parameter and the corresponding code element of every group of coding parameter;Institute Stating at least one set of coding parameter includes the target code parameter, the target code parameter include the nonzero coefficient number, The hangover coefficient number and the parameter of tabling look-up;
Video code flow is generated according to the out-of-order code element;
The transformation rule is encrypted, encrypted transformation rule is obtained;
The video code flow and the encrypted transformation rule are sent to decoder, the video code flow and it is described plus Transformation rule after close is used to obtain the residual error data block for the decoder decoded back.
Optionally, described to turn the corresponding target code element of target code parameter in target look-up table according to transformation rule It is changed to out-of-order code element, including:
Obtain the index value of each code element in the target look-up table;The corresponding index of each code element Value, the corresponding index value of different code elements are different;
Out-of-order processing is carried out to the index value of each code element, obtains the transformation rule, the transformation rule Including the index value after the corresponding random ordering of each code element;
Target index value in the transformation rule, after random ordering is determined according to the target code parameter;
It determines that index value is the code element of the target index value after the random ordering in the target look-up table, obtains institute State out-of-order code element.
Optionally, described to turn the corresponding target code element of target code parameter in target look-up table according to transformation rule It is changed to out-of-order code element, including:
Out-of-order processing is carried out to each code element in the target look-up table, obtains the transformation rule, described turn Changing rule includes each code element after random ordering;
The corresponding out-of-order code element of the target code parameter is determined in the transformation rule.
Second aspect, provide it is a kind of based on video transmission method H.264, the method includes:
Obtain the out-of-order code element in the video code flow that encoder is sent;The random ordering code element is the encoder The corresponding target code element of target code parameter in target look-up table is converted to according to transformation rule;The mesh Marking look-up table includes at least one set of coding parameter and the corresponding code element of every group of coding parameter;At least one set coding parameter Including the target code parameter, the target code parameter include the nonzero coefficient number, the hangover coefficient number and The parameter of tabling look-up;
Obtain the encrypted transformation rule that the encoder is sent;
The encrypted transformation rule is decrypted, the transformation rule is obtained;
The target code parameter is determined according to the transformation rule and the out-of-order code element;
The residual error data block is restored according to the target code parameter.
Optionally, the transformation rule is the encoder to each coding member in the target look-up table got The index value of element carries out what out-of-order processing obtained later;The transformation rule includes the rope after the corresponding random ordering of each code element Draw value;
It is described according to the transformation rule and the out-of-order code element determines the target code parameter, including:
Each code element in the target look-up table is subjected to out-of-order processing according to the transformation rule, obtains random ordering Look-up table;
Determine target position of the out-of-order code element in the out-of-order look-up table;
Obtain the corresponding target code parameter in target position described in the out-of-order look-up table.
Optionally, the transformation rule is that the encoder carries out disorderly each code element in the target look-up table It is obtained after sequence processing, the transformation rule includes each code element after random ordering;
It is described according to the transformation rule and the out-of-order code element determines the target code parameter, including:
Determine target position of the out-of-order code element in the transformation rule;
Obtain the corresponding target code parameter in target position described in the transformation rule.
The third aspect, provides a kind of based on video frequency transmitter H.264, and described device includes:
Number obtains module, described residual for obtaining the nonzero coefficient number in residual error data block and hangover coefficient number Difference data block is treated coded image and obtain after predictive coding, data transform and quantization;
Parameter acquisition module, for calculating parameter of tabling look-up according to the context of the residual error data block;
Element conversion module, for according to transformation rule by the corresponding target of target code parameter described in target look-up table Code element is converted to out-of-order code element;The target look-up table includes at least one set of coding parameter and every group of coding parameter pair The code element answered;At least one set coding parameter includes the target code parameter, and the target code parameter includes institute State nonzero coefficient number, the hangover coefficient number and the parameter of tabling look-up;
Code stream generation module, for generating video code flow according to the out-of-order code element;
Regular encrypting module obtains encrypted transformation rule for encrypting to the transformation rule;
Data transmission blocks, for the video code flow and the encrypted transformation rule to be sent to decoder, institute It states video code flow and the encrypted transformation rule is used to obtain the residual error data block for the decoder decoded back.
Fourth aspect, provides a kind of based on video frequency transmitter H.264, and described device includes:
Element obtains module, the out-of-order code element in video code flow for obtaining encoder transmission;The out-of-order volume Data code be the encoder according to transformation rule to the corresponding target code element of target code parameter in target look-up table into What row was converted to;The target look-up table includes at least one set of coding parameter and the corresponding code element of every group of coding parameter; At least one set coding parameter includes the target code parameter, and the target code parameter includes the nonzero coefficient Several, the described hangover coefficient number and the parameter of tabling look-up;
Rule acquisition module, the encrypted transformation rule sent for obtaining the encoder;
Regular deciphering module obtains the transformation rule for the encrypted transformation rule to be decrypted;
Parameter determination module, for determining that the target code is joined according to the transformation rule and the out-of-order code element Number;
Data restoring module, for restoring the residual error data block according to the target code parameter.
5th aspect, provides a kind of based on video frequency transmitter H.264, described device includes processor and memory; Be stored with program in the memory, described program loaded as the processor and executed with realize described in first aspect based on H.264 video transmission method;Alternatively, realizing described in second aspect based on video transmission method H.264.
6th aspect, provides a kind of computer readable storage medium, program, described program is stored in the storage medium It is loaded as the processor and is executed to realize described in first aspect based on video transmission method H.264;Alternatively, realizing the Based on video transmission method H.264 described in two aspects.
The beneficial effects of the present application are as follows:By obtaining nonzero coefficient number and hangover coefficient in residual error data block Number;Parameter of tabling look-up is calculated according to the context of residual error data block;According to transformation rule by target code parameter in target look-up table Corresponding target code element is converted to out-of-order code element;Video code flow is generated according to out-of-order code element;To transformation rule It is encrypted, obtains encrypted transformation rule;Video code flow and encrypted transformation rule are sent to decoder, target is compiled Code parameter includes nonzero coefficient number, coefficient number of trailing and parameter of tabling look-up;Can solve to video code flow encrypted when The problem of destroying video frame formats;Since encoder is searched according to nonzero coefficient number, coefficient number of trailing and parameter of tabling look-up When target code element, target code element can be converted to out-of-order code element, therefore, the video code flow packet that encoder is sent The out-of-order code element included may be different from target code element;After malicious peer intercepts video code flow if it exists, direct root Corresponding nonzero coefficient number, coefficient number of trailing and parameter of tabling look-up, the then nonzero coefficient obtained are searched according to out-of-order code element Number, coefficient number of trailing and parameter of tabling look-up may be mistake, it may therefore be assured that the safety of video code flow;In addition, by Therefore, video code flow is maintained there is no encrypting to video code flow in the sequence that encoder instruction changes code element Video frame formats, the difficulty of data manipulation can be reduced.
Above description is only the general introduction of technical scheme, in order to better understand the technological means of the application, And can be implemented in accordance with the contents of the specification, with the preferred embodiment of the application and cooperate attached drawing below detailed description is as follows.
Detailed description of the invention
Fig. 1 is the structural schematic diagram based on encoder H.264 that the application one embodiment provides;
Fig. 2 is the structural schematic diagram based on Video transmission system H.264 that the application one embodiment provides;
Fig. 3 is the flow chart based on video transmission method H.264 that the application one embodiment provides;
Fig. 4 is the flow chart that target code element is converted to out-of-order code element that the application one embodiment provides;
Fig. 5 be the application one embodiment provide target code parameter is determined according to transformation rule and out-of-order code element Flow chart;
Fig. 6 is the process that target code element is converted to out-of-order code element that another embodiment of the application provides Figure;
Fig. 7 be another embodiment of the application provide determine that target code is joined according to transformation rule and out-of-order code element Number flow chart;
Fig. 8 is the block diagram based on video frequency transmitter H.264 that the application one embodiment provides;
Fig. 9 is the block diagram based on video frequency transmitter H.264 that the application one embodiment provides;
Figure 10 is the block diagram based on video frequency transmitter H.264 that the application one embodiment provides.
Specific embodiment
With reference to the accompanying drawings and examples, the specific embodiment of the application is described in further detail.Implement below Example is not limited to scope of the present application for illustrating the application.
H.264 standard is that a kind of compression performance is excellent, source coding standard with good network compatibility, can be used extensively In digital television broadcasting, visual telephone, video conference and Network Video Transmission etc..H.264 standard includes intra prediction, frame Between prediction, data transformation, quantization and the technologies such as entropy coding.
With reference to the structural schematic diagram shown in FIG. 1 based on encoder H.264.As can be seen from FIG. 1, based on volume H.264 Code device includes two data paths:Progress path and reconstruct path.
In progress path, encoder input video frame indicated with Fn, it as unit of macro block, such as:One 16 × The picture of 16 pixels.Each macro block will carry out predictive coding after input with frame mode or inter-frame mode.In frame internal model Under formula, the encoder pixel encoded to present frame is predicted to obtain predicted value P;In inter mode, encoder pair At least one encoded reference frame carries out motion compensation and obtains predicted value P.Wherein, F ' n-1 is the reference being currently encoded Frame.Current macro Fn and predicted value P are subtracted each other into available residual error data block Dn.Residual error data block Dn is by transformation, amount Change the transformation coefficient X after generating one group of quantization.Transformation coefficient X using reorder, entropy coding process and for macro block it is decoded Side information (macro-block skip mode, quantization step size, motion vector information etc.) forms a string of bit streams compressed, then defeated Network abstraction layer (Network Abstraction Layer, NAL) is arrived out to be used for transmission or store.
In reconstruct path, the transformation coefficient X after quantization is decoded again, is reconstructed to obtain a reference frame by encoder, The reference frame is used to be encoded for subsequent macro block.Transformation coefficient X generates one and former residual error number by inverse quantization, inverse transformation According to the different new residual error data block Dn ' of block Dn.Predicted value P is added again to obtain the new of a reconstruct with new residual error data block Dn ' Macro block uF ' n.Optionally, it in order to reduce the influence generated in inverse quantization, inverse transformation, also needs before reconstruct terminates through filtering The filtering of wave device.Filtered macro block F ' n is last reconstructed image, and the reconstructed image to subsequent macro block for predicting When reference is provided.
Based on the structure of encoder shown in FIG. 1, several nouns involved in H.264 standard are explained below.
Video frame:Video is made of static picture, these static pictures are known as frame.One frame of video is used to generate one A coded image.
Macro block:One coded image is made of several macro blocks, and a macro block is by a luminance pixel block and two coloration pictures Plain block composition.Such as:One macro block include luminance pixel block be 16 × 16 luminance pixel, chrominance block be respectively 8 × 8 blue Block of pixels and 8 × 8 red block of pixels.In each image, several macro blocks are arranged sheet of form, video coding algorithm As unit of macro block, macro block is encoded one by one, is organized into continuous video code flow.
Intraframe predictive coding:In piece image, the actual value of current pixel and the difference of its predicted value are quantified The mode of coding is known as intraframe predictive coding.Wherein, the phase of predicted value by the adjacent pixel before same a line and above mutually before leaving Pixel is closed to generate.
Inter prediction encoding:Refer to that carrying out motion compensation to encoded video frame obtains the coding mode of prediction model.
Transition coding:Refer to that the image for describing spatial domain transforms to the coding mode of an orthogonal transform domain.
Quantization encoding:Refer to the coding mode for compressing data.
Entropy coding:It is that will further be compressed into bit stream by the residual error data block of quantization, the technology being output in channel. H.264 the entropy coding in standard includes the adaptive variable length coding (Context-Adaptive based on context Varialbe-Length Coding, CAVLC) algorithm.
CAVLC algorithm be based on contextual information, residual error data is encoded with multiple look-up tables, coding rate compared with Fastly.Schematically, the entropy coding process of CAVLC is as follows:
Step 1, it resequences to the residual error data block obtained after predictive coding, data transform and quantization, Obtain one-dimensional vector.
Optionally, the mode of rearrangement can scan for zig-zag.Zig-zag scanning is carried out to residual error data block A kind of scanning mode of rearrangement, what is obtained after scanning is one group of one-dimensional vector for containing several coefficients.Residual error data block The upper left corner be low frequency part, the lower right corner is high frequency section.Since low frequency part is mainly biggish nonzero coefficient, high frequency section Predominantly ± 1 or 0, therefore, residual error data block can concentrate the coding biggish non-zero of low frequency part after zig-zag is scanned Coefficient.
Step 2, the nonzero coefficient number (Total Coeffs) and hangover coefficient number in one-dimensional vector are calculated (TrailingOnes)。
Optionally, the value range of nonzero coefficient number is 0 to 16, and the value range for coefficient number of trailing is 0 to 3.Such as Coefficient number of trailing in fruit one-dimensional vector is greater than 3, then, only last 3 hangovers coefficient is considered as the coefficient that trails, and others are dragged Tail coefficient is considered as nonzero coefficient.
Step 3, the context based on residual error data block calculates parameter of tabling look-up.
Schematically, calculating parameter of tabling look-up includes:There is residual error data in the top and the left side of current residual error data block When block, parameter of tabling look-up N=(Nu+Nl)/2;Current residual error data block only has top there are when residual error data block, parameter of tabling look-up N= Nu;Current residual error data block only has the left side there are when residual error data block, parameter of tabling look-up N=Nl;Current residual error data block top When residual error data block being all not present with the left side, parameter of tabling look-up N=0.
Wherein, NuIt tables look-up parameter for the residual error data block of current residue data block top;NlFor the current residue data block left side Residual error data block table look-up parameter.
Step 4, coding member is searched in target look-up table according to parameter of tabling look-up, nonzero coefficient number and hangover coefficient number Element.
Optionally, it for same group of zero coefficient number and hangover coefficient number, can be corresponded to not when tabling look-up parameter difference Same coding.With reference to following table one, in the application by taking 4 target look-up tables as an example, when the parameter N that tables look-up is 0 or 1, corresponding mesh Mark look-up table is code table Num-VLC0;When the parameter N that tables look-up is 2 or 3, corresponding target look-up table is code table Num-VLC1;When When parameter of tabling look-up N is 4,5,6 or 7, corresponding target look-up table is code table Num-VLC2;When table look-up parameter N >=8 when, corresponding mesh Mark look-up table is code table Num-VLC3.The present embodiment is only illustrated for the partial target look-up table shown in the table one, in reality When border is realized, the content in target look-up table also may include other content, and the present embodiment is not construed as limiting this.
Table one:
Step 5, coding hangover coefficient symbols encode the nonzero coefficient except hangover coefficient.
Optionally, when coding trails coefficient symbols ,+1 is identified with 0, and -1 is indicated with 1.Coding is swept according to reverse zig-zag It retouches sequence to carry out, since the hangover coefficient near high frequency.
Optionally, it is carried out in the nonzero coefficient except coding trails coefficient according to reverse zig-zag scanning sequency, from height Frequency nearby starts, until low frequency position terminates.The prefix and suffix of coding codeword can be derived by by calculating in coding. Schematically, the process of the nonzero coefficient except coding hangover coefficient is as follows:
1) the value level [i] for the nonzero coefficient for having symbol is converted into no value of symbol levelcode;
Schematically, if level [i] > 0, levelcode=(level [i] < < 1) -2;If level [i] < 0, Levelcode=- (level [i] < < 1) -1.
2) the suffix level_suffix of the prefix level_prefix and coding codeword of calculation code code word.
Schematically, level_prefix=levelcode/ (1 < < suffixlength);Level_suffix= Levelcode% (1 < < suffixlength).
Wherein, suffixlength refers to the length of suffix level_suffix.Suffixlength shares 7 values, just The value of beginningization suffixlength is 0.If nonzero coefficient number is greater than 10, and coefficient number of trailing then is initialized less than 3 The value of suffixlength is 1.When nonzero coefficient number is greater than specified threshold, the value of suffixlength adds 1.
3) corresponding code word is searched in the first look-up table according to prefix level_prefix, by suffix be added to prefix it Afterwards, the coding codeword of the nonzero coefficient except the entire hangover coefficient of composition.
Schematically, the first look-up table shown in reference table two.The present embodiment is only searched with part first shown in table two Be illustrated for table, in actual implementation, the code word in the first look-up table may be other content, the present embodiment to this not It limits.
Table two:
Step 6, the number (TotalZeros) of the last one nonzero coefficient leading zero is encoded.
Schematically, corresponding code value is searched in second look-up table according to the number of the last one nonzero coefficient leading zero. Second look-up table shown in reference table three (is split into two tables to indicate).The present embodiment is only searched with part second shown in table three Be illustrated for table, in actual implementation, the code value in second look-up table may be other content, the present embodiment to this not It limits.
Table three:
Step 7, zero number before encoding each nonzero coefficient.
It is to carry out according to reverse zig-zag sequence when being encoded to zero number before each nonzero coefficient.It compiles Code mode include:
1) between nonzero coefficient zero number run_before is recorded;
2) uncoded zero number zeroleft is recorded;
3) according between nonzero coefficient zero number run_before and uncoded zero number zeroleft, in third Corresponding encoded radio is searched in look-up table.Third look-up table shown in reference table four.The present embodiment is only with part shown in table four It is illustrated for third look-up table, in actual implementation, the encoded radio in third look-up table may be other content, this reality It applies example and this is not construed as limiting.
Table four:
Optionally, can stop encoding when 0 being not present before nonzero coefficient;Alternatively, being last in current non-zero coefficient It can also stop encoding when one nonzero coefficient.
In the application, the entropy coding process of CAVLC described in above-mentioned steps 1 to 7 is improved, to be promoted to being based on H.264 the safety of transmission of video.Due to not changing the cataloged procedure of video data, video frame formats will not be destroyed, To simplify the difficulty of data manipulation.
Fig. 2 is the structural schematic diagram based on Video transmission system H.264 that the application one embodiment provides, such as Fig. 2 Shown, which includes at least:Encoder 210 and decoder 220.
Optionally, encoder 210 can have transmission of video for mobile phone, computer, wearable device, tablet computer etc. The terminal of function;Or, or the server with transmission of video function, the present embodiment is not to the equipment of encoder 210 Type limits.
Encoder 210 obtains video code flow for encoding to video image to be encoded;And the video code flow is sent out It send to decoder 220.
Optionally, encoder 210 passes through wired or is wirelessly communicated with decoder 220.
Decoder 220 can be mobile phone, computer, wearable device, tablet computer etc. with transmission of video function Terminal;Or, or the server with transmission of video function, the present embodiment are not made the device type of decoder 220 It limits.
The video code flow that decoder 220 is used to send encoder 210 is decoded, and obtains video image.
Fig. 3 be the application one embodiment provide the flow chart based on video transmission method H.364, the present embodiment with This method is applied to shown in Fig. 2 based on being illustrated in Video transmission system H.364.This method include at least with Under several steps:
Step 301, encoder obtains nonzero coefficient number and hangover coefficient number in residual error data block.
Wherein, residual error data block is treated coded image and obtain after predictive coding, data transform and quantization.
Optionally, encoder obtains nonzero coefficient number and hangover coefficient number in residual error data block, including:To process The residual error data block obtained after predictive coding, data transform and quantization is resequenced, and one-dimensional vector is obtained;It calculates one-dimensional Nonzero coefficient number and hangover coefficient number in vector.Wherein, the mode of rearrangement can scan for zig-zag.
Step 302, encoder calculates parameter of tabling look-up according to the context of residual error data block.
Schematically, encoder calculating parameter of tabling look-up includes:The top and the left side of current residual error data block exist residual When difference data block, parameter of tabling look-up N=(Nu+Nl)/3;Current residual error data block only has top there are when residual error data block, tables look-up Parameter N=Nu;Current residual error data block only has the left side there are when residual error data block, parameter of tabling look-up N=Nl;Current residual error number When residual error data block is all not present according to block top and the left side, parameter of tabling look-up N=0.
Wherein, NuIt tables look-up parameter for the residual error data block of current residue data block top;NlFor the current residue data block left side Residual error data block table look-up parameter.
Optionally, step 302 can execute before step 301;Alternatively, can also execute after step 301;Or Person can also be performed simultaneously with step 301, and the present embodiment does not limit the execution sequence between step 301 and 302.
Step 303, encoder is first by the corresponding target code of target code parameter in target look-up table according to transformation rule Element is converted to out-of-order code element.
Optionally, target look-up table is provided by H.264 standard, and is prestored in the encoder.
Wherein, target look-up table includes at least one set of coding parameter and the corresponding code element of every group of coding parameter;At least One group of coding parameter includes target code parameter, and target code parameter includes the corresponding nonzero coefficient number of residual error data block, drags Tail coefficient number and parameter of tabling look-up.
Target look-up table shown in reference table five, the parameter N that tables look-up in table five in the first row presentation code parameter, first Column indicate the hangover coefficient number in coding parameter, and secondary series indicates the nonzero coefficient number in coding parameter, remaining position is The corresponding code element of every group of coding parameter.The present embodiment is only illustrated for the partial target look-up table shown in the table five, In actual implementation, the content in target look-up table also may include other content, and the present embodiment is not construed as limiting this.
Table five:
Optionally, in original cataloged procedure, encoder gets the corresponding nonzero coefficient number of residual error data block, drags After tail coefficient number and parameter of tabling look-up, corresponding code element is searched in target look-up table.Such as:Nonzero coefficient number be 0, Coefficient number of trailing is 0, parameter of tabling look-up is 1, then corresponding code element is 1 in target look-up table.And in the present embodiment, it compiles After code device gets the corresponding nonzero coefficient number of residual error data block, coefficient number of trailing and parameter of tabling look-up, target can be searched Corresponding target code element carries out being converted to out-of-order code element according to transformation rule in table, if in this way, decoding end can not The transformation rule of coding side is got, then can get the hangover coefficient of mistake according to target look-up table and out-of-order code element Number, nonzero coefficient number and parameter of tabling look-up can both guarantee the safety of video data so that residual error data block can not be restored Property, and do not change video frame formats.The process that target code element is converted to out-of-order code element is detailed in Fig. 4 and figure by encoder Embodiment shown in 6.
Step 304, encoder generates video code flow according to out-of-order code element.
Step 305, encoder encrypts transformation rule, obtains encrypted transformation rule.
In order to guarantee the safety of transformation rule, encoder encrypts transformation rule.Encoder to transformation rule into The mode of row encryption includes carrying out public key encryption to transformation rule using ellipse curve public key cipher algorithm SM2 algorithm.Certainly, it compiles The mode that code device encrypts transformation rule may be other way, and the present embodiment is not construed as limiting this.
Step 306, video code flow and encrypted transformation rule are sent to decoder by encoder.
Video code flow and encrypted transformation rule are used to obtain residual error data block for decoder decoded back.
Optionally, encoder can send video code flow and encrypted transformation rule to decoder simultaneously;Alternatively, can also First to send video code flow, encrypted transformation rule is retransmited;Alternatively, encrypted transformation rule can also be first sent, then Video code flow is sent, the present embodiment does not limit the transmission sequence between video code flow and encrypted transformation rule.
Step 307, decoder obtains the out-of-order code element in the video code flow that encoder is sent.
Wherein, out-of-order code element is that encoder is corresponding to target code parameter in target look-up table according to transformation rule Target code element is converted to;Nonzero coefficient number and hangover coefficient number are that encoder is obtained from residual error data block It gets;Parameter of tabling look-up is that encoder is calculated according to the context of residual error data block;Residual error data block is to be encoded Image carries out predictive coding, data transform and quantization obtains later.
Step 308, decoder obtains the encrypted transformation rule that encoder is sent.
Optionally, step 308 can execute before step 307;Alternatively, can also be executed after step 307;Or Person can also be performed simultaneously with step 307, and the present embodiment does not limit the execution sequence between step 307 and 308.
Step 309, encrypted transformation rule is decrypted in decoder, obtains transformation rule.
Step 310, decoder determines target code element according to transformation rule and out-of-order code element.
Step 311, decoder is according to target code element reduction residual error data block.
In conclusion it is provided in this embodiment based on video transmission method H.264, by obtaining in residual error data block Nonzero coefficient number and hangover coefficient number;Parameter of tabling look-up is calculated according to the context of residual error data block;It will according to transformation rule The corresponding target code element of target code parameter is converted to out-of-order code element in target look-up table;According to out-of-order code element Generate video code flow;Transformation rule is encrypted, encrypted transformation rule is obtained;By video code flow and encrypted conversion Rule is sent to decoder, and target code parameter includes nonzero coefficient number, coefficient number of trailing and parameter of tabling look-up;It can solve To video code flow encrypted when destroy video frame formats the problem of;Since encoder is according to nonzero coefficient number, hangover When coefficient number and parameter of tabling look-up search target code element, target code element can be converted to out-of-order code element, therefore, The out-of-order code element that the video code flow that encoder is sent includes may be different from target code element;Malicious peer is cut if it exists After receiving video code flow, corresponding nonzero coefficient number, hangover coefficient number are directly searched according to out-of-order code element and tabled look-up Parameter, then the nonzero coefficient number obtained, coefficient number of trailing and parameter of tabling look-up may be mistake, it may therefore be assured that view The safety of frequency code stream;In addition, there is no add video code flow since encoder instruction changes the sequence of code element It is close, therefore, the video frame formats of video code flow are maintained, the difficulty of data manipulation can be reduced.
Optionally, the embodiment of the method that step 301 can be implemented separately as coder side to 306;Step 307 is to 311 can be single Solely it is embodied as the embodiment of the method for decoder-side, the present embodiment is not construed as limiting this.
The mode that target code element is converted to out-of-order code element is introduced encoder in step 303 below. The two kinds provided herein modes that target code element is converted to out-of-order code element:The first, by each coding member The index value of element is upset, and determines that out-of-order code element is (shown in Figure 4 according to the corresponding out-of-order index value of target code parameter Embodiment);Second, each code element is upset, determines out-of-order code element (referring to Fig. 6 institute according to target code parameter The embodiment shown).
Fig. 4 is the flow chart that target code element is converted to out-of-order code element that the application one embodiment provides, The present embodiment by this method be applied to it is shown in Fig. 2 based in Video transmission system H.364 for be illustrated.This method Including at least following steps:
Step 401, encoder obtains the index value of each code element in target look-up table.
Optionally, encoder in target look-up table according to the position of each code element from left to right, from top to bottom Sequence is that index value is arranged in each code element, and each code element corresponds to an index value, and different code elements is corresponding Index value is different.
Schematically, it is assumed that target look-up table is as shown in Table 5, and encoder is that rope is arranged in each code element in table five After drawing value, the index value of each code element is referring to following table six, according to table six it is found that the corresponding index of each code element Value, the corresponding index value of different code elements are different.
Table six:
Step 402, encoder carries out out-of-order processing to the index value of each code element, obtains transformation rule.
Wherein, transformation rule includes the index value after the corresponding random ordering of each code element.
Optionally, encoder pass through random (random) function or MOD function to the index value of each code element into The out-of-order processing of row, obtains transformation rule.Certainly, encoder can also carry out out-of-order processing to index value by other means, this Embodiment is not construed as limiting this.
Assuming that the index value of each code element in target look-up table is as shown in Table 6, encoder is to shown in the table six The transformation rule that index value obtain after out-of-order processing is referring to following table seven.According to table six and table seven it is found that there are at least one Position of the index value of code element in table changes.
Table seven:
Step 403, target index value of the encoder in transformation rule, after random ordering is determined according to target code parameter.
Such as:Nonzero coefficient number is 0, hangover coefficient number is 0, parameter of tabling look-up is 1, then is converted according to shown in table seven Rule is it is found that the target index value after random ordering is 13;This is different from the target index value 0 determined according to table six.
Step 404, encoder determines that index value is the code element of the target index value after random ordering in target look-up table, Obtain out-of-order code element.
According in code element in table five and table six between index value position corresponding relationship, it is assumed that the mesh after out-of-order Marking index value is 13, then it is out-of-order code element that corresponding code element, which is 10,10, in table five.
In conclusion conversion regime provided in this embodiment is by by the index of each code element in target look-up table Value carries out out-of-order processing, obtains transformation rule;Target index value after determining random ordering according to the transformation rule, and according to the unrest Target index value after sequence determines out-of-order code element;So that encoder is when encrypting transformation rule, it is only necessary to which encryption is out-of-order Index value afterwards, without encrypting each code element, it is possible to reduce the data volume of encryption, improve data encryption efficiency and Efficiency of transmission.
Conversion method based on shown in Fig. 4, with reference to Fig. 5, decoder determines mesh according to transformation rule and out-of-order code element The process for marking coding parameter includes at least the following steps:
Step 501, each code element in target look-up table is carried out out-of-order processing according to transformation rule by decoder, is obtained To out-of-order look-up table.
Wherein, transformation rule is that encoder carries out the index value of each code element in the target look-up table got It is obtained after random ordering processing;Transformation rule includes the index value after the corresponding random ordering of each code element.
Such as:Transformation rule is as shown in Table 7, and encoder is according to transformation rule shown in table seven to target shown in table five Look-up table carries out out-of-order processing, and obtained out-of-order look-up table is as shown in following table eight.
Table eight:
Step 502, decoder determines target position of the out-of-order code element in out-of-order look-up table.
Assuming that out-of-order code element is 10, then target position be trail in out-of-order look-up table coefficient number be 0, nonzero coefficient Number is 0, parameter of tabling look-up is position corresponding to 0≤N < 2.
Step 503, decoder obtains the corresponding target code parameter in target position in out-of-order look-up table.
Assuming that out-of-order code element is 10, then the corresponding hangover coefficient number in target position is that 0, target position is corresponding non- Zero coefficient number is 0, the corresponding parameter of tabling look-up in target position is 0≤N < 2.
Fig. 6 is the flow chart that target code element is converted to out-of-order code element that the application one embodiment provides, The present embodiment by this method be applied to it is shown in Fig. 2 based in Video transmission system H.364 for be illustrated.This method Including at least following steps:
Step 601, encoder carries out out-of-order processing to each code element in target look-up table, obtains transformation rule.
Wherein, transformation rule includes each code element after random ordering.
Optionally, encoder can carry out out-of-order processing to each code element by random function or MOD function, Obtain transformation rule.Certainly, encoder can also carry out out-of-order processing to code element by other means, and the present embodiment is to this It is not construed as limiting.
Assuming that target look-up table is as shown in Table 5, encoder carries out at random ordering each code element in target look-up table The transformation rule obtained after reason is referring to table eight.
Step 602, encoder determines the corresponding out-of-order code element of target code parameter in transformation rule.
Assuming that hangover coefficient number is 0, nonzero coefficient number is 0, parameter of tabling look-up is 1, then rule are converted shown in the table eight The out-of-order code element determined in then is 10.
In conclusion conversion regime provided in this embodiment is by carrying out disorderly each code element in target look-up table Sequence processing, obtains transformation rule;Out-of-order code element is determined according to the transformation rule;So that encoder is without generating coding member The index value of element, can reduce the complexity for upsetting code element.
Based on conversion method shown in fig. 6, with reference to Fig. 7, decoder determines mesh according to transformation rule and out-of-order code element The process for marking coding parameter includes at least the following steps:
Step 701, decoder determines target position of the out-of-order code element in transformation rule.
Transformation rule is that encoder obtain after out-of-order processing to each code element in target look-up table, is turned Changing rule includes each code element after random ordering.
Assuming that out-of-order code element is 10, transformation rule is as shown in Table 8, then out-of-order code element is 10 in transformation rule In target position be in out-of-order look-up table trail coefficient number be 0, nonzero coefficient number is 0, parameter of tabling look-up is 0≤N <, 2 institute Corresponding position.
Step 702, decoder obtains the corresponding target code parameter in target position in transformation rule.
Assuming that out-of-order code element is 10, then the corresponding hangover coefficient number in target position is 0, target position in transformation rule Set that corresponding nonzero coefficient number is 0, the corresponding parameter of tabling look-up in target position is 0≤N < 2.
Optionally, based on the above embodiment, encoder can also encode hangover coefficient after generating out-of-order code element Symbol encodes the nonzero coefficient except hangover coefficient (referring to the associated description in above-mentioned steps 5);Encode the last one non-zero system The number of number leading zero (referring to the associated description in above-mentioned steps 6);Zero number before encoding each nonzero coefficient is (referring to above-mentioned Associated description in step 7), then obtain video code flow.
Fig. 8 is the block diagram based on video frequency transmitter H.264 that the application one embodiment provides, and the present embodiment is with this Device is applied to be illustrated in the encoder 210 shown in Fig. 2 based in Video transmission system H.264.The device Including at least following module:Number obtains module 810, parameter acquisition module 820, element conversion module 830, code stream and generates Module 840, regular encrypting module 850 and data transmission blocks 860.
Number obtains module 810, described for obtaining the nonzero coefficient number in residual error data block and hangover coefficient number Residual error data block is treated coded image and obtain after predictive coding, data transform and quantization;
Parameter acquisition module 820, for calculating parameter of tabling look-up according to the context of the residual error data block;
Element conversion module 830, for according to transformation rule that target code parameter described in target look-up table is corresponding Target code element is converted to out-of-order code element;The target look-up table includes at least one set of coding parameter and every group of coding ginseng The corresponding code element of number;At least one set coding parameter includes the target code parameter, the target code parameter packet Include the coding parameter of the nonzero coefficient number, the hangover coefficient number and the parameter composition of tabling look-up;
Code stream generation module 840, for generating video code flow according to the out-of-order code element;
Regular encrypting module 850 obtains encrypted transformation rule for encrypting to the transformation rule;
Data transmission blocks 860, for the video code flow and the encrypted transformation rule to be sent to decoder, The video code flow and the encrypted transformation rule are used to obtain the residual error data block for the decoder decoded back.
Correlative detail refers to above method embodiment.
Fig. 9 is the block diagram based on video frequency transmitter H.264 that the application one embodiment provides, and the present embodiment is with this Device is applied to be illustrated in the decoder 220 shown in Fig. 2 based in Video transmission system H.264.The device Including at least following module:Element obtains module 910, rule acquisition module 920, regular deciphering module 930, parameter and determines Module 940 and data restoring module 950.
Element obtains module 910, the out-of-order code element in video code flow for obtaining encoder transmission;The random ordering Code element be the encoder according to transformation rule to the corresponding target code element of target code parameter in target look-up table It is converted to;The target look-up table includes at least one set of coding parameter and the corresponding coding member of every group of coding parameter Element;At least one set coding parameter includes the target code parameter, and the target code parameter includes the nonzero coefficient Number, the hangover coefficient number and the parameter of tabling look-up;The nonzero coefficient number and hangover coefficient number are the codings What device was got from residual error data block;The parameter of tabling look-up is context meter of the encoder according to the residual error data block It obtains;The residual error data block is treated coded image and obtain after predictive coding, data transform and quantization;
Rule acquisition module 920, the encrypted transformation rule sent for obtaining the encoder;
Regular deciphering module 930 obtains the transformation rule for the encrypted transformation rule to be decrypted;
Parameter determination module 940, for determining that the target is compiled according to the transformation rule and the out-of-order code element Code parameter;
Data restoring module 950, for restoring the residual error data block according to the target code parameter.
Correlative detail refers to above method embodiment.
It should be noted that:What is provided in above-described embodiment is being carried out based on video frequency transmitter H.264 based on H.264 Transmission of video when, only the example of the division of the above functional modules, in practical application, can according to need and incite somebody to action Above-mentioned function distribution is completed by different functional modules, i.e., is divided into the internal structure based on video frequency transmitter H.264 Different functional modules, to complete all or part of the functions described above.In addition, provided by the above embodiment be based on H.264 video frequency transmitter belongs to same design with based on video transmission method embodiment H.264, implements process It is detailed in embodiment of the method, which is not described herein again.
Figure 10 is the block diagram based on video frequency transmitter H.264 that the application one embodiment provides, which can be with It is the encoder 210 shown in Fig. 2 based in Video transmission system H.264;Alternatively, being also possible to decoder 220.The device Including at least processor 1001 and memory 1002.
Processor 1001 may include one or more processing cores, such as:4 core processors, 10 core processors etc.. Processor 1001 can use DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field- Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed Logic array) at least one of example, in hardware realize.Processor 1001 also may include primary processor and coprocessor, master Processor is the processor for being handled data in the awake state, also referred to as CPU (Central Processing Unit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state.? In some embodiments, processor 1001 can be integrated with GPU (Graphics Processing Unit, image processor), GPU is used to be responsible for the rendering and drafting of content to be shown needed for display screen.In some embodiments, processor 1001 can also be wrapped AI (Artificial Intelligence, artificial intelligence) processor is included, the AI processor is for handling related machine learning Calculating operation.
Memory 1002 may include one or more computer readable storage mediums, which can To be non-transient.Memory 1002 may also include high-speed random access memory and nonvolatile memory, such as one Or multiple disk storage equipments, flash memory device.In some embodiments, the non-transient computer in memory 1002 can Storage medium is read for storing at least one instruction, at least one instruction performed by processor 1001 for realizing this Shen Please in embodiment of the method provide based on video transmission method H.264.
In some embodiments, also optional based on video frequency transmitter H.264 to include:Peripheral device interface and at least One peripheral equipment.It can be connected by bus or signal wire between processor 1001, memory 1002 and peripheral device interface. Each peripheral equipment can be connected by bus, signal wire or circuit board with peripheral device interface.Schematically, peripheral equipment packet It includes but is not limited to:Radio circuit, touch display screen, voicefrequency circuit and power supply etc..
Certainly, based on video frequency transmitter H.264 can also include less or more component, the present embodiment to this not It limits.
Optionally, the application is also provided with a kind of computer readable storage medium, in the computer readable storage medium It is stored with program, described program is loaded by processor and executed to realize being passed based on video H.264 for above method embodiment Transmission method.
Optionally, the application is also provided with a kind of computer product, which includes computer-readable storage medium Matter is stored with program in the computer readable storage medium, and described program is loaded by processor and executed to realize above-mentioned side Method embodiment based on video transmission method H.264.
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of based on video transmission method H.264, which is characterized in that the method includes:
The nonzero coefficient number and hangover coefficient number in residual error data block are obtained, the residual error data block is to treat coded image Carry out predictive coding, data transform and quantization obtains later;
Parameter of tabling look-up is calculated according to the context of the residual error data block;
The corresponding target code element of target code parameter in target look-up table is converted into out-of-order coding member according to transformation rule Element;The target look-up table includes at least one set of coding parameter and the corresponding code element of every group of coding parameter;Described at least one Group coding parameter includes the target code parameter, and the target code parameter includes the nonzero coefficient number, the hangover Coefficient number and the parameter of tabling look-up;
Video code flow is generated according to the out-of-order code element;
The transformation rule is encrypted, encrypted transformation rule is obtained;
The video code flow and the encrypted transformation rule are sent to decoder, after the video code flow and the encryption Transformation rule be used to obtain the residual error data block for the decoder decoded back.
2. the method according to claim 1, wherein described compile target in target look-up table according to transformation rule The corresponding target code element of code parameter is converted to out-of-order code element, including:
Obtain the index value of each code element in the target look-up table;The corresponding index value of each code element, no The corresponding index value of same code element is different;
Out-of-order processing is carried out to the index value of each code element, obtains the transformation rule, the transformation rule includes Each code element it is corresponding it is out-of-order after index value;
Target index value in the transformation rule, after random ordering is determined according to the target code parameter;
It determines that index value is the code element of the target index value after the random ordering in the target look-up table, obtains the unrest Sequence code element.
3. the method according to claim 1, wherein described compile target in target look-up table according to transformation rule The corresponding target code element of code parameter is converted to out-of-order code element, including:
Out-of-order processing is carried out to each code element in the target look-up table, obtains the transformation rule, the conversion rule It then include each code element after random ordering;
The corresponding out-of-order code element of the target code parameter is determined in the transformation rule.
4. a kind of based on video transmission method H.264, which is characterized in that the method includes:
Obtain the out-of-order code element in the video code flow that encoder is sent;The random ordering code element be the encoder according to Transformation rule is converted to the corresponding target code element of target code parameter in target look-up table;The target is looked into Looking for table includes at least one set of coding parameter and the corresponding code element of every group of coding parameter;It is described at least one set coding parameter include The target code parameter, the target code parameter include the nonzero coefficient number, the hangover coefficient number and described It tables look-up parameter;
Obtain the encrypted transformation rule that the encoder is sent;
The encrypted transformation rule is decrypted, the transformation rule is obtained;
The target code parameter is determined according to the transformation rule and the out-of-order code element;
The residual error data block is restored according to the target code parameter.
5. according to the method described in claim 4, it is characterized in that, the transformation rule is the encoder to the institute got The index value for stating each code element in target look-up table carries out what out-of-order processing obtained later;The transformation rule includes every A code element it is corresponding it is out-of-order after index value;
It is described according to the transformation rule and the out-of-order code element determines the target code parameter, including:
Each code element in the target look-up table is subjected to out-of-order processing according to the transformation rule, obtains out-of-order lookup Table;
Determine target position of the out-of-order code element in the out-of-order look-up table;
Obtain the corresponding target code parameter in target position described in the out-of-order look-up table.
6. according to the method described in claim 4, it is characterized in that, the transformation rule is that the encoder looks into the target The each code element looked in table carries out what out-of-order processing obtained later, and the transformation rule includes each coding member after random ordering Element;
It is described according to the transformation rule and the out-of-order code element determines the target code parameter, including:
Determine target position of the out-of-order code element in the transformation rule;
Obtain the corresponding target code parameter in target position described in the transformation rule.
7. a kind of based on video frequency transmitter H.264, which is characterized in that described device includes:
Number obtains module, for obtaining the nonzero coefficient number in residual error data block and hangover coefficient number, the residual error number Coded image is treated according to block obtain after predictive coding, data transform and quantization;
Parameter acquisition module, for calculating parameter of tabling look-up according to the context of the residual error data block;
Element conversion module, for according to transformation rule by the corresponding target code of target code parameter described in target look-up table Element is converted to out-of-order code element;The target look-up table includes that at least one set of coding parameter and every group of coding parameter are corresponding Code element;At least one set coding parameter includes the target code parameter, and the target code parameter includes described non- Zero coefficient number, the hangover coefficient number and the parameter of tabling look-up;
Code stream generation module, for generating video code flow according to the out-of-order code element;
Regular encrypting module obtains encrypted transformation rule for encrypting to the transformation rule;
Data transmission blocks, for the video code flow and the encrypted transformation rule to be sent to decoder, the view Frequency code stream and the encrypted transformation rule are used to obtain the residual error data block for the decoder decoded back.
8. a kind of based on video frequency transmitter H.264, which is characterized in that described device includes:
Element obtains module, the out-of-order code element in video code flow for obtaining encoder transmission;The out-of-order coding member Element is that the encoder turns the corresponding target code element of target code parameter in target look-up table according to transformation rule It gets in return;The target look-up table includes at least one set of coding parameter and the corresponding code element of every group of coding parameter;It is described At least one set of coding parameter includes the target code parameter, and the target code parameter includes the nonzero coefficient number, institute State hangover coefficient number and the parameter of tabling look-up;
Rule acquisition module, the encrypted transformation rule sent for obtaining the encoder;
Regular deciphering module obtains the transformation rule for the encrypted transformation rule to be decrypted;
Parameter determination module, for determining the target code parameter according to the transformation rule and the out-of-order code element;
Data restoring module, for restoring the residual error data block according to the target code parameter.
9. a kind of based on video frequency transmitter H.264, which is characterized in that described device includes processor and memory;It is described Program is stored in memory, described program is loaded by the processor and executed to realize such as any one of claims 1 to 3 institute State based on video transmission method H.264;Alternatively, realizing as claim 4 to 6 is described in any item based on view H.264 Keep pouring in transmission method.
10. a kind of computer readable storage medium, which is characterized in that be stored with program, described program quilt in the storage medium For realizing as described in any one of claims 1 to 3 based on video transmission method H.264 when processor executes;Alternatively, real Now as claim 4 to 6 is described in any item based on video transmission method H.264.
CN201810921507.9A 2018-08-14 2018-08-14 Video transmission method, device and storage medium based on H.264 Active CN108900868B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810921507.9A CN108900868B (en) 2018-08-14 2018-08-14 Video transmission method, device and storage medium based on H.264

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810921507.9A CN108900868B (en) 2018-08-14 2018-08-14 Video transmission method, device and storage medium based on H.264

Publications (2)

Publication Number Publication Date
CN108900868A true CN108900868A (en) 2018-11-27
CN108900868B CN108900868B (en) 2020-11-13

Family

ID=64353789

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810921507.9A Active CN108900868B (en) 2018-08-14 2018-08-14 Video transmission method, device and storage medium based on H.264

Country Status (1)

Country Link
CN (1) CN108900868B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111432242A (en) * 2020-03-31 2020-07-17 广州市百果园信息技术有限公司 Encrypted video call method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101442676A (en) * 2008-12-26 2009-05-27 北京工业大学 Method for enciphering H.264 video based on CAVLC encode
CN103856786A (en) * 2012-12-04 2014-06-11 中山大学深圳研究院 Streaming media video encryption method and device based on H.264
CN104093029A (en) * 2014-07-22 2014-10-08 哈尔滨工业大学(威海) A Video Encryption Algorithm Based on New Space-Time Chaotic System
CN104135669A (en) * 2014-07-16 2014-11-05 广东工业大学 Video secret communication method for high-dimensional chaotic mapping
US20170230171A1 (en) * 2015-08-25 2017-08-10 Massachusetts Institute Of Technology System and method of masking and computing on masked data in a data store

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101442676A (en) * 2008-12-26 2009-05-27 北京工业大学 Method for enciphering H.264 video based on CAVLC encode
CN103856786A (en) * 2012-12-04 2014-06-11 中山大学深圳研究院 Streaming media video encryption method and device based on H.264
CN104135669A (en) * 2014-07-16 2014-11-05 广东工业大学 Video secret communication method for high-dimensional chaotic mapping
CN104093029A (en) * 2014-07-22 2014-10-08 哈尔滨工业大学(威海) A Video Encryption Algorithm Based on New Space-Time Chaotic System
US20170230171A1 (en) * 2015-08-25 2017-08-10 Massachusetts Institute Of Technology System and method of masking and computing on masked data in a data store

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CHUNG-PING WU 等: "Design of integrated multimedia compression and encryption systems", 《IEEE TRANSACTIONS ON MULTIMEDIA》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111432242A (en) * 2020-03-31 2020-07-17 广州市百果园信息技术有限公司 Encrypted video call method, device, equipment and storage medium
WO2021196960A1 (en) * 2020-03-31 2021-10-07 百果园技术(新加坡)有限公司 Encrypted video call method and apparatus, and device and storage medium
CN111432242B (en) * 2020-03-31 2022-05-27 广州市百果园信息技术有限公司 Encrypted video call method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN108900868B (en) 2020-11-13

Similar Documents

Publication Publication Date Title
US11284097B2 (en) Method and apparatus for processing video signals using reduced transform
US10547861B2 (en) Image decoding device
US11677986B2 (en) Method for performing transform index coding on basis of intra prediction mode, and device therefor
Liu et al. A survey of video encryption algorithms
CN104041040B (en) Prediction residual for lossless video encoding encodes
CN104160706B (en) The method and apparatus that encoded to image and decoded method and apparatus are carried out to video bits stream
JP6282646B2 (en) Video encoding method, decoding method, corresponding encoding and decoding apparatus, and computer program by predicting division of current block
TW201906406A (en) Internal filtering applied with transform processing in video write code
TW202007157A (en) Video processing methods and apparatus in video coding systme for encoding or decoding video pictures with partition constraints
US11012742B2 (en) Video scrambling method and device with adaptive mode selection, network camera and readable storage medium
JP2018524873A (en) Grouping palette bypass bins for video coding
US7549058B1 (en) Method and apparatus for encrypting and decrypting digital data
CN110677694B (en) Video encryption method for resisting contour attack
CN103959792B (en) Method for video coding, video encoding/decoding method and realize the device of the method
KR20170116253A (en) Methods and apparatus for video encoding and decoding binary sets using adaptive tree selection
KR20210125088A (en) Encoders, decoders and corresponding methods harmonizing matrix-based intra prediction and quadratic transform core selection
WO2015008478A1 (en) Modified coding for a transform skipped block for cabac in hevc
TW202017391A (en) Context coding in partitioning with extended quadtree
CN103856786A (en) Streaming media video encryption method and device based on H.264
Tang et al. A format compliant framework for HEVC selective encryption after encoding
CN100496118C (en) A Encryption and Decryption Method of Residual Coefficient Amplitude in H.264 Standard Video Information
Vivek et al. Video steganography using chaos encryption algorithm with high efficiency video coding for data hiding
CN101409830B (en) Method and apparatus for judging DCT coefficient block similarity, and encrypting and deciphering image
CN108900868A (en) Based on video transmission method, device and storage medium H.264
CN104301727A (en) H.264 video perception encryption algorithm with controllable quality on basis of CABAC

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