Selective encryption for H.264 video done by finding NAL unit containing slices of type I. These slices are at a particularNAL unit is marked with the type of NAL IDR (Instantaneous Decoding Refresh). NAL type IDR is characterized by a value of type 5.