diff --git a/index.html b/index.html
index 535bde2..6e96ed2 100644
--- a/index.html
+++ b/index.html
@@ -119,7 +119,7 @@
Deinterlace a video
-
ffmpeg -i input_file -c:v libx264 -vf "yadif,format=pix_fmts=yuv420p" output_file
+
ffmpeg -i input_file -c:v libx264 -vf "yadif,format=pix_fmts=yuv420p" output_file
This command takes an interlaced input file and outputs a deinterlaced H.264 MP4.
- ffmpeg
- starts the command
@@ -462,13 +462,13 @@
- "
- start of filtergraph (see below)
- yadif
- deinterlacing filter (‘yet another deinterlacing filter’)
- ,
- separates filters
- - format=pix_fmts=yuv420p
- chroma subsampling set to 4:2:0
- By default, libx264
will use a chroma subsampling scheme that is the closest match to that of the input. This can result in Y′CbCr 4:2:0, 4:2:2, or 4:4:4 chroma subsampling. QuickTime and most other non-FFmpeg based players can’t decode H.264 files that are not 4:2:0, therefore it's advisable to specify 4:2:0 chroma subsampling.
+ - format=pix_fmts=yuv420p
- chroma subsampling set to 4:2:0
+ By default, libx264
will use a chroma subsampling scheme that is the closest match to that of the input. This can result in Y′CBCR 4:2:0, 4:2:2, or 4:4:4 chroma subsampling. QuickTime and most other non-FFmpeg based players can’t decode H.264 files that are not 4:2:0, therefore it's advisable to specify 4:2:0 chroma subsampling.
- "
- end of filtergraph
- output file
- path, name and extension of the output file
For more H.264 encoding options, see the latter section of the encode H.264 command.
-
"yadif,format=pix_fmts=yuv420p"
is an ffmpeg filtergraph. Here the filtergraph is made up of one filter chain, which is itself made up of the two filters (separated by the comma).
+
"yadif,format=pix_fmts=yuv420p"
is an ffmpeg filtergraph. Here the filtergraph is made up of one filter chain, which is itself made up of the two filters (separated by the comma).
The enclosing quote marks are necessary when you use spaces within the filtergraph, e.g. -vf "yadif, format=pix_fmts=yuv420p"
, and are included above as an example of good practice.
Example