I am following NVIDIA's doc for building ffmpeg with hardware acceleration capabilities. I have also installed the appropriate driver for my GeForce GPU and did the CUDA toolkit setup for WSL2. I am trying specifically to run the following command, after configuring ffmpeg like so:
Configuration (identical to the linux section of the doc)
./configure --enable-nonfree --enable-cuda-nvcc --enable-libnpp --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64 --disable-static --enable-sharedCommand (same as this section of the doc)
ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i input.mp4 -c:a copy -c:v h264_nvenc -preset p6 -tune ll -b:v 5M -bufsize 5M -maxrate 10M -qmin 0 -g 250 -bf 3 -b_ref_mode middle -temporal-aq 1 -rc-lookahead 20 -i_qfactor 0.75 -b_qfactor 1.1 output.mp4The problem:
Is there anything that I am missing? I tried running sudo find / -name libcuda.so.1 but could not find this .so file on a WSL 2 folder, only inside Windows' /mnt folders. I have also downloaded, but not installed, the video codec SDK but I am not sure if it is required at all since it is not mentioned on the doc I am following.