feat(render+templates): Remotion engine, 16 branded templates (incl. 3D), seconds pricing, coming-soon
CI/CD / CI · Web (tsc) (push) Successful in 1m21s
CI/CD / Deploy · full stack (push) Failing after 20s

Render engine
- Add Remotion (code-based) as a 2nd render engine alongside After Effects.
  node-agent dispatches on Job.Engine; RunRemotion maps bindings -> --props,
  renders native then ffmpeg-scales to the quality tier (aspect-preserving).
- content.projects.render_engine + render_remotion_comp (migration 32);
  render-svc claim resolves engine and routes (skips .aep for Remotion).
- Admin TemplatesAdmin gains an engine picker + Remotion composition id field.

Template pack (services/remotion)
- 16 branded, Persian (Vazirmatn), color- and text-editable templates, each in
  3 aspects (16:9 / 1:1 / 9:16): LogoMotion, Opener, InstaPromo, YouTubeIntro,
  Slideshow, HappyBirthday, SalePromo, QuoteCard, EventInvite, Countdown,
  GlitterReveal (editable logo image), NowruzGreeting (animated characters),
  and 4 cinematic 3D templates via @remotion/three (Hero3D, Nowruz3D,
  Birthday3D, Promo3D) with reflections + bloom/DOF/vignette.
- scripts/seed_remotion_templates.py seeds containers/projects/scenes/colors.

Pricing
- Rewrite /pricing to the seconds-based model (charge = length x resolution),
  data-driven from /v1/plans, Toman, broker checkout.

Coming-soon
- Persian experimental-build overlay on all pages (launch date + countdown).

Fixes
- middleware matcher bypasses all static asset paths; catalog mapping passes
  cover image + preview video so real thumbnails render.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
soroush.asadi
2026-06-21 15:52:52 +03:30
parent b9b91397b0
commit 4f04f6bf75
137 changed files with 8942 additions and 135 deletions
+41 -3
View File
@@ -144,14 +144,14 @@
"a7": "Yes. Cancel from your account settings at any time. You keep access through the end of your billing period, and you can downgrade to Free without losing your projects."
},
"pricing": {
"heading": "Choose your FlatRender plan",
"heading": "Pay by the second, not by the video",
"monthly": "Monthly",
"annual": "Annual",
"saveBadge": "Save up to {percent}%",
"subscribe": "Subscribe",
"freeBannerTitle": "Free plan",
"freeBannerDesc": "Free forever, no credit card required",
"perMonth": "/ mo",
"perMonth": "monthly",
"billedAnnually": "billed annually",
"compareTitle": "Compare all plans",
"allFeatures": "All features",
@@ -161,7 +161,45 @@
"proName": "Pro",
"proDesc": "Become a pro and unlock more powerful video, design and website editing tools for commercial use.",
"businessName": "Business",
"businessDesc": "Advanced level solution for teams and businesses. Includes reseller license."
"businessDesc": "Advanced level solution for teams and businesses. Includes reseller license.",
"subheading": "Each render costs render-seconds equal to the video length × a quality multiplier. Every plan gives you a monthly bucket of render-seconds.",
"toman": "Toman",
"free": "Free",
"mostPopular": "Most popular",
"currentPlan": "Current plan",
"choosePlan": "Choose plan",
"startFree": "Start free",
"processing": "Redirecting…",
"signInToBuy": "Sign in to buy",
"emptyState": "No plans are available right now.",
"perMonthSuffix": "/ mo",
"featSeconds": "{seconds} render-seconds / month",
"featResolution": "Up to {res} quality",
"featParallelOne": "1 render at a time",
"featParallel": "{n} parallel renders",
"featStorage": "{gb} GB cloud storage",
"featSpeed": "{factor}× render speed",
"featWatermarkOn": "FlatRender watermark",
"featWatermarkOff": "No watermark",
"calcTitle": "How many seconds do I need?",
"calcDesc": "Pick a video length and quality to see the per-render cost in seconds.",
"calcLength": "Video length",
"calcResolution": "Output quality",
"calcCost": "Cost per render",
"calcSecondsUnit": "seconds",
"calcRendersWith": "With each plan:",
"calcVideosFmt": "≈ {count} videos",
"multiplierTitle": "Quality multiplier",
"multiplierDesc": "Render-seconds per render = video length × the multiplier below.",
"multiplierColRes": "Quality",
"multiplierColMul": "Multiplier",
"faqTitle": "Frequently asked",
"faqQ1": "What is a render-second?",
"faqA1": "Instead of a video-count limit, you buy render-seconds. A 15-second video at 720p uses exactly 15 seconds of your balance.",
"faqQ2": "Why does higher quality cost more seconds?",
"faqA2": "4K rendering is much heavier, so each second of video counts as 4 render-seconds; 1080p counts as 2×.",
"faqQ3": "What if I run out of seconds?",
"faqA3": "Upgrade your plan or wait for the next period. Your max resolution and parallel renders also follow your plan."
},
"footer": {
"brandName": "FlatRender",
+41 -3
View File
@@ -144,14 +144,14 @@
"a7": "بله. هر زمان از تنظیمات حساب لغو کنید. دسترسی تا پایان دوره صورت‌حساب باقی می‌ماند و می‌توانید به پلن رایگان برگردید بدون اینکه پروژه‌هایتان از دست بروند."
},
"pricing": {
"heading": لن فلت‌رندر خود را انتخاب کنید",
"heading": رداخت بر اساس ثانیه، نه تعداد ویدیو",
"monthly": "ماهانه",
"annual": "سالانه",
"saveBadge": "تا {percent}٪ صرفه‌جویی",
"subscribe": "اشتراک",
"freeBannerTitle": "پلن رایگان",
"freeBannerDesc": "برای همیشه رایگان، بدون نیاز به کارت اعتباری",
"perMonth": "/ ماه",
"perMonth": "ماهانه",
"billedAnnually": "پرداخت سالانه",
"compareTitle": "مقایسه همه پلن‌ها",
"allFeatures": "همه امکانات",
@@ -161,7 +161,45 @@
"proName": "Pro",
"proDesc": "حرفه‌ای شوید و ابزارهای قدرتمندتر ویدیو، طراحی و وب‌سایت را برای استفاده تجاری باز کنید.",
"businessName": "Business",
"businessDesc": "راه‌حل پیشرفته برای تیم‌ها و کسب‌وکارها. شامل مجوز فروش مجدد."
"businessDesc": "راه‌حل پیشرفته برای تیم‌ها و کسب‌وکارها. شامل مجوز فروش مجدد.",
"subheading": "هزینهٔ هر رندر برابر است با طول ویدیو ضربدر ضریب کیفیت. هر پلن ماهانه مقداری «ثانیهٔ رندر» در اختیار شما می‌گذارد.",
"toman": "تومان",
"free": "رایگان",
"mostPopular": "محبوب‌ترین",
"currentPlan": "پلن فعلی",
"choosePlan": "انتخاب پلن",
"startFree": "شروع رایگان",
"processing": "در حال انتقال…",
"signInToBuy": "برای خرید وارد شوید",
"emptyState": "در حال حاضر پلنی برای نمایش وجود ندارد.",
"perMonthSuffix": "/ ماه",
"featSeconds": "{seconds} ثانیهٔ رندر در ماه",
"featResolution": "کیفیت تا {res}",
"featParallelOne": "۱ رندر همزمان",
"featParallel": "{n} رندر همزمان",
"featStorage": "{gb} گیگابایت فضای ابری",
"featSpeed": "سرعت رندر ×{factor}",
"featWatermarkOn": "دارای واترمارک FlatRender",
"featWatermarkOff": "بدون واترمارک",
"calcTitle": "چند ثانیه لازم دارم؟",
"calcDesc": "طول و کیفیت ویدیو را انتخاب کنید تا هزینهٔ ثانیه‌ای هر رندر را ببینید.",
"calcLength": "طول ویدیو",
"calcResolution": "کیفیت خروجی",
"calcCost": "هزینهٔ هر رندر",
"calcSecondsUnit": "ثانیه",
"calcRendersWith": "با هر پلن:",
"calcVideosFmt": "≈ {count} ویدیو",
"multiplierTitle": "ضریب کیفیت",
"multiplierDesc": "ثانیهٔ مصرفی هر رندر = طول ویدیو × ضریب کیفیت زیر.",
"multiplierColRes": "کیفیت",
"multiplierColMul": "ضریب",
"faqTitle": "پرسش‌های پرتکرار",
"faqQ1": "ثانیهٔ رندر یعنی چه؟",
"faqA1": "به‌جای محدودیت تعداد ویدیو، شما مقداری ثانیهٔ رندر می‌خرید. یک ویدیوی ۱۵ ثانیه‌ای با کیفیت ۷۲۰p دقیقاً ۱۵ ثانیه از سهم شما کم می‌کند.",
"faqQ2": "چرا کیفیت بالاتر ثانیهٔ بیشتری می‌برد؟",
"faqA2": "رندر ۴K پردازش سنگین‌تری دارد، بنابراین هر ثانیه ویدیو معادل ۴ ثانیهٔ رندر حساب می‌شود؛ ۱۰۸۰p معادل ۲ برابر.",
"faqQ3": "اگر ثانیه‌هایم تمام شود چه می‌شود؟",
"faqA3": "می‌توانید پلن خود را ارتقا دهید یا تا شروع دورهٔ بعد صبر کنید. سقف کیفیت و رندر همزمان نیز بر اساس پلن شماست."
},
"footer": {
"brandName": "فلت‌رندر",