MediaInfo is a command-line tool that displays detailed technical information about media files such as videos, audio files, and images. It shows information like file format, codec, resolution, bitrate, duration, frame rate, audio channels, and metadata. You can install and use MediaInfo in Termux to inspect media files using simple commands.
Installation Commands
Follow the commands below to install MediaInfo in Termux. Simply copy and paste each command into the Termux terminal.
Update Termux packages.
pkg update && pkg upgrade -y
Install MediaInfo.
pkg install mediainfo -y
Allow Termux to access your device storage.
termux-setup-storage
Check the installed version.
mediainfo --version
MediaInfo is now installed and ready to use.
Usage Commands
MediaInfo uses simple terminal commands to display technical information about media files.
Go to your device’s internal storage.
cd /sdcard
List all files and folders in internal storage.
ls
Display information about a video file stored in your internal storage.
mediainfo video.mp4
Analyze an audio file.
mediainfo song.mp3
View information about an image.
mediainfo image.jpg
Display only general information.
mediainfo --Output=General video.mp4
Display video information only.
mediainfo --Output=Video video.mp4
Display audio information only.
mediainfo --Output=Audio video.mp4
Export the output as JSON.
mediainfo --Output=JSON video.mp4
Export the output as XML.
mediainfo --Output=XML video.mp4
Show the help menu.
mediainfo --Help
Choose the command you want and MediaInfo will display the requested media information in Termux.







