Opened 13 months ago

Closed 7 months ago

#10268 closed defect (fixed)

When nvenc fails with "out of memory" the program crashes instead of returning that error

Reported by: Adrian Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: NVENC
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Using latest master, when the NVENC encoder fails "OpenEncodeSessionEx failed: out of memory", the program crashes in avcodec_open2, instead of returning the error.

It's easy to reproduce by starting multiple concurrent encoding sessions (4 was enough for me with RTX 3080 Ti)

The error is printed to the log, and then it crashes.

Change History (2)

comment:1 by nyanmisaka, 13 months ago

Consumer targeted GeForce graphics cards officially support no more than 3 simultaneously encoding video streams, regardless of the count of the cards installed, but this restriction can be circumvented on Linux and Windows systems by applying an unofficial patch to the drivers.

https://github.com/keylase/nvidia-patch

comment:2 by Adrian, 7 months ago

Resolution: fixed
Status: newclosed

This no longer happens with latest master

Note: See TracTickets for help on using tickets.