Rahul Sharma (Editor)

Video Coding Engine

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

Video Coding Engine (VCE, sometimes incorrectly referred to as Video Codec Engine) is AMD's video encoding ASIC implementing the video codec H.264/MPEG-4 AVC. Since 2012 it is integrated into all of their GPUs and APUs.

Contents

Video Coding Engine was introduced with the Radeon HD 7900 on 22 December 2011. VCE occupies a considerable amount of the die surface and is not to be confused with AMD's Unified Video Decoder (UVD).

Overview

The handling of video data involves computation of data compression algorithms and possibly of video processing algorithms. As the template Compression methods shows, lossy video compression algorithms involve the steps: Motion estimation (ME), Discrete cosine transform (DCT), and entropy encoding (EC).

AMD Video Codec Engine (VCE) is a full hardware implementation of the video codec H.264/MPEG-4 AVC. The ASIC is capable of delivering 1080p at 60 frames/sec. Because its entropy encoding block is also separately accessible Video Codec Engine can be operated in two modes: full-fixed mode and hybrid mode.

By employing AMD APP SDK, available for Linux and Microsoft Windows, developers can create hybrid encoders that pair custom motion estimation, inverse discrete cosine transform and motion compensation with the hardware entropy encoding to achieve faster than real-time encoding. In hybrid mode, only the entropy encoding block of the VCE unit is used, while the remaining computation is offloaded to the 3D engine (GCN) of the GPU, so the computing scales with the number of available compute units (CUs).

VCE 1.0

As of April 2014, there are two versions of VCE. Version 1.0 supports H.264 YUV420 (I & P frames), H.264 SVC Temporal Encode VCE, and Display Encode Mode (DEM).

It can be found on

  • Piledriver-based
  • Trinity APUs (Ax - 5xxx, e.g. A10-5800K)
  • Richland APUs (Ax - 6xxx, e.g. A10-6800K)
  • GPUs of the Southern-Island-Generation (GCN 1.0: CAYMAN, ARUBA (Trinity/Richland), CAPE VERDE, PITCAIRN, TAHITI, OLAND). These are
  • Radeon HD 7700 series (HD 7790 (VCE 2.0))
  • Radeon HD 7800 series
  • Radeon HD 7900 series
  • Radeon HD 8570 to HD 8990 (HD 8770 (VCE 2.0))
  • Radeon R7 240 / R7 250 / R7 250E / R7 250X / R7 265 / R9 270 / R9 270X / R9 280 / R9 280X
  • Radeon R7 340 / R7 350 / R7 370 / R9 370 / R9 370X
  • Mobile Radeon HD 77x0M to HD 7970M
  • Mobile Radeon HD 8000-Series
  • Mobile Radeon Rx M2xx Series (R9 M280X: VCE 2.0, R9 M295X: VCE 3.0)
  • Mobile Radeon R5 M330 to Radeon R9 M380 and Radeon R9 M390
  • FirePro Cards with 1st Generation GCN (GCN 1.0)
  • VCE 2.0

    Compared to the first version, VCE 2.0 adds H.264 YUV444 (I-Frames), B-frames for H.264 YUV420, and improvements to the DEM (Display Encode Mode), which results in a better encoding quality.

    It can be found on

  • Steamroller-based
  • Kaveri APUs (Ax - 7xxx, e.g. A10-7850K)
  • Godavari APUs (Ax - 7xxx e.g. A10-7890K)
  • Jaguar-based
  • Kabini APUs (e.g. Athlon 5350, Sempron 2650)
  • Temash APUs (e.g. A6-1450, A4-1200)
  • Puma-based
  • Beema and Mullins
  • GPUs of the Sea-Islands-Generation as well Bonaire or Hawaii GPUs (2nd generation Graphics Core Next), such as
  • Radeon HD 7790 / HD 8770
  • Radeon R7 260 / R7 260X / R9 290 / R9 290X / R9 295X2
  • Radeon R7 360 / R9 360 / R9 390 / R9 390X
  • Mobile Radeon R9 M280X
  • Mobile Radeon R9 M385 / R9 M385X
  • Mobile Radeon R9 M470 / R9 M470X
  • FirePro-Cards with second Generation GCN
  • VCE 3.0

    Video Coding Engine 3.0 (VCE 3.0) technology features a new high-quality video scaling., and will also support for High Efficiency Video Coding (HEVC, H.265, but As of May 2015, there are no announcements about VP9 video codec support.

    It, together with UVD 6.0, can be found on 3rd generation of Graphics Core Next (GCN 1.2) with "Tonga", "Fiji", "Iceland", and "Carrizo" (VCE 3.1) based graphics controller hardware, which is now used AMD Radeon Rx 300 Series (Pirate Islands GPU family) and VCE 3.4 by actual AMD Radeon Rx 400 Series (Arctic Islands GPU family).

  • Tonga: Radeon R9 285, Radeon R9 380, Radeon R9 380X / Mobile Radeon R9 M390X / R9 M395 / R9 M395X / Radeon R9 M485X /
  • Tonga XT: FirePro W7100 / S7100X / S7150 / S7150 X2 /
  • Fiji: Radeon R9 Fury / R9 Fury X / R9 Nano / Radeon Pro Duo / FirePro S9300 / W7170M
  • Polaris: RX 460 / 470 / 480
  • VCE 4.0

    The Video Coding Engine 4.0 encoder and UVD 7.0 decoder are reported to be included in the upcoming Vega based GPUs.

    Operating system support

    The VCE SIP core needs to be supported by the device driver. The device driver provides one or multiple interfaces, like e.g. OpenMAX IL. One of this interfaces is then used by end-user software, like e.g. GStreamer or HandBrake, to access the VCE hardware and make use of it.

    AMD's proprietary device driver AMD Catalyst is available for multiple operating systems and support for VCE has been added to it. Additionally, a free device driver is available. This driver also supports the VCE hardware.

    Linux

  • Initial VCE support has been added on 4 February 2014 by Christian König of AMD to the free radeon driver.
  • Gallium3D state tracker for OpenMAX was added 24 October 2013 to Mesa 3D.
  • The free and open-source Radeon driver has been adapted to using OpenMAX with the GStreamer OpenMAX (gst-omx) support for exposing the VCE video encode engine.
  • AMD employee Leo Liu implemented h264 level support into the Mesa 3D state tracker.
  • Windows

    The software "MediaShow Espresso Video Transcoding" seems to utilize VCE and UVD to the fullest extent possible.

    XSplit Broadcaster supports VCE from version 1.3.

    Open Broadcaster Software (OBS Studio) supports VCE for recording and streaming. The original Open Broadcaster Software (OBS) requires a fork build in order to enable VCE.

    AMD Radeon Software Crimson supports VCE with built in game capture and use AMD AMF/VCE on APU or Radeon Graphics card to reduce FPS drop, when capture game or video content.

    References

    Video Coding Engine Wikipedia