How to Convert Media Files Using the Command Prompt on Windows 10


Convert media files using the Command Prompt on Windows 10

There are lots of means to change media data files from 1 format to another on Home windows 10, which includes making use of the Command Prompt—thanks to ffmpeg. If you want commands in excess of graphical person interfaces, here’s how to transform your audio and movie information employing the Command Prompt.

Established up FFmpeg to Change Audio and Video Applying the Command Prompt

By default, the Command Prompt does not provide the solution to transform your media data files. You need to put in a third-get together utility to accomplish these conversions, and FFmpeg is a good utility to do this with. It’s open-source, cross-platform, and quite well-liked.

Working with FFmpeg, you can change approximately all audio and movie formats to many other file formats. To use this utility, you have to have to down load it initially, then incorporate its path to your system variables.

To commence, head above to the FFmpeg web-site, click on “Download,” click on the Windows icon below “Get offers & executable information,” and opt for a person of the vendors to obtain the compiled FFmpeg bundle.

When the bundle is downloaded, right-click it and find “Extract All.” Then press Ctrl+A to select all your extracted documents, and push Ctrl+C to copy the picked documents. Basically, you’re copying the pursuing folders: bin, doc, include things like, and lib.

Open up a File Explorer window, navigate to the “C” push, and make a new folder termed “ffmpeg”. Head inside this folder and press Ctrl+V to paste all your FFmpeg folders right here.

It is time to include FFmpeg’s route to your procedure. To do this, open the “Start” menu, research for “View advanced procedure settings,” and click the 1st final result.

Find the button that suggests “Environment Variables” and click it. Then select “Path” from the upper element of your screen, and click on “Edit.”

Decide on “New” on the suitable to increase a new path. Form the pursuing route in the box, which is FFmpeg’s route on your Laptop, then click “OK.”

C:ffmpegbin

FFmpeg is now completely ready to be used from the Command Prompt to transform your media documents.

How to Convert a Online video from One Structure to An additional

Because FFmpeg supports dozens of file formats, you can convert your films from really a lot any format to any of your picked focus on formats.

Doing this conversion only needs typing a one command. You use a parameter with the command, and the command turns your supply file into your picked out format.

For this instance, we’ll transform a movie called “fog.mp4” placed on your desktop to “fog.mkv”. To do this, open up the “Start” menu, research for “Command Prompt,” and start the software.

Sort the following command to make your desktop the recent operating directory:

cd desktop

Now, kind the adhering to command to change “fog.mp4” to “fog.mkv”. Of training course, change the source and concentrate on documents in the command to convert your true files.

ffmpeg -i fog.mp4 fog.mkv

When the video clip is converted, the resulting file is put in the very same folder as the first file. It would be the desktop in this situation.

How to Transform Audio from A person Structure to A further

You can transform your audio documents working with the Command Prompt just like how you transform your videos. Merely specify the input and output file names, and your data files are converted.

For this case in point, let us convert a file identified as “music.mp3” positioned on your desktop to “music.wav”. Commence by opening the “Command Prompt” and typing the next in it to go to your desktop:

cd desktop

Then sort the pursuing command to convert your audio file. Make positive to replace “music.mp3” with your resource file name “music.wav” with the target file name.

ffmpeg -i tunes.mp3 new music.wav

Like video clips, your converted audio data files are also positioned in the very same folder as your unique data files. You’ll locate the “music.wav” file on your desktop in our case in point below.

How to Extract the Audio from a Movie

You can use FFmpeg in conjunction with the Command Prompt to conserve online video files as audio documents. This way, you can strip off the movie and only retain the audio element of your online video file.

You could possibly want to do this to help save a tune from a video clip, extract a nice melody from a video clip file, and so on.

To do this, open up the “Start” menu, lookup for “Command Prompt,” and open up the resource.

Assuming that the video clip is on your desktop, operate the next command to make your desktop the recent functioning listing. If your online video is elsewhere, enter the real route as a substitute.

cd desktop

Up coming up, use the subsequent command to extract audio from a video file. In the underneath example, we’ll extract the audio from a online video file identified as “myvideo.mp4”.

ffmpeg -i myvideo.mp4 -vn outcome.mp3

A new file called “result.mp3” will be generated. This file has the audio information of your video clip file.

How to Fix the “ffmpeg is not recognized as an inside or external command” Mistake

When managing the ffmpeg command, if you get an mistake that claims that the command is not identified as an interior or external command, it is thanks to an incorrect configuration of process variables.

Make absolutely sure that you’ve adopted our methods for incorporating the FFmpeg route to system variables correctly. Also, reboot your laptop, and this will most likely fix the challenge.

Did you know that you can use HandBrake to change pretty much any media file to any structure on Windows 10, as well? Give it a try if you want a graphical solution.

Exit mobile version