Skip to content

v0.1.2

Choose a tag to compare

@h4nz4 h4nz4 released this 22 Mar 17:08
· 2 commits to main since this release

Release Notes: Segmenta v0.1.2
🖼️ Integrated Video Previews (Thumbnailer)

Automatic Generation: Segmenta now automatically generates a high-quality .jpg preview sheet for every session after successful transcoding.
Optimized Grid: Defaults to a tall 3 x 9 grid with fixed 400px tile widths, designed for efficient scanning of long recordings.
Technical Headers: Previews include a comprehensive technical header containing file size, duration, exact resolution, bitrate, and audio channel metadata.
Timestamp Overlays: Each tile includes a precise white timestamp overlay with a black shadow for high visibility against any content.
Industry-Standard Performance:
Multithreaded Decoding: Enabled AUTO thread detection to utilize all CPU cores for HEVC decoding.
Fast Keyframe Sampling: Employs industry-standard "fast" sampling (nearest keyframe) for near-instant preview generation.
FFmpeg Scaling: Utilizes FFmpeg filter graphs (scale) to resize frames during the decoding process, significantly reducing memory and CPU overhead compared to Python-level resizing.
⚙️ CLI Logic & Workflow Refactor
Non-Interactive Deletion: Removed the interactive "Delete original processed .ts files?" prompt to streamline automated workflows.
New CLI Flags:
--delete-original: Explicitly opt-in to deleting source .ts segments after a successful run.
--no-thumbnail: Disable preview sheet generation if needed.
Reliability: The --keep-ts flag now takes absolute precedence, ensuring source files are preserved even if --delete-original is toggled.
📊 Enhanced Feedback
Dual Progress Tracking: Added a dedicated real-time ASCII progress bar for the thumbnail generation phase, separate from the main transcoding progress.
Expanded Summaries: The final run summary now explicitly lists the paths for both the output .mp4 and the companion _preview.jpg files.
🐛 Bug Fixes
Fixed a critical crash caused by module 'av' has no attribute 'AVError' appearing in certain environments.
Fixed a logic bug where preview sheets would sometimes contain 27 identical frames due to improper decoder buffer management.
📦 New Dependencies
av: High-performance video decoding.
pymediainfo: Comprehensive media metadata extraction.
Pillow: Image composition and text rendering.