Error: 'Your platform doesn't suppport hardware accelerated AV1 decoding.' when i use 'cv2.VideoCapture'

chatgpt gave me this to convert format to mp4:
ffmpeg -i input.mkv -c:v libx264 -crf 23 -preset fast -c:a aac output.mp4

It worked for me (ubuntu 24.04)