This plugin provides an ABR (adaptive bitrate) transcoder, that accepts an h.264 video and outputs multiple variants of it with different qualities. The transcoder supports two backends: Nvidia and Xilinx. Using the Nvidia backend is recommended, as it has proven to be more stable.
Depending on the backend you choose, the transcoder requires Nvidia or Xilinx drivers to work. Here's how to set up the Nvidia driver and use the plugin in Docker on a Debian host:
$ scripts/install_docker.sh # installs Docker
$ scripts/setup_nvidia.sh # installs Nvidia drivers and Nvidia Container Toolkit
$ scripts/build_nvidia.sh # builds the Docker image
$ scripts/run_nvidia.sh # runs the Docker container
In the container, you can run an example pipeline with elixir example.exs
.
Once you have the environment set up, you should add the transcoder to dependencies:
{:membrane_abr_transcoder_plugin, "~> 0.1.0"}
The example.exs
script shows how to transcode a video file to multiple resolutions. To run it, type elixir example.exs
.
This plugin is sponsored by VStream.
Copyright 2020, Software Mansion
Licensed under the Apache License, Version 2.0