Commit graph

84 commits

Author SHA1 Message Date
juancarlos.cavero
ebe876c497 feat: unlock 720p/1080p YouTube downloads (Deno + bgutil PO tokens)
YouTube now forces SABR streaming, capping downloads at 360p without a GVS PO
token. Adds the full recipe (cloud mode only):
- Dockerfile: Deno JS runtime (nsig challenge) + latest yt-dlp[default] nightly
  + bgutil-ytdlp-pot-provider plugin
- docker-compose.cloud.yml: bgutil PO-token sidecar + BGUTIL_BASE_URL
- main.py / metering.py: when BGUTIL_BASE_URL is set, use yt-dlp default clients
  + the bgutil HTTP provider (→ 720p); self-host keeps the conservative fallback

Verified E2E through the container: managed user -> YouTube -> DataImpulse
residential proxy + Deno + bgutil -> real 720p (format 136) download, no 403.
2026-07-14 13:42:07 +02:00
juancarlos.cavero
05578c5456 feat: add hosted paid mode (managed keys, Stripe trial, metering)
Adds an optional cloud/paid mode behind a BILLING_ENABLED flag. With the flag
off the app is byte-identical to today's self-hosted BYOK build (regression-zero).

Backend (cloud/ package, only imported when BILLING_ENABLED):
- Auth: magic link (Resend) + Google OAuth (authlib) + JWT sessions
- Stripe: hosted Checkout with 3-day card trial, Customer Portal, idempotent
  order-safe webhooks; 3 plans (Starter/Creator/Pro) resolved by lookup_key
- Postgres + SQLAlchemy async; atomic minute metering (reserve/commit/release,
  plan->topup FIFO, restart-safe) with sweeper
- Managed keys: Gemini + Upload-Post server-side for entitled users; paid-only
  (BYOK core header ignored on hosted); Upload-Post white-label per-user profiles
- Metering wired into /api/process (probe->reserve->402, priority queue) and
  thumbnail image generation (3 min/batch)
- yt-dlp residential PROXY_URL support + 720p cap for hosted YouTube downloads

Frontend:
- AuthContext, LoginModal, PricingSection (3-day trial), AccountPage, UsageMeter,
  TopUpModal, TrialGate/AdvancedBanner
- Paid-only UI: hide BYOK core inputs, trial prompts per tool
- Included (Clip Generator, YouTube Studio) vs BYOK (AI Shorts/dubbing: fal.ai +
  ElevenLabs) clearly separated; ThumbnailStudio + SaaShortsTab managed-aware
- Landing: free-self-host vs paid-hosted messaging

Verified end-to-end against real Postgres + Stripe test mode.
2026-07-14 13:04:43 +02:00
juancarlos.cavero
771d7da552 fix: Migrate scene detection to PySceneDetect 0.6+ API
VideoManager/SceneManager top-level imports were removed in 0.6+, causing
ImportError on job start. Switched to open_video() and SceneManager.detect_scenes(video=...).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-06 10:36:50 +02:00
juancarlos.cavero
6a83ebdcd7 fix: Strip '#' from sanitized filenames to prevent broken clip URLs
YouTube titles containing '#' (e.g. hashtags like #shorts) were saved to disk correctly, but the browser parses '#' as a URL fragment, so the frontend could never request the actual file and clips appeared missing. Add '#' to the regex in sanitize_filename().

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-30 07:05:27 +02:00
juancarlos.cavero
3946c49ad1 added youtube studio 2026-02-20 01:11:27 +01:00
juancarlos.cavero
bf577494b7 Update hooks, fix captions, and ignore uploads 2026-01-23 14:53:57 +01:00
juancarlos.cavero
207f1aa8e3 fix upload video 2025-12-23 09:55:39 +01:00
juancarlos.cavero
9d767897b3 try fix youtube download 2025-12-23 00:10:35 +01:00
juancarlos.cavero
d3ef8ccd26 try fix youtube download 2025-12-22 23:43:18 +01:00
juancarlos.cavero
e8debfa0e8 try fix youtube download 2025-12-22 23:07:42 +01:00
juancarlos.cavero
79d672b918 try fix youtube download 2025-12-22 22:46:39 +01:00
juancarlos.cavero
479ef8a188 try fix youtube download 2025-12-22 22:30:31 +01:00
juancarlos.cavero
c5e2d4818f try fix youtube download 2025-12-22 22:18:15 +01:00
juancarlos.cavero
c381c624be added subtitles 2025-12-22 18:21:17 +01:00
juancarlos.cavero
6913e74f84 fix downloads 2025-12-21 23:38:50 +01:00
juancarlos.cavero
f9b43b3648 improve video preview and added new recognition system MediaPipe lib 2025-12-21 03:09:34 +01:00
juancarlos.cavero
3c92d6ce67 improve video preview 2025-12-21 01:59:15 +01:00
juancarlos.cavero
5be810d606 added video cost to executions 2025-12-21 00:06:59 +01:00
juancarlos.cavero
1121b7940f reafactor readme added instructions and texts 2025-12-20 13:48:22 +01:00
juancarlos.cavero
3ab5404fbe fix yt-dlp error in prod 2025-12-19 22:42:53 +01:00
juancarlos.cavero
6e005d7398 fix yt-dlp error in prod 2025-12-19 22:37:51 +01:00
juancarlos.cavero
ba8a46740f fix yt-dlp error in prod 2025-12-19 21:56:52 +01:00
juancarlos.cavero
8ad6ad0912 fix yt-dlp error in prod 2025-12-19 21:50:48 +01:00
juancarlos.cavero
f724e537cc fix yt-dlp error in prod 2025-12-19 21:46:10 +01:00
juancarlos.cavero
f8f2f476b9 fix yt-dlp error in prod 2025-12-19 21:43:50 +01:00
juancarlos.cavero
51592d0ffa fix yt-dlp error in prod 2025-12-19 21:36:36 +01:00
juancarlos.cavero
99eb1b19ce fix yt-dlp error in prod 2025-12-19 21:30:53 +01:00
juancarlos.cavero
fbe2871ed0 fix yt-dlp error in prod 2025-12-19 21:25:59 +01:00
juancarlos.cavero
e5dd902e8a added upload to social networks and change to fast-whisper 2025-12-19 20:30:13 +01:00
juancarlos.cavero
892383acc3 added generate clips from video with gemini 2025-12-19 16:00:44 +01:00
juancarlos.cavero
a5649a3987 added docker compose, and youtube url process 2025-12-19 13:47:23 +01:00
kamil
adf614ae24 feat: Enhance video processing script with argparse for input/output handling and add progress indicators 2025-08-19 12:52:43 +02:00
kamil
77af869412 feat: Refactor video processing script to use FFmpeg for output and remove moviepy dependency 2025-08-19 12:38:05 +02:00
kamil
946c9f51ba feat: Initial implementation of smart video cropping script 2025-08-19 11:47:53 +02:00