Some checks failed
CI / skip-ci-check (pull_request) Successful in 1m4s
CI / lint-and-type-check (pull_request) Has been cancelled
CI / python-lint (pull_request) Has been cancelled
CI / test-backend (pull_request) Has been cancelled
CI / build (pull_request) Has been cancelled
CI / secret-scanning (pull_request) Has been cancelled
CI / dependency-scan (pull_request) Has been cancelled
CI / sast-scan (pull_request) Has been cancelled
CI / workflow-summary (pull_request) Has been cancelled
Add on-demand H.264/AAC web playback (RQ, ffmpeg) with API routes and Next.js proxies; extend admin UI with WebPlaybackVideo and shared hooks. Store transcode cache beside pending-photos (WEB_VIDEO_CACHE_DIR / UPLOAD_DIR) and ignore data/web_videos. Centralize FastAPI URL helpers, optional Vite and Next base paths for subfolder deploy, and fix modal reopen by using router.replace when closing the home photo viewer. Include migration, install scripts, deployment doc updates, and CI admin build env tweak. Made-with: Cursor
11 lines
663 B
SQL
11 lines
663 B
SQL
-- Web-playback transcoding cache (H.264 MP4) with TTL enforced in application layer.
|
|
-- Run against the main punimtag database (same DB as photos table).
|
|
|
|
ALTER TABLE photos ADD COLUMN IF NOT EXISTS web_playable_path TEXT;
|
|
ALTER TABLE photos ADD COLUMN IF NOT EXISTS web_transcode_status TEXT NOT NULL DEFAULT 'none';
|
|
ALTER TABLE photos ADD COLUMN IF NOT EXISTS web_transcode_error TEXT;
|
|
ALTER TABLE photos ADD COLUMN IF NOT EXISTS web_transcode_job_id TEXT;
|
|
|
|
COMMENT ON COLUMN photos.web_playable_path IS 'Path to browser-safe MP4 or original path if already H.264/AAC-safe';
|
|
COMMENT ON COLUMN photos.web_transcode_status IS 'none|queued|running|ready|failed';
|