- Replace Upload-Post with a self-hosted Postiz client (postiz.py) and /api/postiz/* endpoints
- Remove AI Shorts, UGC gallery, AI Agent tab, Autopilot, MCP/agent layer, and their UIs
- Fix YouTube Studio thumbnail generation (google-genai >=2 Interactions API) and blocking download
- Make the video upload size cap configurable/unlimited (MAX_FILE_SIZE_MB, default 0)
- Update SEO/marketing/docs to the single-product self-hosted reality; lint+build green
/api/subtitle takes a named preset (subtitles.CAPTION_PRESETS, the same
looks the dashboard offers); fields sent alongside it override that part.
The MCP add_subtitles tool exposes preset, effect, reveal, one_word, shadow
and border_width, and gives a resized line the budget that keeps it on one
line, as the dashboard does. A test keeps the server and dashboard preset
ids in sync.
The subtitle modal had no size control: the font size was pinned at 24
while clips ship at 44, so re-applying captions from the modal halved them.
It now opens on the shipped look and offers S/M/L/XL, with fewer characters
per line as the text grows so a line still fits the 9:16 frame.
New in generate_ass: a "highlight" effect (opaque box behind the active
word via a second BorderStyle 3 style, black text on light boxes), "reveal"
(words appear as they are spoken), a drop shadow, and an outline of 0 when
a shadow carries the contrast. /api/subtitle takes reveal, shadow,
max_chars (1 = one word at a time) and max_duration.
Presets added: Default, Hormozi, Pill, Lime box, One word, Clean. Anton and
Montserrat are selectable, and the preview uses the burn's scale and line
budget so what plays in the modal is what gets burned.
Every file the pipeline and the clip editor write is now clean. On the free
plan the served file is a wm_<final> copy with the mark burned in
(main.mark_delivery, last step after captions; app._deliver for the editor
endpoints, decided from the caller's plan), and both twins go to R2. An
upgrade re-points the user's library at the clean twins from the Stripe
webhook (cloud.videos.unmark_user_library): no render, no source video,
and the dashboard chases the job result until no served URL carries wm_.
Before, the mark rode the reframe encode, so every derivative inherited it
and the upgrade modal's "upgrade to remove the watermark" was false for the
clips already made. The first cancellation for "clip quality" (29-sep) was a
user who paid 15 minutes after their first job and kept the mark on every
download and restyle.
- /videos guard refuses a marked job's clean deliverables (.marked dotfile),
so the twin cannot be fetched by stripping the prefix off a URL; editor
scratch files stay servable. Re-checked after an R2 restore.
- Walk-backs treat wm_ as the outermost layer; _canonical_clip_file globs it.
- Jobs from before this scheme (mark burned into the canonical) never get a
second copy; a failed mark still serves under the wm_ name.
- Watermark notice once per job when the clips land on a free account, and
before the first download if skipped; tracked with source=results|download.
Upsell/banner/win-back copy now promise the instant removal.
Since 30-sep-2026 YouTube bot-checks anonymous requests from every one of
our non-residential IPs per video: the same video fails on the 3 statics
and the server's own IP, with every player client, and the paid residential
proxy answers it. The metering probe learns that verdict first; the
download then repeated four anonymous attempts (~8 s, four more hits on IPs
YouTube is scoring) before reaching the paid proxy for the same answer.
The probe now leaves a one-shot verdict per URL, app.py passes it to the
job as DOWNLOAD_SKIP_STATICS=1 (and into the resume manifest), and
plan_download_attempts drops the free attempts when a paid proxy exists.
The pool probe says UP while one static still answers, and the ledger
alert names IPs, so a rotated cookie session (every download anonymous,
statics bot-checked one by one, jobs on the per-GB proxy) went unnoticed
for ~900 MB on 30-sep-2026. The static probes already fetch the watch
page with the cookies attached; read the ytcfg LOGGED_IN marker yt-dlp
itself uses and open a one-strike incident naming the fix.
The Stripe portal stops cancelling (its config, 2026-09-28), so the dashboard
flow is the only way out and carries the portal's retention coupon:
- GET /api/billing/retention-offer: live monthly plan, no discount on it, never
offered before (retention_offer in the Stripe sub metadata). Any Stripe error
means no offer, never a stuck flow. Coupon id from RETENTION_COUPON_ID.
- POST /api/billing/retention-offer/accept: applies the coupon, stores the
feedback with outcome=retained, alerts "Cancel saved".
- POST /api/billing/resume + "Keep my subscription": undo a scheduled cancel,
which the portal did with the cancel feature now off.
- cancellation_feedback.outcome (additive column).
- POST /api/billing/cancel: closed-list reason, optional detail, 1-5 rating and
review; cancels at period end in Stripe with cancellation_details, then stores
cancellation_feedback. Account page opens CancelPlanModal (3 steps).
- Portal cancellations: churn alert now carries Stripe's feedback value.
- POST /api/onboarding/survey + /api/me onboarding_survey_pending: accounts under
7 days get one skippable screen before the clip tutorial (what they want to
make, where they heard of us, who they are). Stored in onboarding_surveys and
tracked as SignupSurveyAnswered with per-goal props.
- Both new tables are user-owned and erased with the account.
A stack of Google accounts from one IP used to get a 60-minute first video
each. first_video_grants keeps an HMAC of the client IP (never the IP), not
tied to the user row, counting only grants whose reservation is live; a
network that already had one gets the first-N-minutes cut instead.
Hero trust line, cloud card, pricing header, final CTA, pricing page, tool
gate, the crawler fallback, the default SEO CTA and the Cloud summary in
seo/data.js.
- Free source past the balance: first video (<= 60 min) clipped whole for the
balance, any other clipped to the first N minutes. No 402 wall for free
accounts with >= PARTIAL_MIN_MINUTES left.
- cloud/lifecycle.py: welcome, first-clip nudge, win-back (optional
WINBACK_PROMO_CODE from env) and abandoned-checkout recovery via
after_expiration.recovery + checkout.session.expired.
- Commercial emails go through send_commercial_email: opt-out honoured,
unsubscribe footer and List-Unsubscribe headers (out-of-minutes too).
- The clip button and modal are "edit hook" (was "viral hook"), and the
submit says "update hook" when the clip already has one.
- Typeface picker: Montserrat, Anton, Serif, all bundled so the server
render (hooks.HOOK_FONTS, /api/hook `font`) and the Remotion preview
(HOOK_FONTS in remotion/lib/fonts.ts) use the same file and size.
Unset keeps each style's own typeface, so existing styles render as
before.
- The preview box is a true 9:16 (it was taller than the video, so the
hook sat off where it lands); style swatches are larger, drawn in the
real typeface, and "Pills" shows pills.
- Entrance options are hidden when they cannot apply (server re-render)
instead of shown greyed out.
- Autopilot: skipped videos can be clipped again by hand (private videos
used to be misread as Shorts).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The connected channel (YouTube's own OAuth) is the proof the content is
the user's: the "I own the content" checkbox is gone, and switching
Autopilot on records rights_ack_at by itself. "Clip it" no longer
requires it either.
- Private videos read as "already a short": /shorts/<id> answers 200 for
them too. is_youtube_private (oEmbed 401/403) runs first; a manual clip
says "private on YouTube, set it to Unlisted", and the automatic poll
leaves the video unclaimed so it is picked up once it goes public
(scheduled uploads are private until then). They cannot be clipped:
the YouTube Data API lists the owner's uploads but never serves the file.
- A pasted private video stops downloading as soon as yt-dlp says so
(before the per-GB proxy) and tells the user why, instead of "YouTube
blocked the request".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Without the rights confirmation the button only set the page notice,
which renders at the top of the tab, far above the video list: the click
looked like it did nothing. The confirmation checkbox and the button's
feedback (started, not clipped and why, errors) now sit right above the
list.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every line of the hook gets its own white rounded box with black bold
sans (Montserrat ExtraBold, SIL OFL, bundled in fonts/ with its license),
the look short-form viewers know from TikTok. It replaces the serif
white card as the default for auto hooks, the editor's hook modal and
the /api/hook default; the other six styles stay selectable.
- hooks.py: _draw_pills renders the stack for the FFmpeg path.
- Remotion HookOverlay mirrors it (box-decoration-break: clone), so the
editor preview matches the burned result.
- The generate form says the hook text, style, position and size can be
changed per clip afterwards; the saved style preference moves to a v2
key so the old stored default does not pin people to the serif card.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Logs
- Each job log line records when it arrived (app._TimedLog) and
/api/status returns log_times; the dashboard showed new Date() on every
render, so every line had the same, moving clock.
- The cloud log view shows every stage: download %, early audio,
transcription %, finding moments, layout, clips found, and per clip
creating / framed / ready. Progress updates its own line instead of
adding one per step. Lines glued to yt-dlp's \r progress bar (the
parallel transcription prints onto it) are split, so its % shows again.
"Found N clips" matched the old "viral clips" wording only.
Result cards
- The results grid only goes to two columns when each card gets ~600px
(auto-fill) instead of at the xl breakpoint, where the side panel was
squeezed and the copy buttons spilled out of the card.
- Card actions take as many per row as fit.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The ranged fetch runs through ffmpeg at ~1-2.5x realtime; a source just
over the cap downloads natively in seconds. A 21-min video on a 19-min
cap took 8 min ranged. Now ranged only with no known duration or when the
source is over 3x the cap and 45+ min longer (finished livestreams).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A capped job (MAX_SOURCE_MINUTES, or the SOURCE_CAP_MINUTES safety cap on
every metered job) still downloaded the whole source and cut it after.
On a finished livestream (hours of 1080p60) that meant GBs through the
proxy and a job stuck downloading for tens of minutes, long enough to
outlive a deploy drain and restart on the next instance.
When the source is longer than the cap (plus a margin) or has no known
duration, yt-dlp now downloads only that range (download_ranges);
cap_source_duration still makes the exact cut. Sources within the cap
download exactly as before. The early audio track is skipped for ranged
downloads.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SOURCE_CAP_MINUTES is set on every metered job, so the early audio path
never ran in production. It is only a safety cap (it cuts a download
clearly longer than the reservation), so the early work now runs there
too and is dropped when the cut actually happens (the file is rewritten
in place: size/mtime change). MAX_SOURCE_MINUTES jobs, which are always
cut, keep the sequential path.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The audio track is fetched on its own, in parallel with the video (same
m4a format the merged mp4 gets), and transcription + the Gemini pick start
as soon as it lands. By the time the video is in, the clips are usually
already chosen and the render starts right away.
- download_youtube_video(on_audio=): background audio-only fetch from the
already extracted info; never on the per-GB proxy.
- main: uses the early transcript/clips when they are ready; any failure,
capped sources (the cut is done on the video), checkpoints and
--transcript keep the old sequential path. EARLY_AUDIO=0 turns it off.
Bench (real downloads, alternating runs): render starts 2-17 s sooner
with fast downloads and replayed Gemini; the transcript is identical.
Also drops internal details from comments and CLAUDE.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 of 40 prod clips fell back to the two-pass path with no visible reason:
the job log truncates the CalledProcessError (argv first). Log the exit
code and the last non-progress stderr lines instead.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ydl.download([url]) re-ran the whole extraction (player clients, API JSON,
m3u8) that extract_info had just done: 4-9 s of round trips per attempt.
The unprocessed info is now handed to process_ie_result. Same file (MD5)
on a real 1080p video; falls back to ydl.download for playlists and
anything without formats.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Same clips to the eye (SSIM 0.990-0.9998 vs before, audio identical,
frames checked by eye), faster:
- Cut on the card end to end (NVDEC -> NVENC, hwaccel_output_format cuda)
for 8-bit 4:2:0 h264/hevc/vp9/av1 sources; byte-identical decoded frames
to the CPU cut, -64% CPU. Anything else, or a failed GPU cut, decodes on
the CPU as before.
- Silero VAD on one CPU thread instead of CUDA (one 32 ms chunk per launch):
transcription 2-3x faster (9 min audio: 28 -> 9 s). Over 3,939 words one
changed ("claudio" -> "cloud", said "Claude") and a few times moved <=48 ms.
- The blurred backdrop is blurred at quarter size and scaled up
(ffmpeg_utils.blurred_backdrop): ~45% less CPU on those segments.
- hooked_ and subtitled_ come out of ONE ffmpeg (hooks.add_hook_to_video
also=...), one decode instead of two; subtitled_ is one generation fewer.
Same filenames, so the editor's walk-back is unchanged. Falls back to the
two passes if the combined one fails.
- CLIP_WORKERS default 3 -> 6: -14-16% wall per job at load 48-67, same CPU,
peak VRAM 12 GB of 20.
Bench on balrog (3 Carlos Gracia videos, old/new side by side).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The free-plan watermark (~97% of jobs) rode a pass of its own: decode
the finished clip, overlay, encode it all again. It now goes into each
reframe segment's own encode (reframe_v2.render(watermark=True), same
geometry via main.watermark_filter). One NVENC encode less per clip; the
v1 fallback and horizontal clips still use apply_watermark. The editor's
paths (recut.py) are untouched.
- layout_picker.sample_frames falls back to the ffmpeg CLI when OpenCV
reads no frame: OpenCV's bundled FFmpeg has no AV1 software decoder, so
AV1 YouTube sources always got the default layout. H.264 sources return
byte-identical frames (same JPEG MD5).
Bench on balrog, 3 videos, old and new run side by side: job CPU -27 to
-43%, wall -6 to -12%; clips SSIM 0.990-0.999 vs before (one generation
fewer), audio identical, watermark position checked by eye.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reverts 1d3d20c (NVDEC decode + quarter-size blur): it changed the
delivered pixels (SSIM 0.998-0.9997, not identical), and clips must not
change. Replaces it with two fixes that leave every clip byte-identical.
- Parakeet's onnxruntime pool threads no longer spin
(transcribe_backends.parakeet_session_options). While the GPU did the
work they burned ~160 CPU-s per 9 min of audio, the biggest CPU cost of
a job. The VAD keeps load_vad's defaults: any options there make
onnx_asr drop its default providers and a word changes.
- analyze_scenes_strategy and split_layout read their sampled frames in
one forward pass (frame_sampler.read_at) instead of a seek per sample,
which re-decoded the GOP every time: 89 -> 6 CPU-s for one clip's
samples, same frames.
Bench on balrog, 3 Carlos Gracia videos (2.5/9/17 min, 15 clips), Gemini
decisions recorded once and replayed: every clip identical to the old
code (decoded-frame MD5s + audio). Serial stage profile of the 9 min
video: 629 -> 273 CPU-s per job; Python side 332 -> 57 CPU-s.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
At peak (8 jobs x 3 clip workers) balrog sat at load ~100 on 20 threads
while the RTX 4000's decoder stayed at 0%: NVENC only took the encode, and
decoding plus the filter graphs ran on the CPU, starving the Coolify builds
and every other service on the box.
- ffmpeg_utils.video_decode_args(): -hwaccel cuda before the video input
whenever the encode is on nvenc (FFMPEG_HWDECODE=0 turns it off). Used in
the cut, the reframe v2 segments, watermark, hook and caption passes.
- ffmpeg_utils.blurred_backdrop(): the GENERAL and INSET blurred fill blurs
at a quarter of the output size and scales up, instead of a full-size
gblur on 1080x1920.
Measured in the prod container on a real 1080p source, 10 s GENERAL
segment: ~16-18 s of CPU before, ~5-7 s after, SSIM 0.994 against the old
output. All four hwaccel passes checked end to end on the prod GPU.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
/api/social/post and the AI Shorts post sent the clip with a sync
httpx.Client inside an async handler, so the whole API froze for the
length of the upload. 23-sep-2026 19:47:48 UTC: one TikTok+YouTube post
stalled every request, /health included, for 42 s and the uptime monitor
paged "openshorts-api down" for 2 min. Both uploads (and the actor image
fetch in saasshorts_generate) now run through asyncio.to_thread; an AST
test rejects blocking httpx/requests calls inside async defs in app.py.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Uploads under 45 s (MIN_SOURCE_SECONDS) were only rejected by the server after
the whole file went up. The browser now reads the file's duration on select,
explains why it cannot be clipped, keeps Generate disabled, and the drop zone
states the minimum. A file the browser cannot read is left to the server.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A new user in the first-clips tutorial who submitted a 30 s video saw only
'That run failed. Try another video'; the server's actual reason ('this video
is only 30s long, clip generation needs at least 45s') was hidden, and outside
the tutorial it landed in the log panel as raw JSON. The FastAPI detail is now
read into plain text and shown in the tutorial card and the logs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Transcript: a finished live stream answers with a duration and no formats,
and was being reported as "YouTube is blocking us". The degraded-route test
now keys on the missing duration (watch page served without its player
response, seen anonymously on two of the three statics), so real
no-caption videos get the honest no-captions answer. Global daily cap
1,500.
- 9:16 converter: request AAC for MP4 output when the browser can encode it
(Opus-in-MP4 does not play in Safari) and only trim when the video is over
the 5 minute cap; show a frame in the preview instead of a black box.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- users.free_plan_denied (nullable, additive ALTER at boot): when set,
free_plan_eligible is False for any sign-in method; paid plans and
top-ups are untouched. is_free_user keeps such accounts on the free
7-day retention.
- Sign-up (magic link and Google) stamps "recreated_after_deletion" when
the address's fingerprint is in account_deletions within
FREE_REDO_BLOCK_DAYS (90): deleting and re-registering reset the
monthly 20 minutes.
- A magic-link request for an existing account re-checks its MX and stamps
"disposable_mx" when it matches the list (never blocks the sign-in).
- disposable_mx.txt: wabblywabble.com, wallywatts.com (the sep-2026 farm,
~100 front domains), den.yt, temp-mail-pro.com.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- security_utils: accept only is_global addresses (100.64.0.0/10, the
Tailscale range, went through is_private), judging IPv4-mapped / 6to4 /
Teredo / NAT64 IPv6 by the IPv4 inside.
- /api/process validates the URL (public host, one YouTube video) before
anything fetches it, and the quality probe now runs after the metering
step (balance, job limit, hourly probe cap); a low-quality confirm or a
too-short source hands the reservation back. quality_probe.py checks the
same itself, passes noplaylist and no longer disables TLS verification.
- Metered whole-video URL jobs carry SOURCE_CAP_MINUTES = reserved minutes
(job env + resume manifest); main.py cuts a download clearly longer than
that, so a server cannot answer the probe short and the download long.
- main.py / quality_probe.py get child_env(): the server secrets (Stripe,
JWT, DB, SMTP, Telegram, R2, AgentLedger, managed keys) are dropped; a
test fails if the pipeline ever reads one.
- /api/social/user no longer logs the whole Upload-Post profile list.
- Owner checks on /api/thumbnail/generate, /api/thumbnail/publish/status
(dashboard now polls with apiFetch) and /api/render/{id}; /video/{id}
and /gallery escape every interpolated value and drop non-http URLs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Free tools (no login), linked from nav and footer via /tools:
- /youtube-transcript-generator: reads the captions a video already has on
YouTube (free_tools.py, yt-dlp over the flat-rate static proxies only, never
the per-GB proxy, never the GPU). Per-IP limits, global daily cap, 24 h
cache, honest "no captions" answer with a CTA to the clip generator.
Copy / TXT / SRT export in the browser.
- /youtube-tag-generator: tags, 10 titles or a description from a brief, one
Gemini text call, rules taken from YouTube's own docs (sourced on the page).
- /video-aspect-ratio-converter: 16:9 to 9:16 in the browser with mediabunny
and WebCodecs (blur / crop / bars), nothing uploaded.
Tool pages keep the form in the static HTML; the behaviour is a Vite entry
(dashboard/tools) that vite-plugin-seo resolves by name.
New pages /auto-clip and /youtube-automation with real, blurred screenshots
of the Autopilot tab and the connect-an-agent card, Autopilot rules from
cloud/autopilot.py, plan prices from the billing API and aggregate usage
from the ledger (dated).
SEO fixes: titles/metas for /how-openshorts-works, /podcast-to-shorts, /mcp
and /free-ai-clip-generator (brand queries at pos 1-2 with <1% CTR); a free
AI clipper / free clipping website section and FAQ, and contextual "free AI
clip generator" anchors from sibling pages and the homepage.
Attribution: static pages now write the same first-touch os_attrib key the
app writes, so the signup is credited to the page the visit started on
(7,481 of 7,481 signups in 30 days said "/"). Signup, CheckoutStarted and
Subscribed carry landing_path / referrer_host / utm props in OpenPanel.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Benchmarked in the prod container on 10 real user videos (40 min of audio,
EN/ES/PT/FR-AR, 4,850 words) before changing anything:
config peak VRAM ASR time words != prod ts drift
prod (batch 8) 6.1 GB 32 s - -
batch 4 + lean arena 4.6 GB 38 s 1 (*) 0.1 ms
batch 2 + lean arena 4.1 GB 40 s dropped a sentence
int8 3.9 GB 350 s 11.7 % 168 ms
(*) outside the mixed-language clip, which goes to whisper in prod anyway.
Ship batch 4 with the arena growing only by what is requested and no max
cuDNN workspace (those two alone change nothing in the output).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A 9:10 source delivered 3 clips in prod where the pipeline had asked
itself for 6-12. Two independent leaks, both in the chain that derives
the clip count.
The scoring pass SELECTED instead of ranking: "choose up to 3 windows
from this batch" put the shortlist ceiling at 3 * n_batches rather than
shortlist_target, so 9 windows batched 8 + 1 shortlisted 4 of a target
of 8, and clip_count_targets then asked the detail pass for 4-8 clips
instead of 6-12. Every source under ~30 min was starved the same way,
which is the mechanism behind "95% of jobs deliver 3 clips or fewer" —
the clip count D2 retention hangs on (0.4% for 1-3 clips, 16.1% for
4-9). It also discarded the ranking it was computing: a batch holding
five great moments could still contribute only three, while a batch of
filler contributed its own three. The prompt now scores every window it
is given and the shortlist is the global top N.
Batches are near-equal instead of "full ones plus the remainder": a
trailing batch of one window came back with that window whatever its
score, because a cap of 3 cannot filter a batch of 1, so the tail of the
video entered the shortlist by arithmetic. Same call count as before.
And the floor was only a sentence in the detail prompt, with nothing in
code checking it, so a pass that returned half shipped half. When it
comes back under min_clips the shortlist windows that produced nothing
get one more call for the difference; an empty answer is accepted,
because padding is worse than a short list.
Measured on that source, same transcript, three runs: shortlist 4 -> 8,
clips 4 -> 6, cost unchanged (~$0.005, 3 calls).
- A job that fails for a reason on our side (CUDA/OOM, NVENC, cublas,
Gemini 5xx, no clip rendered) is re-queued once after 30 s, keeping its
reservation and transcript checkpoint. Content failures stay final.
- main.py renders clips best-score first and retries each failed clip once.
- A deploy's drain timeout no longer fails and refunds running jobs: the
child is killed, the manifest kept, and the next instance resumes it
(22-sep-2026: 6 jobs failed at once this way). Mid-render manifests are
resumed instead of being recovered as completed.
- /api/status returns the queue position and an ETA; the dashboard shows
it with a 'paid plans skip the line' upsell.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On 22-sep-2026 30-60% of jobs failed per hour at peak with 8 concurrent
jobs on a 20 GB GPU: a job three clips into its render still held 5.9 GB.
- main.py releases the ASR models right after transcribing (Parakeet's
onnxruntime CUDA arena lived until the process exited); TransNetV2
empties torch's cache after each pass.
- Host-wide cap on GPU transcriptions (flock slots on the shared output
volume, ASR_HOST_SLOTS=2), across job processes and deploy containers.
- The queue only starts a job when nvidia-smi reports GPU_MIN_FREE_MB free
(an idle card always starts).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
During a rolling deploy the old container finishes its running jobs on the
same GPU while the new one starts its own full MAX_CONCURRENT_JOBS. On
22-sep-2026 that was 7 old + 3 new jobs on a 20 GB card: TransNetV2 and
NVENC ran out of memory and 5 of 12 managed jobs failed. The new instance
now counts the jobs another instance is heartbeating and waits until the
total fits (bounded by the drain timeout; a killed instance goes stale in 60 s).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From the EU prod servers every /shorts/<id> HEAD is first a 302 to
consent.youtube.com, which read as 'not a Short' and let a 53 s Short
through to the pipeline. With SOCS/CONSENT set, a Short answers 200 and a
regular video 303 to /watch (checked from the prod container).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Most subscribers use OpenShorts on one day and cancel. Autopilot makes the
value recur: once switched on, every new upload on the user's YouTube channel
(listed through the existing Upload-Post connection, no scraping) is sent
through the normal /api/process pipeline, the user gets an email when the
clips are ready, and with autopublish on the best clips are scheduled on
their socials, one a day.
- cloud/autopilot.py: poller, in-process job submission as the user,
completion hook, autopublish, and /api/autopilot{,/videos,/run}
- guard rails: only videos published after switching on, max 3 days old,
1 automatic job per user per day, first N minutes per video, Shorts skipped,
paid plans only, dedupe by (user, video) across the deploy handover
- dashboard: new Autopilot tab (sidebar + mobile menu, #app?tab=autopilot)
- connect page can return to the Autopilot tab
- analytics: ClipsDelivered/JobFailed now report source=url and the plan
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The hourly sweep deleted job dirs and source uploads by age alone. With the
queue backed up (22-sep-2026) free jobs waited over an hour, so their dir
was removed under the worker: no clips, and the minute reservation stayed
held until the 3 h stuck sweep. 21 free users lost their job that way today,
most of them on their first run.
- _job_is_active(): running here, queued/processing in memory, or a fresh
resume manifest (the other instance's jobs during a handover). Manifests
pin a dir for at most ACTIVE_JOB_MAX_SECONDS (24 h).
- The age sweeps and both size caps skip active jobs and their sources.
- run_job_wrapper settles the reservation from the job record it started
with, so a vanished entry releases the minutes instead of holding them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The line is clamped to two lines so cards in a row stay level; a long
sentence then reads as '...how easily audiences...' with the rest only in
the native title tooltip. When the text actually overflows, hovering
(desktop) or tapping (touch) now floats the whole sentence over the card,
so nothing grows and the grid stays aligned.
The detail pass now returns a one-sentence `why` per clip (what makes this
moment a clip, not the topic), stored in the metadata and shown under the
title in the dashboard card: the score said how much, nothing said why.
Defaulted in the schema so a small local model that skips it keeps the clip.
After the word snap, clips overlapping an already-kept clip by half the
shorter one are dropped in favour of the higher predicted_score. The prompt's
DIVERSITY rule was the only thing preventing the same moment twice; in ~330
clips over 8 talks it never fired, so this is a guard, not a fix.
Each clip also keeps the model's raw `proposed` boundaries before the snap,
which is what made boundary accuracy measurable: p90 0.4-0.5 s from a word
on 8 talks (21-sep-2026), inside snap_clip_to_words' 1.5 s reach.
Two ideas borrowed from AutoClip were measured with a blind judge on the
same corpus and NOT adopted: quoting per-sentence timestamps in the detail
pass lost 24%/23% (p<0.001, two seeds — it shortens clips and drops the
payoff), and an "end on the reaction, not the line" rule was inert
(47%/53%, p=0.71).
The guard named the pages it knew (search, playlist, channel, @handle)
and let everything else through. A hashtag page and the legacy /<vanity>
channel URL are neither, so yt-dlp paginated the browse: on 20-sep-2026
one of them walked to page 23 on the static pool, the "Unable to
download API page" errors that produced read as an IP problem, and the
per-GB proxy was paid to walk the same pages again until YouTube
rate-limited it.
The set of pages that fan out is open-ended, so invert it: allow only
the paths that carry a video id (watch?v=, youtu.be/<id>, shorts, live,
embed, v, e, clip) and refuse the rest before any request. A
single-video shape we forgot costs the user one clear error message; a
browse we forgot costs a paginated crawl on three IPs plus the paid one.