1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-11 01:16:45 +00:00
mpv/TOOLS/midentify
ranma ddaa6dd19d Add convenience wrapper for mplayer -identify
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7866 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-10-23 15:49:44 +00:00

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; }'