--- url: "https://web.dev/articles/bitrate" titulek: "Bitrate | Articles | web.dev" h1: "Bitrate Stay organized with collections Save and categorize content based on your preferences." popis: "Bitrate is the maximum number of bits used to encode one second of a stream. The more bits used to encode a second of stream, the higher the fidelity." jazyk: "en" kanonicka: "https://web.dev/articles/bitrate" drobecky: ["Articles", "Bitrate"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 00:04:33" znaku: 3137 slov: 487 kodovani: "iso-8859-2" sha256: "90791b70df6e11e047858938a54c74ca3124ed21b96d5a4cf6019b34cbb4b84b" --- Bitrate Stay organized with collections Save and categorize content based on your preferences. Derek Herman Joe Medley In the previous [Containers and codecs](/articles/containers-and-codecs) article, you learned how to change the container (extension) and codec of a media file. In this article, we'll show you how to change bitrate before explaining [resolution](/articles/resolution). Bitrate and resolution correlate to the amount of data in a media file. It probably goes without saying, but we're going to say it anyway. You can always lower bitrate and resolution, but increasing them is a problem. Without special software and algorithms, quality is going to take a hit. So always start your conversion process with the highest quality source file you can get your hands on. Before doing anything, even before changing the codec or container, check the file's [display characteristics](/articles/media-conversion#display_characteristics) and verify that your source file has a higher bitrate or resolution than your desired result. **Bitrate** is the maximum number of bits used to encode one second of a media stream. The more bits used to encode a second of stream, the higher the fidelity. Unsurprisingly, the different bitrates the web can handle are low. The table below shows you what bitrate you should target for common network conditions. For the sake of comparison, we've thrown in values for Blu-rays and DVDs. Delivery method Bitrate Blu-ray 20Mbs DVD 6 Mbs Desktop web 2 Mbs 4G mobile 0.7 Mbs 3G mobile 0.35 Mbs 2G mobile **Depends on network type.** EDGE: 0.4 Mbs GPRS: 0.04Mbs Which value should I use for video on my web pages? The short answer is at least: desktop, 4G, and 3G. If you're serving video in one of the markets referred to as "the next billion users", say India, for example, you'll want to include 2G as well. For demonstration purposes, we're going to target 3G. Using FFmpeg you set the bitrate with the (surprise!) bitrate (`-b`) flag. If you don't have FFmpeg installed read [Media application basics](/articles/media-application-basics#installing_applications_with_docker) to get it set up with Docker. MP4 `/media # ffmpeg -i glocken.mov -b:v 350k -b:a 64k glocken_3g.mp4` WebM `/media # ffmpeg -i glocken.mov -b:v 350k -b:a 64k glocken_3g.webm` Notice that there are two bitrate flags, `-b:a` and `-b:v`. One is for the audio stream, and the other is for the video stream. `/media # ls -l -rw-r--r-- 1 root root 12080306 Mar 7 12:16 glocken.mov -rwx------ 1 root root 531117 Mar 7 13:42 glocken_3g.mp4 -rwx------ 1 root root 706119 Mar 7 13:46 glocken_3g.webm` Now that your files are prepared, it's time to [adjust their resolutions](/articles/resolution). 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.