VisioForge

Video Encryption SDK — Protect Video Files with AES-256 Encryption

Video Encryption SDK is a video encryption library for Windows: DirectShow filters that encode video to MP4 (H.264/AAC) and encrypt it with AES-128 or AES-256, keyed by a password or binary data. A matching decryptor filter plays the protected files, in x86 and x64 apps, with optional GPU encoding.

From €500/year · Lifetime from €1,800

The Video Encryption SDK allows users to encode video in MP4 H264/AAC format and apply encryption using either a password or binary data. Within this SDK, DirectShow filters are provided for seamless integration into any DirectShow application. These filters come with implemented interfaces for simple configuration of filter parameters, simplifying the process of securing your video content.

What is video encryption?

Video encryption turns a video file into data that only the holder of the key can play. Video Encryption SDK does this inside your own Windows application: it writes H.264 video and AAC audio into an MP4 file and encrypts the streams with AES-256, or with AES-128 where compatibility requires it. The key is a password, a key file or binary data. A protected file plays in an application that has the SDK's decryptor filter and the same key, with seeking as in any MP4. This makes the SDK a building block for products that ship protected video, such as course videos or internal training, rather than a tool for encrypting one file by hand; for that, the Video Encryptor sample app below uses the same engine.

Quick facts

PlatformWindows; DirectShow filters for x86 and x64 applications
EncryptionAES-256 or AES-128; the key is a password string, a key file or binary data
FormatMP4 with H.264 video and AAC audio
FiltersEncrypt Muxer to encrypt, Decrypt Demuxer to play, with seeking
.NETBuilt into Video Capture SDK .NET, Video Edit SDK .NET and Media Player SDK .NET (MP4Output.Encryption, MediaPlayerSourceMode.Encrypted_File_DS); licensed separately
GPU encodingNVIDIA NVENC, Intel Quick Sync and AMD AMF encoders from the DirectShow Encoding Filters pack, available separately
SamplesC# and Delphi samples on GitHub, C++ examples in the documentation, plus the Video Encryptor sample app
Trial30 days, fully functional; a watermark or notice may appear
DistributionRoyalty-free

Key Benefits

Advanced H264 Encoding

Full control over profiles, levels, bitrate, and quality

AES Encryption

AES-128 and AES-256 stream encryption support

GPU Acceleration

Optional GPU usage for faster encoding

Major Features

  • H264 encoder profiles/levels, bitrate, quality, and other properties support
  • Optional GPU usage for encoding
  • Multiple audio streams support
  • HD and 4K video support
  • x86 and x64 versions
  • AES-128 and AES-256 can be used for stream encryption
  • Multithreading support

Implementation Details

SDK can use string, files, and binary data as encrypting keys. SDK uses an open AES-256 crypto algorithm to encrypt video and audio streams. You can seek encrypted video files like any other video file. AAC codec will be used for an audio stream, and H264 codec will be used for a video stream. Also, you can re-mux any source H264/AAC file or stream without reencoding.

Video Encryption SDK is already integrated into Video Capture SDK .Net, Video Edit SDK .Net, and Media Player SDK .Net but requires an independent license.

AES-256 may require licensing in some countries. SDK can also use AES-128 for compatibility. Please get in touch with us if you want to use alternative encryption algorithms.

Video Encryption SDK can be used in any DirectShow code as two filters: muxer (encryptor) and demuxer (decryptor). Seeking is supported for demuxer.

You can use SDK as a core of your DRM video files system.

Filter Usage in DirectShow Graph

The SDK provides two DirectShow filters that can be integrated into any DirectShow application for encryption and decryption of video content.

DirectShow Filter Graph Example

C# example: encrypt a video and play it back

In the .NET SDKs, encryption is a property of the MP4 output. This example renders an encrypted MP4 with Video Edit SDK .NET, which takes the same MP4Output as Video Capture SDK .NET, and plays it with Media Player SDK .NET using the same key.

C#

C#
using VisioForge.Core.Types.MediaPlayer;
using VisioForge.Core.Types.Output;
using VisioForge.Core.Types.VideoEdit;

// Encrypt: VideoEditCore here; VideoCaptureCore takes the same MP4Output
var mp4Output = new MP4Output
{
    Encryption = true,
    Encryption_Format = EncryptionFormat.MP4_H264_SW_AAC,
    Encryption_Mode = EncryptionMode.V9_AES256,
    Encryption_KeyType = EncryptionKeyType.String,
    Encryption_Key = "lesson-key"
};

await videoEdit.Input_AddVideoFileAsync("lesson-01-source.mp4");
await videoEdit.Input_AddAudioFileAsync("lesson-01-source.mp4");

videoEdit.Mode = VideoEditMode.Convert;
videoEdit.Output_Filename = "lesson-01.mp4";
videoEdit.Output_Format = mp4Output;
await videoEdit.StartAsync();

// Play: MediaPlayerCore with the same key
mediaPlayer.Source_Mode = MediaPlayerSourceMode.Encrypted_File_DS;
mediaPlayer.Encryption_KeyType = EncryptionKeyType.String;
mediaPlayer.Encryption_Key = "lesson-key";
mediaPlayer.Playlist_Clear();
mediaPlayer.Playlist_Add("lesson-01.mp4");
await mediaPlayer.PlayAsync();
More examples: graphs, key files, binary keys →

Video Encryptor App Sample

The Video Encryptor sample allows you to protect your video files with a password. All popular video formats are supported. The app uses the Video Encryption SDK as its engine.

Video Encryptor Application
Video Encryptor Sample

System Requirements

Operating Systems

Windows 11, Windows 10, Windows 8/8.1, Windows 7, Windows Vista, Windows Server 2012 and later

DirectX

DirectX 10 or later

Related Products

Distribution Rights

Royalty-free distribution

Trial Limitations

The fully functional trial lasts 30 days. Depending on the SDK engine and output, it may display a watermark or an unregistered notice.

Purchase Benefits

Purchase of Video Encryption SDK will give you the following benefits:

  • Unlimited usage
  • No nag-screen
  • Free minor and major upgrades within one year (after one year, SDK will work the same as before) for an annual license
  • Minor and major updates for the product lifetime with Lifetime·Team
  • Email support

Annual licenses (Developer and Workgroup) run for one year. Bought as a subscription, they renew automatically each year and can be cancelled at any time; bought with a one-time payment, they cover 12 months and are renewed with a new purchase.

Pricing Options

Choose the license that best fits your needs

Developer License

Annual license

€500·year
  • Unlimited usage
  • No watermark or nag-screen
  • Minor and major updates for 12 months
  • AES-256 encryption support
  • GPU acceleration support
  • Email support
  • Royalty-free distribution
  • Cancel anytime
  • Commercial use allowed

Workgroup

Annual license for three named developers

€1,000·year
  • Unlimited usage
  • No watermark or nag-screen
  • Minor and major updates for 12 months
  • AES-256 encryption support
  • GPU acceleration support
  • Email support
  • Royalty-free distribution
  • Cancel anytime
  • Commercial use allowed
Most Popular

Lifetime·Team License

One-time payment with minor and major updates for the product lifetime

€1,800
  • Unlimited usage
  • No watermark or nag-screen
  • Minor and major updates for the product lifetime
  • AES-256 encryption support
  • GPU acceleration support
  • Email support
  • Royalty-free distribution
  • One-time payment
  • Commercial use allowed

Need custom encryption algorithms or special features? Contact us for tailored solutions.

Source Code License

The source code license costs €4,000, paid once by one company, and includes the Lifetime·Team license. It comes with 1 year of source updates, then 30% a year to renew. Only VisioForge code is included. The source itself may not be shared outside your company, and builds of it ship only inside your own applications, never as a standalone filter, SDK or component for other developers.

Ready to Secure Your Video Content?

Download the trial version to test all encryption features with your DirectShow application. Full documentation and sample code included.

Build with AI coding agents

Pairing with an AI agent — Claude Code, Cursor, GitHub Copilot, Gemini CLI, OpenAI Codex? VisioForge publishes machine-readable surfaces for Video Encryption SDK so your agent gets the integration right the first time: the right NuGet packages, license registration, project setup, and the cross-platform deployment details it would otherwise have to guess at.

Live API queries & class lookup
Per-platform integration playbooks
Cross-platform deployment recipes
Full docs as llms.txt

Connect the MCP server

MCP

Add the VisioForge MCP server to your agent for contextual help — search the API, look up classes and members, fetch working code examples, and pull deployment guides, directly inside your editor.

Claude Code

claude mcp add --transport http visioforge-sdk https://mcp.visioforge.com/mcp

VS Code (.vscode/mcp.json)

{ "servers": { "visioforge-sdk": { "type": "http", "url": "https://mcp.visioforge.com/mcp" } } }
MCP server usage guide

Prefer to feed the entire documentation to your agent? It is also available as plain markdown: /llms.txt · /llms-full.txt

Frequently Asked Questions

What is the Video Encryption SDK?

Video Encryption SDK is a Windows SDK of DirectShow filters that encode video to MP4 with H.264 video and AAC audio and encrypt both streams with AES-256. The key can be a password string, a file or binary data. The muxer filter encrypts, the demuxer filter decrypts, and seeking works in an encrypted file as in any other MP4. Existing H.264/AAC files and streams can be re-muxed into an encrypted MP4 without re-encoding. Additionally, GPU encoders from the DirectShow Encoding Filters pack can speed up encoding. For example, an e-learning product can ship course videos that play only in an application holding the key. Samples cover C#, C++ and Delphi. Video Capture SDK .NET, Video Edit SDK .NET and Media Player SDK .NET are already integrated with the SDK and need a separate license for it.

What encryption algorithms are supported?

The SDK supports AES-256 (256-bit Advanced Encryption Standard) as the primary encryption algorithm and AES-128 for broader compatibility. Encryption keys can be provided as text strings, file paths, or binary data. The SDK encrypts both video (H.264) and audio (AAC) streams independently within an MP4 container.

Can I seek within encrypted video files?

Yes. The SDK's decryptor (demuxer) filter fully supports seeking, so users can navigate to any position in an encrypted video file just like a regular MP4 file. This enables standard media player controls including fast-forward, rewind, and jumping to specific timestamps.

Which programming languages are supported?

The SDK provides APIs for C# (.NET), VB.NET, C++, and Delphi. For .NET developers, the VisioForge.DirectShowAPI NuGet package provides convenient interface wrappers. The SDK is also integrated into Video Capture SDK .Net, Video Edit SDK .Net, and Media Player SDK .Net (separate license required).

Can I encrypt live streams or only files?

The SDK can encrypt both pre-recorded files and live streams. The muxer filter works within a DirectShow filter graph, so it can encrypt output from any source — including live camera feeds, screen captures, and network streams. You can also re-mux existing H.264/AAC content without re-encoding for faster processing.

Is the encryption compatible with standard media players?

Encrypted files require the SDK's decryptor filter to play back. Standard media players cannot open encrypted files without the decryptor component installed. This is by design — it ensures only authorized applications with the correct decryption key can access the protected content, making it suitable as a foundation for DRM systems.

What are the differences between the trial and commercial versions?

The trial version is fully functional for 30 days and may display a watermark or an unregistered notice. Paid licenses include royalty-free distribution rights and email support. Annual licenses include 12 months of updates; Lifetime·Team licenses include minor and major updates for the product lifetime.

Are there export restrictions on AES-256 encryption?

AES-256 encryption may require export licensing or compliance with regulations in some countries. The SDK also supports AES-128 as an alternative for regions with stricter encryption export controls. Contact VisioForge if you need guidance on encryption regulations or require alternative encryption algorithms for your target markets.

How do I encrypt a video file in C#?

In Video Capture SDK .NET or Video Edit SDK .NET, create an MP4Output with Encryption set to true, choose EncryptionMode.V9_AES256 or V8_AES128, pass the key in Encryption_Key with its type in Encryption_KeyType, and start the capture or the render: the file is written as an encrypted MP4. In a DirectShow graph of your own, the Encrypt Muxer filter does the same and takes the key through its IVFCryptoConfig interface. The C# example on this page shows both encryption and playback.

How do I play or decrypt an encrypted video?

In Media Player SDK .NET, set Source_Mode to MediaPlayerSourceMode.Encrypted_File_DS and set Encryption_Key and Encryption_KeyType to the key the file was encrypted with. In a DirectShow graph, the Decrypt Demuxer filter takes the key through IVFCryptoConfig and passes the H.264 and AAC streams on to the decoders. The key must be the same one used for encryption.

Can I protect course videos for online classes?

Yes, when the lessons are watched in your own Windows application. Encrypt each lesson to MP4 with a key, distribute the files, and play them in an app built on Media Player SDK .NET or on the decryptor filter, which supplies the key. The SDK does not include a web player, a streaming server or key management: how keys reach the students' app is decided by your application.

Can encrypted videos play in a browser or on a phone?

No. The files play only through the SDK's decryptor filter, a DirectShow filter that runs in Windows applications. Browsers, Android and iOS cannot open them.