@crackwitz has already raised an issue to this effect.
If it was me I would check that the env var is being passed correctly to OpenCV either by placing a breakpoint
or increasing the log level
OPENCV_FFMPEG_DEBUG=1
OPENCV_LOG_LEVEL=DEBUG
I would also double check that OpenCV is using the supplied version of FFMpeg, not the automaitically downloaded OpenCV shared library and that calling that version outside of OpenCV (ffmpeg.exe) with the arguments you mention has the desired result.