The application discloses a kind of dynamic controllable
video encoding method and device, method includes introducing controllable coding module in video acquisition end, control is carried out to the real-
time switching of video
stream in combination with
encryption control signal;Using encrypted video platform, the coding control instruction including non-
encryption encoding instruction and
encryption encoding instruction is issued through
network control interface;
Video encoding is carried out using layered coding strategy;When video does not need to be encrypted, non-encryption encoding mode instruction is issued by platform;When video needs to be encrypted, encryption encoding mode instruction is issued by platform, and video acquisition terminal switches to encryption mode;In encrypted video platform
client, corresponding
session key is obtained from
key management module according to session identification in video frame header, received encrypted video
stream is decrypted and played, and decryption end adopts frame-level decryption strategy, only complete decryption is carried out to
key frame, and prediction frame is reconstructed by referring to decrypted frame, effectively solve the problem of video security and
video sharing.