Where the Bytes Go: Resolution, Frame Rate and HEVC in Phone Video

·18m ago
Share:PostShare

Disclosure: I work on CompressVid. The files below are our own test clips. Sizes are as shown by the tool (MiB). Bitrates and pixel rates are my own arithmetic, shown so you can check them. Phone videos are famously huge. One of our test clips, a 30-second 1080p60 MOV, was 135.95 MB. Divide by duration and that's an average of about 38 Mbps. Where does that many bits per second go, and which knob actually reduces it? Think in pixel rate, then bits per pixel A video encoder's raw workload is pixels per second: pixel rate = width × height × fps Format Pixels/frame fps Pixels/second 720p30 921,600 30 ~27.6 M 1080p30 2,073,600 ~62.2 M 1080p60 60 ~124.4 M 4K60 8,294,400 ~497.7 M A useful normalised number is bits per pixel (bpp): bpp = bitrate / pixel rate bpp(38.0, 1920, 1080, 60); // ≈ 0.31 bpp (the phone MOV) bpp(2.09, 1920, 1080, 60); // ≈ 0.017 bpp (the same clip after compression, if still 1080p60) The phone file, compressed Original Compressed (24 MB target) Size 135.95 MB 7.48 MB Duration 0:30 Avg bitrate (calculated) ~38.0 Mbps ~2.1 Mbps Container MOV MP4 That's about 18× fewer bits, and the encoder still didn't use its full 24 MB budget. Why can a phone afford to be so wasteful? Because it encodes in real time on a hardware encoder with a tight power budget. Real-time hardware encoders give up much of the slow analysis (motion search range, reference frames, rate-distortion optimisation) that offline encoders can afford, so they compensate with bitrate. A slower offline encode reaches similar visual quality with far fewer bits. Our clip was simple synthetic footage, so the 18× figure is a best case, not a promise. Busier real-world footage will keep more of its bitrate. HEVC vs H.264: efficiency is relative iPhones typically record HEVC (H.265), which is more efficient than H.264 at equal quality settings and equal effort. Yet in another test, a 30-second 50.3 MB HEVC MOV became a 26.0 MB H.264 MP4 (~14.1 → ~7.3 Mbps). The "less efficient" codec produced the smaller file, because: the HEVC file was encoded for real-time capture at a high bitrate; the H.264 re-encode was offline and chose a lower bitrate for acceptable quality. Codec comparisons only mean something at matched quality and matched encoder effort. A phone's file isn't a benchmark, it's a capture. Knob 1: frame rate Going from 60 to 30 fps halves the pixel rate, but it doesn't halve the bitrate needed. With inter-frame prediction, consecutive frames at 60 fps are more similar, so each one is cheaper to encode. You save meaningfully, but expect less than 50%. Do it when motion smoothness isn't the point (talking heads, screen content). ffmpeg -i in.mov -vf fps=30 -c:v libx264 -crf 23 -c:a aac out.mp4 Knob 2: resolution Resolution is the biggest lever because it changes how many pixels need describing. A separate test on our resizer: Resized Resolution 1920×1080 1280×720 57.7 MB 7.3 MB (−87%) ~16.1 Mbps ~2.0 Mbps 720p has 44% of 1080p's pixels, yet the file dropped by 87%. So the resize wasn't just scaling the bit budget, it was also a re-encode that discarded the source's excess bitrate. Pixel count and bitrate efficiency compounded. Don't read this as "720p = 13% of 1080p" in general. Read it as "a high-bitrate 1080p source, re-encoded at 720p, can shrink dramatically". Knob 3: just ask for a size If your real constraint is "must fit in X MB", compute the bitrate from the size (size × 8 / duration) and let the encoder work under that ceiling. Then add resolution or frame-rate reductions only when the budget per pixel becomes too thin, roughly when bpp at the original resolution gets so low that blocking appears. That's a quality judgement, so check the output on the screen it'll actually be watched on. Takeaways Phone recordings are high-bitrate captures (~38 Mbps for our 1080p60 clip), not efficient deliveries. Bits per pixel lets you compare a 1080p60 file with a 720p30 one on equal terms. An offline re-encode can beat a phone's HEVC with plain H.264. Resolution is the biggest lever, frame rate second, and a size target is the simplest interface for users. To try this on an iPhone clip without installing anything, the MOV compressor works online, lets you pick a target size, and outputs a standard MP4.

D

Dev Community

Original source

Read full story

Related Stories

Technology18m ago

Disney patent reveals plans for holographic chocolate and sweets

Disney has filed a patent application for a technology that could create holographic effects on chocolate and other confectionery using microscopic surface textures. The patent application, titled 'Microscopic Physical Textures for Confections', describes a confectionery product with microscopic physical textures imprinted onto its surface. These microscopic textures, the patent says, would be configured to "interact with light to form an image based on the encoded hologram". According to Disney's application, the technology could produce different colours, optical illusions and movements, potentially allowing an animation or a character or object to appear to move across the surface of a sweet or chocolate. One example described in the patent is an image "appearing to float and move along a surface of the confection". "As light interacts with the microscopic physical textures on the confections, the light is diffracted in a number of directions and angles resulting in a number of different colors being viewed, which can be used to create images," the application explains. "As the view of the confection changes, the way in which the light is viewed to interact with the microscopic physical textures change, resulting in the produced image changing. "As a result, a holographic effect is produced on the surface of the confection." Chocolate that appears to move The patent also states that the technology "does not require a usage of chemicals or additives", instead creating the effect by altering the physical texture of the confectionery's surface. The application reflects a growing trend across the attractions industry to transform food and drink into an experience in its own right, with operators embracing more creative and immersive offerings.

BBlooloop

Headlines and briefs on this site are for information only. Always verify details on the original source or live status page.

Read Disclaimer