Video Codec Engine

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Video Codec Engine (VCE) is the name given to AMD's video encoding ASIC implementing the video codec H.264/MPEG-4 AVC. It integrated into some of their GPUs and APUs.

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

Overview[edit]

In "fixed mode" the entire computation is done by the fixed-function VCE unit. Fixed mode can be accessed through the OpenMAX IL API.
The entropy encoding block of the VCE ASIC is also separately accessible, enabling "hybrid mode". In "hybrid mode" most of the computation is done by the 3D engine of the GPU. Using AMD's Accelerated Parallel Programming SDK and OpenCL 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.

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 mode and hybrid mode.[4]

By emyploing 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[edit]

As of April 2014, there are two versions of VCE.[5] 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. These are
    • Radeon HD7700 series
    • Radeon HD7800 series
    • Radeon HD7900 series
    • Radeon R7 250X
    • Radeon R9 270 / 270X
    • Radeon R9 280 / 280X

VCE 2.0[edit]

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)
  • 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, such as
    • Radeon R7 260 / 260X
    • Radeon R9 290 / 290X
    • Radeon R9 295X2

Feature overview[edit]

The entire AMD Accelerated Processing Unit lines and some of their features
Brand Brazos
(low power)
Llano Trinity Richland Kabini & Temash
(low power)
Kaveri Beema & Mullins
(low power)
Carrizo Carrizo-L
(low power)
Released Jan 2011 Aug 2011 Oct 2012 2013 May 2013 Jan 2014 Q2 2014 2015 2015
Fab (nm) TSMC 40 nm GlobalFoundries 32 nm SOI 28 28 28 28 28
APU Socket FT1 FM1
FS1
FM2
FS1+
FP2
AM1
FT3
FM2+
FP3
FT3b TBA TBA
CPU cores Bobcat AMD 10h Piledriver Jaguar Steamroller Puma Excavator Puma+[6]
3D engine1 80:8:4 400:20:8 384:24:6 384:24:6 128:8:4 512:32:8 128:8:4 TBA TBA
TeraScale 2 (VLIW5) TeraScale 3 (VLIW4) Graphics Core Next (Mantle, HSA)
IOMMUv1 IOMMUv2 IOMMUv1[7] TBA TBA
Unified Video Decoder UVD 3 UVD 4 UVD 4.2 TBA TBA
Video Codec Engine N/A VCE 1.0 VCE 2.0 TBA TBA
TrueAudio N/A Yes[8] N/A[7] TBA TBA
Max. № of displays2 2 2–3 2–4 2 2–4 2 TBA TBA
Direct Rendering Manager/
Mesa 3D driver[9][10]
Yes[10] WiP[11] WiP[12]


Operating system support[edit]

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[citation needed]. Additionally, a free device driver is available. This driver also supports the VCE hardware.

Linux[edit]

Support for the VCE ASIC is contained in the Linux kernel device driver amdgpu.

Windows[edit]

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

XSplit Broadcaster supports VCE from version 1.3 [19]

See also[edit]

References[edit]

  1. ^ http://www.amd.com/us/Documents/UVD3_whitepaper.pdf
  2. ^ "AnandTech Portal | AMD Radeon HD 7970 Review: 28nm And Graphics Core Next, Together As One". Anandtech.com. Retrieved 2014-03-27. 
  3. ^ "AMD's Radeon HD 7970 graphics processor - The Tech Report - Page 5". The Tech Report. Retrieved 2014-03-27. 
  4. ^ "Video & Movies: The Video Codec Engine, UVD3, & Steady Video 2.0". AnandTech. 
  5. ^ http://developer.amd.com/community/blog/2014/02/19/introducing-video-coding-engine-vce/
  6. ^ "AMD Mobile “Carrizo” Family of APUs Designed to Deliver Significant Leap in Performance, Energy Efficiency in 2015" (Press release). 2014-11-20. Retrieved 2015-02-16. 
  7. ^ a b Thomas De Maesschalck (2013-11-14). "AMD teases Mullins and Beema tablet/convertibles APU". Retrieved 2015-02-24. 
  8. ^ "A technical look at AMD’s Kaveri architecture". Semi Accurate. Retrieved 6 July 2014. 
  9. ^ Airlie, David (2009-11-26). "DisplayPort supported by KMS driver mainlined into Linux kernel 2.6.33". Retrieved 2014-07-02. 
  10. ^ a b "Radeon feature matrix". freedesktop.org. Retrieved 2015-02-13. 
  11. ^ "AMDKFD Driver Does More Prepping For Carrizo / VI APUs". 2015-01-13. Retrieved 2015-01-13. 
  12. ^ "AMDKFD Driver Does More Prepping For Carrizo / VI APUs". 2015-01-13. Retrieved 2015-01-13. 
  13. ^ "How do I connect three or More Monitors to an AMD Radeon™ HD 5000, HD 6000, and HD 7000 Series Graphics Card?". AMD. Retrieved 2014-12-08. 
  14. ^ "initial VCE support in Linux kernel and in the Mesa driver". 
  15. ^ "OpenMAX state tracker for Gallium3D". 
  16. ^ "AMD Open-Sources VCE Video Encode Engine Code". Phoronix. 2014-02-04. 
  17. ^ "st/omx/enc: implement h264 level support". 2014-06-12. 
  18. ^ "MediaShow Espresso Video Transcoding Benchmark". 
  19. ^ "XSplit Broadcaster 1.3 maintenance update includes mainly performance enhancements and maintenance fixes including such noteworthy features such as support for AMD's VCE H.264 hardware encoder.".