<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Webdings;
        panose-1:5 3 1 2 1 5 9 6 7 3;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Arial",sans-serif;
        color:black;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";
        mso-fareast-language:DE;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">Dear ffmpeg experts,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">How to list all supported resolutions of a webcam?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">Using the command line tool with the following command:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-indent:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">ffmpeg -f dshow -list_options true -i video="HD Pro Webcam C920"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">I can successfully list all supported video resolutions and formats of the connected Logitech usb webcam. How can I get this list programmatically with
 help of the C-API?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"><o:p> </o:p></span></p>
<pre style="background:white"><span lang="EN-US" style="font-family:"Arial",sans-serif;color:black">I can successfully open and stream this usb camera using the C-API, but I have to call<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black">av_dict_set(&m_pInOptions, </span><span lang="EN-US" style="font-family:Consolas;color:#A31515">"video_size"</span><span lang="EN-US" style="font-family:Consolas;color:black">, sVideoSize.c_str(), 0);<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:"Arial",sans-serif;color:black">with a supported video_size before calling</span><span lang="EN-US" style="font-family:Consolas;color:black"> <o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black">ret = avformat_open_inptut(&m_pFormatCtxInCam, </span><span lang="EN-US" style="font-family:Consolas;color:gray">szUrl</span><span lang="EN-US" style="font-family:Consolas;color:black">, m_pInFrmt, &m_pInOptions)<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"><o:p> </o:p></span></pre>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">by checking for
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;mso-fareast-language:DE">ret == -5</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"> I can retry opening the camera with a different
 video_size.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">At the moment I loop over a list with several standard video resolutions and try to open<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">The webcam. This is very inconvienient. Also I would like return a list of supported resolutions.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:DE">Mit freundlichen Grüßen / Best regards<br>
<br>
</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#0070C0;mso-fareast-language:DE">Sven Hans</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:black;mso-fareast-language:DE"><br>
</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#0070C0;mso-fareast-language:DE">DERMALOG Identification Systems GmbH<br>
Systems Engineer</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:black;mso-fareast-language:DE"><br>
<br>
</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#7D7D7D;mso-fareast-language:DE">Mittelweg 120 | 20148 Hamburg | Germany</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:black;mso-fareast-language:DE"><o:p></o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#7D7D7D;mso-fareast-language:DE">Fon +49 40 413227 0<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td valign="top" style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#7D7D7D;mso-fareast-language:DE">Fax +49-40-413227-40<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td nowrap="" valign="top" style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#7D7D7D;mso-fareast-language:DE">Mail
</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#7D7D7D;mso-fareast-language:DE"><a href="mailto:Sven.Hans@dermalog.com" title="Click to send email to Hans, Sven"><span lang="EN-US" style="color:#7D7D7D">Sven.Hans@dermalog.com</span></a></span><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#7D7D7D;mso-fareast-language:DE"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td nowrap="" valign="top" style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#7D7D7D;mso-fareast-language:DE">Web
<a href="https://www.dermalog.com"><span style="color:#7D7D7D">www.dermalog.com</span></a><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman",serif;color:black;mso-fareast-language:DE"><br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#0070C0;mso-fareast-language:DE">SECURITY – Made in Germany<br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#7D7D7D;mso-fareast-language:DE">Biometrics * AFIS * ABIS * Face * Iris * Live Scanners * Border Control * ID Card & Passport Systems * National Identification Solutions
 * Biometric Banking & Payment Solutions * Mobile Devices<br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:DE"><br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#0070C0;mso-fareast-language:DE">DERMALOG – The Biometrics Innovation Leader * Winner of 36 international Awards</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#548DD4;mso-fareast-language:DE"><br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#7D7D7D;mso-fareast-language:DE">+ Innovator des Jahres 2018 - Innovator of the Year 2018 – brandeins Wissen Statista<br>
+ CEO 100 - Best 100 CEOs 2018 – Acquisition International<br>
+ CEO of the year 2018 Biometrics ­­– CEO of the year 2018 – Acquisition International<br>
+ Deutschlands innovativste Mittelständler 2017 – Wirtschafts Woche<br>
-> Find out more about our international Awards </span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#7D7D7D;mso-fareast-language:DE"><a href="https://www.dermalog.com/company/awards/"><span lang="EN-US" style="color:#7D7D7D">here</span></a></span><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman",serif;color:black;mso-fareast-language:DE"><br>
<br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#7D7D7D;mso-fareast-language:DE">This e-mail may contain information that is confidential or proprietary to DERMALOG Identification Systems GmbH. Any unauthorized disclosure,
 distribution or other use is prohibited. <br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:DE"><br>
</span><span style="font-size:7.5pt;font-family:Webdings;color:#00B050;mso-fareast-language:DE">P</span><span lang="EN-US" style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#00B050;mso-fareast-language:DE"> Please consider the environment before printing
 this email</span><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:DE">
</span><span lang="EN-US"><o:p></o:p></span></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
DERMALOG Identification Systems GmbH * Mittelweg 120, 20148 Hamburg, Germany<br>
CEO/Managing Director: Günther Mull * Commercial Register: AG Hamburg HRB 69547 <br>
</font>
</body>
</html>