[Libav-user] How can I use desktop duplication api from c

Rakesh Chowdhury rakeshchow202 at gmail.com
Wed May 14 02:09:11 EEST 2025


Hello libav users,

I'm new to libav and have been following along ffmpeg tutorials on GitHub
and reading ffmpeg documentation.

I have stumbled across a command line example usage of Desktop Duplication
API using Ffmpeg and I would like to replicate this using C code

ffmpeg -filter_complex ddagrab=0,hwdownload,format=bgra -c:v libx264 -crf
20 output.mkv

I have searched through the internet and couldn't find any good references
to this filter graph in particular. Can someone please guide me with an
example?

Thank you,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20250514/072e8a34/attachment.htm>


More information about the Libav-user mailing list