Deinterlace video in FFmpeg with Hardware Acceleration


It is possible to deinterlace video on FFmpeg with hardware acceleration (Intel/Linux).
Do not convert videos to h265 without any setting, or else it will apply the "bob" tech which removes every other frame which looks horrible (high artifacts and very choppy video).

Use setting of -vf 'deinterlace_vaapi=rate=field:auto=1'. This looks like it is similar to the yadif=1 tech. which doubles the frame rate of the video to accommodate all interlacing frames within a progressive video.

example: ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i A.mkv -vf 'deinterlace_vaapi=rate=field:auto=1' -c:v hevc_vaapi -acodec flac -compression_level 8 B.mkv

Sources:
Date: June 8th 2021




Back

© 2019 to 2025 Branden Gilfoil & © up to 2025 for respective owners.