{"id":21765,"library":"pymediainfo-pyrofork","title":"PyMediaInfo-PyroFork","description":"A Python wrapper for the mediainfo library, forked to support newer Python versions and provide up-to-date bindings. Current version is 6.0.2, requiring Python 3.9+. Released regularly with mediainfo dependency updates.","status":"active","version":"6.0.2","language":"python","source_language":"en","source_url":"https://github.com/Mayuri-Chan/pymediainfo-pyrofork","tags":["mediainfo","media","file-info","wrapper"],"install":[{"cmd":"pip install pymediainfo-pyrofork","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"This is a fork; the original package may conflict if installed simultaneously","package":"pymediainfo","optional":true}],"imports":[{"note":"MediaInfoParser was renamed to MediaInfo in a previous version.","wrong":"from pymediainfo import MediaInfoParser","symbol":"MediaInfo","correct":"from pymediainfo import MediaInfo"}],"quickstart":{"code":"from pymediainfo import MediaInfo\n\nmedia_info = MediaInfo.parse('video.mp4')\nprint(media_info.general_tracks[0].to_data())","lang":"python","description":"Parse a media file and print general track information as dict."},"warnings":[{"fix":"Install mediainfo using system package manager (e.g., apt install mediainfo, brew install mediainfo, or download from https://mediaarea.net/en/MediaInfo).","message":"The mediainfo CLI tool must be installed separately on the system. Python-only install may fail at runtime with \"FileNotFoundError\".","severity":"breaking","affected_versions":"all"},{"fix":"Use `MediaInfo.parse('file.mp4')[0]` or iterate over the result if multiple files.","message":"The old `MediaInfo.parse` returned a `MediaInfo` object; now it returns a `MediaInfoList` if multiple files are parsed. Access single file results with indexing.","severity":"deprecated","affected_versions":">=6.0"},{"fix":"Use `field or ''` or check for None explicitly.","message":"Empty fields in mediainfo output are returned as None, not empty string. Comparisons may fail if expecting string.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Install mediainfo via system package manager or download from MediaInfo website.","cause":"mediainfo CLI not installed on system PATH.","error":"FileNotFoundError: [Errno 2] No such file or directory: 'mediainfo'"},{"fix":"Use `from pymediainfo import MediaInfo` and `MediaInfo.parse(...)`.","cause":"Using deprecated class name.","error":"AttributeError: module 'pymediainfo' has no attribute 'MediaInfoParser'"},{"fix":"Use `result = MediaInfo.parse('file.mp4')` then `result.general_tracks[0]` if result is not a list; check type. For consistency, use `track = result[0] if isinstance(result, list) else result`.","cause":"Old code accessing result as single object, but new version returns list for single file (can be subscripted). This error may appear if the returned type is not a list but a single object; actually in this case it's subscriptable, but if an older script treats it as a single object, it will fail.","error":"TypeError: 'MediaInfoList' object is not subscriptable"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}