The main issue I have here is are the 720P, 480P, 240P... classes for defining video quality or do they unambiguously define the resolution of the video?
For example, the wikipedia article about 240P refers to a family of resolutions.
Software Engineering Stack Exchange is a question and answer site for professionals, academics, and students working within the systems development life cycle. It only takes a minute to sign up.
Sign up to join this communityThe main issue I have here is are the 720P, 480P, 240P... classes for defining video quality or do they unambiguously define the resolution of the video?
For example, the wikipedia article about 240P refers to a family of resolutions.
240P, 480P, 720P, etc. give you vertical resolution. However "P" does not stand for "pixels" but for "progressive". 720p means that all 720 lines are drawn in each frame. It is the opposite to Interlaced (denoted as "i") where just half of the lines is drawn each frame.
So the numbers give you vertical resolutions. Horizontal resolution depends on a given aspect ratio.
720P
If you have a 100Hz device, the device paints 100 full pictures in 1 second. All 720 lines are painted each turn.
You can not find out the resolution by this information.
The main issue I have here is are the 720P, 480P, 240P... classes for defining video quality or do they unambiguously define the resolution of the video?
If you have a video file, and all you know is that it's 1080p
then it's safe to assume it's 1920x1080
. The 1080p and 720p formats are often 16:9 aspect ratio.
If you have a video file, and all you know is that it's 480p
then it's safe to assume it's 720x480
. The 480p
formats are often 4:3 aspect ratio.
While it's true that 1080p
only tells you scan lines you can assume the video resolution if the context is that of a regular video file.
There are exceptions. NetFlix uses HD Video
but it's shown at 720p
which isn't true HD
. So later they came out with UltraHD
which is 1080p
. Still, the video compression is high so the quality is low.
Samsung has released new TVs that display UltraHD
which is 4320p
at 16:9
.
Unless resolution is explicitly stated it's difficult to always know exactly what it is. One trick is to divide by 45. If you get an remainder then it's 4:3
and if no remainder it's 16:9
.
4320 / 45 = 96 (16:9)
1080 / 45 = 24 (16:9)
720 / 45 = 16 (16:9)
480 / 45 = 10.6666 (4:3)
240 / 45 = 5.3333 (4:3)
This needs clarifying. Clime is correct in this answer. The P in 1080p 720p refers to 'progressive'. It means that the image is intended to be render its lines to screen one line at a time, sequentially.
This comes from the old days where TV was a cathode-ray tube device that needed to render images in an interlaced manner to improve the temporal appearance to the viewer -- start at the top, then emit the even lines first then return to the top then the odd lines odd lines. The set of lines that is half a picture it called a 'field' and a full image is made up of two interlaced fields. We refer to these formats as 1080i, 720i.
To get the spatial resolution you must look beyond the name of the format because, as you've found, they are as best ambiguous. The info you need is in the file's header as metadata.
It is not safe to assume the horizontal resolution. My camera (Sony Nex6) films 1080P. However, it records AVCHD using 1980x1080 using square pixels and MP4 at 1440x1080 using rectangular pixels.