x265 2.2 Released

By Pradeep Ramachandran

Release date – 26th December, 2016.

Encoder enhancements

  1. Enhancements to TU selection algorithm with early-outs for improved speed; use --limit-tu to exercise.
  2. New motion search method SEA (Successive Elimination Algorithm) supported now as :option: –me 4
  3. Bit-stream optimizations to improve fields in PPS and SPS for bit-rate savings through --opt-qp-pps, --opt-ref-list-length-pps, and --multi-pass-opt-rps.
  4. Enabled using VBV constraints when encoding without WPP.
  5. All param options dumped in SEI packet in bitstream when info selected.
  6. x265 now supports POWERPC-based systems. Several key functions also have optimized ALTIVEC kernels.

API changes

  1. Options to disable SEI and optional-VUI messages from bitstream made more descriptive.
  2. New option --scenecut-bias to enable controlling bias to mark scene-cuts via cli.
  3. Support mono and mono16 color spaces for y4m input.
  4. --min-cu-size of 64 no-longer supported for reasons of visual quality (was crashing earlier anyways.)
  5. API for CSV now expects version string for better integration of x265 into other applications.

Bug fixes

  1. Several fixes to slice-based encoding.
  2. --log2-max-poc-lsb‘s range limited according to HEVC spec.
  3. Restrict MVs to within legal boundaries when encoding.

HEVC Advance Announces ‘Royalty Free’ HEVC Software

By Tom Vaughan

Major initiative designed to rapidly accelerate widespread HEVC (H.265)/UHD adoption on mobile devices and personal computers


BOSTON, Nov. 22, 2016 /PRNewswire/ — HEVC Advance, an independent licensing administrator, today announced a major software policy initiative to rapidly accelerate widespread HEVC/UHD adoption in consumer mobile devices and personal computers.  Under the software initiative, HEVC Advance will not seek a license or royalties on HEVC functionality implemented in application layer software downloaded to mobile devices or personal computers after the initial sale of the device, where the HEVC encoding or decoding is fully executed in software on a general purpose CPU.  Examples of the types of software within the policy include browsers, media players and various software applications.

According to Peter Moller, CEO of HEVC Advance, “We are very pleased to offer this initiative.  A critical goal of HEVC Advance is to encourage widespread adoption of HEVC/UHD technology in consumer devices.  While HEVC technology implemented in specialized hardware circuitry provides the best and most efficient user experience, there are millions of existing mobile devices and personal computers that do not have HEVC hardware capability.  Our initiative is tailored to enable software app and browser providers to include HEVC capability in their software products so that everyone can enjoy HEVC/UHD video today.  I’d like to specifically thank Tom Vaughan at MulticoreWare for his guidance in our development of this initiative.”

Tom Vaughan, VP and GM of Video at MulticoreWare remarked: “We have invested heavily in the development of our HEVC codecs and associated libraries.  From the start, HEVC Advance worked very hard to listen, understand and develop solutions to respond to the market’s concerns about HEVC Adoption.  We are thankful for their efforts and believe this initiative will encourage and facilitate software developers, web service and content providers, mobile device manufacturers and others to take advantage of the tremendous competitive advantage that HEVC provides as quickly as possible.”

Subject to certain exceptions/conditions.  Full details on the software policy initiative are available on the HEVC Advance website: http://hevcadvance.com

About the HEVC Advance Licensing Program
In addition to the above described software initiative, HEVC Advance offers incentives to encourage consumer device manufacturers to include HEVC functionality at initial sale.  For example, HEVC Advance only seeks one device royalty for a consumer device, even if that device includes multiple HEVC decoders or encoders at the time of the initial sale (subject to limited exceptions).  Therefore, any number of HEVC software products may be included in a consumer device at initial sale without incurring additional royalties, providing the applicable device royalty has been (or will be) paid by the consumer device manufacturer.  In addition, even after initial sale, HEVC Advance Licensees can receive waivers for device royalties on HEVC software products if these software products are installed on a consumer device for which the applicable device royalty has been (or will be) paid.

For more details or questions, please contact licensing@hevcadvance.com.  To request a license or for a detailed summary of the HEVC Advance licensing structure and incentive program, please visit the HEVC Advance website: http://hevcadvance.com

About HEVC Advance
HEVC Advance is an independent licensing administrator company formed to lead the development, administration and management of an HEVC/H.265 patent pool for licensing essential patents. HEVC Advance provides a transparent and efficient licensing mechanism for HEVC patented technology. For more information about HEVC Advance, visit hevcadvance.com.

x265 2.1 Released

By Pradeep Ramachandran

x265 version 2.1 has been released.  Full documentation is available at http://x265.readthedocs.org/en/stable/

Release Notes for 2.1

Encoder enhancements

  1. Support for qg-size of 8
  2. Experimental support for slice-parallelism.
  3. Able to insert non-IDR I-frames at scene changes when encoding with fixed GOP lengths (min-keyint = keyint)

API changes

  1. Encode user-define SEI messages passed in through x265_picture object.
  2. Disable SEI and VUI messages from the bitstream
  3. Specify qpmin and qpmax
  4. Control number of bits to encode POC.

Bug fixes

  1. QP fluctuation fix for first B-frame in mini-GOP for 2-pass encoding with tune-grain.
  2. Assembly fix for crashes in 32-bit from dct_sse4.
  3. Threadpool creation fix in windows platform.

A Proposal to Accelerate HEVC Adoption

By Tom Vaughan

Clogged pipes  Annual global Internet traffic is no longer measured in Megabytes, Gigabytes, Terabytes, or even Petabytes.  This year, global IP traffic will be more than one Zettabyte (a trillion billion, or 1,000,000,000,000,000,000,000 bytes)[1].  By far the biggest driver of IP traffic growth is video.  Today, more than 70% of all IP traffic is video.  By 2020, video will consume an estimated 82% of 2.3 Zettabytes of IP traffic[2].  Video has become strategic priority for many companies, including leading social media and messaging services.  In addition to the explosive growth in on-demand video, we are in the middle of a transition from high definition video to ultra high definition (UHD) video, with higher resolution, higher color accuracy, and higher dynamic range.  UHD content is forecast to grow to 20.7% of global IP video traffic by 2020.  Internet bandwidth is never as cheap or plentiful as we would want, so there is a serious need for more efficient video compression.  Fortunately, a new standard is available which can deliver identical quality to consumers using half the bandwidth of previous video compression standards.  Imagine a technology that could theoretically free up more than 30% of worldwide IP bandwidth, reducing congestion and allowing that bandwidth to be used to deliver a much higher quality of experience.  This technology is ready, mature, and optimized, but it’s hardly being utilized.

Twice the Efficiency  HEVC, also known as H.265, is a new video coding standard, ratified by the ITU and ISO in January 2013.  Many leading technology companies and research groups contributed to the new standard, including Microsoft, Apple, and Samsung.  These organizations contributed their researcher’s time, efforts, and intellectual property to create a significantly more powerful video compression standard, and the results are outstanding.  A 1080P movie that required 6 Mbps to be delivered in high quality with AVC/H.264 (today’s most widely used video compression standard), typically only requires about 3 Mbps to be delivered in the same quality with HEVC/H.265.  The improved efficiency of HEVC results in significantly higher quality at any fixed bandwidth.  So, for anyone trying to watch a video over a congested or bandwidth limited Internet connection, HEVC is able to deliver much better picture quality than AVC.

Ready to Rock  3 ½ years after the standard was ratified, HEVC hardware and software implementations, full-featured, efficient and widely available.  HEVC hardware decoders are built in to the latest smartphone SOCs, high-end PC graphics chipsets, and most high-end televisions.  Hardware HEVC encoders are embedded in smartphones, PCs, cameras and broadcast encoders.  The x265 HEVC encoder software is available under the GPL v2 open source license, and it’s been incorporated in FFMPEG, VLC, and dozens of open source and commercial applications.  There are many other commercial HEVC encoder and decoder software implementations.  HEVC is ready to rock and roll.  Sadly, HEVC is not in widespread use.  There isn’t a whole lot of HEVC encoded content, or HEVC enabled software applications reaching end-users.  The exception to this rule is for 4K content streamed by Netflix, Amazon and other movie streaming services to the latest generation of 4K TVs.  But although billions of devices are capable of supporting HEVC, in almost every application we continue to use AVC/H.264, which requires roughly twice the bit rate (and file size) to achieve the same quality as HEVC.  Consumers and enterprises aren’t getting the benefits of this incredibly powerful new technology.  There is no technical reason that HEVC isn’t being used for most video applications.  The hold up is due to the cost and uncertainty associated with HEVC patent licensing.

Patent Licensing Impasse  The HEVC video coding standard was developed by a team of experts jointly managed by two standards bodies; ITU and ISO.  It benefits consumers when multiple companies collaborate to develop a new industry standard.  Standards development involving many contributing organizations reduces the overall cost of developing a new technology, can produce a better overall result by combining valuable, proprietary innovations from many contributors, while providing compatibility across many different company’s products.  As per the policies of the ITU and ISO, the companies involved in setting the HEVC standard must disclose any patents they have or may file on the techniques that they contributed to the standard, and they pledge to license their patents on Reasonable, and Non-Discriminatory (RAND) terms.

Thirteen years ago, the majority of companies that developed AVC agreed to license their patents through one organization, MPEG LA.  Today, some of the companies that developed HEVC have agreed to make their patents available through MPEG LA, and some have formed a 2nd patent pool, called HEVC Advance.  A  number of important companies with HEVC patents have not yet joined one of the patent pools.  This fragmentation, combined with total patent royalties that are potentially many times greater than video solution developers currently pay for AVC, has caused many potential HEVC adopters to hold off for now.  We’ve all got too much invested, and HEVC is far too good to let the patent licensing situation delay adoption much longer.

Available Options  HEVC is the best video compression standard available today, and it is likely to remain the best video compression standard available for the next several years.  That isn’t to say that it doesn’t have any competition.  Google’s VP9 is a very capable video codec.  Google, Microsoft, Netflix, Amazon, Intel, Cisco and Mozilla have formed the Alliance for Open Media (AOM), a group dedicated to developing a next-generation video compression standard.  Some may have thought that the AOM was organized simply to gain leverage over HEVC patent negotiations.  The work that the AOM is doing makes it clear that it is a very serious project.  The AOM represents the merger of three royalty -free video codec development efforts (Google’s VP10, Cisco’s Thor, and Xiph/Mozilla’s Daala formats).  It has the backing of many industry leaders, including Adobe, ARM, AMD, NVIDIA and Vidyo.  More leading companies will join in the coming months, and I expect the AOM to be successful in their goal of establishing a widely adopted, royalty free next-generation video standard.  But it will take time to finalize this standard, and more time to develop and deploy implementations.  There is a window of opportunity for HEVC to achieve the widespread, pervasive adoption we all want to enjoy, in order to ensure a long shelf life and a good return on the massive combined industry investment.

Moving Forward  I manage the video software business for MulticoreWare, developers of x265; the world’s most widely adopted HEVC encoder.  This has enabled me to build strong relationships with many of the leading adopters of HEVC, including movie studios and post production companies, semiconductor companies, broadcast and streaming video encoding system vendors, web video streaming services, web video processing services, device OEMs, and major cloud and device platform owners.  I have had many discussions on the topic of HEVC adoption with key players, and I’ve found that all involved are intelligent, reasonable people, but their perspectives differ widely.  It’s clear from the people I’ve spoken with that there is a big gap in the patent licensing discussions.  It’s time for a détente.  HEVC is poised for breakout success, but it won’t happen unless we see some significant improvements in the patent licensing situation.  I’m optimistic that most organizations involved are recognizing this, and are ready to find ways to accelerate adoption.

Some believe the only way to solve the problem we see today is to move to royalty-free standards developed outside of international standards bodies.  While that can work well, it’s not the only way a great standard can be developed.  I believe that it’s perfectly reasonable for inventors to be given an incentive to contribute their valuable developments to a global standard, and to be compensated for their contributions.  Every company recognizes that intellectual property; whether it is a movie, TV show, software, hardware or invention; takes a lot of time, money, and unique talent to develop.  So it’s unreasonable to expect that the only way to develop new standards is to force contributors to donate their IP to a new standard royalty free.  However, in standards setting organizations, contributors shouldn’t come to the party with the goal of earning a big windfall on their R&D investment.  If that is your goal, you might be ‘persona non grata’ when it’s time for the next party.  A reasonable ROI is fine, but patents for techniques contributed to a technical standard are RAND encumbered, and must be reasonably priced.

So, how can the patent licensing situation be resolved?  There are several possibilities.  The stalemate could continue, with many companies sticking with H.264 or VP9 until AV1 is available.  In this scenario, most everyone loses.  It could be resolved in court.  Of course, a legal battle is the least attractive option for all concerned.  The best option is for patent holders, including those on the sidelines, to come together and compromise and offer a licensing solution acceptable to the vast majority of potential licensees.

It’s a Web and Mobile World AVC/H.264 was finalized as a specification in March, 2003, roughly 10 years before HEVC/H.265.  Ten years ago, at this stage in the life cycle of AVC/H.264, things were quite different.  AVC/H.264 patent holders pooled their patents together, enabling licensing through a single organization, called MPEG LA.  In terms of video distribution, was a “set-top box and DVD” world.  The Blu-ray Disc format was competing with HD-DVD to become the next generation optical disc standard.  The VC-1 video codec (developed by Microsoft and others) was competing with AVC, and both were supported by HD-DVD and Blu-ray Disc.  VC-1 patents were offered under very competitive terms.  The iPhone did not exist.  YouTube was less 8 months old, offering 320 x 240 pixel videos.  Netflix streaming, Amazon Video and Hulu were not available.  Facebook was a closed social network for college students.  Today, we live in a web and mobile world, where Internet video streaming is no longer a science experiment; it’s the primary method of accessing video content for billions of people.  Support from the leading web browsers and mobile platforms is essential for any new video standard to succeed.

Key to the success of AVC/H.264 was adoption by all of the leading device OEMs and web browsers.  Once H.264 was supported natively on every popular computing device, software developers could utilize it without an additional patent license or added cost.  Today, popular web services don’t charge for the client software required to access the service.  Instead, you just access the service through your browser, or download a free client app.  HEVC will not achieve critical mass if streaming video services, social media services and video conferencing services can’t continue to provide free client apps.  Web browsers will not support HEVC if there is an added royalty cost.  Unless they are content to cede the consumer PC and mobile video compression market to royalty free codecs, HEVC patent holders need to recognize the reality of today’s technology ecosystem, and adjust their license terms to compete successfully.  Treating software the same as hardware is a mistake.  Hardware is the engine, but software and content are the fuel.  Without the fuel, the engine won’t start, and it won’t run.

Proposal  To accelerate HEVC adoption, I propose that HEVC patent licensors agree to the following principles;

  • All HEVC patent holders should make their patents available through a patent pool
  • Ideally, all patent holders should join one patent pool
  • Only one reasonable royalty should be paid per device
  • Software decoding on consumer devices must be royalty free
  • Software encoding on consumer devices must be royalty free
  • Content distribution must be royalty free
  • There must be a reasonable cap on total royalties owed for HEVC implementations

The HEVC standard was first ratified 3 ½ years ago. It’s time for all HEVC patent holders to make their patents available under reasonable terms, through a single patent pool.  Holdouts need to fulfill their obligation to license their patents on reasonable and non-discriminatory terms.  Ideally, all patent holders should join a single patent pool, to eliminate redundancy, and to insure more reasonable royalty rates.  It much easier for licensees to track and maintain compliance if they don’t have to sign two or more patent license agreements.

I’m going to hold off suggesting the ideal compromise for patent royalty rates.  This is something that needs to be worked out in discussions between licensors and licensees.  Patent license revenues are a function of both royalty rates and adoption rates.  At this point, patent licensors should be concerned with accelerating adoption.

Royalty free software decoding would immediately enable more than a billion legacy devices to support HEVC playback, massively accelerating adoption.  This proposal would enable all web browsers, social media and video player apps to immediately add support for HEVC.  Royalty free software encoding would mean that video chat, video conferencing and video sharing services wouldn’t hesitate to significantly improve the quality of their services.  For clarification, this would not be a workaround for device manufacturers to offer HEVC support.  Under my proposal, only software distributed to hardware devices by third party companies after the first sale of the device would be considered royalty free.

Native Hardware Support Of course, software decoding and encoding is just a good first step to unleash the ecosystem.  Consumers will recognize that dedicated video decoding hardware reduces power consumption, drastically improves battery life, and ensures reliable playback.  Hardware accelerated encoding is desirable on battery powered mobile devices for video recording and live video messaging or streaming applications.  As HEVC adoption quickly spreads to every app and service that utilizes video, native HEVC support will be essential for any device to remain competitive.  This is not a problem, as every leading semiconductor manufacturer already supports HEVC in their PC, mobile device and embedded graphics.

Is this proposal unrealistic?  Not at all.  HEVC patent holders understand that it is in their interest to see HEVC adoption accelerated quickly and significantly, and that it is critically important for HEVC to become common for web video distribution and mobile applications.  Effectively, this proposal mirrors the current state of AVC patent licensing.  AVC has long been supported natively on every device that matters, and app developers don’t have to worry about AVC royalties.  The vast majority of software and web service developers currently do not, and will not, pay “device royalties” for client applications, or for video playback in a web browser.  Once leading browsers, apps and services are using HEVC, consumer demand for a fast, reliable experience will ensure that every leading device OEM offers native HEVC hardware support.  There are roughly 2.5 billion consumer compute-capable devices (PCs, tablets and mobile phones) sold each year[3], and hundreds of millions more consumer electronic devices (TVs, cameras, set-top boxes), it’s clear that the total addressable market for licensing HEVC is more than sufficient to provide a reasonable return on investment to HEVC patent holders.  It should be clear to all that the benefits of adopting this proposal will far outweigh any perceived cost.  I believe this proposal represents a win/win situation for licensors and licensees, and the biggest winners of all would be the end consumer worldwide.  I look forward to the conversation that is sure to follow.

Tom Vaughan
VP and GM, Video

[1] http://www.cisco.com/c/dam/en/us/solutions/collateral/service-provider/visual-networking-index-vni/complete-white-paper-c11-481360.pdf

[2] http://www.cisco.com/c/dam/en/us/solutions/collateral/service-provider/visual-networking-index-vni/complete-white-paper-c11-481360.pdf

[3] http://www.gartner.com/newsroom/id/3187134

x265 v2.0 released

By Pradeep Ramachandran

x265 version 2.0 has been released. This release supports many new features as well as support for ARM assembly optimizations for most basic pixel and ME operations, as well as SAO cleanups and a fully tested reconfigure functionality.

Full documentation is available at http://x265.readthedocs.org/en/stable/

=========================================== New Features =========================================

• uhd-bd: Enable Ultra-HD Bluray support
• rskip: Enables skipping recursion to analyze lower CU sizes using heuristics at different rd-levels. Provides good visual quality gains at the highest quality presets.
• rc-grain: Enables a new ratecontrol mode specifically for grainy content. Strictly prevents QP oscillations within and between frames to avoid grain fluctuations.
• tune grain: A fully refactored and improved option to encode film grain content including QP control as well as analysis options.
• asm: ARM assembly is now enabled by default, native or cross compiled builds supported on armv6 and later systems.
==================================== API and Key Behaviour Changes ==================================
• x265_rc_stats added to x265_picture, containing all RC decision points for that frame
• PTL: high tier is now allowed by default, chosen only if necessary
• multi-pass: First pass now uses slow-firstpass by default, enabling better RC decisions in future passes
• pools: fix behaviour on multi-socketed Windows systems, provide more flexibility in determining thread and pool counts
• ABR: improve bits allocation in the first few frames, abr reset, vbv and cutree improved
=============================================== Misc ==============================================
• An SSIM calculation bug was corrected

x265 version 1.9

By By Pradeep Ramachandran

x265 version 1.9 has now been released. This release supports many new features as well as additional assembly optimizations for Main12, intra prediction and SAO. Recently added features lookahead-slices, limit-refs and limit-modes have been enabled by default in the supported presets. Full documentation is available at http://x265.readthedocs.org

New Features

  • Quant offsets: This feature allows block level quantization offsets to be specified for every frame. An API-only feature.
  • intra-refresh: Keyframes can be replaced by a moving column of intra blocks in non-keyframes.
  • limit-modes: Intelligently restricts mode analysis. – –max-luma and –min-luma for luma clipping, optional for HDR use-cases
  • Emergency denoising is now enabled by default in very low bitrate, VBV encodes API Changes – x265_frame_stats returns many additional fields: maxCLL, maxFALL, residual energy, scenecut and latency logging
  • qpfile now supports frametype ‘K” – x265 now allows CRF ratecontrol in pass N (N greater than or equal to 2)
  • Chroma subsampling format YUV 4:0:0 is now fully supported and tested

Presets and Performance

  • Recently added features lookahead-slices, limit-modes, limit-refs have been enabled by default for applicable presets.
  • The default psy-rd strength has been increased to 2.0
  • Multi-socket machines now use a single pool of threads that can work cross-socket.

Performance Presets

By Tom Vaughan

x265 has ten performance presets which enable anyone to make a good choice between encoding speed and compression efficiency.  These presets are combinations of x265 settings that should provide the best possible result at the encoding speed that you want to achieve.

If you want the highest compression efficiency (quality at your desired bit rate), you can select “–preset veryslow”.  Of course, “–preset veryslow” will run much slower than one of the faster x265 presets, so you will either need more time or more compute power (a more powerful PC or server).  If you’re trying to encode in real time, you will need x265 to maintain an encoding speed that is faster than the frame rate of your video, and so you’ll want to choose one of the faster presets, like “–preset faster” or “–preset veryfast”.

Over the past year we’ve added a number of new capabilities to x265 designed to allow it to run faster with very little tradeoff in encoding efficiency.  These include –limit-refs, –limit-modes, and –lookahead-slices.  We’ve performed extensive testing using a set of videos at various sizes (720P, 1080P and 2160P) on a range of machines.  We tested many possible improvements to our performance presets, trying to find the right combination of settings at each performance level.  The result is an update to our performance presets that incorporates some of our new algorithms, and a few changes to some of the existing settings.  The following charts illustrate the benefits of the new presets.  Your mileage may vary depending on your machine and your content.  In some cases you’ll notice a big improvement in speed, with a small tradeoff in quality, and in other cases you’ll notice both improved quality and speed.

The data points below show the average encoding speed and efficiency relative to the old (v1.8) veryslow preset.





HEVC Advance Reduces Proposed License Fees

By Tom Vaughan

The patent licensing organization known as HEVC Advance has announced a revision to the royalty rates they propose to charge companies who sell hardware, software and content that utilizes the HEVC standard.

Our opinion:  While these rates are a good step in the right direction, they are still many times higher than what licensees paid for H.264 for the past decade, and they would have to be paid in addition to the  MPEG-LA HEVC license fees (20 cents per unit after the first 100,000 units in each year with a $25 million annual cap, no content royalties).  We are optimistic that large licensees including Intel, Samsung, Apple, Microsoft, Google, movie studios and all of the many TV, mobile and PC device OEMs will convince the companies involved with HEVC Advance to join the MPEG-LA licensees, enabling licensing at reasonable rates from a single license pool.

Royalty rates for 4K TVs are now proposed to be $1.20 per unit, plus up to 75 cents per unit if HEVC profile extensions are supported.  PCs and set-top boxes would be liable for 80 cents per unit, and mobile devices would cost 40 cents per unit.  Companies such as Apple and Amazon which offer both mobile and connected home devices would be liable for up to $40 million in device royalties per year, in addition to their MPEG-LA HEVC license which will cost up to $25 million per year.

Whereas they had previously announced that all companies distributing HEVC content would have to pay a royalty of 0.5% of their top-line revenue attributable to HEVC, without any annual cap, they have revised their proposed content royalty to charge only for subscription-based services and for content for sale on a per-title basis (including streaming content and physical media, such as Blu-ray discs).  Content fees will start at 0.5 cents per subscriber per month, rising to 2.5 cents per subscriber per month in 2020.  Per-title fees are 2.5 cents.  In either category, there is a $2.5 million annual royalty cap, with a $5 million cap for companies who distribute content through all three content categories.  Services that do not charge for content, including ad-supported services such as YouTube and Facebook would not be charged an HEVC content royalty.

HEVC Advance Content Royalties

Do NOT follow this link or you will be banned from the site!