[Libav-user] How to use ddagrab Filter Graph in libav C API

Andrew Randrianasulu randrianasulu at gmail.com
Wed May 14 13:50:55 EEST 2025


On Wed, May 14, 2025 at 4:38 PM Rakesh Chowdhury
<rakeshchow202 at gmail.com> wrote:
>
> Hello libav-devel,
>
> I'm new to the libav library and have been learning through FFmpeg
> tutorials and documentation.
>
> I'm trying to implement a screen capture functionality similar to the
> following FFmpeg command-line example using C code with libav:
>
> `ffmpeg -filter_complex ddagrab=0,hwdownload,format=bgra -c:v libx264
> -crf 20 output.mkv`
>
> Specifically, I'm looking for guidance on how to translate this
> particular filter graph (ddagrab=0,hwdownload,format=bgra) into the
> libav C API. I've searched online but haven't found any relevant
> examples for this specific combination of filters.
>
> Would someone be able to provide an example or point me towards
> resources that demonstrate how to achieve this screen capture and
> format conversion using libav in C?

I only compiled recently this Linux screengragger utility, but
hopefully it contain some ideas?

https://git.dec05eba.com/gpu-screen-recorder/about/


>
> Thank you for your time and assistance.
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/libav-user
>
> To unsubscribe, visit link above, or email
> libav-user-request at ffmpeg.org with subject "unsubscribe".


More information about the Libav-user mailing list