GMAT icon indicating copy to clipboard operation
GMAT copied to clipboard

tensorrt filter usage too high

Open jzl123456 opened this issue 9 months ago • 0 comments

tensorrt version: 8.2.3 nvidia driver version:535.161.08 cuda version:11.6 git branch:ffmpeg-gpu-demo

the following command works good: ffmpeg -loglevel info -hwaccel cuda -hwaccel_output_format cuda -c:v h264_cuvid -i output_264_2.flv -vf "[0:v]format_cuda=rgbpf32le[fc1];[fc1]format_cuda=nv12[fc2]" -c:v h264_nvenc -c:a aac output2.flv

but when i add tesorrt filter, the gpu usage burst to 100% ffmpeg -loglevel info -hwaccel cuda -hwaccel_output_format cuda -c:v h264_cuvid -i output_264_2.flv -vf "[0:v]format_cuda=rgbpf32le[fc1];[fc1]tensorrt='./u47_fp16_trt_8.2.3.0.trt'[tr];[tr]format_cuda=nv12[fc2]" -c:v h264_nvenc -c:a aac output2.flv

jzl123456 avatar Jun 16 '25 09:06 jzl123456