ffmpeg:encoding:gpu_encoding
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ffmpeg:encoding:gpu_encoding [2024/11/15 09:28] – peter | ffmpeg:encoding:gpu_encoding [2025/02/17 15:23] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== ffmpeg - Encoding - GPU Encoding ====== | ====== ffmpeg - Encoding - GPU Encoding ====== | ||
+ | |||
+ | [[ffmpeg: | ||
+ | |||
+ | ---- | ||
+ | |||
+ | <code bash> | ||
+ | ffmpeg -i " | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
===== Convert videos to H.265 / HEVC using ffmpeg and GPU hardware encoding ===== | ===== Convert videos to H.265 / HEVC using ffmpeg and GPU hardware encoding ===== | ||
Line 7: | Line 18: | ||
ffmpeg -i " | ffmpeg -i " | ||
+ | |||
+ | |||
+ | # This is hardware decoding and software encoding. | ||
+ | ffmpeg -hwaccel vaapi -hwaccel_device / | ||
</ | </ | ||
Line 42: | Line 57: | ||
* The **hwupload** filter also requires a device to upload to, which needs to be defined before the filter graph is created which is done with **-vaapi_device**. | * The **hwupload** filter also requires a device to upload to, which needs to be defined before the filter graph is created which is done with **-vaapi_device**. | ||
* The **scale_vaapi=w=1920: | * The **scale_vaapi=w=1920: | ||
- | * Use **-vf ' | + | * Use **-vf ' |
- | * Use **-vf ' | + | * Use **-vf ' |
* See further below for other pixel formats.. | * See further below for other pixel formats.. | ||
* **-map 0:v** selects the Video streams from the inputs which will go into the output. | * **-map 0:v** selects the Video streams from the inputs which will go into the output. |
ffmpeg/encoding/gpu_encoding.1731662925.txt.gz · Last modified: 2024/11/15 09:28 by peter