[Libav-user] Quicksync decoding problem when there are 2 video cards

Richard Lince richard.lince at bluebox.video
Tue Jun 20 11:12:19 EEST 2023


Try setting the Intel display as the primary device.

On 12/06/2023 15:18, Amir Davidov wrote:
> Hi
>
> 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.
>
> I'm using a variant of Anton Khirnov's 2015 qsvdec.c example.
>
> If I have both graphic cards enabled in Windows then we I get to the line:
>
> av_hwdevice_ctx_create(@FHWDecode.hw_device_ref,AV_HWDEVICE_TYPE_QSV,'auto',nil,0)
>
> 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.
>
> If I'm right about it trying to open a Quicksync session to the NVIDIA 
> card, is there a way of pointing at the correct videocontroller 
> without having to disable to card? I can identify which 
> videocontroller is the Intel card using WMI.
>
> Best wishes
>
> Fred
> 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.
>
> _______________________________________________
> 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".

Best Regards,
Richard Lince,
Founder & Managing Director

bluebox.video <https://www.bluebox.video>
+44(0)7841665146

logo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20230620/0ea99799/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logo_email.png
Type: image/png
Size: 6840 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20230620/0ea99799/attachment.png>


More information about the Libav-user mailing list