Downloads · 30 days
0
salman555/Video-converter
Video-converter is a machine learning model from salman555. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as other.
Downloads · 30 days
0
Access
Public
Updated Aug 10, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py13.5 KB · 63%
From the Hugging Face model README
A lightweight Gradio web app to convert video ⇄ video and video/audio ⇄ audio locally using FFmpeg. Upload a file, pick a target format, watch the progress pop-up, then download the result—fast and simple.
Many Formats, One Click
mp4, avi, flv, mov, wmv, mkv, webmmp3, wav, flac, ogg, m4a, aac, wmaSmart Targeting Input format is automatically hidden from the target list; defaults to mp4 (video) or mp3 (audio).
Language Switcher (🇮🇩 / 🇺🇸) Toggle Indonesian/English texts on the fly.
Progress Pop-up & UI Lock A “Converting… please wait.” modal appears, and all controls are disabled until the job is done.
One-click Download A green Download result button appears once conversion finishes.
CPU-friendly Optimized defaults for 2 vCPU (e.g., Hugging Face Spaces), with Gradio queue limits pre-tuned.
Local / Offline Runs entirely on your machine/Space; no third-party upload.
videoconverter/
├── videoconverter.py # Gradio app (ID/EN, progress modal, downloader)
├── requirements.txt # Python deps (e.g., gradio)
├── apt.txt # System deps for Spaces (ffmpeg)
├── LICENSE # "All Rights Reserved"
├── README.md
└── .gitignore
Note: The app expects
ffmpegto be available on the system (also installs viaapt.txton Spaces).
ffmpeg and ffprobe)git & a terminalInstall FFmpeg locally:
Ubuntu/Debian
sudo apt update && sudo apt install -y ffmpeg
macOS (Homebrew)
brew install ffmpeg
Windows (winget)
winget install Gyan.FFmpeg
git clone https://github.com/salmanalfarisi11/video-converter.git
cd video-converter
python -m venv .venv
# Linux/macOS
source .venv/bin/activate
# Windows
.venv\Scripts\activate
pip install -r requirements.txt
Start the app:
python videoconverter.py
share=True in demo.launch(...).CRF H.264 (lower = better quality)
Ultra fast preset (ultrafast)
-preset ultrafast for libx264 to speed up CPU encoding at the cost of larger files.Create a New Space → Gradio → (Public or Private).
Upload these files:
videoconverter.py
requirements.txt (e.g., gradio==5.32.1)
apt.txt with:
ffmpeg
README.md, LICENSE, .gitignore (optional but recommended)
In README.md, you can add HF metadata front-matter (optional):
---
title: Free Video Converter
emoji: 🎬
colorFrom: indigo
colorTo: purple
sdk: gradio
sdk_version: 5.32.1
app_file: videoconverter.py
license: other # proprietary
pinned: false
---
The Space will build and run automatically.
“FFmpeg not found”
Ensure ffmpeg is installed and on your PATH (ffmpeg -version). On Spaces, keep ffmpeg inside apt.txt.
Conversion is slow
Out of storage (Spaces with small disks)
Bug reports, suggestions, or PRs are welcome (even though the code is proprietary, you can propose changes via issues/patches if the repo is public).
All Rights Reserved — see LICENSE. You may not copy, modify, redistribute, or use this software without explicit permission from the copyright holder.
Developed by Salman Alfarisi © 2025
Built with ❤️ using Gradio and FFmpeg. If this project helps you, please ⭐ the repo!