aboutsummaryrefslogtreecommitdiffhomepage
path: root/TOOLS/midentify
blob: f6dbf21be3623f80062e34363276647383f54d91 (plain)
1
2
3
4
5
#!/bin/sh
mplayer -vo null -ao null -frames 0 -identify "$@" 2>/dev/null |
	grep "^ID" |
	sed -e 's/[`\\!$"]/\\&/g' |
	sed -e '/^ID_FILENAME/ { s/^ID_FILENAME=\(.*\)/ID_FILENAME="\1"/g; }'