Features & Bugs Fixes
Pre-releaseRotation:
Added support for rotating videos by arbitrary angles.
Automatic calculation of the new resolution after rotation to prevent cropped corners.
Cropping:
Cropping functionality now utilizes the final resolution after rotation.
Automatic calculation of height based on the aspect ratio (crop_aspect_ratio).
Quality Improvements:
Enhanced video quality by optimizing encoding parameters (crf and preset).
Default pixel format set to yuv420p to avoid image artifacts.
Stability & Performance:
RTSP transport mode set to TCP (rtsp_transport='tcp') by default for improved stream stability.
Added timeout and delay parameters to minimize connection issues.
Color Support:
Support for RGB color values added in drawbox and drawtext filters.
Automatic conversion of RGB values into hexadecimal format integrated for the drawbox filter.
Automatic escaping of RGB colors in drawtext filters to ensure FFmpeg compatibility.
Text and Special Characters:
Issues with special characters (e.g., °) resolved by explicitly encoding Unicode characters: custom_text_middle = "10.8 \u00B0C".encode('utf-8').decode('unicode_escape').
Bug Fixes
Fixed artifacts (white image disturbances) by adjusting encoding settings and pixel format.
Fixed an error occurring when passing RGB values to FFmpeg.
Encoding issues with German umlauts resolved.