<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hello Ffmpeg Community,</div><div><br></div><div>I'm new to ffmpeg lib so excuse my knowledge about the lib.</div><div><br></div><div>I'm trying to create a C program that would use Ffmpeg Lib to capture desktop and write to an output context, preferably a file. I intend to use the filter graph just like the `filter_complex` string is used in the cli. How can I achieve this? There seems to be no documentation / examples related to filter generators like gradient etc. I'd really appreciate some help.</div><div><br></div>"ffmpeg -filter_complex ddagrab=0,hwdownload,format=bgra -c:v libx264 -crf 20 output.mkv"</div><div dir="ltr"><br><div><a href="https://learn.microsoft.com/en-us/windows/win32/direct3ddxgi/desktop-dup-api" target="_blank">https://learn.microsoft.com/en-us/windows/win32/direct3ddxgi/desktop-dup-api</a></div><div><a href="https://trac.ffmpeg.org/wiki/Capture/Desktop#UseWindows8DesktopDuplicationAPI" target="_blank">https://trac.ffmpeg.org/wiki/Capture/Desktop#UseWindows8DesktopDuplicationAPI</a></div><div><a href="https://ffmpeg.org/doxygen/7.0/decode_filter_video_8c-example.html" target="_blank">https://ffmpeg.org/doxygen/7.0/decode_filter_video_8c-example.html</a></div><a href="https://github.com/FFmpeg/FFmpeg/blob/master/doc/examples/decode_filter_video.c">https://github.com/FFmpeg/FFmpeg/blob/master/doc/examples/decode_filter_video.c</a></div><div dir="ltr"><br></div><div dir="ltr">Thankfully,</div><div dir="ltr">Rakesh Chowdhury<br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><i><b><br></b></i></div><div><i><b>Signed-Off By: Rakesh Chowdhury</b></i></div></div></div></div>
</div>
</div>
</div>