x264 command not found
In this troubleshooting guide we learn how to fix x264 command not found error message
Introduction
When you run more command in linux terminal / console, you get the following error message
x264: command not found
or when using sudo you get the following error message
sudo: x264: command not found
Solutions to x264: command not found
How To Fix x264: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu x264 is provided by x264 package.
x264 is:
x264 is an advanced commandline encoder for creating H.264 (MPEG-4 AVC) video streams.
x264 supports the following features:
- CABAC (context-based adaptive binary arithmetic coding) and CAVLC (context-based adaptive variable length coding
- multiple reference frames
- 16x16, 8x8 and 4x4 intra-predicted macroblocks
- all P-frame inter-predicted macroblock types
- B-Inter-predicted macroblock types from 16x16 down to 8x8
- rate distortion optimization
- multiple rate control modes (constant quantizer, constant quality, single or multipass ABR with the option of VBV)
- scene cut detection
- adaptive B-frame placement, with the option of keeping B-frames as references / arbitrary frame order
- 8x8 and 4x4 adaptive spatial transform (high profile)
- lossless mode (high 4:4:4 profile)
- custom quantization matrices (high profile)
- parallel encoding on multiple CPUs
- interlaced streams
To fix this problem, we can install more using the command below.
sudo apt-get -y install x264
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install x264.
sudo apt -y install x264
Or if you have aptitude installed you can use the following command.
sudo aptitude install x264
Summary
In this tutorial we learn how to fix x264 command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.