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 to your operating system.
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 (in this example we'll useC:\ffmpeg\bin
-
Register ffmpeg, ffprobe & ffplay to environment variables
Through command lines:
-
Hit the windows key, write down
cmd
and press ⏎ Enter -
Enter the following command, line after line:
set ffmpeg=C:\ffmpeg\bin set ffprobe=C:\ffmpeg\bin set ffplay=C:\ffmpeg\bin
Through user interface:
Do the following:
My Computer
Environment variables
Add
Name: ffmpeg
Value: C:\ffmpeg\bin
Add
Name: ffprobe
Value: C:\ffmpeg\bin
Add
Name: ffplay
Value: C:\ffmpeg\bin
Ok
Ok
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 |