[ BLOG ]Beginner Guide · 3 min read

How to Export Video for Web

Published · Updated

For a short website video, export a delivery copy from your edited master, check it at the size visitors will see, and add a player with a poster and controls. Start with one file that plays on your target devices. Add another format only when it solves a compatibility or download-size problem.

Prepare the edit before encoding

Remove recording countdowns, unused endings, and pauses that do not help explain the subject. Crop empty space around a screen recording in your editor. Keep the master so future changes do not require re-encoding an already compressed copy.

Choose dimensions for the actual player. A small card and a full-screen tutorial have different needs. Check small interface text on a phone and a high-density display before reducing resolution further. There is no resolution or bitrate that suits every website video.

Choose a format by testing the result

H.264 in an MP4 container is a practical starting point for many sites. Compare a VP9 WebM if you want another delivery option. Use the format comparison to understand the tradeoffs. A WebM is worth adding when its size or playback behavior benefits the browsers you support; the extension alone does not make it better.

Export the same edited segment with each candidate setting. Compare file sizes, then watch motion, text, and gradients at the player’s display size. Change one setting at a time so you know what caused the difference. The compression guide covers this review in more detail.

Prepare MP4 for progressive playback

MP4 faststart moves the playback index near the beginning of the file. If FFmpeg is installed, this command copies the existing tracks without re-encoding them:

ffmpeg -i input.mp4 -c copy -movflags +faststart output.mp4

The FFmpeg format documentation describes the option. It changes where the metadata sits; it does not reduce the encoded video’s size or fix an unsupported codec. Playback also depends on the server’s responses.

Add a player that works before and after playback

<video controls playsinline preload="none"
  poster="/media/demo-poster.webp"
  width="1280" height="720"
  style="display:block;width:100%;height:auto">
  <source src="/media/demo.mp4" type="video/mp4" />
</video>
<p><a href="/media/demo.mp4">Download the demo</a></p>

Replace these example paths and dimensions with your files. The poster provides a preview; the dimensions reserve space. A missing poster does not itself cause layout shift. preload="none" asks the browser to avoid fetching video data before playback, but remains a hint. See MDN’s video reference for the attributes.

For speech or meaningful sound, add captions. Keep an ordinary download link outside the player so it remains available if playback fails.

Test the public page

  1. Open the deployed page with the Network panel visible. Check that the media URL returns video rather than an HTML fallback.
  2. Try a slower connection and check what loads before you press play.
  3. Play, pause, seek, and turn captions on using the keyboard and touch controls.
  4. Review the video on the devices you support. Check text readability and the transition from poster to playback.

If a long video needs several quality levels or reliable delivery across changing connections, consider an adaptive-streaming host. A single progressive-download file can be simpler for a short clip, but provides the same encoded version to every viewer.