Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Here’s a changelog based on the comparison between the old and new versions of the script:
- ### Ziggle Wump Media Compressor Changelog
- **Version: 0.2-beta**
- #### New Features:
- 1. **Audio Conversion Support**:
- - Added the ability to process common audio file formats (e.g., `mp3`, `wav`, `flac`, `aac`, `ogg`, `m4a`).
- - Audio files are now converted to `.opus` format with default FFmpeg settings using `libopus` codec.
- 2. **Improved Video Conversion**:
- - Enhanced video encoding options by adding a default FFmpeg command for video processing. Now, all video files are converted to `.mkv` format using the `libx265` video codec and `libopus` for audio.
- - The new FFmpeg command also applies video filters for downscaling and frame rate adjustments while preserving video quality.
- 3. **Custom FFmpeg Command-line Options**:
- - Users can override default video encoding options via the `-f` flag to customize FFmpeg settings. This allows more control over the conversion process, such as specifying codecs and audio formats.
- 4. **Automatic Log Handling**:
- - Improved logging functionality by creating a log file at the start of every run. The script checks if a log file exists and deletes any old log files to ensure a fresh log is generated.
- - Added error detection by checking the log file for a "Killed" message, indicating when a process fails or gets terminated.
- 5. **Directory Structure Preservation**:
- - The script maintains the original directory structure when saving converted audio and video files in the output folder (`/storage/shared/Movies/VideoConverted`).
- 6. **Battery Saving Warning**:
- - Added a warning message about phone battery saving features (e.g., Galaxy S24), advising users to keep Termux in focus and the screen on during encoding to avoid incomplete files.
- #### Improvements:
- 1. **User Prompts**:
- - The script now prompts the user to continue or quit before starting the encoding process, allowing them to review the files detected and decide whether to proceed.
- 2. **Directory Setup**:
- - Automatically creates necessary directories (`VideoDrop`, `VideoProcessing`, and `VideoConverted`) if they don’t already exist, simplifying setup and execution.
- 3. **Custom Resolution Scaling**:
- - The script allows users to specify a custom resolution for video conversion using the `-r` flag. It ensures that the aspect ratio is preserved when downscaling video files.
- 4. **Log-friendly Outputs**:
- - Outputs important progress information and file paths to both the terminal and log file, making it easier to track the conversion process.
- #### Bug Fixes:
- 1. **Handling Spaces in File Paths**:
- - Fixed an issue where the script previously failed to handle file paths with spaces, ensuring smooth processing of files in folders with such names.
- #### Notes:
- - If the FFmpeg process is killed or fails, the script logs an error message and exits gracefully.
- - The user can pass custom FFmpeg options to fine-tune encoding settings as needed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement