FFmpeg是一种流行的软件,用于处理、转换或操作视频和音频文件。该程序用于无休止的事情,如旋转视频、缩放视频、提取视频信息等等。它是一个开源程序,非常适合视频缩放、格式转码、解码、编码、解复用、流式传输、过滤、转换音频文件、录制实时音频/视频、处理视频和其他多媒体文件。该多媒体框架专为基于命令行的多媒体文件处理而设计,您可以使用单行命令进行基本编辑。
虽然该程序易于使用,但访问FFmpeg执行命令有点令人困惑。安装(Installing)和使用FFmpeg可能会花费大量时间,因为您需要在命令提示符或Power Shell终端中手动打开(Power Shell)FFmpeg文件夹以访问FFmpeg执行文件以执行相关命令以进行基本编辑。如果您无法在机器上安装和使用FFmpeg,那么您来对地方了。
为简单起见,您所要做的就是安装FFmpeg并使用环境变量将FFmpeg程序添加到Windows路径中。通过这种方式,您可以从命令(Command)提示符或任何目录中的Power Shell直接访问FFmpeg 。在本文中,我们将解释如何在Windows上安装(Windows)FFmpeg,以便直接从命令提示符(Command Prompt)或PowerShell访问(PowerShell)FFmpeg
(Install)在Windows 11/10安装和使用FFmpeg
从这里的官方网站获取最新的FFmpeg版本(FFmpeg)。(here.)您可以下载适合您系统的 32 位版本或 64 位版本。单击“下载构建(Download Build)”按钮开始下载。
该程序不能直接在Windows 10上运行。您需要使用环境变量将程序添加到系统路径。
因此,导航到FFmpeg zip 文件所在的下载文件夹。右键单击Zip文件夹,然后从下拉菜单中单击提取。(extract)
选择要提取的文件夹或驱动器。
接下来,重命名提取的文件夹。要重命名文件夹,请右键单击文件夹,然后从标题为FFmpeg(FFmpeg) -20180424-d9706f7-win64-static的下拉菜单中单击重命名为FFmpeg。
复制FFmpeg文件夹并导航到 C 盘。将文件夹粘贴到C盘根目录。
完成后,下一步是使用Command Prompt启用(Command Prompt)FFmpeg。
(Add FFmpeg)使用环境(Environment)变量将 FFmpeg 添加到Windows路径
要在命令提示符(Command Prompt)中使用FFmpeg,首先需要将包含FFmpeg可执行文件的 bin 文件夹添加到 Windows 路径
在 Windows 搜索菜单中,键入Edit the system environment variables并单击Enter。这将打开系统属性窗口。
导航到高级(Advanced)按钮,然后单击窗口底部的环境变量。(Environment Variables)
在Environment Variables窗口中,选择(Select)变量Path并单击Edit以更改Path变量。
点击新建,输入(New)FFmpeg文件夹路径“ C:\ffmpeg\bin\” ,点击确定。(OK.)
根据您放置 FFmpeg文件夹的驱动器或文件夹键入路径目录。
完成后,路径将添加到环境(Environment)变量中。单击(Click) 确定(OK)以应用更改。
(Verify FFmpeg)在命令提示符中(Command Prompt)验证 FFmpeg路径
启动命令提示符(Command Prompt)并在命令提示符终端中键入命令FFmpeg并按(FFmpeg )Enter。
如果FFmpeg正确添加到Windows Path中,命令提示符将显示有关FFmpeg的详细信息,如版本号、配置等。
如果您没有成功,那仅表示您的命令提示符无法识别这些命令。交叉检查是否已将FFmpeg文件夹正确添加到系统路径。
阅读(Read):修复Windows PC 上的 Audacity FFmpeg 错误。
That’s all!
How to install and use FFmpeg on Windows 11/10
FFmpeg is a popular software for processing, converting, or manipulating video and audio files. The program is used for endless things like rotating videos, scaling videos, extracting information about videos, and many others. It is an open-source program that is simply awesome for video scaling, format transcoding, decoding, encoding, demuxing, streaming, filtering, converting audio files, recording live audio/video, handling video and other multimedia files. This multimedia framework is designed for command-line-based processing of multimedia files, and you can make basic edits with single-line commands.
While the program is simple to use, accessing FFmpeg to execute commands is a little confusing. Installing and using FFmpeg can take a lot of time as you need to manually open the FFmpeg folder within the command prompt or Power Shell terminal to access the FFmpeg executive file to execute relevant commands for basic editing. If you are stuck with installing and using FFmpeg on your machine, you are in the right place.
To make things simple, all you have to do is install FFmpeg and add the FFmpeg program to the Windows path using Environment variables. This way you can directly access FFmpeg from a Command prompt or Power Shell in any directory. In this article, we explain how to install FFmpeg on Windows in order to access FFmpeg directly from Command Prompt or PowerShell
Install & use FFmpeg on Windows 11/10
Get the latest FFmpeg build from the official website here. You can either download the 32-bit version or the 64-bit version that suits your system. Click the Download Build button to start downloading.
The program doesn’t work directly on Windows 10. You need to add a program to the system path using Environment Variables.
So navigate to the downloaded folder where the FFmpeg zip file is a store. Right-click on the Zip folder and click extract from the drop-down menu.
Select the folder or drive where you want to extract.
Next, rename the extracted folder. To rename the folder, right-click on a folder and click Rename from the drop-down menu with title FFmpeg-20180424-d9706f7-win64-static to FFmpeg.
Copy the FFmpeg folder and navigate to C drive. Paste the folder to the root of C drive.
Once done, the next step is to enable FFmpeg using Command Prompt.
Add FFmpeg to Windows path using Environment variables
To use FFmpeg in Command Prompt, you need first to add the bin folder containing the FFmpeg executable file to your Windows path
In the Windows search menu, type Edit the system environment variables and click Enter. This will open the system properties window.
Navigate to Advanced button and click Environment Variables at the bottom of the window.
In the Environment Variables window, Select the variable Path and click Edit to change the Path variable.
Click New and type the path of FFmpeg folder “C:\ffmpeg\bin\” and click OK.
Type the path directory according to the drive or folder where you have placed FFmpeg folder.
Once done, the path gets added to the Environment variables. Click OK to apply changes.
Verify FFmpeg path in Command Prompt
Launch Command Prompt and type the command FFmpeg in the command prompt terminal and hit Enter.
If the FFmpeg is added properly to Windows Path, the command prompt will display the details about FFmpeg like its version number, configuration, etc.
If you weren’t successful, it only means that your command prompt did not recognize the commands. Cross-check to see if you have added the FFmpeg folder to the system path properly.
Read: Fix Audacity FFmpeg error on Windows PC.
That’s all!