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

Rakesh Chowdhury rakeshchow202 at gmail.com
Wed May 14 21:37:39 EEST 2025


Hello Andrew,

Thanks a lot for responding! I appreciate it.

I'm just pretty much new to libav and c++ is not really in my league.

Is there any simple example I can follow?

Thank you very much again

On Wed, May 14, 2025 at 7:21 PM Andrew Randrianasulu
<randrianasulu at gmail.com> wrote:
>
> 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".
> _______________________________________________
> 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".



-- 

Signed-Off By: Rakesh Chowdhury


More information about the Libav-user mailing list