Video - Video & Streaming
CDN for Live Courses: Setup & Strategy
Live course streaming in 2026 is a one-to-many video problem with a tight latency budget. Classic HLS with 6-second ...
A video aspect ratio is the proportion between a frame's displayed width and its displayed height, written as width:height. Three ratios dominate streaming and social video in 2026: 16:9 (1920×1080, 1.78:1) for TV, desktop and connected-TV players, 9:16 (1080×1920, 0.5625:1) for phone-first vertical feeds, and 1:1 (1080×1080) for square feed posts.
As of 2026, a 16:9 video letterboxed on a full-screen 9:16 phone display uses only 31.6 percent of the screen (81/256). A 16:9 source burned into a 1080×1920 vertical frame keeps just 1080×608 active pixels, about 32 percent of the frame's pixel budget. Picking the wrong aspect ratio for video costs both screen area and encoded resolution.
Three ratios interact in every encoded file. The storage aspect ratio is the coded width divided by the coded height. The pixel aspect ratio (PAR, which some encoders call sample aspect ratio) describes the shape of each pixel. The display aspect ratio (DAR) is what the viewer sees: DAR equals storage width over height multiplied by PAR.
With square pixels (PAR 1:1), storage and display ratios are identical, which is the normal case for modern web and OTT encodes. Anamorphic sources are where the math matters. HDV stores 1440×1080 with a PAR of 4:3, so 1.333 × 1.333 gives a 16:9 display. NTSC DVD stores 720×480 with a PAR of 32:27, and 1.5 × 1.185 also lands on 1.78:1.
The ratio is signalled in several places, and players disagree about which one wins. H.264 and HEVC carry PAR in the VUI section of the sequence parameter set. MP4 carries it in the pixel aspect box and the track header dimensions. HLS (RFC 8216) declares the RESOLUTION attribute on each variant stream as width × height, and DASH exposes width, height, sar and par attributes on the Representation and AdaptationSet. When these disagree, browsers, Android players and smart TVs resolve the conflict differently, which is the root of most "stretched on one device only" bugs.
Aspect ratio is decided at three layers. The encoder fixes the coded frame and PAR. The packager writes RESOLUTION or width and height into the manifest. The player sizes its viewport and chooses a fit mode. Only the first layer touches pixels; the other two are metadata and layout.
Player sizing usually comes down to two choices. Contain mode scales the video until one dimension fills the viewport and leaves bars on the other (letterboxing for top and bottom bars, pillarboxing for side bars). Cover mode scales until both dimensions fill and crops the overflow. On the web, the CSS aspect-ratio property reserves the player box before the first segment arrives, which prevents layout shift when the manifest finally reports dimensions.
| Source ratio | On a 16:9 screen | On a 9:16 screen | On a 1:1 viewport |
|---|---|---|---|
| 16:9 | 100 percent | 31.6 percent | 56.3 percent |
| 9:16 | 31.6 percent | 100 percent | 56.3 percent |
| 1:1 | 56.3 percent | 56.3 percent | 100 percent |
| 4:5 | 45.0 percent | 70.3 percent | 80.0 percent |
| 2.39:1 (scope) | 74.4 percent | 13.8 percent | 41.8 percent |
Square 1:1 is the only ratio that never drops below 56 percent on any common screen, which is why it survives as the hedge format for feeds that serve both orientations.
Aspect ratio vs. resolution: resolution is a pixel count, aspect ratio is a shape. 1280×720, 1920×1080 and 3840×2160 all share the 16:9 aspect ratio, and 1080×1920 has exactly the same 2,073,600 pixels as 1920×1080 while being a completely different ratio.
Display aspect ratio vs. pixel aspect ratio: DAR is the shape on screen, PAR is the shape of one stored pixel. A file can report 1440×1080 and still be 16:9 because its pixels are 4:3 wide; strip the PAR flag during a remux and the same file displays at 4:3, squeezed.
Letterboxing vs. cropping: letterboxing preserves the full picture and spends screen area on bars, while cropping (center crop or a tracked reframe) fills the screen and discards content. Burned-in letterboxing is the worst variant, because the bars consume coded resolution in every rendition of the ladder.
Encode vertical content as a native 1080×1920 frame with square pixels, and do not rely on rotation metadata. Phones often record a 1920×1080 frame plus a display matrix that says "rotate 90 degrees"; some players honor it, some ignore it, and the result is sideways playback. Bake the rotation into the pixels during transcoding and clear the rotation flag.
For ffmpeg-based pipelines, the pattern is a scale filter targeting 1080 by 1920 with the original aspect ratio forced to decrease, followed by a pad filter that centers the result on a 1080 by 1920 canvas, then a setsar filter set to 1. When the source is 16:9 and the target is a vertical feed, swap pad for a crop to a 9:16 window, ideally driven by subject tracking rather than a fixed center. Keep every dimension even, since 4:2:0 chroma subsampling requires it.
| Rendition | HLS RESOLUTION value | Pixels per frame | Typical H.264 bitrate (estimate) |
|---|---|---|---|
| 1080p vertical | 1080x1920 | 2,073,600 | 4 to 6 Mbps |
| 720p vertical | 720x1280 | 921,600 | 2 to 3 Mbps |
| 540p vertical | 540x960 | 518,400 | 1 to 1.5 Mbps |
| 360p vertical | 360x640 | 230,400 | 0.4 to 0.7 Mbps |
Because a 9:16 rendition has the same pixel count as its 16:9 counterpart, the existing horizontal ladder's bitrates transfer directly; only the RESOLUTION value must list width first.
Thumbnails and poster frames need the same treatment as the video. BlazingCDN's on-the-fly image processing for video posters supports crop, resize, resizefit and resizefill at no extra charge, so one master poster can be served as 16:9, 1:1 and 9:16 variants without storing three copies.
For phone-first short-form feeds, 9:16 at 1080×1920 is the best video aspect ratio because it fills the full screen. Feed posts that appear inline in scrolling timelines often perform better at 4:5 or 1:1, which use 70 to 80 percent of a portrait screen while still fitting comfortably on desktop layouts without heavy pillarboxing.
A 1920×1080 frame is 16:9 only when its pixel aspect ratio is 1:1, which covers nearly all modern web and OTT encodes. If the file signals non-square pixels, the display aspect ratio changes accordingly. Always check the pixel aspect flag in the bitstream and container rather than trusting the coded dimensions alone when diagnosing stretched playback.
Converting 16:9 video to 9:16 without black bars requires cropping a vertical window from the horizontal frame. A fixed center crop keeps only 31.6 percent of the original area, so speakers or action near the edges get cut. Subject-tracked reframing moves the crop window per shot and is the standard approach for repurposing horizontal footage at scale.
Yes, an HLS manifest should declare vertical video resolution as 1080x1920, because RFC 8216 defines RESOLUTION as width followed by height. Writing 1920x1080 for a vertical rendition misleads player variant selection, which compares declared dimensions against viewport size, and can cause the player to choose a rendition that is too large or too small.
Pull a sample of 50 recent vertical uploads and inspect each with ffprobe: compare coded width and height, the sample aspect ratio, any rotation side data, and the RESOLUTION value your packager wrote into the HLS master playlist. Any file where rotation metadata is present, PAR is not 1:1, or RESOLUTION lists height first is a playback bug waiting on a specific device. Fix it at encode time, then re-test on one iOS, one Android and one smart TV player.
If your vertical and horizontal libraries are growing, the BlazingCDN Video CDN for HLS and DASH libraries replicates pre-encoded renditions inside the CDN and keeps your origin out of the delivery path.
Heavy traffic.
Light bill.
The CDN for video and large traffic
Video - Video & Streaming
Live course streaming in 2026 is a one-to-many video problem with a tight latency budget. Classic HLS with 6-second ...
Video - Video & Streaming
To reduce streaming latency, shrink the buffer the player is forced to hold, then make the CDN deliver partial segments ...
Video - Video & Streaming
A live HLS channel with 6-second segments and 100,000 concurrent viewers puts roughly 33,000 requests per second on the ...
Video - Video & Streaming
As of 2026, the difference between a sports stream that feels live and one that feels delayed is mostly settled before ...