Opened 2 years ago

Closed 2 years ago

Last modified 20 months ago

#9788 closed defect (fixed)

FFmpeg does not work on Windows N editions without Media Feature Pack installed

Reported by: RytoEX Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: Windows win mediafoundation
Cc: RytoEX Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug: FFmpeg 4.3+ does not work on Windows N editions without the Media Feature Pack installed

Windows N (and KN) editions intentionally do not contain Media Foundation components. FFmpeg 4.3+ includes a wrapper for Media Foundation encoders. Attempting to run FFmpeg 4.3+ on a Windows N system results in a DLL loading error.

This error also occurs in the latest git-master. This also occurs when trying to load libavcodec 58.86.100 or newer on a Windows N edition.

While one could compile with --disable-mediafoundation, it would necessitate providing different versions for users on different editions of Windows, or walking users through installing the Media Feature Park. It would be ideal if FFmpeg/libavcodec would continue on without Media Foundation features if they are not available on the user's system.

How to reproduce:

% ffmpeg -version
ffmpeg.exe: error while loading shared libraries: MFPlat.DLL: cannot open shared object file: No such file or directory

Change History (2)

comment:1 by tytan652, 2 years ago

I made this patch to fix this issue: https://patchwork.ffmpeg.org/project/ffmpeg/patch/09de2d36-147f-a02d-987c-6fc34cdf110a@tytanium.xyz/

Edit: I mess up the first one
Edit 2: I'm new to this way send commit,sorry.
Edit 3: Here the v4
Edit 4: Made a mistake in the v4, now v5
Edit 5: V6

Last edited 2 years ago by tytan652 (previous) (diff)

comment:2 by tytan652, 2 years ago

Resolution: fixed
Status: newclosed
Last edited 20 months ago by Carl Eugen Hoyos (previous) (diff)
Note: See TracTickets for help on using tickets.