Staff VIDEO CONVERTER (Python)

Luckyy Vendetta

Administrator
Staff
Luckyy Rep
1
0
0
Rep
1
Luckyy Vouches
2
0
0
Vouches
2
Posts
315
Likes
29
5 YEARS
5 YEARS OF SERVICE
LEVEL 500 XP
===============================================
🎬 VIDEO CONVERTER - Created by Luckyy
===============================================

This Python script allows you to convert videos into GIF, MP4, WebM, AVI, MKV, MOV, FLV, WMV, and MPEG formats.
It works interactively — it auto-detects the video’s original settings and lets you press ENTER to keep defaults or type new values.

-----------------------------------------------
REQUIREMENTS
-----------------------------------------------
1. Install Python 3.8 or newer
https://www.python.org/downloads/

2. Install FFmpeg (must be in system PATH)
- Windows (Chocolatey): choco install ffmpeg
- Linux (Debian/Ubuntu): sudo apt install ffmpeg
- macOS (Homebrew): brew install ffmpeg

3. Save the script as: video.py

-----------------------------------------------
USAGE
-----------------------------------------------
Basic single file:
python video.py myvideo.mp4

Convert a whole folder:
python video.py /path/to/folder

-----------------------------------------------
INTERACTIVE OPTIONS
-----------------------------------------------
When you run it, the script will:
1. Display a banner: "Created by Luckyy" in green.
2. Ask which format you want:
gif/mp4/webm/avi/mkv/mov/flv/wmv/mpeg
3. Show detected FPS, width, and height.
4. Let you:
- Change FPS (frames per second)
- Change width and/or height
- Set trimming start/end times
- Add FFmpeg filters (optional)

5. Format-specific settings:
- GIF: Colors, Dither type, Loop count
- Video: CRF quality, Bitrate

6. Output file will be named automatically
with FPS and resolution in filename.

-----------------------------------------------
TIPS
-----------------------------------------------
- Press ENTER to keep the default/detected value.
- For folders, you can choose "Apply to all" to use the same settings for every file.
- Supports trimming and resizing without re-encoding audio unnecessarily.
- For GIFs, using fewer colors and a lower FPS will reduce file size.

-----------------------------------------------
EXAMPLES
-----------------------------------------------
Convert to GIF with defaults:
python video.py clip.mp4

Convert to MP4 at 30 FPS and 720p:
python video.py clip.mov
(When prompted, choose mp4, set FPS=30, Width=1280, Height=720)

Convert an entire folder to WebM:
python video.py ./videos
(When prompted, choose webm, press ENTER for all defaults)

-----------------------------------------------
NOTES
-----------------------------------------------
- Large files may take longer to process.
- GIF format is less efficient than video; use MP4/WebM for better compression.
- Requires FFmpeg installed and working in your PATH.

Screenshot From 2025-08-13 17-39-00.png
You must reply before you can see the hidden data contained here.
 

99

373

461

17

Top