Skip to content

Decrypt_File

function

Delphi
function Decrypt_File (InputFile: string; OutputFile: string; OverwriteIfExists: Boolean): Boolean;
C++Builder
bool __fastcall Decrypt_File(System::UnicodeString InputFile, System::UnicodeString OutputFile, bool OverwriteIfExists);
C#
public bool Decrypt_File(string InputFile, string OutputFile, bool OverwriteIfExists);
VB.NET
Public Function Decrypt_File(InputFile As String, OutputFile As String, OverwriteIfExists As Boolean) As Boolean
C++/Qt
BOOL Decrypt_File (wchar_t *InputFile, wchar_t *OutputFile, BOOL OverwriteIfExists);

Decrypts a video clip, with the key set by SetDecryptionKey (same key as for the encryption) and the method read from the header of the encrypted file.

Requires the Datastead Multipurpose Encoder, or the Datastead RTSP/RTMP/HTTP/ONVIF Source Filter v9.2 or above.

The function fails if the input file exists but is not encrypted, or if OutputFile exists and OverwriteIfExists is false.