This Python script converts all .mov
video files from the input/
folder to .mp4
format in the output/
folder without any loss of quality, using ffmpeg
.
- π Batch conversion of
.mov
to.mp4
- π― No quality loss (streams are copied, not re-encoded)
- π οΈ Auto-creates
output/
directory if it doesnβt exist - π§Ύ Simple and clean structure
- Python 3.x
- FFmpeg (must be installed and available in system PATH)
sudo apt update
sudo apt install ffmpeg
brew install ffmpeg
Download from ffmpeg.org and add the bin/
folder to your systemβs PATH.
- Place all your
.mov
files inside theinput/
folder. - Run the script:
python convert.py
- Converted
.mp4
files will be available in theoutput/
folder.
project/
βββ convert.py
βββ input/
β βββ sample.mov
βββ output/
ffmpeg -i input.mov -c:v copy -c:a copy output.mp4
-c:v copy
: Copies the video stream as-is-c:a copy
: Copies the audio stream as-is
This avoids re-encoding, ensuring fast and lossless conversion.
- Add support for other formats (e.g.,
.avi
,.mkv
) - Integrate a progress bar using
tqdm
- Build a simple GUI using Tkinter or PyQt
This project is open-source and free to use. Contributions are welcome!