Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
Optimize /tools/video-speed-controller page content and metadata
Richie McIlroya4f6cf3d85cd
diff --git a/apps/web/__tests__/unit/video-speed-controller-page.test.ts b/apps/web/__tests__/unit/video-speed-controller-page.test.tsnew file mode 100644index 000000000..909a156e8--- /dev/null+++ b/apps/web/__tests__/unit/video-speed-controller-page.test.ts@@ -0,0 +1,186 @@+import { readFileSync } from "node:fs";+import { join } from "node:path";+import { describe, expect, it } from "vitest";+import { createFAQSchema, createHowToSchema } from "@/utils/web-schema";++const pageSource = readFileSync(+ join(process.cwd(), "app/(site)/tools/video-speed-controller/page.tsx"),+ "utf-8",+);++describe("Video Speed Controller page metadata", () => {+ it("contains canonical URL", () => {+ expect(pageSource).toContain(+ 'canonical: "https://cap.so/tools/video-speed-controller"',+ );+ });++ it("contains full OG image URL", () => {+ expect(pageSource).toContain('"https://cap.so/og.png"');+ });++ it("contains OG url field", () => {+ expect(pageSource).toContain(+ 'url: "https://cap.so/tools/video-speed-controller"',+ );+ });++ it("contains OG siteName field", () => {+ expect(pageSource).toContain('siteName: "Cap"');+ });++ it("contains OG locale field", () => {+ expect(pageSource).toContain('locale: "en_US"');+ });+});++describe("Video Speed Controller page structured data", () => {+ it("contains FAQPage JSON-LD", () => {+ expect(pageSource).toContain('"@type": "FAQPage"');+ });++ it("contains HowTo JSON-LD", () => {+ expect(pageSource).toContain('"@type": "HowTo"');+ });++ it("contains at least 6 FAQ questions", () => {+ const matches = pageSource.match(/question:/g);+ expect(matches).not.toBeNull();+ expect(matches?.length).toBeGreaterThanOrEqual(6);+ });++ it("contains HowTo steps", () => {+ expect(pageSource).toContain('"@type": "HowToStep"');+ });+});++describe("Video Speed Controller FAQ schema validity", () => {+ const faqs = [+ {+ question: "How do I change the speed of a video online?",+ answer:+ "Open Cap's Video Speed Controller, drag and drop your video file (or click to browse), select your target speed from 0.25× to 3×, then click Speed Up or Slow Down Video. The entire process runs in your browser — your file never leaves your device. Once processing is complete, preview and download the result.",+ },+ {+ question: "What video formats does the speed controller support?",+ answer:+ "MP4, WebM, MOV, AVI and MKV are all supported — essentially any video format modern browsers can decode. Chrome is recommended for the best compatibility and performance.",+ },+ {+ question: "Is the video speed controller free?",+ answer:+ "Yes, completely free with no limits on the number of videos you can process. There are no watermarks, no sign-up required, and no hidden fees. The tool runs entirely in your browser at zero cost.",+ },+ {+ question: "Will my video quality change when I adjust the speed?",+ answer:+ "No. The tool preserves your original resolution and bitrate — only the playback speed changes. There is no re-encoding that degrades visual quality. Audio pitch is also automatically corrected to stay natural at the new speed.",+ },+ {+ question: "Is there a file size limit?",+ answer:+ "Up to 500 MB for smooth in-browser performance. For larger files, consider trimming the video first to keep only the section you need, then adjusting the speed.",+ },+ {+ question: "Why is processing taking a long time?",+ answer:+ "Browser-based video processing relies on your device's hardware. Older CPUs or GPUs, throttled mobile devices, and very long or high-resolution videos will take longer. For fastest results, use Chrome on a modern desktop or laptop.",+ },+ {+ question: "Does this work on iPhone or Android?",+ answer:+ "Yes — modern Safari, Chrome, and Firefox on mobile are supported, though Chrome on desktop delivers the most reliable performance. If you encounter issues on mobile, try Chrome or Firefox instead of the default browser.",+ },+ {+ question: "Do I need to install any software?",+ answer:+ "No. The tool runs entirely in your browser — no downloads, no plugins, no extensions required. Just open the page and start adjusting your video speed. All processing happens locally on your device for complete privacy.",+ },+ ];++ it("produces valid FAQPage schema with all 8 questions", () => {+ const schema = createFAQSchema(faqs);++ expect(schema["@context"]).toBe("https://schema.org");+ expect(schema["@type"]).toBe("FAQPage");+ expect(schema.mainEntity).toHaveLength(8);+ });++ it("maps each FAQ to a Question entity with acceptedAnswer", () => {+ const schema = createFAQSchema(faqs);++ expect(schema.mainEntity[0]).toEqual({+ "@type": "Question",+ name: "How do I change the speed of a video online?",+ acceptedAnswer: {+ "@type": "Answer",+ text: faqs[0].answer,+ },+ });+ });++ it("produces JSON-serializable output", () => {+ const schema = createFAQSchema(faqs);+ expect(() => JSON.stringify(schema)).not.toThrow();+ const parsed = JSON.parse(JSON.stringify(schema));+ expect(parsed["@type"]).toBe("FAQPage");+ expect(parsed.mainEntity).toHaveLength(8);+ });+});++describe("Video Speed Controller HowTo schema validity", () => {+ const howToSteps = [+ {+ name: "Upload your video file",+ text: "Open Cap's Video Speed Controller and drag and drop your video into the upload area, or click to browse your files. Supported formats include MP4, WebM, MOV, AVI, and MKV up to 500 MB.",+ },+ {+ name: "Select your target speed",+ text: "Choose a playback speed from the options: 0.25× (very slow) up to 3× (ultra fast). The tool shows an estimated output duration so you know exactly how long the processed video will be.",+ },+ {+ name: "Process and download your video",+ text: "Click Speed Up or Slow Down Video. Processing runs entirely in your browser — nothing is uploaded to any server. Once complete, preview the result and click Download to save the speed-adjusted video.",+ },+ ];++ it("produces valid HowTo schema with 3 steps", () => {+ const schema = createHowToSchema({+ name: "How to Change Video Speed Online",+ description:+ "Adjust the playback speed of any video for free using Cap's browser-based speed controller. No upload required.",+ steps: howToSteps,+ });++ expect(schema["@context"]).toBe("https://schema.org");+ expect(schema["@type"]).toBe("HowTo");+ expect(schema.step).toHaveLength(3);+ });++ it("assigns correct positions to each step", () => {+ const schema = createHowToSchema({+ name: "How to Change Video Speed Online",+ description: "Adjust video playback speed directly in your browser.",+ steps: howToSteps,+ });++ expect(schema.step[0].position).toBe(1);+ expect(schema.step[0].name).toBe("Upload your video file");+ expect(schema.step[1].position).toBe(2);+ expect(schema.step[2].position).toBe(3);+ expect(schema.step[2].name).toBe("Process and download your video");+ });++ it("produces JSON-serializable output", () => {+ const schema = createHowToSchema({+ name: "How to Change Video Speed Online",+ description: "Adjust video playback speed directly in your browser.",+ steps: howToSteps,+ });++ expect(() => JSON.stringify(schema)).not.toThrow();+ const parsed = JSON.parse(JSON.stringify(schema));+ expect(parsed["@type"]).toBe("HowTo");+ expect(parsed.step).toHaveLength(3);+ });+});diff --git a/apps/web/app/(site)/tools/video-speed-controller/page.tsx b/apps/web/app/(site)/tools/video-speed-controller/page.tsxindex 916dc465e..3ea121a3c 100644--- a/apps/web/app/(site)/tools/video-speed-controller/page.tsx+++ b/apps/web/app/(site)/tools/video-speed-controller/page.tsx@@ -1,83 +1,209 @@+import type { Metadata } from "next";import { SpeedController } from "@/components/tools/SpeedController";import { ToolsPageTemplate } from "@/components/tools/ToolsPageTemplate";+import type { ToolPageContent } from "@/components/tools/types";-const content = {- title: "Video Speed Controller (0.25×-3×)",- description:- "Instantly speed up or slow down any MP4, WebM or MOV in your browser. No uploads, no quality loss.",- featuresTitle: "Why Use Our Online Video Speed Controller?",- featuresDescription:- "Powered by WebCodecs + Remotion, Cap processes every frame locally for near-instant results—while keeping your files 100% private.",- features: [- {- title: "WebCodecs-Level Speed",- description:- "Modern browser APIs crunch frames directly on your GPU/CPU, so even large clips render in seconds.",- },- {- title: "100% Private",- description:- "Nothing ever touches a server. All encoding and decoding stays on-device.",- },- {- title: "Fine-Grained Control (0.25×-3×)",- description:- "Dial in super-slow 0.25× for tutorials or crank up to 3× for snappy demos—audio pitch is auto-corrected.",- },- ],- faqs: [- {- question: "What video formats can I adjust?",- answer:- "MP4, WebM, MOV, AVI and MKV are all supported—basically anything modern browsers can decode. Chrome is recommended for best results.",- },- {- question: "Is there a file-size limit?",- answer: "Up to 500 MB for smooth in-browser performance.",- },- {- question: "Will my video quality drop?",- answer:- "No. We preserve your original resolution and bitrate; only playback speed changes.",- },- {- question: "Why is processing still slow on my laptop?",- answer:- "WebCodecs relies on your device's hardware. Older CPUs/GPUs or throttled mobiles will take longer.",- },- {- question: "Can I use this on iOS / Android?",- answer:- "Yes—modern Safari, Chrome and Firefox are supported, but Chrome is recommended.",- },- ],- cta: {- title: "Need heavier-duty video tools?",- description:- "Grab Cap — the open-source screen recorder & editor that lives on your machine.",- buttonText: "Download Cap Free",- },-};--export default function SpeedControllerPage() {- return (- <ToolsPageTemplate content={content} toolComponent={<SpeedController />} />- );-}--export const metadata = {+export const metadata: Metadata = {title:- "Video Speed Controller Online – Speed Up or Slow Down Videos (0.25×-3×)",+ "Video Speed Controller Online – Speed Up or Slow Down Videos Free | Cap",description:- "Free WebCodecs-powered tool to change video speed online. Adjust playback from 0.25× to 3× without quality loss—processed locally for privacy.",+ "Free online video speed controller. Adjust playback from 0.25× to 3× without quality loss — processed locally in your browser for complete privacy. No uploads required.",keywords: ["video speed controller","speed up video online","slow down video online","change video playback speed","adjust video speed in browser",+ "video speed changer free",+ "online video speed controller",],+ openGraph: {+ title:+ "Video Speed Controller Online – Speed Up or Slow Down Videos Free | Cap",+ description:+ "Adjust video playback speed from 0.25× to 3× directly in your browser. Free, private, no uploads — works with MP4, WebM, MOV, AVI and MKV.",+ url: "https://cap.so/tools/video-speed-controller",+ siteName: "Cap",+ images: [+ {+ url: "https://cap.so/og.png",+ width: 1200,+ height: 630,+ alt: "Cap Video Speed Controller — Free Online Video Speed Changer",+ },+ ],+ locale: "en_US",+ type: "website",+ },+ twitter: {+ card: "summary_large_image",+ title:+ "Video Speed Controller Online – Speed Up or Slow Down Videos Free | Cap",+ description:+ "Adjust video playback speed from 0.25× to 3× directly in your browser. Free, private, no uploads required.",+ images: ["https://cap.so/og.png"],+ },alternates: {canonical: "https://cap.so/tools/video-speed-controller",},};++const faqs = [+ {+ question: "How do I change the speed of a video online?",+ answer:+ "Open Cap's Video Speed Controller, drag and drop your video file (or click to browse), select your target speed from 0.25× to 3×, then click Speed Up or Slow Down Video. The entire process runs in your browser — your file never leaves your device. Once processing is complete, preview and download the result.",+ },+ {+ question: "What video formats does the speed controller support?",+ answer:+ "MP4, WebM, MOV, AVI and MKV are all supported — essentially any video format modern browsers can decode. Chrome is recommended for the best compatibility and performance.",+ },+ {+ question: "Is the video speed controller free?",+ answer:+ "Yes, completely free with no limits on the number of videos you can process. There are no watermarks, no sign-up required, and no hidden fees. The tool runs entirely in your browser at zero cost.",+ },+ {+ question: "Will my video quality change when I adjust the speed?",+ answer:+ "No. The tool preserves your original resolution and bitrate — only the playback speed changes. There is no re-encoding that degrades visual quality. Audio pitch is also automatically corrected to stay natural at the new speed.",+ },+ {+ question: "Is there a file size limit?",+ answer:+ "Up to 500 MB for smooth in-browser performance. For larger files, consider trimming the video first to keep only the section you need, then adjusting the speed.",+ },+ {+ question: "Why is processing taking a long time?",+ answer:+ "Browser-based video processing relies on your device's hardware. Older CPUs or GPUs, throttled mobile devices, and very long or high-resolution videos will take longer. For fastest results, use Chrome on a modern desktop or laptop.",+ },+ {+ question: "Does this work on iPhone or Android?",+ answer:+ "Yes — modern Safari, Chrome, and Firefox on mobile are supported, though Chrome on desktop delivers the most reliable performance. If you encounter issues on mobile, try Chrome or Firefox instead of the default browser.",+ },+ {+ question: "Do I need to install any software?",+ answer:+ "No. The tool runs entirely in your browser — no downloads, no plugins, no extensions required. Just open the page and start adjusting your video speed. All processing happens locally on your device for complete privacy.",+ },+];++const howToSteps = [+ {+ name: "Upload your video file",+ text: "Open Cap's Video Speed Controller and drag and drop your video into the upload area, or click to browse your files. Supported formats include MP4, WebM, MOV, AVI, and MKV up to 500 MB.",+ },+ {+ name: "Select your target speed",+ text: "Choose a playback speed from the options: 0.25× (very slow) up to 3× (ultra fast). The tool shows an estimated output duration so you know exactly how long the processed video will be.",+ },+ {+ name: "Process and download your video",+ text: "Click Speed Up or Slow Down Video. Processing runs entirely in your browser — nothing is uploaded to any server. Once complete, preview the result and click Download to save the speed-adjusted video.",+ },+];++const faqStructuredData = {+ "@context": "https://schema.org",+ "@type": "FAQPage",+ mainEntity: faqs.map((faq) => ({+ "@type": "Question",+ name: faq.question,+ acceptedAnswer: {+ "@type": "Answer",+ text: faq.answer,+ },+ })),+};++const howToStructuredData = {+ "@context": "https://schema.org",+ "@type": "HowTo",+ name: "How to Change Video Speed Online",+ description:+ "Adjust the playback speed of any video for free using Cap's browser-based speed controller. No upload required.",+ step: howToSteps.map((step, index) => ({+ "@type": "HowToStep",+ position: index + 1,+ name: step.name,+ text: step.text,+ })),+ tool: {+ "@type": "HowToTool",+ name: "A modern web browser (Chrome, Edge, or Brave recommended)",+ },+};++export default function SpeedControllerPage() {+ const pageContent: ToolPageContent = {+ title: "Video Speed Controller (0.25×–3×)",+ description:+ "Speed up or slow down any video directly in your browser — free, private, and no installation required",+ featuresTitle: "Why Use This Online Video Speed Controller",+ featuresDescription:+ "A fast, free, and private way to adjust video speed — entirely in your browser with no uploads and no quality loss.",+ features: [+ {+ title: "100% Browser-Based",+ description:+ "All processing runs locally in your browser. No server uploads, no processing queues — your files stay on your device at all times.",+ },+ {+ title: "Wide Speed Range (0.25×–3×)",+ description:+ "Dial in super-slow 0.25× for step-by-step tutorials, or crank up to 3× for quick demos. Audio pitch is automatically corrected to stay natural at any speed.",+ },+ {+ title: "No Quality Loss",+ description:+ "The tool preserves your original resolution and bitrate. Only the playback speed changes — there is no re-encoding that degrades visual quality.",+ },+ {+ title: "Complete Privacy",+ description:+ "Your video files never leave your device. Unlike other online tools that upload your content to remote servers, all processing happens client-side.",+ },+ {+ title: "No Sign-Up or Installation",+ description:+ "No software downloads, browser extensions, or accounts required. Just open the page and start adjusting — works instantly in Chrome, Edge, and Brave.",+ },+ {+ title: "Supports All Common Formats",+ description:+ "Works with MP4, WebM, MOV, AVI, and MKV files up to 500 MB. Compatible with screen recordings, tutorials, product demos, and any other video content.",+ },+ ],+ faqs,+ cta: {+ title: "Cap is the open source Loom alternative",+ description:+ "Record, edit, and share video messages with Cap. 100% open source and privacy focused. No speed adjustments needed — just hit record.",+ buttonText: "Download Cap Free",+ },+ };++ return (+ <>+ <script+ type="application/ld+json"+ dangerouslySetInnerHTML={{+ __html: JSON.stringify(faqStructuredData),+ }}+ />+ <script+ type="application/ld+json"+ dangerouslySetInnerHTML={{+ __html: JSON.stringify(howToStructuredData),+ }}+ />+ <ToolsPageTemplate+ content={pageContent}+ toolComponent={<SpeedController />}+ />+ </>+ );+}