opj_dump command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
opj_dump: command not found
or when using sudo you get the following error message
sudo: opj_dump: command not found
Solutions to opj_dump: command not found
How To Fix opj_dump: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu opj_dump is provided by libopenjp2-tools package.
libopenjp2-tools is:
This package provides with command-line tools allowing for conversions between several formats and also provides tools for encoding and decoding motion-jpeg2000 video formats:
- opj_decompress: decodes j2k, jp2, and jpt files to pgm, ppm, pnm, pgx, and bmp.
- opj_compress: encodes pnm, pgm, pgx, bmp, and ppm files to j2k, and jp2.
- opj_dump: dump information contains in j2k and jp2.
- index_create: create jp2 with JPIP index file from a j2k file.
- frames_to_mj2: convert YUV video streams to mj2 format.
- mj2_to_frames: convert mj2 video streams to YUV format.
- wrap_j2k_in_mj2: wrap j2k codestreams into mj2 format.
- extract-j2k-from_mj2: extract j2k codestreams from the mj2 format.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libopenjp2-tools
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libopenjp2-tools.
sudo apt -y install libopenjp2-tools
Or if you have aptitude installed you can use the following command.
sudo aptitude install libopenjp2-tools
Summary
In this tutorial we learn how to fix opj_dump command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.