qsv encoder failed after network drop

tphakala

New Member

24/7 webcam stream using AV1 disconnected due to network congestion, with x264/HEVC stream has reconnected but with AV1 it did not, OBS failed on error QSV encoder error. Stream started normally without OBS restart once I logged to this system (using RDP as it is remote system) and stopped & started stream.

Windows 11, Intel Core i5-12400, Intel ARC 750, OBS 30.0.2

04:29:12.108: [rtmp stream: 'adv_stream'] Disconnected from rtmps://a.rtmps.youtube.com:443/live2
04:29:12.108: Output 'adv_stream': stopping
04:29:12.108: Output 'adv_stream': Total frames output: 559191
04:29:12.108: Output 'adv_stream': Total drawn frames: 559215
04:29:12.108: Output 'adv_stream': Reconnecting in 5.00 seconds..
04:29:17.108: >>> new qsv encoder
04:29:17.108: [qsv encoder: 'advanced_video_stream'] settings:
04:29:17.108: codec: AV1
04:29:17.108: rate_control: CBR
04:29:17.108: target_bitrate: 4000
04:29:17.108: Lookahead Depth:60
04:29:17.108: target_usage: TU1
04:29:17.108: profile: main
04:29:17.108: keyint: 2
04:29:17.108: latency: normal
04:29:17.108: b-frames: 3
04:29:17.108: enhancements: on
04:29:17.108: fps_num: 25
04:29:17.108: fps_den: 1
04:29:17.108: width: 1920
04:29:17.108: height: 1080
04:29:17.109: [qsv encoder: 'advanced_video_stream'] debug info:
04:29:17.380: surf: Texture
04:29:17.647: [qsv encoder: 'msdk_impl'] Unsupported configurations, parameters, or features (MFX_ERR_UNSUPPORTED)
04:29:17.647: [qsv encoder: 'advanced_video_stream'] qsv failed to load
 

tphakala

New Member
This is a repeating issue, happens once or twice a day. Switched to QSV HEVC to see if it is also affected by this.
 

tphakala

New Member
Soon after switching to QSV HEVC stream disconnected, but it reconnected successfully, unlike with QSV AV1.
 

tphakala

New Member
I think RDP is at fault here. When I start OBS over RDP session OBS sees discrete GPU twice, as Adapter 0 and as Adapter 2. I believe RDP session creates "shadow display adapter" to render screen output on to. As long as RDP session is open disconnected youtube streams resume correctly, qsv encoder selects correct dGPU to start a new encoding session on. Once I disconnect from this system and stream drops QSV encoder can no longer find correct dGPU to restart encoding on.

11:17:45.972: Initializing D3D11...[/INDENT] [INDENT]11:17:45.972: Available Video Adapters: [/INDENT] [INDENT]11:17:45.977: Adapter 0: Intel(R) Arc(TM) A750 Graphics[/INDENT] [INDENT]11:17:45.977: Dedicated VRAM: 8489271296 (7.9 GiB)[/INDENT] [INDENT]11:17:45.977: Shared VRAM: 8454367232 (7.9 GiB)[/INDENT] [INDENT]11:17:45.977: PCI ID: 8086:56a1[/INDENT] [INDENT]11:17:45.977: HAGS Status: Disabled (Default: No, Driver status: Experimental)[/INDENT] [INDENT]11:17:45.977: Driver Version: 31.0.101.5081[/INDENT] [INDENT]11:17:45.977: output 0:[/INDENT] [INDENT]11:17:45.977: name=[/INDENT] [INDENT]11:17:45.977: pos={0, 0}[/INDENT] [INDENT]11:17:45.977: size={1680, 1050}[/INDENT] [INDENT]11:17:45.977: attached=true[/INDENT] [INDENT]11:17:45.977: refresh=32[/INDENT] [INDENT]11:17:45.977: bits_per_color=8[/INDENT] [INDENT]11:17:45.977: space=RGB_FULL_G22_NONE_P709[/INDENT] [INDENT]11:17:45.977: sdr_white_nits=80[/INDENT] [INDENT]11:17:45.977: nit_range=[min=0.000000, max=0.000000, max_full_frame=0.000000][/INDENT] [INDENT]11:17:45.977: dpi=96 (100%)[/INDENT] [INDENT]11:17:45.977: id=\\?\DISPLAY#Default_Monitor#1&c528b8a&0&UID256#{e6f07b5f-ee97-4a90-b076-33f57bf4eaa7}[/INDENT] [INDENT]11:17:45.977: alt_id=\\.\DISPLAY145[/INDENT] [INDENT]11:17:45.977: Adapter 1: Intel(R) UHD Graphics 730[/INDENT] [INDENT]11:17:45.977: Dedicated VRAM: 134217728 (0.1 GiB)[/INDENT] [INDENT]11:17:45.977: Shared VRAM: 8454367232 (7.9 GiB)[/INDENT] [INDENT]11:17:45.977: PCI ID: 8086:4692[/INDENT] [INDENT]11:17:45.977: HAGS Status: Disabled (Default: No, Driver status: Experimental)[/INDENT] [INDENT]11:17:45.977: Driver Version: 31.0.101.5081[/INDENT] [INDENT]11:17:45.978: Adapter 2: Intel(R) Arc(TM) A750 Graphics[/INDENT] [INDENT]11:17:45.978: Dedicated VRAM: 8489271296 (7.9 GiB)[/INDENT] [INDENT]11:17:45.978: Shared VRAM: 8454367232 (7.9 GiB)[/INDENT] [INDENT]11:17:45.978: PCI ID: 8086:56a1[/INDENT] [INDENT]11:17:45.978: HAGS Status: Disabled (Default: No, Driver status: Experimental)[/INDENT] [INDENT]11:17:45.978: Driver Version: 31.0.101.5081[/INDENT] [INDENT]11:17:45.979: Loading up D3D11 on adapter Intel(R) Arc(TM) A750 Graphics (0)
 

tphakala

New Member
I can confirm that RDP is causing this, when I started OBS over VNC session QSV encoder has restarted successfully after several network drops.
 
Top