A collection of python files for some usefull ffmpeg conversions.
- Download the latest release and unpack it wherever you want.
- If you don't have FFmpeg already, download the lastest "static" ffmpeg pack. You can either put the ffmpeg executables in the repository's
ffmpeg
folder, or register ffmpeg's path to your operating system (recommended!).
Click to expand: How to register ffmpeg in Windows
-
Browse in the archive up to the
bin
subfolder containing ffmpeg, ffprobe and ffplay executables. Uncompress thebin
folder where you want. This guide will use:C:\ffmpeg\bin
-
Register ffmpeg, ffprobe & ffplay to environment variables
Through command line (fastest):
- Open the terminal (press X and click
Terminal
) - enter the following command:
setx PATH "%PATH%;C:\ffmpeg\bin"
Through user interface:
- Startmenu Search: "Edit Environment Variables for your account"
- Environment variables
- Under "User variables for <username>", find and double-click "Path"
- New
- Type in
C:\ffmpeg\bin
and ⏎ Enter - Ok
- Ok
- Ok
- Open the terminal (press X and click
Drag and drop your media file onto the .py file with the desired effect. Type in the desired framerate when asked, and press ⏎ Enter. Pressing ⏎ Enter without typing a framerate will result in the default 24 fps.
Same general usage, but:
- your picture file must be named
cover.jpg
and in the same folder as the source video.
Do check those links first:
FileName | Image Orientation | Pixel Length of Smallest Side |
---|---|---|
cover.jpg | Portrait or square | 600 |
small_cover.png | Portrait or square | 120 |
cover_land.png | Landscape | 600 |
small_cover_land.jpg | Landscape | 120 |