29-08-2023 дата публикации
Номер: CN116668743A
Принадлежит:
The invention relates to the technical field of video monitoring, in particular to a video code stream encryption and decryption method and device. The method comprises the following steps that video code stream data to be encrypted are obtained, a video code stream comprises a plurality of messages, and each message comprises a standard frame header and intra-frame data; the standard frame header is encrypted to obtain an encrypted frame header, a user-defined frame identification code is inserted into the message, the user-defined frame identification code and the encrypted frame header form encrypted information, and the encrypted information in each message is not repeated. According to the encryption method, only the frame header of the video data is changed, the frame header is encrypted, the number of frames is not increased, the special frame header can be quickly retrieved and decrypted, the operation is simple, and the calculation pressure is reduced.
Подробнее