jrottenberg / ffmpeg

Docker build for FFmpeg on Ubuntu / Alpine / Centos / Scratch / nvidia / vaapi
https://hub.docker.com/r/jrottenberg/ffmpeg/
Apache License 2.0
1.42k stars 454 forks source link

Unknown encoder 'h264_qsv' when using -vcodec h264_qsv #374

Open TonyHenrique opened 1 year ago

TonyHenrique commented 1 year ago

I have a working application that uses ffmpeg with the H264 QSV encoder, to enable a faster render of the files on my Intel computer.

I am trying to run it with jrottenberg/ffmpeg docker image:

docker run --volume=C:\myfiles:/myfiles -w /myfiles jrottenberg/ffmpeg:4.4-scratch -i video_mute.mp4 -i final_audio.aac -vf "subtitles=portugues.srt:force_style='FontName=sans-serif,FontSize=22,BorderStyle=4,PrimaryColour=&H00FFFFFF,OutlineColour=&H00000000,BackColour=&H80000000,Outline=1,Shadow=1':charenc=UTF-8" -vcodec h264_qsv -crf 14 -preset veryslow -tune film -movflags +faststart dub_portugues.mp4

but it gives this error:

Unknown encoder 'h264_qsv' when using -vcodec h264_qsv

Can you release a image that contains the Intel QuickSync, like the h264_qsv codec, on the ffmpeg build?

References: Intel Quick Sync Video The family of Intel QuickSync Video decoders (VC1, MPEG-2, H.264, HEVC, JPEG/MJPEG, VP8, VP9, AV1)

Commandcracker commented 1 year ago

Have you tried using an updated FFmpeg version ? Try running it with jrottenberg/ffmpeg:5.1.2-scratch313 or jrottenberg/ffmpeg:6.0-scratch

Commandcracker commented 1 year ago

It won't change anything, MB. It's late at night for me, so just ignore the comment :D

Commandcracker commented 1 year ago

AkashiSN/ffmpeg-docker has support for Intel Quick Sync Video