[Libav-user] How to use ddagrab Filter Graph in libav C API
Andrew Randrianasulu
randrianasulu at gmail.com
Wed May 14 23:41:53 EEST 2025
ср, 14 мая 2025 г., 21:38 Rakesh Chowdhury <rakeshchow202 at gmail.com>:
> 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?
>
may be here?
https://topic.alibabacloud.com/a/the-simplest-example-of-avdevice-based-on-ffmpeg-read-camera_8_8_31628710.html
links to
Https://sourceforge.net/projects/simplestffmpegdevice/
> 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
> _______________________________________________
> 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".
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20250514/13c0f6e1/attachment.htm>
More information about the Libav-user
mailing list