Skip to content

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.

Notifications You must be signed in to change notification settings

mukeshxmarco/video-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸŽ₯ MOV to MP4 Converter (Lossless)

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.


✨ Features

  • πŸ” 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

πŸ”§ Requirements

  • Python 3.x
  • FFmpeg (must be installed and available in system PATH)

βœ… Install FFmpeg

On Ubuntu/Debian:

sudo apt update
sudo apt install ffmpeg

On macOS (using Homebrew):

brew install ffmpeg

On Windows:

Download from ffmpeg.org and add the bin/ folder to your system’s PATH.


πŸš€ How to Use

  1. Place all your .mov files inside the input/ folder.
  2. Run the script:
    python convert.py
  3. Converted .mp4 files will be available in the output/ folder.

πŸ“‚ Project Structure

project/
β”œβ”€β”€ convert.py
β”œβ”€β”€ input/
β”‚   └── sample.mov
β”œβ”€β”€ output/

🧠 How It Works

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.


πŸ’‘ Suggestions for Improvement

  • Add support for other formats (e.g., .avi, .mkv)
  • Integrate a progress bar using tqdm
  • Build a simple GUI using Tkinter or PyQt

πŸ“„ License

This project is open-source and free to use. Contributions are welcome!

video-converter

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages