In reply to <a href="https://jetpack.com/resources/embed-mp4-video-in-wordpress/comment-page-1/#comment-4115">lanranta</a>.
<!-- wp:paragraph -->
It looks like the video is embedded directly in the page and doesn't use the VideoPress player. Please go ahead and replace the two video versions with just the URL on its own line for it to be automatically embedded:
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
https://video.wordpress.com/v/RWsLWOYw
<!-- /wp:paragraph -->
Embedding an MP4 video in WordPress is a great way to share your own content without using a third-party platform. Unlike YouTube or Vimeo, hosting MP4 files directly gives you full control over playback and branding.
In this guide, you’ll learn how to add MP4 videos to your WordPress site using a video hosting plugin, the block editor, classic editor, and HTML. We’ll also look at best practices for performance and what to do if your video doesn’t play.
Quick rule: if your MP4 is small and used rarely, native WordPress is fine. If you publish video regularly or care about performance, use a CDN-backed host (like VideoPress) to avoid slowing down your site.
Fun fact: Did you know? A single 1080p video background can be 50MB. If 10 people visit your site at once, your server has to push 500MB of data instantly. This can often crash shared hosting plans. This is why offloading to a CDN (like VideoPress) is not just a luxury, but a necessity for traffic spikes.
TL;DRvideo tag and attributes.| Method | Best for | Pros | Cons |
|---|---|---|---|
| Video block (native) | 1–2 small videos | Fastest setup, no extra tools | Uses your server bandwidth/storage |
| Shortcode | Need autoplay/loop/poster | More control than block | Still uses your server bandwidth/storage |
HTML5 <video> | Custom attributes/layout | Maximum control | Easy to misconfigure responsiveness |
| VideoPress / video CDN | Frequent video publishing | Offloads bandwidth, faster delivery | Paid plan but worth it |
Before you upload an MP4 video directly to your site, it’s important to consider how that choice can affect your performance, storage, and visitor experience.
Self-hosting videos in your Media Library may seem quick and easy, but it puts extra load on your server. It can slow down your pages, especially if the video file is large or viewed on mobile. It also limits your control over quality, delivery speed, and player behavior.
The better option is to use a WordPress-ready video hosting plugin. These tools are made to store, deliver, and play videos efficiently, without bloating your site or relying on third-party platforms like YouTube.
Why Jetpack VideoPress is the best fit for WordPressJetpack VideoPress is built specifically for WordPress and offers high‑quality, lightning‑fast video hosting. It replaces the need to upload MP4 files directly, giving you a better player and faster load times.
Here’s why it’s the best option:
If you plan to embed more than one or two videos, or want a fast, polished viewer experience, VideoPress is the simplest way to get it done. It saves you time, boosts performance, and gives you more control over how your videos look and play.
How to use Jetpack VideoPressSetup is incredibly simple and uses the processes you’re already familiar with. All you have to do is:

Adding a video to a page or post is as easy as adding any other type of media. While you can also use Jetpack VideoPress with the Classic Editor, this tutorial assumes you’re using the block editor.
The WordPress Video block is another simple option, though keep in mind that videos you upload directly to the Media Library can affect site speed.

This method is simple and works well if you’re hosting a small video directly on your site.
Notes:If you’re using the Classic Editor plugin, you can still embed MP4 videos, though there are fewer options available to you.
4. Embedding a video with a shortcodeYou can use the built-in video shortcode if you prefer to handle things more manually. Before using the shortcode, you need to find the specific URL of your video. To do this, go to Media → Library in the WordPress dashboard and upload your file. Once it’s uploaded, click on the video and copy the URL from the File URL field on the right.
In the example below, you would replace the URL with your specific video URL:
You can also configure options like:
Shortcode options:Paste the shortcode into a Shortcode block, the Classic Editor, or even a widget.
5. Embedding a video using custom HTMLIf you want even more control, use the HTML5 <video> tag to embed MP4 files. Start by copying your video URL just as you did in Option 4 above. Then, replace the URL in the code below with your own.
Optional attributes:Paste the code into a Custom HTML block, widget, or the Text tab of the Classic Editor.
Troubleshooting common MP4 embed issuesThe video doesn’t play:Uploading MP4 files directly to your Media Library works for short, lightweight videos. But if you want to publish longer videos, often share video content, or prioritize performance and design, you’ll need something more powerful.
That’s where Jetpack VideoPress comes in.
Jetpack VideoPress is a video hosting solution built specifically for WordPress sites. It gives you a clean, fast video experience without relying on third-party platforms or slowing down your site.
Here’s how VideoPress makes a difference:VideoPress also integrates smoothly with the WordPress block editor, so you can upload and embed videos directly from your dashboard with no extra setup.
If you’re ready to offer fast, professional video playback on your WordPress site, without the limits of file size, bandwidth, or third-party platforms, VideoPress is the perfect solution.
Frequently asked questionsCan I embed an MP4 video in WordPress without YouTube or Vimeo?Yes, you can embed an MP4 video in WordPress without using YouTube or Vimeo. You can upload the MP4 to your WordPress Media Library and then add it to a page or post with the Video block, the WordPress shortcode, or an HTML5 <video> tag.
This keeps the video on your own site. Keep in mind that self hosted MP4 files use your server storage and bandwidth. If your videos get many plays, you may want to host the MP4 on a video hosting service or a video CDN, then embed it in WordPress.
Should I upload my MP4 to the WordPress Media Library or host it somewhere else?You can do either, but the right choice depends on how you use video. Uploading an MP4 to the WordPress Media Library is simple and works well for small files and light traffic. The downside is bandwidth use, storage use, and slow playback during busy times.
Hosting the MP4 on a video platform or a CDN reduces strain on your site and can help page speed. If video is a key part of your site, hosting the MP4 off site can reduce buffering and support steady delivery across many locations.
What MP4 format and settings work well for WordPress video playback?WordPress can display MP4 videos, but playback depends on how the file is encoded. A safe choice is H.264 for video and AAC for audio inside an MP4 file. These settings play on many browsers and phones. If your MP4 does not play, the codec is a common cause.
Also keep file size in mind. Large files load slowly on mobile data. Export with a sensible bitrate, and include a poster image so the page loads with a still frame first. If you can, set the file for fast start so it begins playing sooner.
How do I embed an MP4 in the WordPress Block Editor using the Video block?To embed an MP4 in the Block Editor, add a Video block, then upload the MP4 or select it from the Media Library. WordPress will insert a video player that fits the content area.
After you add the video, open the block settings and set a poster image, and choose playback options such as autoplay, loop, or controls. For layout, place the block inside a Group or Columns block if you need spacing or alignment. Test on mobile, since video size and page width can change on small screens.
How do I embed an MP4 using the WordPress shortcode, and what options can I use?You can embed an MP4 with the built in WordPress video shortcode by adding it to a post or page in a Shortcode block, or in the editor where shortcodes are allowed. A basic example is:
[video src="https://example.com/uploads/video.mp4"]
You can also add a poster image and simple options: poster, preload, loop, autoplay, and muted. Autoplay often fails if audio is on, so muted is important. After publishing, test in Chrome, Safari, and on iPhone, since autoplay rules vary by browser.
How do I embed an MP4 in the Classic Editor or with custom HTML code?In the Classic Editor, you can click Add Media, upload or choose your MP4, then insert it into the post. WordPress will place a video player shortcode or embed. If you want custom HTML, you can add an HTML block and use the HTML5 <video> tag.
A simple version includes controls and a source URL, plus a poster image. You can also add muted and playsinline for mobile behavior. Always test on iOS Safari and Android Chrome. Small code errors, a bad URL, or an unsupported codec can break playback.
Why is my MP4 video not playing in WordPress, and how do I fix it?If your MP4 is not playing, start by checking the file link and the file itself. Confirm the URL is correct and the video loads in a browser tab. Next, confirm the MP4 uses a common codec, such as H.264 for video and AAC for audio. Then check server settings. The server should send the correct MIME type, usually video/mp4.
Some hosts also block byte range requests, which can break seeking and playback. Also watch for mixed content if your site uses HTTPS but the video URL uses HTTP. Fix the URL or move the file to HTTPS.
| # | Наименование новости | Тональность | Информативность | Дата публикации |
|---|---|---|---|---|
| 1 | How to Embed Video Gallery on Websites [+ 5 Widget Templates] | 0 | 9.11 | 26-02-2026 |
| 2 | Comment on WebP Plugins for WordPress: 8 Options Compared by Akam | 0 | 14.38 | 12-03-2026 |
| 3 | Comment on “How to Manage Explosive Behavior in the Moment: An Action Plan for Parents” [Video Replay & Podcast #624] by Amanda14 | 0 | 9.81 | 15-09-2026 |
| 4 | Comment on Contact Form Required Fields and Post Submit Redirect by Andrew Misplon | 0 | 7.47 | 29-09-2026 |
| 5 | Best AI Video Clipping Tools for Content Repurposing: Ultimate 2026 Selection | 0 | 23.44 | 14-07-2026 |
| 6 | Comment on How to Create a Lead Generation Form in WordPress (5-Step Guide) by Devin Walker | 0 | 13.62 | 11-12-2025 |
| 7 | What Is the Best YouTube Subtitle Downloader in 2026? Best Tools Compared | 0 | 9.52 | 24-09-2026 |
| 8 | X-post: The AI-Powered WordPress course is now live on Learn WordPress! | 0 | 11.18 | 18-09-2026 |
| 9 | Full control over your embeds and a cleaner viewer experience: 6 improvements to embeds and the video player | 0 | 4.44 | 17-08-2026 |
| 10 | Video | 0 | 10 | 01-01-1970 |