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

Amir Davidov Amir.Davidov at tmd.tv
Mon Jun 12 17:18:34 EEST 2023


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20230612/1753ee62/attachment.htm>


More information about the Libav-user mailing list