- Quality gate: quality_probe.py probes the offered YouTube resolution before
starting; /api/process returns needs_confirmation below QUALITY_GATE_MIN_HEIGHT
(720p) and the UI shows a 'process anyway' modal that resends with
force_low_quality. Fail-open on any probe error. URL sources only.
- Output format: MediaInput picks 9:16 / 1:1 / 16:9; threaded through
/api/process -> main.py --format. render_clip() routes vertical/square to the
reframe (aspect_ratio param) and horizontal to a passthrough (keep landscape).
- Whisper: main pipeline defaults to 'small' (better non-English) with
vad_filter + no cross-segment conditioning; env-overridable.
The save-side fix only helps sessions saved after it; already-recovered
sessions (and any older ones) had processingMedia=null and stayed null. On
recovery, when no media is stored, point the preview at /api/source/{jobId}
so existing upload sessions get their original-video preview back too.
The live-analysis preview above the logs used a blob URL for uploaded
sources, which dies on page reload — so a recovered upload session showed an
empty preview (YouTube-URL jobs were fine, their URL persists).
- GET /api/source/{job_id} streams the job's original upload (FileResponse,
unauthenticated like /videos, UUID job_id is the capability).
- ProcessingAnimation: new 'server' media type -> <video src> from the backend.
- Session save persists uploads as { type:'server', payload:/api/source/id }
instead of null, so the recovered preview plays the real source.
Two bugs, one root cause: the Remotion preview base was derived from
clip.video_url, which mutates to subtitled_/hook_ files after server burns.
- originalVideoUrl now strips subtitled_<ts>_/hook_ prefixes back to the
pristine clip, so the preview composites new subtitles over the clean clip
instead of stacking them on an already-subtitled file (the 'subtitles on
top for a few seconds' double-render when opening another clip's modal).
- currentVideoUrl inits to the actual current file (not pristine), and a new
effect adopts clip.video_url when an external refresh (bulk apply from
another card) changes it — so every card shows its freshly subtitled video
instead of a stale/blank one.
Selecting a karaoke preset swapped the playable RemotionPreview for a static
CSS mock, so the preview video couldn't be played/scrubbed. Instead, teach
the Remotion Subtitles component to render dim (baseOpacity, opaque scaled
color like the backend) and uppercase, and pass those from the modal — so
the preview stays a live, playable Player that also reflects the karaoke
look. Drops the static mock.
Instead of a separate header button + bulk modal, the per-clip subtitle
editor now has a second action: 'apply this style to all N clips'. Same
bulk loop, but you pick and preview the look on the clip you opened, then
one click applies it everywhere (progress shown inline). Header keeps only
'download all' + 'schedule week'.
- app.py: GET /api/jobs/{job_id}/download-all bundles every clip's current
file into one ZIP (stored, not deflated — already compressed), streamed
via FileResponse and cleaned up after send; owner-guarded in cloud mode.
- App.jsx: 'subtitle all' opens the SubtitleModal in bulk mode and applies
the chosen style to every clip sequentially (progress in the button),
then refreshes results so each card shows its subtitled file. 'download
all' fetches the ZIP and triggers a browser download.
- SubtitleModal: bulkCount prop -> 'apply to N clips' label.
Previously a single look (white card, black serif). Add a style parameter
end to end:
- hooks.py: HOOK_STYLES table drives box fill / text color / optional text
outline; box-less 'outline' styles (caption/MrBeast look) use a stroke.
- HookOverlay.tsx: same looks mirrored so the Remotion preview and the
browser burn match the server FFmpeg output.
- HookModal: visual style picker; ResultCard + /api/hook thread style through.
Note on t=0: the server FFmpeg burn shows the hook immediately (enable
between t,0,dur); the Remotion preview fades it in per the entrance
animation, so at exactly 0:00 the preview is mid-fade (pick 'None' for an
instant-on preview).
The browser (Remotion) render paths compose layers over the ORIGINAL clip,
so running Auto Edit (or a hook / classic subs) after a server-side karaoke
burn silently produced a video without the subtitles.
- Track serverVideoFile: the latest file that exists on the server; all
server operations chain from it (blob: preview URLs never leak into
input_filename anymore).
- When the server file has burned-in content (subtitled_/hook_), skip the
browser-render paths and chain through the server FFmpeg endpoints, which
preserve the file and enable caption-safe Auto-Edit.
- After a karaoke burn, re-compose any remaining browser layers (hook/
effects) over the new server file instead of dropping them.
- SubtitleModal: karaoke styles burn server-side, so the Remotion preview
never reflected dim/uppercase/effect controls. Show a CSS mock that
mirrors the burned ASS look (opaque scaled dim color, uppercase, glow/
pop/box on the active word) using the clip's own first words.
- ResultCard: auto-edit demanded a local Gemini key even for managed
(paid) users whose key resolves server-side; only BYOK needs one now.
Ported from PR #50 (Themegaindex) onto current main, adapted to the
billing-mode app.py and the Lumen dashboard:
- subtitles.py: karaoke ASS generation (word-level highlight, glow/pop/box
effects, dim/uppercase), whisper continuation-word merging, env-configurable
whisper model, ASS/font input sanitization, faststart
- editor.py + edit_builder.py: Auto-Edit v2 — Gemini returns a structured
edit-decision list and the FFmpeg filter is built deterministically with
hard caps (no raw filter strings from the LLM), 2s dry-run + one
self-repair round, caption-safe mode blocks zooms on subtitled clips
- app.py: /api/subtitle karaoke fields + re-subtitle prefix walk-back
(fixes double subtitles), has_captions passed to Auto-Edit
- hooks.py: emoji rendering (color-emoji font with strip fallback),
char-level hard wrap, unique temp PNGs, ffmpeg timeouts; keeps the
duration/enable overlay from b1113d7
- translate.py: exponential-backoff retries for transient ElevenLabs errors
- dashboard: 11 caption presets in SubtitleModal; karaoke burns server-side
- tests/: 50 pytest tests; .github/workflows/ci.yml runs them + fe build
Encode settings kept at CRF 18 (medium for post-process steps) per f791a74.
Co-authored-by: Themegaindex <themegaindex@users.noreply.github.com>
- Retry transient Gemini errors (503/429/500) up to 3x with exponential
backoff before falling back to whole-video conversion (#27)
- Thread the hook Duration slider through /api/hook down to the FFmpeg
overlay enable filter so hooks can end after N seconds (#2)
- Read JOB_RETENTION_SECONDS from env so self-hosters can keep finished
jobs longer than the 1h default (#46)
- H1 restores 'free open source ai clip generator' keeping the redesign tagline
- Hero subline recovers the AI UGC keyword and adds 'online'
- Add clipping/clipper mentions (top non-brand GSC queries with zero on-page presence)
- FAQ schema: dual pricing answer synced with visible FAQ, dateModified bumped
- Remove orange crop-window overlay from the Smart Crop demo
Full visual rework to a single locked design system (design.md, Lumen
Night Foundry): dark violet canvas, molten-brass accent, Instrument
Serif + Geist + JetBrains Mono, hairline cards, zero gradients and
zero glassmorphism.
- Landing: marquee hero with real vertical demo clip in an instrument
bezel, meter strip, smart-crop before/after section, cloud-first
copy (start free trial primary, self-host demoted to secondary),
text density cut, SEO surfaces preserved (single h1, ids, FAQs,
comparison table intact)
- App: workbench restyle — sidebar with mono ordinals, unified header,
settings/ai-agent/dashboard views on shared tokens; per-feature
gradient identities retired
- Shared UI: new Modal, SegmentedControl and StepIndicator replace 8+
duplicated modal shells and 2 wizard steppers
- New pricing paywall page (#/pricing): demo proof strip, honest trust
signals, billing FAQ
- Routing: app logo links back to landing via #landing without
resetting the skip-landing preference
- Responsive: audited and fixed at 320/375/414/768px (no horizontal
scroll, tables scroll in-container, single-line CTAs)
- ScheduleWeekModal translated to English; ProcessingAnimation comment
noise removed
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
fetchUserProfiles used a raw fetch without the bearer token, so managed
users always got a 400 from /api/social/user, and the mount effect fired
an alert() on every page load. Use apiFetch (auth attached), let managed
users fetch without a local key, and make the background auto-fetch
silent — only the manual Settings button alerts now.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The Post modal and Schedule Week modal gated on the localStorage
uploadPostKey, so managed (plan/trial) users saw 'Configure API Keys'
even though the backend already posts with the server-side managed key.
Gate on isManaged || BYOK keys instead.
Fixes#3559
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
After a reload the ephemeral /videos/ files may be cleaned up (1h retention),
leaving black previews on the results screen. For managed users, fetch the job's
clips from /api/history (now includes clip_index) and fall back to the durable R2
url on video error (with a retry for the load race).
- revert showCalendar to true (calendar stays available in the white-label page)
- add a 'Content calendar' button (opens the Upload-Post page in a new tab) so users
can consult/manage scheduled posts from the dashboard
- social connect JWT: showCalendar=false (hide scheduling calendar in white-label page)
- connect opens in the same tab so the page's redirectUrl returns the user to the app
- after the first plan activation (checkout success), take the user straight to the
social-connect flow; guarded so top-up checkouts don't re-trigger it
index.html points at the hashed asset bundle; without a no-cache header the
browser kept serving a previous deploy's index.html (and thus old JS), which
showed the BYOK UI instead of the freshly-deployed billing UI. Add
Cache-Control: no-store on the SPA fallback (security headers repeated since
nginx add_header doesn't inherit into a location that sets its own).
- App sidebar: Support card (mailto:info@openshorts.app) + "Plans & Pricing" link (billing-gated)
- Landing: embedded 3-tier pricing section (live from Stripe), Pricing nav link,
hosted card mentions the saved video library — all gated on billingEnabled so
self-host shows nothing broken
Security fixes on the hosted/paid surface (all no-op in self-host / BYOK):
- upload path traversal: basename() client filenames in /api/process,
/api/thumbnail/upload, /api/thumbnail/analyze fallback, /api/thumbnail/generate
(face/bg + session_id) so "../" can't escape UPLOAD_DIR
- SSRF: saasshorts subpage scraper now follow_redirects=False + assert_public_url
per hop (was open to 302 -> 169.254.169.254 metadata)
- metering: reserve+commit/release on /api/render, /api/subtitle, /api/hook and a
fixed guard cost on /api/thumbnail/upload transcription (were entitlement-gated
but unmetered -> unlimited off-quota compute)
- entitlement: SaaSShorts generate/actor-options/actor-upload now require a plan
in cloud; /api/edit ignores body api_key in cloud (no gate/meter bypass)
- multi-tenant IDOR: stamp user_id on thumbnail_sessions/saas_jobs and reject
non-owners (404) across status/mutation/publish/post endpoints
- DoS: bounded/streamed reads on actor-upload and thumbnail uploads
- retry_job_id routed through _safe_under
Frontend: raw fetch -> apiFetch on the now-gated/owner-checked endpoints so the
bearer token attaches.
License: cloud/ is now source-available under the OpenShorts Commercial License
(self-host/personal use allowed; no competing hosted service). Core stays MIT.
- config: TRIAL_MINUTE_CAP=20 — trial allowance capped across all plans
- metering: apply the cap in _balance while status=trialing (full minutes once active)
- billing: POST /api/billing/end-trial ends the Stripe trial immediately (charge now,
unlock full minutes); webhook flips status→active
- frontend: hitting the cap while trialing opens TrialUpgradeModal (activate plan now)
instead of the top-up modal; polls /api/me until active
- Legal: disclose the 20-minute trial allowance
Covers accounts/sign-in, the 3-day trial + auto-renewal disclosure, plans &
billing via Stripe, cancellation/refunds (incl. EU immediate-performance
waiver), what we store and for how long (video library kept while subscribed +
7 days), the subprocessor list (Stripe, Cloudflare R2, Google, Upload-Post,
proxy, email), account/data deletion, and self-host carve-out.
- dashboard/Dockerfile: multi-stage — 'dev' (Vite HMR for local compose) and
'prod' (npm build -> nginx static serving, SPA fallback). Prod is the default
target so Coolify builds the static app; VITE_API_URL is a build arg.
- dashboard/nginx.conf: SPA routing + asset caching + basic security headers.
- docker-compose.yml: local frontend targets the dev stage.
- app.py: skip the redundant AWS S3 upload in cloud mode (R2 is the store now);
add a /health liveness endpoint for uptime checks.
Verified: prod image serves index.html + deep-link fallback (200).
- cloud/storage.py: R2 (S3-compatible) client — upload, presigned view/download
URLs, delete-by-prefix.
- cloud/videos.py: archive a completed managed job's clips to R2 under
users/<uid>/<job>/, GET /api/history (private signed links), and a retention
sweeper that deletes a user's videos 7 days after their subscription ends.
- models.py: user_videos table (created via create_all).
- app.py: archive clips to R2 on managed-job completion.
- billing.py: email the admin the moment a subscriber hits cancel.
- Frontend: History tab (library grid with per-video view + download).
R2 bucket 'openshorts-videos' + scoped API token created; end-to-end verified:
archive -> presigned GET (200) -> purge after grace -> object 404.
A second instance of the footer credit was still rendering inside the
authed app view (App.jsx). Drop it together with the now-empty footer
strip so the credit is gone from both Landing and App.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- New Legal.jsx single-page notice covering AS-IS, user responsibility,
retention (1h job purge), third-party APIs, GDPR rights, copyright
takedown via GitHub Issues, self-hosted disclaimer
- main.jsx routes #legal to the Legal page; Landing footer adds the link
- Attestation checkbox now references the Terms & Privacy page
- Drop "Made with by Upload-Post" footer credit
Anchors the ownership attestation to a written notice and gives a
public surface for GDPR/DMCA contact, without inventing fake emails.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The clip generator subtitle leaked "URL" into the copy even when YouTube
URL ingest is disabled by DISABLE_YOUTUBE_URL. Make the line neutral so
it reads correctly in both modes.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- MediaInput shows a checkbox the user must tick before Generate enables
- Frontend sends acknowledged=true alongside URL/file payload
- /api/process rejects with 400 if attestation is missing, and records
IP/UA/timestamp/source on the job for legal record-keeping
Defensive posture for the public deployment: shifts responsibility to
the user via an explicit affirmative act, even without login.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- New env var DISABLE_YOUTUBE_URL gates URL ingest in /api/process (403)
- /api/config exposes the flag so MediaInput can hide the YouTube tab
- Landing.jsx and index.html (meta + JSON-LD) reworded around
"your long-form videos" instead of marketing YouTube downloads,
reducing inducement exposure on the public deployment
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Introduces a new sidebar entry that explains the autonomous clipping
workflow (drop videos → AI clippers cut → user validates → auto-publish)
and warns that source footage must already be in vertical 9:16 format.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
handleAutoEdit referenced setCompositionParams and setShowPreviewModal — neither exists in ResultCard, leftovers from a prior refactor. Align it with handleSubtitle/handleHook: accumulate the generated effects into activeLayers and re-render the clip via renderInBrowser.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Treat the Upload-Post key as mandatory like the Gemini key: block /api/process when either is missing, mark the Settings section as Required, and show a persistent banner plus a header pill on every screen until both keys are configured. The missing-key modal now lets the user paste each key inline.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Schedule all generated clips across consecutive days with a single click.
Includes IANA timezone selector, platform picker, progress tracking,
and redirects to Upload-Post calendar after scheduling.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Landing: Add "Social media API" link to Upload-Post in features card
- Landing: Add "Made with ❤️ by Upload-Post" in footer
- Dashboard: Add "Made with ❤️ by Upload-Post" footer
- README: Add competitor comparison table (vs Opus Clip, CapCut, Vizard, Klap, Descript)
- README: Add cost breakdown section with free tiers
- README: Add AI Shorts showcase from gallery
- README: Add "Who Is This For?" section
- README: Add Docker, GitHub stars, last commit badges
- README: Expand social auto-publishing and scheduling info
- Fix: Reset voice selection when actor gender changes
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- README: Add comparison table vs Opus Clip, CapCut, Vizard, Klap, Descript
- README: Add cost breakdown section highlighting free tiers (Gemini, Upload-Post)
- README: Add AI Shorts showcase with gallery examples
- README: Add "Who Is This For?" section
- README: Add Docker, GitHub stars, last commit badges
- README: Expand social auto-publishing and scheduling info
- Fix: Reset selected voice when actor gender changes (male now defaults to male voices)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add 1200x630 OG image for social sharing previews
- Update title, description, OG and Twitter meta tags to include AI Shorts
- Add AI UGC features to JSON-LD structured data
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Shows a popup with setup instructions for Gemini (required) and
Upload-Post (optional) when user tries to generate clips without
an API key configured.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add Low Cost video mode (Hailuo 2.3 + VEED Lipsync ~$0.65) alongside Premium (Kling Avatar v2 ~$2)
- Add UGC video gallery with SEO pages (/gallery, /video/{id}) and JSON-LD structured data
- Make AI Shorts work for any business (URL optional, manual description supported)
- Add shared actor gallery on public S3 with prompt history
- Add custom actor photo upload
- Add Upload-Post social publishing to AI Shorts result step
- Add UGC Gallery tab with Videos + Avatars tabs
- Update landing page with 3-tools-in-1 section (Clip Generator, AI Shorts, YouTube Studio)
- Rename SaaS Shorts to AI Shorts, Dashboard to Clip Generator
- Add vite proxy for /gallery and /video routes
- Add image upload validation
- Remove hardcoded bucket names from code
- Update README with full documentation and screenshot references
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>