[FFmpeg-devel] [PATCH] avfilter: add yadif implementation using Metal.framework

Lynne dev at lynne.ee
Tue Dec 14 04:21:12 EET 2021


14 Dec 2021, 02:47 by ffmpeg at tmm1.net:

> From: Aman Karmani <aman at tmm1.net>
>
> deinterlaces CVPixelBuffers, i.e. AV_PIX_FMT_VIDEOTOOLBOX frames
>
> for example, an interlaced mpeg2 file can be decoded by avcodec,
> uploaded into a CVPixelBuffer, deinterlaced by metal, and then
> encoded to h264 by VideoToolbox as follows:
>
>  ffmpeg \
>  -init_hw_device videotoolbox \
>  -i interlaced.ts \
>  -vf hwupload,deinterlace_metal=mode=send_field:deint=interlaced \
>  -c:v h264_videotoolbox \
>  -b:v 2000k \
>  -c:a copy \
>  -y progressive.ts
>
> (note that uploading AVFrame into CVPixelBuffer via hwupload
>  requires 504c60660d3194758823ddd45ceddb86e35d806f)
>
> Signed-off-by: Aman Karmani <aman at tmm1.net>
>

Should be called yadif_videotoolbox, not yadif_metal. Hardware filters
are named after the hardware context that they take, not what they
use as an API.


More information about the ffmpeg-devel mailing list