CRI Sofdec(Unreal Engine) v1
Introduction 01 Simple playback of Sofdec movies (VP9, H.264 codec)

In this chapter, you will learn how to play Sofdec movies with VP9 and H.264 codecs.
For playback methods when the video codec is Sofdec.Prime, please refer to "CRI Sofdec (Unreal Engine) v1 Introduction 01 Simple playback of Sofdec movies". When the video codec is VP9 or H.264, playback can be done with almost the same operations, but there are some differences and points to note.

Introduction

For basic knowledge about CRI's Unreal Engine plugin and how to install the Unreal Engine plugin, please refer to the following.

If you want to use videos with the VP9 video codec, overwrite the project's Plugins folder with the Plugins folder below.

/cri/expansion/sofdec2_codecs/vp9/UnrealEngine/Engine/Plugins

How to encode Sofdec movies

Sofdec is a multi-platform compatible video playback system that provides high quality image and sound.
CRIWARE SDK for Unreal Engine brings Sofdec functionality to your Unreal Engine projects.
Sofdec handles dedicated movie data (Sofdec movies). The CRIWARE SDK for Unreal Engine includes a tool called "Sofdec Encoding Wizard" for encoding Sofdec movies. This tool is located in the following folder:

/cri/tools/Sofdec2/

When encoding your Sofdec movie with the Sofdec Encoding Wizard, choose the following settings:

  • Platform: Standard
  • Video Codec: Sofdec.Prime or h.264 or vp9


A hardware decoder is required for VP9 and H.264 playback.
If they are disabled, videos using these codecs will not play and will remain blacked out, and the output log will show the following error:


We will show you how to enable the hardware decoder.
From the Edit menu, open Project Settings.


Click "CriWare" under "Plugins" in the list on the left.


The subsequent steps can be followed in the same way as in "CRI Sofdec (Unreal Engine) v1 Introduction 01 Simple Playback of Sofdec Movies (Mana Player Edition)".

Next, double-click the created Material to open the Material graph.
In the "Mana Color Space Converter" details of the Material Graph, make sure that "Movie Type" is the same as the video codec of the video you are playing.
If a different codec is specified, the color may differ from the original.