1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-11 17:37:23 +00:00
mpv/TOOLS/midentify
ranma c687fadbd6 Use -frames 0 instead of hardcoded "goto goto_next_file;"
(Suggested by "Per Winkvist <per.winkvist@telia.com>" in private mail)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9563 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-03-10 00:46:40 +00:00

6 lines
171 B
Bash
Executable File

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