--- url: "https://web.dev/articles/resolution" titulek: "Resolution | Articles | web.dev" h1: "Resolution Stay organized with collections Save and categorize content based on your preferences." popis: "Resolution is the amount of information in a frame of video." jazyk: "en" kanonicka: "https://web.dev/articles/resolution" drobecky: ["Articles", "Resolution"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 02:40:54" znaku: 3480 slov: 502 kodovani: "iso-8859-2" sha256: "e4b2dd27564b9226f2c85d74a266f56673ee89789f731a4bb1de1bb68a2ea88a" --- Resolution Stay organized with collections Save and categorize content based on your preferences. Derek Herman Joe Medley In the previous articles you learned how to change the [containers, codecs](/articles/containers-and-codecs), and [bitrate](/articles/bitrate) of the [glocken.mov](https://storage.googleapis.com/web-dev-assets/prepare-media/glocken.mov) media file. This article focuses on changing the resolution. **Resolution** is the amount of information in a single frame of video, given as the number of logical pixels in each dimension. For example, a resolution of 1920 by 1080 works out to 1080 stacked horizontal lines, each of which is one logical pixel high and 1920 logical pixels wide. This resolution is frequently abbreviated 1080p because technically the width can vary. The dimensions 1080 by 1920 produce an [aspect ratio](https://en.wikipedia.org/wiki/Aspect_ratio_(image)) of 16:9, which is the ratio of movie screens and modern television sets. By the way this is the resolution defined as [full HD](https://en.wikipedia.org/wiki/1080p). [YouTube recommends](https://support.google.com/youtube/answer/6375112) the following resolutions for video uploads, all in the 16:9 aspect ratio. There's nothing specific to YouTube about this list. It's just a list of common 16:9 video resolutions. Abbreviation Dimensions 2160p 3840 x 2160 1440p 2560 x 1440 1080p 1920 x 1080 720p 1280 x 720 480p 854 x 480 360p 640 x 360 240p 426 x 240 Which one should you use? That depends on your application. For simple embedding you may decide to chose only a single resolution. If you're preparing files for DASH or HLS, you may chose one, several, or all. Fortunately, this is one of the simplest transformations you'll make with FFmpeg. 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 -s 1280x720 glocken_3g_720p.mp4` WebM `/media # ffmpeg -i glocken.mov -b:v 350k -b:a 64k -s 1280x720 glocken_3g_720p.webm` The following files should now exist: `/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 -rwx------ 1 root root 539414 Mar 7 14:15 glocken_3g_720p.mp4 -rwx------ 1 root root 735930 Mar 7 14:19 glocken_3g_720p.webm` It's worth reiterating that you should start from the highest resolution and bitrate file you have available. If you're upgrading an older site, you'll want to find your original camera or other high resolution sources and convert from that rather than from older web files. Now that your files are prepared, you can either [add them to a web page](/articles/add-media) as they are now or dive a bit deeper and continue to learn more command line options by reading the [Media conversion](/articles/media-conversion) page, and then close out the section with [Media encryption](/articles/media-encryption). 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.