mdgate converters

MP4 to Markdown in your browser.

Convert MP4 files to GitHub-Flavored Markdown directly in your browser.

Your MP4 stays on your device. No upload. No account.

Starting local converter

Use MP4 to Markdown in your app

$ npm install @mdgate/video

// Register the callback your app already uses
import { create } from '@mdgate/core';
import { video } from '@mdgate/video';

const toMarkdown = create([
  video(yourCallback),
]);

const markdown = await toMarkdown(bytes);

Pure TypeScript, Node.js, Cloudflare Workers, Edge, Browser, No Python, No native addons, No WASM, Zero third-party runtime dependencies

How MP4 to Markdown works

  1. MP4
  2. video detection
  3. your video callback
  4. GitHub-Flavored Markdown

Built for JavaScript runtimes

Node.js

Read local files, uploads, S3/R2 objects, and other byte sources.

Cloudflare Workers

Detect video inside Workers, then call the function you register.

Browser

Files stay in the browser. Video understanding still needs the callback your application provides.

Edge

Run the same TypeScript converter in compatible Edge runtimes.

What @mdgate/video extracts

  • MP4, M4V, MOV, WebM, Matroska, and AVI detection
  • The whole file passed to your callback
  • No decode, transcode, or frame extraction inside mdgate

Detection vs Understanding

Detection

video bytes → @mdgate/video

Understanding

your video model → Markdown

@mdgate/video does not silently send video to a model.

Why @mdgate/video

Runs where your JavaScript runs

No separate processing service. The converter is TypeScript you can call from Node.js, Cloudflare Workers, Edge runtimes, and browsers.

Local conversion

Detection stays local. Model work happens only through a callback you register.

Content detection

Recognizes MP4 files from their contents, not only the filename.

Deterministic parsing

Format detection is deterministic. Any model output comes from the callback you supply.

Small runtime surface

No Python. No native addons. No WASM. No third-party runtime dependencies.

MP4 for AI agents

Turn MP4 files into content your agent can actually work with.

  1. MP4
  2. Markdown
    • grep
    • search
    • chunk
    • index
    • cache
    • cite
    • reason

Need more than MP4?

One format

@mdgate/video

Your own set

@mdgate/core
+ @mdgate/video
+ @mdgate/pdf
+ @mdgate/docx

Broad file support

@mdgate/converters

FAQ

Can I convert MP4 to Markdown without uploading it?

Files you drop on this page stay in the browser. MP4 conversion that needs a model still requires a callback in your application.

Does MP4 to Markdown work in Cloudflare Workers?

Yes. @mdgate/video runs directly in Cloudflare Workers.

Does it require Python?

No.

Does it require native addons or WASM?

No.

What does it output?

GitHub-Flavored Markdown.

Can I install only the MP4 converter?

Yes. Install @mdgate/video instead of the complete converter set.

Does it caption video in the browser demo?

No. video() is not in all(). Connect the video model your application already uses.