<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <font size="2"><font face="Helvetica, Arial, sans-serif">Try setting
        the Intel display as the primary device.</font></font><br>
    <br>
    <div class="moz-cite-prefix">On 12/06/2023 15:18, Amir Davidov
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:AM0PR03MB6259DF8C252D4A8A9F27E6FFF554A@AM0PR03MB6259.eurprd03.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <style type="text/css" style="display:none;">P {margin-top:0;margin-bottom:0;}</style>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
        <span style="display: inline !important; background-color:
          rgb(255, 255, 255);" class="ContentPasted0">Hi</span></div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
        <div style="margin: 0px; background-color: rgb(255, 255, 255);"><br
            class="x_ContentPasted1 ContentPasted0">
        </div>
        <div class="x_ContentPasted1 ContentPasted0" style="margin: 0px;
          background-color: rgb(255, 255, 255);">
          I have a machine running Windows 10 that has 2 graphics cards
          in it, an Intel HD Graphics 630 & an NVIDIA GeForce GTX
          1060. The CPU supports Quicksync & the monitor is plugged
          into the Intel Graphics card.</div>
        <div style="margin: 0px; background-color: rgb(255, 255, 255);"><br
            class="x_ContentPasted1 ContentPasted0">
        </div>
        <div class="x_ContentPasted1 ContentPasted0" style="margin: 0px;
          background-color: rgb(255, 255, 255);">
          I'm using a variant of Anton Khirnov's 2015 qsvdec.c example.</div>
        <div style="margin: 0px; background-color: rgb(255, 255, 255);"><br
            class="x_ContentPasted1 ContentPasted0">
        </div>
        <div class="x_ContentPasted1 ContentPasted0" style="margin: 0px;
          background-color: rgb(255, 255, 255);">
          If I have both graphic cards enabled in Windows then we I get
          to the line:</div>
        <div style="margin: 0px; background-color: rgb(255, 255, 255);"><br
            class="x_ContentPasted1 ContentPasted0">
        </div>
        <div class="x_ContentPasted1 ContentPasted0" style="margin: 0px;
          background-color: rgb(255, 255, 255);">
av_hwdevice_ctx_create(@FHWDecode.hw_device_ref,AV_HWDEVICE_TYPE_QSV,'auto',nil,0)</div>
        <div style="margin: 0px; background-color: rgb(255, 255, 255);"><br
            class="x_ContentPasted1 ContentPasted0">
        </div>
        <div class="x_ContentPasted1 ContentPasted0" style="margin: 0px;
          background-color: rgb(255, 255, 255);">
          I get "Error initializing an MFX session: -3." If I disable
          the NVIDIA card using the device manager the call is
          successful & things work properly. To my untrained eye, it
          would appear like it's trying to open a Quicksync session on
          the wrong card. Interestingly, when I initialize a Quicksync
          enabled encoder (eg h264_qsv) it is always quite happy to do
          that even when the NVIDIA card is enabled.</div>
        <div style="margin: 0px; background-color: rgb(255, 255, 255);"><br
            class="x_ContentPasted1 ContentPasted0">
        </div>
        <div style="margin: 0px; background-color: rgb(255, 255, 255);"
          class="ContentPasted0">
          If I'm right about it trying to open a Quicksync session to
          the NVIDIA card, <span class="x_ContentPasted2 ContentPasted0"
            style="margin: 0px; display: inline !important;
            background-color: rgb(255, 255, 255);">is there a way of
            pointing at the correct videocontroller without having to
            disable to card? </span>I can identify which videocontroller
          is the Intel card using WMI.</div>
        <div style="margin: 0px; background-color: rgb(255, 255, 255);"><br
            class="x_ContentPasted1 ContentPasted0">
        </div>
        <div class="x_ContentPasted1 ContentPasted0" style="margin: 0px;
          background-color: rgb(255, 255, 255);">
          Best wishes</div>
        <div style="margin: 0px; background-color: rgb(255, 255, 255);"><br
            class="x_ContentPasted1 ContentPasted0">
        </div>
        <span style="display: inline !important; background-color:
          rgb(255, 255, 255);" class="ContentPasted0">Fred</span><br>
      </div>
      This email message and its attachments are confidential and/or
      privileged information. The email may contain personal views,
      which are not necessarily the views of The Company. If you are not
      the intended recipient, you must not disclose or use the
      information contained in it. If you have received this email
      message in error, please advise the sender by email or call +44(0)
      1296 745080. Please also delete the message and any associated
      attachments. Any attachments to this message have been checked for
      viruses, but it is recommended that you scan any attachments for
      viruses. The company may monitor emails sent or received from and
      to its systems. The company assumes further communication will
      signify your consent to this.
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Libav-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a>
<a class="moz-txt-link-freetext" href="https://ffmpeg.org/mailman/listinfo/libav-user">https://ffmpeg.org/mailman/listinfo/libav-user</a>

To unsubscribe, visit link above, or email
<a class="moz-txt-link-abbreviated" href="mailto:libav-user-request@ffmpeg.org">libav-user-request@ffmpeg.org</a> with subject "unsubscribe".
</pre>
    </blockquote>
    <br>
    <div class="moz-signature"><font size="2" face="calibri"
        color="black">
        Best Regards,<br>
        Richard Lince,<br>
        Founder & Managing Director<br>
        <br>
        <a href="https://www.bluebox.video">bluebox.video</a> <br>
        +44(0)7841665146<br>
      </font><br>
      <img alt="logo" src="cid:part1.SGgsCVtn.mYFfQtac@bluebox.video"></div>
  </body>
</html>