Visual Studio 2026: Redistributing FFmpeg DLLs with Statically Linked MSVC Runtime Libraries
Quick Answer Redistributing an FFmpeg DLL that contains statically linked Microsoft C++ runtime code requires checking the applicable Visual Studio 2026 lice...
Quick Answer
Redistributing an FFmpeg DLL that contains statically linked Microsoft C++ runtime code requires checking the applicable Visual Studio 2026 license terms and the official redistribution lists. The fact that a library is statically linked into a DLL does not, by itself, establish that the resulting DLL is legally redistributable.
Microsoft's Visual Studio licensing guidance explains that certain distributable .lib files cannot be distributed in their original form but may be linked into an application, after which the resulting output can be distributed. However, this permission applies to code that is identified as distributable under the applicable license. It should not be treated as a blanket permission for every MSVC library.
The Visual Studio Build Tools provision for compiling open-source dependencies is a separate licensing provision. It can permit compilation of qualifying open-source components without a full Visual Studio license, but it does not automatically establish the redistribution rights for every Microsoft library incorporated into the output.
Understanding the FFmpeg and MSVC Licensing Question
A Windows application may include a third-party DLL that was compiled using Microsoft C++ libraries. In some builds, the developer chooses static linking, which incorporates selected library object code directly into the resulting binary.
The licensing question in this scenario concerns an FFmpeg-derived DLL compiled for Windows x64 using:
- Visual Studio 2026 Build Tools
- MSVC libraries version 14.52
- Windows SDK 10.0.26100.0
- LLVM Clang and lld
The libraries mentioned in the original question are:
The developer intends to distribute the compiled ffmpeg.dll, while keeping the original Microsoft library files on the development machine.
These are two different licensing questions: whether the developer may use the Build Tools to compile the dependency, and whether the resulting binary may be distributed under the relevant Microsoft terms.
What Does the Visual Studio 2026 REDIST List Cover?
Microsoft publishes a Visual Studio 2026 redistribution page that serves as the Distributable List, commonly referred to as REDIST.TXT. It identifies Microsoft components that may be copied and distributed with a program, subject to the license terms.
The Visual Studio 2026 list includes Visual C++ runtime redistributable components, such as specified merge modules and files in the Visual Studio VC\redist directory. The list also states that the files must remain unmodified and that certain debug and non-redistributable folders are excluded.
Importantly, the Visual Studio 2026 redistribution page does not specifically name libcmt.lib, libvcruntime.lib or libcpmt.lib as individual files in its listed Visual C++ Runtime Files section.
Therefore, a developer should not claim that these three libraries are expressly listed by name in the Visual Studio 2026 REDIST page unless Microsoft provides an applicable additional entry or written clarification.
Official reference: Distributable Code for Visual Studio 2026.
Can Statically Linked .lib Code Be Distributed?
Microsoft's Visual Studio licensing guidance discusses the distribution of software components included with Visual Studio. It explains that components identified as distributable in the relevant REDIST or similar list may be incorporated into an application.
The guidance also distinguishes between distributing a library file itself and distributing the output produced by linking that library:
- A distributable
.libfile generally cannot be supplied to customers as a standalone library file under the described rule. - The identified distributable library code must be linked into the application.
- The resulting application output may then be distributed, subject to the applicable license terms and restrictions.
This distinction is relevant to static linking because the linker incorporates object code from a static library into the output binary. The resulting DLL may contain code originating from the library even though the original .lib file is not included in the installer.
However, the key condition is that the library or code must qualify as distributable under the license that applies to the installed Visual Studio product. The general guidance should not be interpreted as authorizing unrestricted redistribution of all files found in the MSVC installation directory.
Official reference: Microsoft Visual Studio Licensing Guidance.
Does the Windows SDK REDIST List Apply to MSVC Runtime Libraries?
The Windows SDK has its own redistribution list. It identifies certain SDK files and static library directories that may be distributed in unmodified object-code form when built as part of a program.
The Windows SDK REDIST list includes specified directories under:
Windows Kits\10\Lib\...\umWindows Kits\10\Lib\...\ucrt
These entries are relevant to Windows SDK libraries, including the Universal C Runtime library files in the listed SDK directories.
They should not automatically be extended to MSVC libraries located in a different installation tree. The Windows SDK redistribution permission and the Visual Studio MSVC redistribution permission are separate and must be evaluated according to the actual file path and license.
For example, the fact that libucrt.lib appears under a Windows SDK REDIST directory does not, by itself, prove that libcmt.lib, libvcruntime.lib or libcpmt.lib are covered by the same entry.
Official reference: Windows SDK REDIST.TXT.
Does the Build Tools Open-Source Dependency Provision Cover This Build?
Microsoft's Visual Studio licensing guidance describes a specific exception for users who do not have a separate Visual Studio license. Under the provision described for Visual Studio Build Tools, such users may install and use the Build Tools to compile and build C++ components their software depends on, provided those components are released under an Open Source Initiative-approved open-source license.
The guidance also makes an important distinction: the user may compile the open-source dependency but may not use this exception to develop and test the open-source dependency itself.
Microsoft gives an example involving an individual developing a Node.js application with Visual Studio Code. The individual may use Build Tools to compile an open-source C++ add-on required by the application, but the exception does not extend to other parts of the application.
This example is relevant to an Electron application that depends on a separately developed, qualifying open-source FFmpeg component. Nevertheless, the precise scope depends on the actual component, its license, the build activity and the applicable Build Tools license terms.
The exception is a provision about using the Build Tools. It should not be treated as a complete answer to the separate question of redistributing Microsoft code statically incorporated into the compiled DLL.
Official reference: Visual Studio Build Tools licensing guidance.
Is a Separate Visual Studio License Required?
The licensing question should be divided into two parts.
1. Permission to compile the open-source dependency
If the developer is using Build Tools solely to compile a qualifying open-source dependency, the Build Tools open-source dependency provision may apply. The developer should verify the exact terms of the installed Visual Studio 2026 Build Tools license.
2. Permission to redistribute the resulting DLL
Redistribution must be assessed under the applicable Distributable Code provisions and the relevant REDIST lists. A separate Visual Studio license may be relevant if the developer's use of the software falls outside the Build Tools exception or if the applicable redistribution rights require a validly licensed copy.
The available public guidance does not conclusively establish, for the exact Visual Studio 2026 build and library versions described in the question, whether the statically incorporated code from all three libraries—libcmt.lib, libvcruntime.lib and libcpmt.lib—is covered by a specific redistribution entry.
For that reason, it would be unsafe to state categorically that no additional license is required, or that purchasing a particular Visual Studio edition automatically resolves the specific static-library redistribution issue.
Would the DLL Need to Be Rebuilt Under a Different License?
A license review does not automatically mean that the DLL must be rebuilt. The correct next step is to obtain a written determination identifying the applicable license clause and the precise library files involved.
If Microsoft confirms that the existing build and resulting DLL are covered by the relevant license, a rebuild may not be necessary solely for licensing purposes.
If Microsoft determines that the current build is not covered, the developer should follow the licensing specialist's instructions. Depending on the determination, the appropriate remedy may involve obtaining a qualifying license, changing the build configuration, replacing or avoiding the affected library code, or rebuilding the dependency.
Do not assume that changing from static to dynamic linking automatically resolves every licensing issue. Dynamic linking changes the deployment and runtime dependency arrangement, but the applicable license terms still need to be followed.
How to Request a Written Licensing Clarification
When a question concerns the interpretation of a specific Microsoft license clause, a written response from Microsoft licensing support is preferable to relying solely on a community discussion.
Prepare a concise licensing request containing the following details:
- Visual Studio 2026 Build Tools version and license edition or channel.
- MSVC library version and target architecture.
- The exact library filenames and their full installation paths.
- The fact that the libraries are statically linked into an FFmpeg-derived DLL.
- The FFmpeg license and whether the DLL is distributed as part of a commercial or open-source Electron application.
- The intended distribution method and whether the original Microsoft
.libfiles are included. - The exact REDIST or license clause believed to apply, together with the unresolved question.
Ask Microsoft to confirm in writing:
- Whether the relevant MSVC static library code is distributable when linked into the FFmpeg DLL.
- Whether the Visual Studio 2026 REDIST list or another license provision covers the three named libraries.
- Whether the Build Tools open-source dependency provision applies to the described compilation activity.
- Whether a separate Visual Studio license is required for the build or redistribution.
- Whether the existing DLL may be distributed or must be rebuilt under different terms.
Start with the official Visual Studio License Terms directory and the applicable Microsoft licensing or Visual Studio support channel. Include the exact Visual Studio 2026 license document supplied with the installed edition.
Conclusion
Static linking does not automatically make Microsoft library code freely redistributable. The decisive issue is whether the particular MSVC library code is identified as distributable under the applicable Visual Studio 2026 license and whether the resulting DLL satisfies the conditions of that permission.
The Build Tools open-source dependency provision may permit compilation of a qualifying FFmpeg dependency, but compilation permission and redistribution permission are separate matters.
For the exact libraries libcmt.lib, libvcruntime.lib and libcpmt.lib, the safest course is to request a written Microsoft licensing determination before shipping the DLL. This article provides a licensing-documentation interpretation, not a legal opinion or a substitute for Microsoft's binding license terms.
Official References
Was this guide useful?
Your answer helps us keep BISONKB accurate and practical.