Tested on Linux
https://hub.docker.com/r/wzhy1234/ffmpeg-qsv
sudo docker run --privileged -it -v /your_media:/mnt wzhy1234/ffmpeg-qsv /bin/bash
in_container# ffmpeg -hwaccel qsv -c:v h264_qsv -i test_ori.mp4 -c:v hevc_qsv -global_quality 22 -tag:v hvc1 -look_ahead 1 out.mp4
git clone [email protected]:aihy/ffmpeg_qsv_docker.git
cd ffmpeg_qsv_docker
sudo docker build -t ffmpeg-qsv .
sudo docker run --privileged -it -v /your_media:/mnt ffmpeg-qsv /bin/bash
in_container# ffmpeg -hwaccel qsv -c:v h264_qsv -i test_ori.mp4 -c:v hevc_qsv -global_quality 22 -tag:v hvc1 -look_ahead 1 out.mp4