- Added `scripts/library/venv_utils.py`:
- Utilities for creating, activating, and managing Python virtual environments.
- Supports automatic requirement installation and optional --verbose mode.
- Added `scripts/change_case.py`:
- CLI script to recursively rename files and directories based on case transformation (lower, upper, capitalize).
- Supports --recursive and --case flags, and integrates with `venv_utils.py`.
- Updated README with usage instructions and documentation for new components.
- Added shorthand options for common arguments:
- `-t` for --track
- `-f` for --file
- `-d` for --dir
- Simplified command-line usage for managing audio and subtitle tracks in video files.
- Implement functionality to remove, keep, or remove all subtitle tracks.
- Supports processing single video files or entire directories.
- Includes options for managing subtitle tracks by index.
- Refactored audio processing logic to handle both 'remove' and 'keep' commands.
- Added a command-line argument to specify whether to remove a specific audio track or keep only a selected audio track while preserving other streams.
- Improved handling of video file processing in directories with recursive function.
- Streamlined error handling for more informative output during ffmpeg execution.
- Updated argument parsing with command options and enhanced autocomplete support.
- Adds `video_autoreduce_rename.py`, a companion script to rename video files and directories containing resolution tags.
- Automatically replaces higher resolution tags (e.g., 2160p, 1080p) with a specified max height (default: 720p).
- Supports debug mode for detailed output.
- Prevents overwriting existing files by skipping conflicts.
- Complements `video_autoreduce.py` for a streamlined video processing workflow.
Added `video_autoreduce.py`, a Python script that scans directories for video files exceeding a specified resolution and prepares them for automatic resolution reduction using FFmpeg.
- Detects video files in a given directory.
- Determines their resolution using `ffprobe`.
- Identifies videos exceeding a maximum height threshold.
- Supports subtitle codec validation and ensures proper output handling.
- Includes utility functions for file management and logging.
This script will help streamline batch video processing while preserving essential metadata and subtitles.
- Published a Python script that removes specified audio tracks from video files.
- Supports individual files and recursive directory processing.
- Added argument parsing with options for specifying audio track, file, and directory.
- Implemented color-coded output for clearer feedback.
- Integrated argcomplete for command-line autocompletion.