Installing ffmpeg using docker
Posted hanstar
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Installing ffmpeg using docker相关的知识,希望对你有一定的参考价值。
What is Docker?
Docker to run and manage apps side-by-side in isolated containers to get better compute density. Using containers, everything required to make a piece of software run is packaged into isolated containers. Unlike VMs, containers do not bundle a full operating system – only libraries and settings required to make the software work are needed. This makes for efficient, lightweight, self-contained systems and guarantees that software will always run the same, regardless of where it’s deployed.
- Recommended for VPS as it consumes very less server resources.
- This method is recommended for servers that use ffmpeg based application less frequently
Installation:
- Installing docker as a root user
$ wget -qO- https://get.docker.com/ | sh
The above command downloads and executes a small installation script written by the Docker team.
- Pull docker ffmpeg image
$ docker pull jrottenberg/ffmpeg
- Add AliasOnce the Docker Installation has been completed, add below line in ~/.bashrc file
$ alias ffmpeg=‘docker run -v=`pwd`:/tmp/workdir jrottenberg/ffmpeg‘
$ source ~/.bashrc
#To reload .bashrc - Verify installation
$ ffmpeg -buildconf
以上是关于Installing ffmpeg using docker的主要内容,如果未能解决你的问题,请参考以下文章
Installing IPython using pip on CentOS
Installing Oracle Database 18c Using RPM Packages
[Yarn] Use Yarn dlx to Execute Packages without Installing Them
[Typescript] Installing Promise Type Definitions Using the lib Built-In Types
Installing MySQL on Microsoft Windows Using a noinstall Zip Archive
mysql5.7 Installing MySQL on Microsoft Windows Using a noinstall Zip Archive(mysql解压版安装)