diff --git a/index.html b/index.html index e342afa..5a90dd1 100644 --- a/index.html +++ b/index.html @@ -1354,15 +1354,17 @@
ffmpeg -i input_file -c:v libx264 -filter:v "yadif, scale=1440:1080:flags=lanczos, pad=1920:1080:(ow-iw)/2:(oh-ih)/2, format=yuv420p" output_file
ffmpeg -i input_file -c:v libx264 -filter:v "idet, bwdif, scale=1440:1080:flags=lanczos, pad=1920:1080:(ow-iw)/2:(oh-ih)/2, format=yuv420p" output_file
yadif=1
may produce visually better results.bwdif=mode=send_frame
can be used when the presentation device is not capable of reproducing 50 (PAL) or 60 (NTSC) frames per second.ffmpeg -i input_file -c:v libx264 -vf "yadif,format=yuv420p" output_file
ffmpeg -i input_file -c:v libx264 -vf "idet,bwdif,format=yuv420p" output_file
This command takes an interlaced input file and outputs a deinterlaced H.264 MP4.
-vf
is an alias of -filter:v
)yadif=1
may produce visually better results.bwdif=mode=send_frame
can be used when the presentation device is not capable of reproducing 50 (PAL) or 60 (NTSC) frames per second.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."yadif,format=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=yuv420p"
, and are included above as an example of good practice.
"idet,bwdif,format=yuv420p"
is an FFmpeg filtergraph. Here the filtergraph is made up of one filter chain, which is itself made up of the three filters (separated by the comma).
+ The enclosing quote marks are necessary when you use spaces within the filtergraph, e.g. -vf "idet, bwdif, format=yuv420p"
, and are included above as an example of good practice.
Note: FFmpeg includes several deinterlacers apart from yadif: bwdif, w3fdif, kerndeint, and nnedi.
For more H.264 encoding options, see the latter section of the encode H.264 command.