H.264/Advanced Video Coding (H.264/AVC) is one of the video compression standards that is 50% more efficient than previously introduced standards. Given that the H.264/AVC standard is considered and used in a variety of video applications, it is essential to provide a suitable solution for video encryption with good security, high encryption speed, and to prevent bitrate increases. In this paper, we propose a method selective encryption of H.264/AVC for the digital rights management (DRM) applications. In this method, discrete cosine transform (DCT) coefficients, which affect the texture and content of the H.264/AVC video during compression, are encrypted after the zigzag scanning and based on Context-Adaptive Binary Arithmetic Coding (CABAC). The experimental results and encryption efficiency analysis demonstrate that the proposed method with the format compliance has good security and high encryption speed and it can prevent the bitrate from rising and is thus usable in industrial and the DRM applications.