mirror of https://github.com/mpv-player/mpv
Add convenience wrapper for mplayer -identify
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7866 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
d5a36f752c
commit
ddaa6dd19d
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
mplayer -identify "$@" 2>/dev/null |
|
||||||
|
grep "^ID" |
|
||||||
|
sed -e 's/[`\\!$"]/\\&/g' |
|
||||||
|
sed -e '/^ID_FILENAME/ { s/^ID_FILENAME=\(.*\)/ID_FILENAME="\1"/g; }'
|
Loading…
Reference in New Issue