equityposa.blogg.se

Python ffmpeg discord
Python ffmpeg discord













mp4 file, but it's not compatible with much at the moment.

  • Increased compatibility, decreased quality.
  • Currently, the following codecs are supported: The video codec can be selected by changing the environment variable in your docker run command, codec, to your desired codec. As long as the first six characters of your file's name aren't all numeric (basically, the first six characters in #1's name), you're good.
  • This clips and compresses the video from 00:00:20 to 00:01:45.
  • This clips and compresses the video from 00:00:20 to the end of the file.
  • You only need to change your "out" directory mount.

    python ffmpeg discord python ffmpeg discord

    This is where your resultant < 8MB video file will land.įor clipping and slicing video files, follow the guidlines for formatting your file name.Ī Batch file for Windows users is included in this repository for simple "drag and drop" functionality, as demonstrated below. 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.

    python ffmpeg discord

    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. 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.















    Python ffmpeg discord