In the paper, we propose an H.264 video content encryption scheme, which is based on the analysis of H.264 entropy coding, and has the features of irrelative to individual ciphers and adaptive to digital right management. Our scheme applies partial encryption of slice data to preserve the network-friendliness and compression performance of video coding. Compared with previous schemes such as selective encryption of fields, our scheme can efficiently overcome the problem of information leakage resulting from error concealment tools of video coding, greatly reduce the hardware design complexity of decryption process, and still retain their virtues. Experiments show that, by encrypting only a little of the whole video data, our scheme can provide several different levels of content security involved in degraded picture quality from partial to no information leakage, and is suitable to be applied in the fields of multimedia storage and transmission.