Your videos on any website
Every .mp4 uploaded here can play on your own website, in our player, with one line of HTML: the Embed box on its FileDitch page has the code, ready to copy. Your visitors see a play button and nothing heavy loads until they press it; then their browser passes a short automatic check (no captcha) and the video starts.
No limits. Embed as many videos as you like, on as many sites as you like: there is no cap on plays, viewers or bandwidth, and FileDitch handles any amount of traffic, from a small blog to a site with millions of visitors.
Adult videos are allowed. Porn and other adult videos can be embedded like any other video, as long as they are legal: everyone in them is 18 or older.
At most one ad every 15 minutes. A click in the player opens a popunder ad, at most once every 15 minutes per visitor. No banners over your video, no ads before it starts: that is what pays for unlimited embedding.
Or no ad at all. Videos of a premium account on the No ads or Hotlink plan play without the popunder.
The Embed box on the file's FileDitch page has this code, ready to copy. Or write it yourself: take the address of the file's FileDitch page (not a theditch.st short link) and put embedditch.st in place of its domain (fileditchvids.st, itsfileditchfiles.st, fileditchfiles.st or fileditchfiles.me):
<iframe src="https://embedditch.st/alpha27/a3f9c1b2d4e5f6071829/yourfile.mp4" style="width:100%;aspect-ratio:16/9;border:0" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen loading="lazy" title="FileDitch video"></iframe>
allow and allowfullscreen make the fullscreen and picture-in-picture buttons work.loading="lazy" starts the player only when the visitor scrolls near it, so a page with many videos stays fast.style makes the player as wide as its column, at 16:9. For a vertical video, use aspect-ratio:9/16 and add a max-width, for example max-width:360px.title is what screen readers announce: put the video's name in it.sandbox: the player cannot start in a sandboxed frame. And keep the default referrer policy (no referrerpolicy="no-referrer"): the player needs to know which site it is on.aspect-ratio works in every browser from 2021 on. To support older ones too, put the player in a 16:9 box instead:
<div style="position:relative;padding-top:56.25%"><iframe src="https://embedditch.st/alpha27/a3f9c1b2d4e5f6071829/yourfile.mp4" style="position:absolute;top:0;left:0;width:100%;height:100%;border:0" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen loading="lazy" title="FileDitch video"></iframe></div>
Opening an embed link on its own, in a browser tab, takes you to the file's FileDitch page.
A poster frame of your video with a play button. Nothing else loads until the visitor presses play, so a page with many videos stays fast.
When they press play, their browser passes a short automatic check (no captcha, nothing to click), then the video plays in our player, with fullscreen and picture-in-picture.
That first click also opens one popunder ad, at most once every 15 minutes per visitor. There are no banners over the video and no ads before it.
Videos of a premium account on the No ads or Hotlink plan play without the popunder.
The player speaks your visitor's language: it follows their browser.
If the file is gone, the player says so instead of playing (see the questions below).
.mp4 files and nothing else: convert a MOV, MKV or WebM first (renaming the file does not count).yuv420p). The one video format every browser and every phone plays. Not HEVC (H.265, x265), not AV1, not VP9, not 10-bit.moov) at the front of the file, so playback starts at once instead of after a trip to the end of the file.This one command covers the list, apart from HDR (fix that at the camera) and a variable frame rate (see below the command). It keeps your video's size if the shorter side is 1080 pixels or less (rounded to even numbers) and scales anything bigger down to 1080p, portrait videos included:
ffmpeg -i input.mp4 -vf "scale='if(gte(iw,ih),-2,min(1080,trunc(iw/2)*2))':'if(gte(iw,ih),min(1080,trunc(ih/2)*2),-2)'" -c:v libx264 -preset medium -crf 21 -maxrate 6M -bufsize 12M -pix_fmt yuv420p -profile:v high -force_key_frames "expr:gte(t,n_forced*2)" -c:a aac -b:a 160k -ac 2 -movflags +faststart output.mp4
At 50 or 60 fps, raise the cap with -maxrate 8M -bufsize 16M. For a recording with a variable frame rate, add -fps_mode cfr -r 30 (or -r 60) just before output.mp4; ffmpeg older than 5.1 wants -vsync cfr instead of -fps_mode cfr.
How to check what is inside a file, a quicker fix for a file that is already H.264 and AAC, and the HandBrake settings: see the encoding guide.
Yes. Embedding costs nothing and needs no account. The popunder, at most one per visitor every 15 minutes, is what pays for it.
Videos of a premium account on the No ads or Hotlink plan play without the popunder.
No limits. Embed as many videos as you like, on as many sites as you like: there is no cap on plays, viewers or bandwidth, and FileDitch handles any amount of traffic, from a small blog to a site with millions of visitors.
Adult videos are allowed. Porn and other adult videos can be embedded like any other video, as long as they are legal: everyone in them is 18 or older.
Any .mp4 file on FileDitch. Other video formats (MOV, MKV, WebM, AVI) cannot be embedded: convert them to MP4 first, renaming the file does not count. Pictures, music and other files cannot be embedded at all.
No. A video uploaded without an account embeds the same way.
On the file's page: open the link you got after the upload and copy the code from the Embed box under the video. You can also write it yourself, as shown above.
Not in the embed code. Open the short link and use the address of the file's page it leads to.
Download links are signed, expire after a while and only work on the network of the visitor who opened the file's page, so a direct link breaks on other sites. The player gets a fresh link for every visitor: use the iframe.
Anywhere that accepts HTML: your own site, WordPress (paste it into a Custom HTML block), Blogger (the HTML view of a post), site builders with an HTML or embed block, and forums that allow iframes.
You cannot put an iframe in a post there. Post the link to the file's FileDitch page instead.
No. It starts when the visitor presses play: that click also runs the automatic check that keeps bots out.
No, the embed address takes no options. In the player, your visitors can seek, change the volume and go fullscreen.
The style in the code makes the player as wide as its column, at 16:9: change the width there, or put the iframe in a box of the size you want. For a vertical video, use aspect-ratio:9/16 and a max-width.
Yes, in every modern browser, on phones and computers. Whether the video plays everywhere depends on the file: H.264 video with AAC sound plays on every device.
Almost always the file: HEVC (H.265) or 10-bit video, or AC-3, DTS or Opus sound inside the MP4. Check it as the encoding guide shows, encode it with the command above and upload it again. The quick test: if it does not play on its own FileDitch page, it will not play embedded either.
Usually keyframes too far apart, a bitrate that is too high or a variable frame rate. The command above fixes all three and adds faststart, so playback starts at once.
The address in your code is not the link of an .mp4 file on FileDitch. Check it for a typo, and that it ends in .mp4.
The file was deleted, or cannot be reached at the moment. A deleted video does not come back: upload it again and use the new code.
A short maintenance or a busy moment on our side. There is nothing to change on your site: press Retry in the player, or try again in a few minutes.
Remove any sandbox attribute from the iframe, and any referrerpolicy="no-referrer". If your site sends a Content-Security-Policy, allow the player with frame-src https://embedditch.st.
Yes: videos of a premium account on the No ads or Hotlink plan play without it. You choose the plan on your account page; it covers the files in My files, the ones you upload while logged in or with your login token. Every other video keeps that one popunder: it pays for free, unlimited embedding. There are no banners over your video and no ads before it.
The player itself sets no cookies. It counts each play as a view of the file. The popunder comes from an ad network, which has its own rules.
Yes, each play counts as one view of the file, just like a visit of its page. The Status API returns the view count of the file, plays included.
As long as any other file on FileDitch: see how long files are kept.
No. Every upload gets its own link, so a new upload means a new embed code on every page that has the old one. That is why it pays to encode the video properly before you upload it.
Ask on Discord or on the contact page. To report a video, use the abuse page.