The Media Processor package is a Python package designed to help you process both image and video files. This package includes two modules: video_processor
for working with video files and image_processor
for working with image files.
You can install this package using pip
:
pip install media-processor
from media_processor import video_processor, image_processor
# Video processing
main_directory = 'path/to/main/directory'
video_processor_instance = video_processor.VideoProcessor(main_directory)
video_processor_instance.process_videos()
# Image processing
photo_folder_name = 'Photos'
image_extensions = ('.png', '.jpg', '.jpeg', '.gif', '.bmp')
image_processor_instance = image_processor.ImageProcessor(main_directory, photo_folder_name, image_extensions)
image_processor_instance.process_images()
video_processor
: Contains classes and functions for video processing.
image_processor
: Contains classes and functions for image processing.
media_processor
├── __init__.py
├── image_processor.py
├── video_processor.py
This project is licensed under the MIT License - see the LICENSE file for details.
MIT License
===========
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”),