Hi,
I just wanted to try tensorrt in this framework, but I found that I got full green screen as the final result. The test command is like this:
ffmpeg -hwaccel cuda -hwaccel_output_format cuda -i SampleVideo_640x360_1mb.mp4 -vf scale_npp=640:360,format_cuda=rgbpf32le,tensorrt=ESRGAN_x4_723_360.trt,format_cuda=nv12 -c:v h264_nvenc SRResult.mp4
It seams that this is caused by the "format_cuda" filter. I dumped the output of format_cuda filter like this:
I got an output file filled with all 0. But with command that dump nv12 data directly after decode:
ffmpeg -hwaccel cuda -hwaccel_output_format cuda -i SampleVideo_640x360_1mb.mp4 -vf scale_npp=640:360,hwdownload,format=nv12 output.yuv -y
I could get correct yuv file which can be play by the ffplay.
Can anyone tell me what's the problem? Thanks in advance!
Hi, I just wanted to try tensorrt in this framework, but I found that I got full green screen as the final result. The test command is like this:
ffmpeg -hwaccel cuda -hwaccel_output_format cuda -i SampleVideo_640x360_1mb.mp4 -vf scale_npp=640:360,format_cuda=rgbpf32le,tensorrt=ESRGAN_x4_723_360.trt,format_cuda=nv12 -c:v h264_nvenc SRResult.mp4
It seams that this is caused by the "format_cuda" filter. I dumped the output of format_cuda filter like this:
I got an output file filled with all 0. But with command that dump nv12 data directly after decode:
ffmpeg -hwaccel cuda -hwaccel_output_format cuda -i SampleVideo_640x360_1mb.mp4 -vf scale_npp=640:360,hwdownload,format=nv12 output.yuv -y
I could get correct yuv file which can be play by the ffplay.Can anyone tell me what's the problem? Thanks in advance!