Changes

Jump to navigation Jump to search
Created page with "{{Infobox software | name = FFmpeg | logo = Ffmpeg_logo.jpg | screenshot = | caption = | discontinued..."
{{Infobox software
| name = FFmpeg
| logo = Ffmpeg_logo.jpg
| screenshot =
| caption =
| discontinued =
| latest release version =
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} -->
| installed version = 6.1.1
| status = Active
| operating system = Microsoft Windows, Linux, MacOSX
| license = [https://ffmpeg.org/legal.html GNU LGPL 2.1]
| website = [https://ffmpeg.org/ ffmpeg.org]
| resources =
}}

FFmpeg is an open-source command-line tool to convert audio and video files.

<!-- Table of Contents will be generated here -->

==Installation==
===Windows 10===
#Download the latest ffmpeg-release-full build on https://ffmpeg.org/download.html
#Unpack the 7z/zip file anywhere you like
#Add ffmpeg to Windows' Environment Variables:
## Open the start menu and start typing "Environment Variables"
## Select "Edit the system environment variables"
## Click "Environment Variables"
## Select "Path" and click "Edit"
## Click "Browse" and go to the folder where you unpacked your FFmpeg files. Select the 'bin' folder inside (e.g. "C:\ffmpeg\bin")
## Click OK on all previously opened windows.
# To test, go to the command line (Windows+R -> cmd) and type {{cmdline|ffmpeg}}. It should tell you the installed ffmpeg version.

==Usage==
FFmpeg needs to be run from the command line, but you can create batch scripts to automate the process for multiple files. You can also set up FFmpeg for Python: https://www.bannerbear.com/blog/how-to-use-ffmpeg-in-python-with-examples/
The following are examples of conversions that we commonly use.

===Basic Format Conversion===
{{cmdline|ffmpeg -i input.mp4 output.avi}}

===Remove audio from video file===
{{cmdline|ffmpeg -i input.mp4 -vcodec copy -an output.mp4}}

<code>-vcodec copy</code> means the video won't be re-encoded, preserving the quality.

<code>-an</code> strips the audio

===Extract single audio channel from video file===
<code style="background-color:#000; color:#fff; padding:1px 3px;">ffmpeg -i input.mp4 -af "pan=mono|c0=c0" output.wav</code>

<code>-af "pan=mono|c0=c0"</code> extracts a single channel from the file. Use <code>c0=c0</code> for left channel, <code>c0=c1</code> for right channel.

Navigation menu