ffmpeg:hardware_acceleration_using_gpu:amd_gpu
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ffmpeg:hardware_acceleration_using_gpu:amd_gpu [2024/02/19 12:47] – peter | ffmpeg:hardware_acceleration_using_gpu:amd_gpu [2024/05/15 00:03] (current) – peter | ||
---|---|---|---|
Line 4: | Line 4: | ||
<code bash> | <code bash> | ||
+ | ffmpeg -hwaccel vaapi -hwaccel_device / | ||
+ | |||
+ | |||
ffmpeg -i " | ffmpeg -i " | ||
</ | </ | ||
Line 9: | Line 12: | ||
---- | ---- | ||
- | ===== Complete explanation of each step ===== | + | ===== Step-by-step guide to the above mentioned method |
==== Determine which codecs can be used with GPU hardware video encoding acceleration ==== | ==== Determine which codecs can be used with GPU hardware video encoding acceleration ==== | ||
Line 49: | Line 52: | ||
<WRAP info> | <WRAP info> | ||
**NOTE: | **NOTE: | ||
+ | |||
+ | In this case this shows the following as able to hardware encode: < | ||
+ | VAProfileH264ConstrainedBaseline: | ||
+ | VAProfileH264Main | ||
+ | VAProfileH264High | ||
+ | VAProfileHEVCMain | ||
+ | VAProfileHEVCMain10 | ||
+ | VAProfileAV1Profile0 | ||
+ | </ | ||
+ | |||
</ | </ | ||
+ | ---- | ||
+ | |||
+ | ==== Check what vaapi encoders are supported by ffmpeg ==== | ||
+ | |||
+ | <code bash> | ||
+ | ffmpeg -encoders | grep vaapi | ||
+ | </ | ||
+ | |||
+ | returns: | ||
+ | |||
+ | < | ||
+ | ffmpeg version N-113695-g32538dafca Copyright (c) 2000-2024 the FFmpeg developers | ||
+ | built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04) | ||
+ | configuration: | ||
+ | libavutil | ||
+ | libavcodec | ||
+ | libavformat | ||
+ | libavdevice | ||
+ | libavfilter | ||
+ | libswscale | ||
+ | libswresample | ||
+ | libpostproc | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | < | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | ---- | ||
---- | ---- |
ffmpeg/hardware_acceleration_using_gpu/amd_gpu.1708346870.txt.gz · Last modified: 2024/02/19 12:47 by peter