mpv/TOOLS/midentify

6 lines
161 B
Bash
Executable File

#!/bin/sh
mplayer -identify "$@" 2>/dev/null |
grep "^ID" |
sed -e 's/[`\\!$"]/\\&/g' |
sed -e '/^ID_FILENAME/ { s/^ID_FILENAME=\(.*\)/ID_FILENAME="\1"/g; }'