docker run prooma/ffmpeg
docker run -it \
--mount src="$(pwd)",target=/workdir,type=bind \
prooma/ffmpeg
docker run -it \
--entrypoint=sh \
--mount src="$(pwd)",target=/workdir,type=bind \
prooma/ffmpeg
docker run -it \
--mount src="$(pwd)",target=/workdir,type=bind \
prooma/ffmpeg \
<your> <cli> <parameters> <for> <ffmpeg>
docker run -it \
--mount src="$(pwd)",target=/workdir,type=bind \
prooma/ffmpeg \
-pattern_type glob -i '*.JPG' -vcodec mpeg4 myVideo.mp4
( Source: https://medium.com/coconut-stories/using-ffmpeg-with-docker-94523547f35c )
Create an alias by adding the following line at the end of ~/.bashrc or ~/.zshrc file:
alias ffmpeg='docker run -it --mount src=`pwd`,target=/workdir,type=bind prooma/ffmpeg'
Now ffmpeg can be used like it’s installed on your computer:
$ ffmpeg -version
ffmpeg version 4.2.1 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 9.2.0 (Alpine 9.2.0)
configuration: --prefix=/usr --enable-avresample --enable-avfilter --enable-gnutls --enable-gpl --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libx265 --enable-libtheora --enable-libv4l2 --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-libxcb --disable-stripping --disable-static --disable-librtmp --enable-vaapi --enable-vdpau --enable-libopus --disable-debug
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
FROM alpine:3.11
LABEL maintainer="Prooma"
RUN apk --no-cache add \
ffmpeg
WORKDIR /workdir
ENTRYPOINT ["ffmpeg"]
Content type
Image
Digest
Size
22.8 MB
Last updated
almost 7 years ago
docker pull prooma/ffmpeg