PlusMinus0 / headless-jd2-docker

Headless JDownloader 2 Docker Container
31 stars 38 forks source link

Include ffmpeg #11

Closed xduseko closed 6 years ago

xduseko commented 6 years ago

JDownloader requires ffmpeg to download videos from youtube. Can it be added into the image?

apt-get install ffmpeg
BoKKeR commented 6 years ago

It requires 128mb of space but I think this is vital to be able to use jd2 for all of its purposes.

xduseko commented 6 years ago

We have alpine based image now, so it would be probably something like

apk add --update ffmpeg

There can be multiple docker image versions with different tags, for example

PlusMinus0 commented 6 years ago

Maybe I'll maintain two versions if I find an elegant way to do so. For now I added it to the main Dockerfile. It should work now, please confirm.

bash-4.4# ffmpeg
ffmpeg version 3.4.4 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 6.4.0 (Alpine 6.4.0)
  configuration: --prefix=/usr --enable-avresample --enable-avfilter --enable-gnutls --enable-gpl --enable-libass --enable-libmp3lame --enable-librtmp --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 --enable-vaapi --enable-vdpau --enable-libopus --disable-debug
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...