Keylost / jetson-ffmpeg

ffmpeg support on nvidia jetson
Other
78 stars 26 forks source link

When using the hevc_nvmpi decoder, is the decoded AVFrame located in the GPU or the CPU? #31

Closed a514154639 closed 4 days ago

a514154639 commented 5 days ago

Hi,Thank you for adapting FFmpeg for Jetson! I successfully decoded an RTSP stream using the hevc_nvmpi decoder, but I wanted to convert the decoded AVFrame from YUV420P to RGB. I successfully converted it using the _swsscale function, but the CPU usage was very high. Therefore, I wanted to use GPU acceleration. However, I failed when I tried to convert it using the GPU method below. So, I would like to know if the AVFrame decoded by hevc_nvmpi can be directly manipulated in CUDA? image

Keylost commented 4 days ago

Hi! In the current version of nvmpi AVFrame can only be located in CPU memory. I had plans to add support for AVFrame in GPU memory, but unfortunately I haven't had time to implement it yet.

a514154639 commented 4 days ago

Hi! In the current version of nvmpi AVFrame can only be located in CPU memory. I had plans to add support for AVFrame in GPU memory, but unfortunately I haven't had time to implement it yet.

OK,Thank you for your reply. I hope that one day it can be achieved!