Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hardware acceleration options #3

Open
justdanpo opened this issue Aug 29, 2023 · 1 comment
Open

Hardware acceleration options #3

justdanpo opened this issue Aug 29, 2023 · 1 comment
Assignees

Comments

@justdanpo
Copy link

Hardware acceleration allows to dramatically reduce encoding time. Please add an option to choose encoder or autodetection of working one (not all encoders ffmpeg reports of actually work on a target machine).
List of available encoders may be got from ffmpeg (depends on ffmpeg build):

$ ffmpeg -hide_banner -encoders | grep '(codec h264)'
 V..... libx264              libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (codec h264)
 V..... libx264rgb           libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 RGB (codec h264)
 V..... h264_nvenc           NVIDIA NVENC H.264 encoder (codec h264)
 V..... h264_omx             OpenMAX IL H.264 video encoder (codec h264)
 V..... h264_v4l2m2m         V4L2 mem2mem H.264 encoder wrapper (codec h264)
 V..... h264_vaapi           H.264/AVC (VAAPI) (codec h264)
 V..... nvenc                NVIDIA NVENC H.264 encoder (codec h264)
 V..... nvenc_h264           NVIDIA NVENC H.264 encoder (codec h264)
@justdanpo
Copy link
Author

Here is how certain encoder may be tested:
ffmpeg -f lavfi -i nullsrc=s=320x128:d=0 -c:v h264_amf -f null -

@talyguryn talyguryn self-assigned this Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants