Changelogs

Project
GlyphMotion

Commit Chronology & Release Engineering v1.0 → v4.5

Project Age Calculating...
Tracked Updates 48 Core Commits + v4.5
Last Updated Calculating...
Flagship v4.5
Shitij Halder Shitij Halder Author High-Throughput Engine
Fri Nov 20, 2026 • 22:28:11 IST
Release Class
5-Stage Async Engine
Inference Mode
Batch-8 FP16 + TrackTrack
End-to-End Gain
2.8× – 4.0× Faster
UI & Transport
Liquid Glass + 128MB HTTP
v4.5 Architectural Overhaul

feat(v4.5): 5-stage async Batch-8 FP16 tracking engine, 4K CUDA pipeline, 128 MB Drive streaming & changelog overhaul

v4.5 unlocks massive multi-core CPU, RTX Tensor Core, and I/O parallelism across every stage of GlyphMotion without altering core UnifiedMode, PID, or HFDR perceptual algorithms—boosting 1080p throughput from 22.90 to 90.92 FPS (3.97×) and 3440×1440 throughput from 18.58 to 51.55 FPS (2.77×) while raising VMAF to 98.43 / 99.95.

Beyond tracking, v4.5 cuts 4K VMAF/SSIM/PSNR evaluation from ~50 minutes down to ~4.2 minutes (~12×), upgrades YouTube 4K extraction with Deno EJS challenge solving and CUDA NVENC pre-transcoding (16.8×–23.9× RT), replaces 5 MB Drive chunks with persistent 128 MB streaming PUTs, and ships the cross-device Apple Liquid Glass UI.

Architectural delta snapshot
  • Before: serial FP32 batch=1 tracking + CPU optical flow (37.4 ms/f), full-frame ROI copies, two-pass audio muxing.
  • Now: 5-stage async Batch-8 FP16 + TrackTrack-Fast (~10.7–11.8 ms/f), ROI-slice HFDR (~0.38 ms), 1-pass inline mux.
  • Before: 1-thread libvmaf with 30 FPS upsampling (~50 min at 4K) & 5 MB Drive upload chunks.
  • Now: 16-thread libvmaf overlapped with 128 MB persistent HTTP Drive uploads (~4.2 min at 4K).
1080p Throughput
90.92 FPS
Up from 22.90 FPS (3.97× faster)
3440×1440 Speed
51.55 FPS
Up from 18.58 FPS (2.77× faster)
Perceptual Peak
VMAF 99.95
SSIM 0.9489 + 57.5% fewer ID switches
4K Benchmark Time
~12× Faster
~48–55 min cut to ~4.2 min (16t libvmaf)
v4.0 Engine Baseline
1080p FPS
22.90
3.5K FPS
18.58
Inf Lat
37.4ms
VMAF
99.68
v4.5 5-Stage Pipeline
1080p FPS
90.92
3.5K FPS
51.55
Inf Lat
10.7ms
VMAF
99.95

Files touched (5 files, +1567 / -758)

  • ot.py — +596 / -323 (5-stage async Batch-8 FP16 + TrackTrack-Fast, ROI HFDR, zero-copy memoryview & inline NVENC p4)
  • tg.py — +566 / -256 (CUDA NVDEC→NVENC transcode, Deno EJS YT-DLP & concurrent upload/benchmark)
  • gh.py — +324 / -59 (Persistent requests.Session 128 MB streaming upload + 32 MB fallback)
  • index.html — +37 / -101 (Cross-device Apple Liquid Glass UI & Drive fullscreen player)
  • requirements.txt — +44 / -19 (Updated PyTorch cu128, ultralytics, boxmot & POT dependencies)

Note: local production_benchmark.py (907 lines, 16-thread libvmaf) and tests/test_tracking_pipeline.py (214 lines, 11/11 checks) remain excluded from this public push.

View Commit d7c1652

v4.5 Pipeline Architecture & Subsystem Breakdown

Batch-8 FP16 Predict Decoupled TrackTrack-Fast Zero-Copy NVDEC/NVENC 128 MB HTTP Streaming 16-Thread libvmaf (~12×) Liquid Glass + 11/11 Tests

5-Stage Parallel Execution Topology

Reader (INTER_LINEAR)
→
GPU Batch-8 FP16
→
TrackTrack-Fast Thread
ROI-Slice HFDR Render
→
Zero-Copy NVENC p4 + Audio
→
128MB Upload ∥ 16t VMAF

Architecture comparison (v4.0 Engine vs v4.5 Overhaul)

Subsystem v4.0 Baseline v4.5 Overhaul
YOLO Inference Serial FP32 batch=1 model.track() (37.4 ms/f) Greedy Batch-8 FP16 Tensor Core predict() (~10.7 ms/f)
Motion & Tracking Blocking per-frame CPU optical flow GMC (~16 ms/f) Decoupled TrackTrack-Fast worker (gmc_method=none, -57.5% ID switches)
ROI & Frame Pipe INTER_AREA stall, full-frame HFDR copies, 25 MB .tobytes() INTER_LINEAR resize, cv2.boundingRect ROI slice (~27×), zero-copy memoryview
Audio & Encode Silent video pass + separate two-pass audio mux Inline single-pass NVENC p4 + AAC mux with stall guard (120s)
4K YT Ingestion Standard yt-dlp + CPU software libx264 transcode Deno EJS + zero-copy NVDEC→NVENC CQ 16 p2 (16.8×–23.9× RT)
Cloud Transport 5 MB googleapiclient Drive PUT chunks Persistent requests.Session 128 MB PUT (_ChunkStreamReader) + 32 MB fallback
Quality Benchmark 1-thread libvmaf @ 30 FPS (~48–55 min at 4K) 16-thread libvmaf, adaptive n_subsample=1..6, overlapped w/ upload (~4.2 min)

Batched GPU Inference + Decoupled Tracker

Replaced single-frame model.track() with greedy Batch-8 FP16 Tensor Core inference (INFER_BATCH_SIZE=8) followed by an independent TrackTrack-Fast worker (gmc_method=none), skipping 16 ms/frame CPU optical-flow stalls while preserving exact TrackTrack thresholds and cutting ID switches up to 57.5%.

ROI-Cropped HFDR, Zero-Copy Pipes & Inline Mux

Eliminated 17.7 ms INTER_AREA reader contention, added explicit (9,9) HFDR blur kernels, cropped apply_roi_hfdr() strictly to cv2.boundingRect(roi_mask) (~27× faster, ~0.38 ms), wrote via zero-copy memoryview(np.ascontiguousarray(out_buf)), and muxed audio inline in one NVENC p4 pass.

128 MB Drive Streaming & 4K CUDA Transcoding

Replaced 5 MB Drive uploads in gh.py with persistent requests.Session 128 MB fixed-Content-Length streaming (_ChunkStreamReader, 256 KiB aligned) plus 32 MB fallback. Upgraded tg.py YouTube 4K ingestion with Deno EJS extraction and zero-copy CUDA NVDEC→NVENC transcoding (CQ 16 p2, 16.8×–23.9× RT).

Adaptive Quality Matrix & Upload Overlap

Added _choose_quality_eval_params() in production_benchmark.py selecting up to 32 threads (16t default on i5-13450HX) and duration/resolution-aware n_subsample (1 for ≤45s, 2 for >120s, 3 for 1080p >60s, 6 for 2K/4K, <0.15 VMAF delta), overlapping computation with Drive upload via precomputed_quality.

Cross-Device Apple Liquid Glass & Drive Player

Polished index.html (+37/-101) with unified frosted Liquid Glass card/modal depth, responsive mobile dock ergonomics, and resolved fullscreen preview player glitches for streamed Google Drive outputs across desktop and mobile viewports.

Hardened Pipeline & NVENC Regression Suite

Added tests/test_tracking_pipeline.py (214 lines, 11/11 passing): TrackerPipelineTests (all frames flushed, short-audio sync, 120s stall kill, downscaled inference), ProgressReportingTests (monotone 96% finalize lock), NvencProbeTests (256×256 probe), and CUDA startup checks.

5-Stage Async Thread Lifecycle & Backpressure Guards

1
Decode & Resize Queue (FRAME_QUEUE_SIZE=16): reader pushes raw 1080p/3.5K/4K frames plus fast INTER_LINEAR inference frames while honoring portrait/landscape compute_processing_dimensions().
2
Greedy GPU Batch-8 FP16 Stage: drains up to 8 queued frames per Tensor Core forward pass, eliminating per-frame Python/CUDA launch gaps while keeping latency down to ~10.7–11.8 ms/frame.
3
TrackTrack-Fast Association & Scene Delta: runs decoupled Kalman/IoU tracking with gmc_method=none and 320×180 grayscale scene motion analysis for UnifiedMode gating.
4
ROI-Slice HFDR Renderer (RENDER_QUEUE_SIZE=16): computes localized sharpening and unsharp detail reinjection strictly inside cv2.boundingRect(roi_mask) (~0.38 ms vs ~10.4 ms full-frame).
5
Zero-Copy NVENC p4 Writer & Concurrent Post-Pipeline: streams contiguous buffers via memoryview with background drain_ffmpeg_stderr() deadlock protection, then launches 128 MB Drive upload in parallel with 16t VMAF/SSIM evaluation.
v4.5 Verified Validation Environment
  • Host & OS: Dell G15 5530 (Ubuntu 24.04 Linux), NVIDIA RTX 3050 6 GB Laptop GPU (Ampere, SM 8.6 FP16 Tensor Cores) + 7th Gen NVENC / 5th Gen NVDEC.
  • CPU & Memory: Intel Core i5-13450HX (10C/16T) driving 16-thread libvmaf evaluation & 5-stage async Python worker queues with 16 GB DDR5-4800 RAM.
  • Verification Matrix: 1080p & 3440×1440 Ultrawide real-world runs, 4K YouTube CUDA transcode runs, and 11/11 automated unit/integration tests (tests/test_tracking_pipeline.py).

v4.5 Architectural Verdict: Eliminates serial GPU/CPU/I/O bottlenecks end-to-end—delivering 2.8×–4.0× real tracking throughput and ~12× faster 4K benchmarking without degrading perceptual fidelity or inflating bitrate.

Pipeline Speedup

3.97× faster at 1080p (90.92 FPS) & 2.77× faster at 3440×1440 (51.55 FPS) via Batch-8 FP16 + async workers.

4K Ingestion & VMAF

16.8×–23.9× RT CUDA transcode, 128 MB HTTP PUTs, and ~4.2 min 4K libvmaf overlapped with upload.

Fidelity & Stability

VMAF 99.95 / SSIM 0.9489 peak, up to 57.5% fewer ID switches, and 11/11 pipeline safety checks passing.

Fri Nov 20, 2026 • 11:29:54 IST
Mobile & Player UX

Hero Header Redesign, Liquid Glass Dock, Zero-Lag Mobile Scroll & Custom Fullscreen Drive Player

Why it matters: mobile scrolling becomes buttery smooth by dropping costly live backdrop blurs on touch devices, while Google Drive embeds finally scale crisply with compact controls in both inline and custom fullscreen modes.

Header & compact nav: redesigned the atmospheric radial hero glow, horizon rule, and single-row compact mobile navigation shell while keeping Press Start 2P intact.

Mobile compositor speed: replaced heavy backdrop-blur and mask-composite rims on touch devices with zero-cost translucent gradients, RAF-throttled scroll depth, and visibility-hidden modals.

Drive player scaling: fixed iframe zoom/centering via a 1080×608 virtual viewport and replaced native iframe fullscreen with an amber liquid glass wrapper fullscreen button.

View Commit 7fba9ae

Hero Header & Navigation Shell

Reworked the status strip (#serverStatus and #benchmarkModePill) into compact glass capsules, unified the desktop nav rail with a sliding pill, and arranged mobile Play/Docs/Updates/About pills into one clean row.

Mobile GPU Scroll Optimization

Disabled fixed scanlines/meshes on mobile, stopped infinite placeholder animations, switched closed modals from opacity-only to visibility:hidden, and guarded DOM writes in dock status polling.

Google Drive 1080p Virtual Scaling

Engineered a 1080×608 virtual viewport wrapper transform so Google Drive control bars stay compact and edge-aligned inline and inside a custom wrapper-based fullscreen mode with an amber liquid glass toggle.

CSS & Inline Script Cleanup

Replaced unsupported plain-style @apply rules in .btn-custom-primary and .btn-danger with standard CSS, removed an orphaned hero gradient rule, and added copyable commit blocks in Info modals.

Files touched (1 file, +633 / -66)

  • index.html - +633 / -66
Fri Nov 20, 2026 • 10:59:19 IST
Backend Path Hardening

BASE_DIR Runtime Anchoring, Collision-Free Upload Staging & Multipart Form Parser

Why it matters: eliminates working-directory FileNotFoundError crashes, concurrent filename overwrites across queued jobs, and cgi.FieldStorage crashes during chunked upload and ROI preview requests.

Directory resilience: anchored input, output, preview_temp, chunk_uploads, tracking, and JSON state files to BASE_DIR with recreate-on-write guards.

Collision-free staging: added build_unique_input_path(), reused pre-staged uploads, streamed payloads via shutil.copyfileobj(), and cleaned up orphaned files on schedule failure.

Multipart & preview safety: extracted parse_multipart_form() to return structured 400 errors on missing boundaries and fixed cgi.FieldStorage boolean coercion TypeErrors.

View Commit 340a7e9

BASE_DIR Anchored Storage

Pinned cwd=BASE_DIR and absolute binary/script paths when invoking ot.py, yt-dlp, vault_server.py, and update_recon_index_scores(), ensuring clean execution regardless of launch directory.

Streamed Zero-RAM Upload Staging

Stopped reading entire uploaded multi-hundred-MB videos into RAM before saving to disk; uploads now stream incrementally via shutil.copyfileobj() into unique collision-safe input paths.

Multipart Header & Preview Validation

Centralized multipart parsing across /upload_chunk, /process_web_video, and /get_video_preview so malformed Content-Length/boundary payloads return clean 400 JSON diagnostics.

FieldStorage Truthiness Fix

Replaced direct boolean checks on cgi.FieldStorage fields inside /get_video_preview with explicit `is None` comparisons, fixing Python 3.12+ TypeErrors.

Files touched (1 file, +141 / -89)

  • tg.py - +141 / -89
Fri Nov 20, 2026 • 00:45:54 IST
UI Overhaul

Cross-Device Apple Liquid Glass Interface Overhaul & Modal/Dock Architecture Rewrite

Why it matters: establishes a cohesive smoked-obsidian Liquid Glass design language across desktop, tablet, and mobile while fixing DOM structural nesting bugs, tooltip clipping, and overlay z-index stacking.

Liquid Glass CSS system: introduced Section 23 frosted glass surfaces, directional specular rims, spring/press easing tokens, pointer-tracked reflections, and reduced-motion fallbacks.

Command dock & ROI: rebuilt #bottomInputBar into a reactive obsidian glass command island with #barLiquidProgress sweep, dual-tone inline SVGs, and clean #barRoiExpand drawer.

DOM & z-index integrity: closed unclosed wrapper divs so modals mount directly under <body> with strict stacking (#infoModal < #centralMessageOverlay < #confirmationModal).

View Commit 06c1f84

Specular Surfaces & Hero Polish

Made #mainContentCard transparent over ambient radial glows, added pointer-tracked gold sheen on the retro title, and unified video cards and play capsules with staggered entrances.

Floating Dock & Card Action Pills

Replaced broken @apply buttons with semantic Liquid Glass pills (.btn-action-download, .btn-action-glass, .btn-action-danger) using Apple-style share icons and mobile-safe layouts.

Responsive Nav & Admin Drawer

Built the #desktopNavRail sliding highlight pill, compact 4-column mobile quick-link bar, and frosted admin/password reset drawers preserving all eye-toggle hooks.

Tooltip & Event Target Bug Fixes

Eliminated parent transform capture causing collapsed mobile tooltips, added viewport clamping on desktop popovers, and migrated event.target.dataset to event.currentTarget.dataset.

Files touched (1 file, +4960 / -1148)

  • index.html - +4960 / -1148
Thu Nov 19, 2026 • 19:53:59 IST
4K Performance

3× Faster 4K Portrait Tracking (Full-Res HFDR Decoupling) & Startup System Check

Why it matters: decoupling detection downscaling from output pixels prevents portrait 4K videos from losing detail or wasting 3× compute, tripling throughput from 5.11 to 15.39 FPS at VMAF 99.965.

Full-res pixel preservation: runs YOLO on bounded tracking resolution while extracting/applying HFDR and bounding overlays directly onto untouched original_frame pixels.

Long-edge portrait scaling: compute_processing_dimensions() caps max(width, height) at 1920 so 2160×3840 scales cleanly to 1080×1920 instead of 1920×3412.

Startup health check: tg.py now verifies CUDA tensors, FFmpeg/libvmaf, NVENC H.264/HEVC (256×256), pynvml, and core assets before accepting jobs.

View Commit 0ac0feb

Decoupled Resolution Pipeline

Removed full-frame INTER_CUBIC upscaling on every processed frame (kept strictly as fallback), preserving crisp native 4K backgrounds with scaled overlay coordinates.

Fast pynvml Telemetry (~0.02 ms)

Throttled system polling to 1.0s intervals and prioritized C-level pynvml over slow per-frame GPUtil subprocess calls, paired with cv2.copyTo in apply_roi_hfdr.

Upfront Boot Verification

Added _run_startup_system_check() in tg.py covering Python deps, libmediainfo, CUDA execution, libvmaf filters, NVENC initialization, and model files.

Validated Benchmark & Tests

Verified on 2160×3840 4K portrait footage: 5.11 → 15.39 FPS (+201%), VMAF 99.965, SSIM 0.9711, plus new tests in tests/test_tracking_pipeline.py.

Files touched (2 files, +297 / -104)

  • ot.py - +153 / -104
  • tg.py - +144 / -0

End of git history