MediaInfo Example using python with PyMediaInfo
Only my 3rd ever python script. Sorry if it looks fuky.
Arguments can be either a file or directory (single level only)
Adjust the list "Suffix" to suit your file type needs. Curently defaults to
suffix = (".mkv", ".avi", ".mp4", ".mpg", ".webm", ".wmv" ".mov", ".mp3")
Install & Run
git clone https://github.com/optio50/mipy
cd mipy
chmod x mipy
pip3 install pymediainfo
./mipy <Some-media-file_or-directory>
Required tools
https://mediaarea.net/en/MediaInfo/Download/Ubuntu libzen0 libmediainfo0
https://github.com/sbraz/pymediainfo
https://repology.org/project/python:pymediainfo/versions
How to use it
https://pymediainfo.readthedocs.io/en/stable/