[go: up one dir, main page]

Skip to content

A collection of python files for some usefull ffmpeg conversions.

License

Notifications You must be signed in to change notification settings

L0Lock/FFmpeg-py-collection

Repository files navigation

FFmpeg-py-collection

GitHub license ko-fi

A collection of python files for some usefull ffmpeg conversions.

Installation

  • 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 the bin 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 Windows keyX 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

How to use

General usage

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.

Adding Cover

Same general usage, but:

  • your picture file must be named cover.jpg and in the same folder as the source video.

demo covers

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