Docker-FFmpeg-Nvenc is a repository that provides a Docker image for FFmpeg with NVIDIA NVENC support. It enables hardware-accelerated video encoding using NVIDIA GPUs and allows you to perform high-performance video transcoding tasks.
- Docker image with FFmpeg and NVIDIA NVENC integration.
- GPU-accelerated video encoding and transcoding.
- Support for a wide range of input and output video formats.
- Customizable parameters and encoding settings.
- Easy integration with existing Docker-based workflows.
To use Docker-FFmpeg-Nvenc, ensure that you have the following:
- A machine with an NVIDIA GPU that supports NVENC.
- Docker installed on the machine.
- NVIDIA Docker runtime installed (for GPU support).
To utilize Docker-FFmpeg-Nvenc, follow these steps:
- Pull the Docker-FFmpeg-Nvenc image from Docker Hub:
Copy code
docker pull allannava/docker-ffmpeg-nvenc:latest
- Run the Docker container with your desired FFmpeg command. For example:
Copy code
docker run --gpus all \
--volume /path/to/input:/data/input \
--volume /path/to/output:/data/output \
allannava/docker-ffmpeg-nvenc:latest \
ffmpeg -i /data/input/input.mp4 -c:v h264_nvenc -preset fast /data/output/output.mp4
Customize the input and output paths and the FFmpeg command as per your requirements. This example uses ffmpeg with the h264_nvenc codec to encode an input video (input.mp4) to an output video (output.mp4) using the "fast" preset.
- Monitor the video encoding process and retrieve the encoded video from the output directory.
For more detailed usage examples and additional information, please refer to the documentation.
Contributions to Docker-FFmpeg-Nvenc are welcome! If you have any suggestions, improvements, or bug fixes, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License.