Skip to content

vpakarinen/image-video-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

Python application to automate the image and video conversion.

Features

  • Command-Line Interface (CLI): Allows users to specify input/output directories and target formats.
  • Configuration Management: Easy-to-edit config.yaml configuration file to adjust settings.
  • Automatic Directory Monitoring: Watches a specific folder for new image or video files.
  • Extensible Architecture: Easily add support for additional formats in the future.
  • Robust Logging: Tracks conversion processes and errors.

Supported Formats

Image Formats

  • JPG/JPEG
  • PNG
  • BMP
  • WEBP
  • RAW

Video Formats

  • MP4
  • AVI
  • MKV
  • MOV
  • WebM

Technology Stack

  • Logging: Python's built-in logging module
  • Configuration Management: PyYAML
  • Programming Language: Python 3.x
  • Directory Monitoring: Watchdog
  • Video Processing: MoviePy
  • Image Processing: Pillow
  • CLI Parsing: Argparse

Installation

  1. Clone the Repository

    git clone https://github.com/vpakarinen/image-video-converter.git
    cd image-video-converter
  2. Create a Virtual Environment (Optional but Recommended)

    python3 -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  3. Install Dependencies

    pip install -r requirements.txt

Usage

1. Setup Folders

Ensure that the input and output directories exist in the project's root directory.

2. Run the Application

It's essential to run the application first before adding files to the input folder to ensure real-time detection.

Note: Running the application without any arguments will use the default settings specified in config/config.yaml.

3. Add Files for Conversion

With the application running, add your image or video files to the input directory.