Hi everyone!
I’m looking for help in a very bare bones initial test to use OpenCL ffmpeg filters on a jetson nano.
very specifically I’m hoping to achieve an ffmpeg command in the ball park of
ffmpeg -hwaccel cuda -init_hw_device opencl=ocl -filter_hw_device ocl -c:v hevc_cuvid -resize 1920x1080 -i INPUT.mp4 -vf "format=p010,hwupload,tonemap_opencl=tonemap=mobius:param=0.01:desat=0:r=tv:p=bt709:t=bt709:m=bt709:format=nv12,hwdownload,format=nv12" -c:a copy -c:s copy -c:v 264_nvenc OUTPUT.mp4
however because nvenc/nvdec hasnt been implemented on the nano yet, the command would use this library to support the hardware encoder/decoder in ffmpeg and use this library (POCL) to add openCL support.
ffmpeg -hwaccel cuda -init_hw_device opencl=ocl -filter_hw_device ocl -c:v hevc_nvmpi -resize 1920x1080 -i INPUT.mp4 -vf "format=p010,hwupload,tonemap_opencl=tonemap=mobius:param=0.01:desat=0:r=tv:p=bt709:t=bt709:m=bt709:format=nv12,hwdownload,format=nv12" -c:a copy -c:s copy -c:v h264_nvmpi OUTPUT.mp4
This should be able to use the decoding block on any of the current jetson model, keep in gpu system ram, utilize openCL 1.2 filters, once again keep it in gpu ram, encode to h264 to an output file.
Would test myself on hardware, but don’t have the spare budget to commit to the device if this isn’t going to work. [Computer engineering student on a tight budget, looking for advice and if someone with hardware might be able to help me out.]