x265 command not found

In this troubleshooting guide we learn how to fix x265 command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

x265: command not found

or when using sudo you get the following error message

sudo: x265: command not found

Solutions to x265: command not found

How To Fix x265: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu x265 is provided by x265 package.

x265 is:

x265 is a commandline encoder for creating H.265/High Efficiency Video Coding (HEVC) video streams.

x265 supports the following features:

  • full prediction and transform quad-tree recursion supported
  • adaptive B-frame placement
  • B-frames as references / arbitrary frame order
  • CABAC (context-based adaptive binary arithmetic coding) entropy coding
  • supports all Intra block types
  • supports all Inter P partitions
  • supports all Inter B partitions from 64x64 down to 8x4
  • weighted prediction for P slices
  • multiple reference frames
  • scenecut detection
  • parallel encoding on multiple CPUs

To fix this problem, we can install more using the command below.

sudo apt-get -y install x265

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install x265.

sudo apt -y install x265

Or if you have aptitude installed you can use the following command.

sudo aptitude install x265

Summary

In this tutorial we learn how to fix x265 command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.