--- url: "https://web.dev/articles/prepare-media" titulek: "Prepare media files for the web | Articles | web.dev" h1: "Prepare media files for the web Stay organized with collections Save and categorize content based on your preferences." popis: "In this section you'll learn how to format video for mobile web playback, and how to create multiple files to cover a range of browsers, plus how to encrypt them." jazyk: "en" kanonicka: "https://web.dev/articles/prepare-media" drobecky: ["Articles", "Prepare media files for the web"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 02:41:33" znaku: 2283 slov: 313 kodovani: "iso-8859-2" sha256: "eb889ef86f43811985af7741764944c5d039fceefba37445ec4dd3392a1ed7da" --- Prepare media files for the web Stay organized with collections Save and categorize content based on your preferences. Derek Herman Joe Medley Now that we've introduced you to the [applications](/articles/media-application-basics) we use when manipulating media files, over the next few pages, we're going to take a raw video file from a camera and transform it into a resource that you can embed in a web page. We're going to show you how to format your video for mobile web playback, and how to create multiple files to cover a range of browsers. Specifically, we'll create a WebM file for use on Chrome and an MP4 file for use on other browsers. Plus we will dive deeper into common commands used for [Media conversion](/articles/media-conversion) and [Media encryption](/articles/media-encryption) that will serve as a good reference for later. By "**appropriate technologies**" we mean Dynamic Adaptive Streaming over HTTP ([DASH](https://developer.mozilla.org/docs/Web/HTML/DASH_Adaptive_Streaming_for_HTML_5_Video)) or HTTP Live Streaming ([HLS](https://developer.apple.com/documentation/http_live_streaming)), which are the two primary means of providing video in HTML on the major browsers. By the end of this section, you'll be able to create media files that are ready for use in DASH and HLS. If you want to play along at home, you'll need a raw video file off a camera, preferably one that contains both audio and video. If you don't have one handy, then here's ten seconds of an `.mov` file named [glocken.mov](https://storage.googleapis.com/web-dev-assets/prepare-media/glocken.mov) that was taken of the [Rathaus-Glockenspiel](https://en.wikipedia.org/wiki/Rathaus-Glockenspiel) in Munich's MarienPlatz. Next, let's get started with [Containers and codecs](/articles/containers-and-codecs). Except as otherwise noted, the content of this page is licensed under the [Creative Commons Attribution 4.0 License](https://creativecommons.org/licenses/by/4.0/), and code samples are licensed under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0). For details, see the [Google Developers Site Policies](https://developers.google.com/site-policies). Java is a registered trademark of Oracle and/or its affiliates. Last updated 2017-06-30 UTC.