diff options
author | Aman Karmani <[email protected]> | 2021-12-13 17:08:50 -0800 |
---|---|---|
committer | Aman Karmani <[email protected]> | 2021-12-18 11:57:31 -0800 |
commit | 4ac869ca2a1caaa888ad65ebd9a9b1914bfaf9b8 (patch) | |
tree | 3a79ea12e3f833aa3cd58ae610f7227756344ec9 /doc/examples/avio_list_dir.c | |
parent | ecee6af8bda475b15c9a4e9037fc406039f60efc (diff) |
avfilter: add vf_yadif_videotoolbox
deinterlaces CVPixelBuffers, i.e. AV_PIX_FMT_VIDEOTOOLBOX frames
for example, an interlaced mpeg2 video 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,yadif_videotoolbox \
-c:v h264_videotoolbox \
-b:v 2000k \
-c:a copy \
-y progressive.ts
(note that uploading AVFrame into CVPixelBuffer via hwupload
requires 504c60660d3194758823ddd45ceddb86e35d806f)
this work is sponsored by Fancy Bits LLC
Reviewed-by: Ridley Combs <[email protected]>
Reviewed-by: Philip Langdale <[email protected]>
Signed-off-by: Aman Karmani <[email protected]>
Diffstat (limited to 'doc/examples/avio_list_dir.c')
0 files changed, 0 insertions, 0 deletions