<div dir="ltr"><font face="monospace, monospace">Hi.</font><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Sorry, I think I got it wrong in my previous reply:</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">> I think there is no way to retrieve the information using the FFMPEG API.</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">There is this:</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><a href="https://ffmpeg.org/doxygen/trunk/structAVDeviceCapabilitiesQuery.html">https://ffmpeg.org/doxygen/trunk/structAVDeviceCapabilitiesQuery.html</a> </font></div><div><font face="monospace, monospace"> </font></div><div><font face="monospace, monospace">Quoting the docs:</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">>  <span style="color:rgb(0,0,0)">Following API allows user to probe device capabilities (supported codecs, pixel formats, sample formats, resolutions, channel counts, etc).</span></font></div><div><font face="monospace, monospace"><span style="color:rgb(0,0,0)"><br></span></font></div><div><font face="monospace, monospace">Give the above API a try.</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">> <span style="color:rgb(0,0,0)">So the output in the console comes from the backend and not from ffmpeg?</span></font></div><div><span style="color:rgb(0,0,0)"><font face="monospace, monospace"><br></font></span></div><div><font face="monospace, monospace"><span style="color:rgb(0,0,0)">Well, the output comes from ffmpeg, it gets printed with the av_log() function.</span></font></div><div><font face="monospace, monospace"><span style="color:rgb(0,0,0)">For the </span><span style="color:rgb(0,0,0);white-space:pre-wrap">decklink </span><span style="color:rgb(0,0,0)">'-listformats' flag, the output just gets printed and it is not stored in any structure(not even in the above API) from which it can be retrieved.</span></font></div><div><font face="monospace, monospace"><span style="color:rgb(0,0,0)">That is why I had to capture the log and then parse it.</span></font></div><div><font face="monospace, monospace"><span style="color:rgb(0,0,0)"><br></span></font></div><div><font face="monospace, monospace"><span style="color:rgb(0,0,0);font-size:13.3333px">> probably I have to implement this functionality directly with Dshow in Windows and v4l2 in Linux.</span><span style="color:rgb(0,0,0)"><br></span></font></div><div><font face="monospace, monospace"><span style="color:rgb(0,0,0);font-size:13.3333px"><br></span></font></div><div><font face="monospace, monospace"><span style="color:rgb(0,0,0);font-size:13.3333px">Doing this with the decklink API for my case would be a better solution than the one I currently have.</span></font></div><div><span style="color:rgb(0,0,0)"><font face="monospace, monospace"><br></font></span></div><div><font face="monospace, monospace">Regards.</font></div></div>