diff --git a/index.html b/index.html index bec6f28..85227a8 100644 --- a/index.html +++ b/index.html @@ -72,7 +72,7 @@
At its basis, an FFmpeg command is relatively simple. After you have installed FFmpeg (see instructions here), the program is invoked simply by typing ffmpeg
at the command prompt.
Subsequently, each instruction that you supply to FFmpeg is actually a pair: a flag, which designates the type of action you want to carry out; and then the specifics of that action. Flags are always prepended with a hyphen.
For example, in the instruction -i input_file.ext
, the -i
flag tells FFmpeg that you are supplying an input file, and input_file.ext
states which file it is.
Unless specified, FFmpeg will automatically set codec choices and codec parameters based off of internal defaults. These defaults are applied based on the file type used in the output (for example .mov
or .wav
).
When creating or transcoding files with FFmpeg, it is important to consider codec settings for both audio and video, as the default options may not be desirable in your particular context. The following is a brief list of codec defaults for some common file types:
Stream mapping is the practice of defining which of the streams (e.g., video or audio tracks) present in an input file will be present in the output file. FFmpeg recognizes five stream types:
a
- audioIt's also possible to specify the crop position by adding the x and y coordinates representing the top left of your cropped area to your crop filter, as such:
ffmpeg -i input_file -vf "crop=width:height[:x_position:y_position]" output_file
The original frame, a screenshot of the SMPTE colorbars:
Result of the command ffmpeg -i smpte_colorsbars.mov -vf "crop=500:500" output_file
: