Fireship · @fireship
FFmpeg in 100 Seconds
Uploaded March 9, 2023 · Length 2:20
Summary
FFmpeg tutorial covering its features, usage, and command line options for processing audio and video files.
- ffmpeg
- video processing
- audio processing
- command line tool
- multimedia
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
ffmpeg and open source command line tool
- 0:02
for processing audio and video files it
- 0:05
was created by Fabrice Bullard in the
- 0:07
year 2000. the name stands for Fast
- 0:08
Forward followed by the moving picture
- 0:10
experts group file format today it's
- 0:12
used in a wide variety of tools like
- 0:14
Google Chrome and blender as well as
- 0:16
video platforms like YouTube and Vimeo
- 0:18
it's able to decode encode transcode
- 0:20
Multiplex D Multiplex stream filter and
- 0:23
play virtually any multimedia file in
- 0:25
the world with over 100 different codecs
- 0:27
supported it works by taking an input
- 0:29
file that then passes it to a d
- 0:31
multiplexer that splits the audio and
- 0:33
video tracks into separate encoded data
- 0:35
packets these packets are then decoded
- 0:37
into uncompressed frames which can be
- 0:39
further processed and filtered you might
- 0:41
modify the brightness and contrast add
- 0:43
subtitles or visualize the audio as a
- 0:45
waveform then finally these frames are
- 0:47
encoded and multiplexed back into the
- 0:49
output file in addition it also comes
- 0:51
with the FF play tool to easily play
- 0:53
media from the command line and FF probe
- 0:55
to extract metadata from the file in
- 0:57
addition to tons of low-level libraries
- 0:59
for develop developers building their
- 1:01
own multimedia processing software to
- 1:03
get started install it then open up the
- 1:05
terminal use the ffmpeg command followed
- 1:07
by I to supply one or more input files
- 1:10
to convert that file to a different
- 1:12
format simply provide the name of the
- 1:13
output it will automatically detect the
- 1:15
file extension and convert it to the
- 1:17
proper codec or the C flag can be used
- 1:19
to specify an explicit codec like mpeg-4
- 1:21
for the video track and mp3 for the
- 1:24
audio you may also want to change the
- 1:25
quality of the output file the B flag
- 1:28
can change the bitrate while the r flag
- 1:30
can change the frame rate and S can
- 1:32
change the resolution in some cases you
- 1:34
may have multiple video clips that need
- 1:36
to be combined together these clips can
- 1:37
be listed in their own text file then
- 1:39
combined together by specifying the
- 1:41
format as concat and the codec as copy
- 1:44
copy can also be used to make
- 1:45
modifications to a video like when used
- 1:47
with t to trim a certain number of
- 1:49
seconds off of the video footage but the
- 1:51
most powerful option might be VF which
- 1:53
creates a filter graph that can handle
- 1:55
Transformations like rotation and
- 1:57
scaling and color modifications like
- 1:59
brightness and contrast in addition to


