This commit is contained in:
ale 2022-03-15 00:24:38 +01:00
parent 06134ed0f1
commit 6429b5a003

View File

@ -31,13 +31,13 @@ Use `ffmpeg` with `docker` and `nvidia` powers to transcode in Debian 11 Bullsey
cuda
vaapi
## Sample decode using CUDA:
## Sample using CUDA for encoding:
$ docker-compose run --rm --entrypoint /ffmpeg nvidia-ffmpeg -hwaccel cuda -i /folder/input /folder/output
$ docker-compose run --rm --entrypoint /ffmpeg nvidia-ffmpeg -vsync 0 -i /folder/input -c:a copy -c:v h264_nvenc /folder/output
## Full hardware transcode with NVDEC and NVENC:
$ docker-compose run --rm --entrypoint /ffmpeg nvidia-ffmpeg -hwaccel cuda -hwaccel_output_format nvdec -i /folder/input -c:v h264_nvenc /folder/output
$ docker-compose run --rm --entrypoint /ffmpeg nvidia-ffmpeg -vsync 0 -hwaccel nvdec -hwaccel_output_format cuda -extra_hw_frames 10 -i /folder/input -c:a copy -c:v h264_nvenc /folder/output
## Shutdown