I
Immich2y ago
zzbpyw

hwaccel not working

I configured hwaccl and running with root. but when i upload videos from my iphone,the ffmpeg command is not running with params such as : -hwaccel qsv,and the transcode runs very slow. root@zzbpywdebiannas:/sata-mirror-data/immich/immich-docker-compose# ps -ef | grep ffmpeg root 992874 657919 99 22:03 ? 00:00:41 /usr/bin/ffmpeg -i upload/library/ab85ed56-5be4-4813-8389-02aad8ccc1f8/2023/2023-05-30/VID_20230530_195807.mp4 -y -vcodec h264 -acodec aac -movflags faststart -fps_mode passthrough -v verbose -vf scale=720:-2,format=yuv420p -preset ultrafast -crf 23 upload/encoded-video/ab85ed56-5be4-4813-8389-02aad8ccc1f8/53b44e6c-34dd-42f2-a84c-e73f6c806931.mp4 when will -hwaccel qsv be used?what should i configure?
No description
No description
4 Replies
zzbpyw
zzbpywOP2y ago
root@417622a80345:/usr/src/app# ls /dev/dri/ card0 renderD128
Alex Tran
Alex Tran2y ago
Hello, do you mind posting your docker-compose and .env file for troubleshooting?
zzbpyw
zzbpywOP2y ago
here is docker-compose.yml .env hwaccel.yml
zzbpyw
zzbpywOP2y ago
sorry i missed this step:In the Admin page under FFmpeg settings, change the hardware acceleration setting to the appropriate option and save. now it is working : /usr/bin/ffmpeg -init_hw_device qsv=hw -filter_hw_device hw -i upload/library/ab85ed56-5be4-4813-8389-02aad8ccc1f8/2023/2023-08-26/VID_20230826_174808.mp4 -y -vcodec h264_qsv -g 256 -extbrc 1 -refs 5 -bf 7 -acodec aac -movflags faststart -fps_mode passthrough -v verbose -vf format=nv12,hwupload=extra_hw_frames=64,scale_qsv=720:-1 -preset 7 -global_quality 23 upload/encoded-video/ab85ed56-5be4-4813-8389-02aad8ccc1f8/d29c8658-3a90-4b8b-8073-250a1c9cc7fe.mp4

Did you find this page helpful?