

This command mounts the video file to an "in" directory in the container, and also mounts an "out" directory to the container's encoding output directory. An example command looks like this:ĭocker run -rm -v D:\shadowplay\video.mp4:/usr/app/in/video.mp4 -e codec=vp9 -v D:\shadowplay\out:/usr/app/out/ zachfleeman/ffmpeg4discord:latest The container spins up and executes a Python script that formats an ffmpeg command for clip encoding. My personal goal for this software was to reduce the amount of time it takes to go from shouting, "CLIP IT," to actually sharing that clip with my friends on Discord. Usage: ffmpeg -i infile].This repo hosts a Dockerfile and other various scripts that are useful for converting large video files down to less than 8MB, which is the file size limit for Discord.


Ffmpeg version N-102166-g1ab74bc193 Copyright (c) 2000-2021 the FFmpeg developersĬonfiguration: -prefix=/ffbuild/prefix -pkg-config-flags=-static -pkg-config=pkg-config -cross-prefix=x86_64-w64-mingw32-arch=x86_64 -target-os=mingw32 -enable-gpl -enable-version3 -disable-debug -disable-w32threads -enable-pthreads -enable-iconv -enable-libxml2 -enable-zlib -enable-libfreetype -enable-libfribidi -enable-gmp -enable-lzma -enable-fontconfig -enable-libvorbis -enable-opencl -enable-libvmaf -enable-vulkan -enable-amf -enable-libaom -enable-avisynth -enable-libdav1d -enable-libdavs2 -enable-ffnvcodec -enable-cuda-llvm -enable-libglslang -enable-libgme -enable-libass -enable-libbluray -enable-libmp3lame -enable-libopus -enable-libtheora -enable-libvpx -enable-libwebp -enable-lv2 -enable-libmfx -enable-libopencore-amrnb -enable-libopencore-amrwb -enable-libopenjpeg -enable-librav1e -enable-librubberband -enable-schannel -enable-sdl2 -enable-libsoxr -enable-libsrt -enable-libsvtav1 -enable-libtwolame -enable-libuavs3d -enable-libvidstab -enable-libx264 -enable-libx265 -enable-libxavs2 -enable-libxvid -enable-libzimg -extra-cflags=-DLIBTWOLAME_STATIC -extra-cxxflags= -extra-ldflags=-pthread -extra-libs=-lgomp
