How to use ffmpeg in uwp?

MrDesign 21 Reputation points
2022-04-23T06:36:55.93+00:00

I developed a software with electron. It needs ffmpeg, but when I package it into appx, I won't be able to use ffmpeg.

let FFmpegPath = path.resolve(AppPath, "FFmpeg");  
let FFMPEGPATH = path.resolve(FFmpegPath, "ffmpeg");  
let FFPROBEPATH = path.resolve(FFmpegPath, "ffprobe");  
let FFoption_V = '"'+FFPROBEPATH+'"' + " -i " +'"'+ path.normalize(PATH)+'"' + " -show_streams -select_streams v -of json";  
EXEC_V = C_PRO.execSync(FFoption_V);  

This is the information I found, but it doesn't seem to work for electron:https://learn.microsoft.com/en-us/windows/apps/desktop/modernize/desktop-to-uwp-extensions

<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"  
         xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"  
         xmlns:rescap=  
"http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"  
         xmlns:desktop="http://schemas.microsoft.com/appx/manifest/desktop/windows10">  
  ...  
  <Capabilities>  
      <rescap:Capability Name="runFullTrust"/>  
  </Capabilities>  
  <Applications>  
    <Application>  
      <Extensions>  
          <desktop:Extension Category="windows.fullTrustProcess" Executable="fulltrustprocess.exe">  
              <desktop:FullTrustProcess>  
                  <desktop:ParameterGroup GroupId="SyncGroup" Parameters="/Sync"/>  
                  <desktop:ParameterGroup GroupId="OtherGroup" Parameters="/Other"/>  
              </desktop:FullTrustProcess>  
           </desktop:Extension>  
      </Extensions>  
    </Application>  
  </Applications>  
</Package>  
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,868 questions
0 comments No comments
{count} votes

Accepted answer
  1. Nico Zhu (Shanghai Wicresoft Co,.Ltd.) 12,851 Reputation points
    2022-04-25T01:25:54.19+00:00

    Hello,
    Welcome to Microsoft Q&A!

    Currently, Microsoft Q&A supports the products listed over here: supported topics (more to be added later on). Your question about ffmpeg is not supported yet now. You could ask about this in ffmpeg related forums.

    Thank you.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful