Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
shaulfl authored and jrottenberg committed May 4, 2019
1 parent 84e067a commit a8abf6f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,13 @@ Thanks to [qmfrederik](https://github.com/qmfrederik) for the vaapi ubuntu based
#### Use nvidia hardware acceleration enabled build
Supports nvenc only on all ffmpeg versions, and hardware decoding and scaling on ffmpeg >= 4.0

- Install nvidia drivers on host machine.
- Install nvidia-docker (https://github.com/NVIDIA/nvidia-docker) on host machine.
- Run container using "--runtime=nvidia" flag and use supported ffmpegs hwaccel options (https://trac.ffmpeg.org/wiki/HWAccelIntro)
- Install nvidia latest drivers on host machine.
- Install [nvidia-docker](https://github.com/NVIDIA/nvidia-docker) on host machine.
- Run container using "--runtime=nvidia" flag and use supported [ffmpeg hwaccel options](https://trac.ffmpeg.org/wiki/HWAccelIntro)

Hardware encoding only:
`docker run --runtime=nvidia jrottenberg/ffmpeg:nvidia-3.4 -i INPUT -c:v h264_nvenc -preset slow OUTPUT`
Full hardware acceleration:
Hardware encoding only example:
`docker run --runtime=nvidia jrottenberg/ffmpeg:nvidia-2.8 -i INPUT -c:v nvenc_h264 -preset hq OUTPUT`
Full hardware acceleration example:
`docker run --runtime=nvidia jrottenberg/ffmpeg:nvidia-4.1 -hwaccel cuvid -c:v h264_cuvid -i INPUT -vf scale_npp=-1:720 -c:v h264_nvenc -preset slow OUTPUT`

See what's inside the beast
Expand Down

0 comments on commit a8abf6f

Please sign in to comment.