# You can get the property value of video file from MPV using --term-playing-msg option. # Example: Get filename, video width, video height mpv --term-playing-msg="\${=filename}, \${=width}, \${=height}" \ --vo=null --ao=null \ --frames=1 --quiet --no-cache --no-config \ video.mp4
https://github.com/mpv-player/mpv/blob/master/TOOLS/mpv_identify.sh