r/ispyconnect • • 14h ago

Feature Request: One-click return from Timeline to Live View

1 Upvotes

Dear Agent DVR Development Team,

I am using Agent DVR version 8.3.0.0 on Windows and am very satisfied with your software.

However, I would like to suggest a small usability improvement.

When using the Timeline, I have to scroll back to the current time until the Timeline icon changes from orange to green before I can return to the normal live view.

It would be much more intuitive to allow users to exit the Timeline at any time by simply clicking the Timeline icon, regardless of the currently selected timestamp.

Alternatively, a dedicated “Return to Live View” button would be very helpful.

For surveillance purposes, a quick and unambiguous return to the live camera feeds is particularly important.

Thank you for considering this suggestion and for your excellent software.

Kind regards,
etschl


r/ispyconnect • • 19h ago

Agent DVR 8.3.0.0 – Intel UHD 630 QSV encoding fails in AttachHwFrames(), but standalone FFmpeg QSV tests all succeed

2 Upvotes

Hello,

I'm trying to get Intel Quick Sync (QSV) hardware encoding working for recordings in Agent DVR 8.3.0.0, but Agent DVR consistently fails to initialise the QSV encoder and falls back to software encoding.

I'm hoping the developer can help explain what is happening inside RTC.GPUSetup.AttachHwFrames().

My setup

  • Agent DVR: 8.3.0.0
  • GPU: Intel UHD Graphics 630
  • Intel graphics driver: 31.0.101.2145
  • OS: Windows Server 2025
  • Encoder: H.264 (h264_qsv)
  • Playback/decoding: Software
  • Recording/encoding: Intel QSV
  • Selected GPU in Agent DVR: Device 0 – Intel UHD Graphics 630
  • FFmpeg: Agent DVR's bundled FFmpeg 9.0.2

Agent DVR debug log

With verbose debugging enabled, this is what happens when recording starts:

StartSaving: Front Door - Cam: From Alert: False, From AI Alert: False
OpenWriter: Front Door - Cam: StartSaving
.ctor: Front Door - Cam: Specifying Encoder: H264 (h264_qsv)
Open: Front Door - Cam: Using CRF of 18
OpenHWEncoder: Trying h264_qsv Encoder
Overriding requested Baseline profile to High for 1920x1088 recording.
ConfigureEncoder: Front Door - Cam: Specifying Device: 0

FFmpeg: verbose: [D3D11VA] Selecting d3d11va adapter 0
FFmpeg: info: [D3D11VA] Using device 8086:3e92 (Intel(R) UHD Graphics 630).

FFmpeg: verbose: [QSV] Use Intel(R) oneVPL to create MFX session, API version is 2.17, the required implementation version is 1.3
FFmpeg: verbose: [QSV] Initialize MFX session: implementation version is 1.35

ConfigureEncoder: Front Door - Cam: QSV runtime version: 1.35 (fixed frame pool)

FFmpeg: error: [AVHWFramesContext] Could not create the texture (80070057)
FFmpeg: error: [AVHWFramesContext] Error initializing a child frames context
FFmpeg: error: [AVHWFramesContext] Error creating an internal frame pool

FFmpeg: verbose: [QSV] d3d11va is not available or child device type is set to dxva2 explicitly for oneVPL.
FFmpeg: error: [DXVA2] Failed to create Direct3D device

TryOpenVideoCodec: Front Door - Cam: Failed to create QSV HW device (child=dxva2) (ret=-1313558101).

at RTC.GPUSetup.AttachHwFrames(AVCodecContext* ctx, String name, AVHWDeviceType hwType, AVPixelFormat pixFmt, String device, Boolean& dynamicPool, Action`1 log)
at CoreLogic.RealTime.MediaWriter.ConfigureEncoder(String name)
at CoreLogic.RealTime.MediaWriter.TryOpenVideoCodec(AVCodecID baseCodec, String encoder)

OpenHWEncoder: Front Door - Cam: Can't open h264_qsv for AV_CODEC_ID_H264
GetVideoCodec: Front Door - Cam: opening with base codec AV_CODEC_ID_H264
TryOpenVideoCodec: Front Door - Cam: Software encoder threads: 2 (libx264 1920x1088, 0 other software encoder(s) open)
GetVideoCodec: Front Door - Cam: Using software encoder: libx264
RecorderRecordingOpened: Front Door - Cam: Recording Opened

The particularly interesting part seems to be:

[AVHWFramesContext] Could not create the texture (80070057)
[AVHWFramesContext] Error initializing a child frames context
[AVHWFramesContext] Error creating an internal frame pool
[DXVA2] Failed to create Direct3D device

What I've tested

I've tried to establish whether this is a GPU, driver, or FFmpeg issue.

Importantly, all tests below were performed using the FFmpeg executable bundled with Agent DVR itself:

C:\Program Files\Agent\dlls\x64\ffmpeg9.0.2

1. Basic QSV encoding

Successfully initialised QSV and encoded 100 frames using h264_qsv.

2. D3D11VA

Explicitly selecting D3D11VA worked. FFmpeg identified the Intel UHD Graphics 630 correctly:

[D3D11VA] Using device 8086:3e92 (Intel(R) UHD Graphics 630).
Initialize MFX session: implementation version is 1.35
100 frames encoded

3. DXVA2

I also explicitly tested DXVA2, which is the child device type Agent DVR reports in its failure:

[QSV] d3d11va is not available or child device type is set to dxva2 explicitly for oneVPL.
[DXVA2] Using D3D9Ex device.
[QSV] Initialize MFX session: implementation version is 1.35
100 frames encoded

DXVA2 initialisation also worked outside Agent DVR.

4. Hardware frames context and upload

I then tested creating a QSV hardware frames context and uploading software frames into GPU memory before encoding:

.\ffmpeg.exe -hide_banner -loglevel verbose `
  -init_hw_device qsv=hw:child_device_type=dxva2 `
  -filter_hw_device hw `
  -f lavfi -i testsrc2=size=1920x1080:rate=25 `
  -vf "format=nv12,hwupload" `
  -frames:v 100 `
  -c:v h264_qsv `
  -f null NUL

This also succeeded.

Relevant output:

[AVHWFramesContext] Initialize MFX session: implementation version is 1.35
Using input frames context (format qsv) with h264_qsv encoder.
Encoder: input is video memory surface
100 frames encoded
Exiting with exit code 0

Questions for the developer

There seems to be a difference between how Agent DVR creates its hardware frames context and how FFmpeg does it when run independently.

Agent DVR successfully:

  • Detects the Intel UHD 630.
  • Selects the correct GPU (device 0).
  • Initialises the Intel oneVPL runtime (1.35).

But then it fails creating a D3D11 texture with 80070057, fails to initialise the child frames context, and subsequently fails when trying DXVA2.

The same bundled FFmpeg executable can successfully initialise both D3D11VA and DXVA2, create a QSV hardware frames context, upload frames into GPU memory and encode H.264.

A few questions:

  1. What does the Could not create the texture (80070057) error indicate in this particular context?
  2. Is Agent DVR's fixed frame pool creating a hardware frames context with different parameters or pixel formats from the successful standalone FFmpeg test?
  3. Why does Agent DVR appear to fall back from D3D11VA to DXVA2, and why does that DXVA2 initialisation fail?
  4. Could this be an issue with the way Agent DVR 8.3.0.0 calls AttachHwFrames() or configures the QSV frame pool?

I'd particularly appreciate the developer's input on what might be causing this, and whether there is additional logging or a diagnostic test I can run.

I'd prefer not to keep changing Intel drivers or Windows graphics settings when the same GPU and bundled FFmpeg successfully perform the equivalent QSV operations outside Agent DVR.

Thanks!