# How to Use FFMPEG Commands in Windows PC

**URL:** https://www.compsmag.com/blogs/how-to-use-ffmpeg-commands-in-windows-pc/
**Author:** Ayushi Chauhan
**Published:** 2021-12-07
**Updated:** 2021-12-07
**Categories:** Blogs
**Tags:** Blogs Daily, Computer Guides, Computers Tips and Tutorials, guiderobert, Guides and Tutorials, guiding12, How To Guide, How To Guides, Software tips and tutorials, Tips, Tricks, Windows Tips
**Reading Time:** 4 min

---

This tip is about the how to Use FFMPEG Commands in Windows PC. So read this free guide, How to Use FFMPEG Commands in Windows PC step by step. If you have query related to same article you may contact us.

## How to Use FFMPEG Commands in Windows PC - Guide

Ff mpeg is popular software for editing, converting or manipulating video and audio files.  The program is used for numerous things like rotating videos, scaling videos, extracting information about videos and much more.  It is an excellent open source program for video scaling, trans format encoding, decoding, encoding, demuxing, streaming, filtering, audio file conversion, live audio/video recording, video manipulation and other multimedia files.  This multimedia framework is designed for command-line processing of multimedia files, and you can make basic edits with one-line commands.

Although the program is easy to use, accessing Ff mpeg to execute commands is a bit confusing.  Ff mpeg can take a long time to install and use as you need to manually open the Ff mpeg folder in the command prompt or Power Shell terminal to access the FFmpeg Executive file to execute commands relevant to basic editing.  If you're stuck with installing and using Ff mpeg on your computer, you've come to the right place.

## Install FFMPEG on Windows

Installing FFMPEG on Windows is very easy, once the installation process is complete, we will elaborate how to to define up ​​environment variables in Windows for FFMPEG.  To install it on your Windows machine you need to follow a step by step guide as described below.

Before downloading the FFMPEG build, you must have an application that can unzip files ending with the .7z file extension, such as WinRAR, you must install it before continuing.

Go to https://ffmpeg.org/download.html and select the Windows icon.

By clicking on the Windows icon, you will see 2 different options, one is Windows build from gyan.dev and the other is Windows build by BtbN to download, you can choose either one.  In this article, we'll follow the first option.  Click Windows build from gyan.dev.  This will take you to a page that contains FFMPEG build for windows.

On this page you can see 4 different buildings, each building has a specific purpose.

git full is built from the latest master branch with a large set of libraries.

git essentials is built from the latest master branch with commonly used libraries.

release full is built from the latest release branch, with a large set of libraries.

The Essentials release is built from the latest version with a large set of libraries.

To download the latest stable release, scroll down to release and click https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-full.7z, the latest full stable release in zipped format will download started.

Once the download is complete, you can extract the compilation into the downloads folder and rename the folder to ffmpeg.

Now cut the downloads folder and paste it on your PC's C drive.  You now have FFMPEG installed on your machine.  To make it work, you need to set your path to the environment variables.  Per up the path follows the steps below:

Search for system ​​variables in Windows search, click edit system ​​environment variables.  Will open a pop up window, in the lower right corner you will see an environment variables option, click on it.

Select the path variable under “User variables for (your name)” and click edit.  will open up a bang up with a list of paths.

Click on New button from the right navigation bar on pop up and adding it will show a new line at the bottom of the path list.  Type C:ffmpegbin and click OK.  Now you can see the FFmpeg path in the path list in final.  Click Ok to save your changes.  You have now installed FFMPEG and set the proper environment variables.  To confirm the installation, open the command prompt and type ffmpeg -version.

## Some basic FFMPEG commands:

### Convert video from one format to another

ffmpeg -i youtube.flv -c:v libx264 filename.mp4

### Convert a video to an animated GIF

ffmpeg -i video.mp4 -vf scale = 500: -1 -t 10 -r 10 image.gif

### Extract image frames from a video

ffmpeg -ss 00:00:15 -i video.mp4 -vf scale = 800: -1 -vframes 1 image.jpg

### Convert video to images

ffmpeg -i movie.mp4 -r 0.25 frames_% 04d.png

## rotate a video

ffmpeg -i input.mp4 -filter: v 'transpose = 2, transpose = 2' rotated-video.mp4

## Final note

I hope you like the guide How to Use FFMPEG Commands in Windows PC. In case if you have any query regards this article you may ask us. Also, please share your love by sharing this article with your friends.

---

*End of Article*