You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when performing HW decoding / encoding, HW contexts are recreated at each invocation.
Looking at the design of AVBufferRef and how it is used for AVCodecContext::hw_device_ctx in hw_decode.c, they should be reusable across different invocations (and perhaps encoding/decoding.)
Reusing should reduce the GPU memory usage and initialization time.
Note: Currently, launching GPU decoder/encoder at the same time consumes about 600 MB of GPU memory.
Uh oh!
There was an error while loading. Please reload this page.
Currently when performing HW decoding / encoding, HW contexts are recreated at each invocation.
Looking at the design of AVBufferRef and how it is used for
AVCodecContext::hw_device_ctx
in hw_decode.c, they should be reusable across different invocations (and perhaps encoding/decoding.)Reusing should reduce the GPU memory usage and initialization time.
Note: Currently, launching GPU decoder/encoder at the same time consumes about 600 MB of GPU memory.
code
Implementation Idea
The text was updated successfully, but these errors were encountered: