annotate TOOLS/midentify @ 27146:a8681ded2d41

r25756: Document vo gl lscale=3 r25757: Add experimental unsharp-mask OpenGL scaler. r25767: misc spelling fixes r25768: misc markup fixes r25769: better ao/vo profile examples r25786: Add a fragment program for 5x5 unsharp masking r25821: (instead of adding quotation mark, this added a missing paragraph!) r25955: (previously applied) r25973: Hint about possible libmpeg2 problems with -hardframedrop r25984: Slightly document alpha for OSD color r26014: -dumpstream will not dump chapters anymore r26015: Document that framedrop needs -no-correct-pts r26017: removed wrong example
author kraymer
date Mon, 30 Jun 2008 19:35:36 +0000
parents efb8b8fa323e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7865
d151608b9f28 Add convenience wrapper for mplayer -identify
ranma
parents:
diff changeset
1 #!/bin/sh
15857
70ad5a19d831 Better approach to shell escaping, may not catch all cases yet
ranma
parents: 9572
diff changeset
2 #
70ad5a19d831 Better approach to shell escaping, may not catch all cases yet
ranma
parents: 9572
diff changeset
3 # This is a wrapper around the -identify functionality.
70ad5a19d831 Better approach to shell escaping, may not catch all cases yet
ranma
parents: 9572
diff changeset
4 # It is supposed to escape the output properly, so it can be easily
70ad5a19d831 Better approach to shell escaping, may not catch all cases yet
ranma
parents: 9572
diff changeset
5 # used in shellscripts by 'eval'ing the output of this script.
70ad5a19d831 Better approach to shell escaping, may not catch all cases yet
ranma
parents: 9572
diff changeset
6 #
70ad5a19d831 Better approach to shell escaping, may not catch all cases yet
ranma
parents: 9572
diff changeset
7 # Written by Tobias Diedrich <ranma+mplayer@tdiedrich.de>
70ad5a19d831 Better approach to shell escaping, may not catch all cases yet
ranma
parents: 9572
diff changeset
8 # Licensed under GNU GPL.
70ad5a19d831 Better approach to shell escaping, may not catch all cases yet
ranma
parents: 9572
diff changeset
9
70ad5a19d831 Better approach to shell escaping, may not catch all cases yet
ranma
parents: 9572
diff changeset
10 if [ -z "$1" ]; then
70ad5a19d831 Better approach to shell escaping, may not catch all cases yet
ranma
parents: 9572
diff changeset
11 echo "Usage: midentify <file> [<file> ...]"
70ad5a19d831 Better approach to shell escaping, may not catch all cases yet
ranma
parents: 9572
diff changeset
12 exit 1
70ad5a19d831 Better approach to shell escaping, may not catch all cases yet
ranma
parents: 9572
diff changeset
13 fi
70ad5a19d831 Better approach to shell escaping, may not catch all cases yet
ranma
parents: 9572
diff changeset
14
9572
96f874a6cd60 Prevent vo window flashing.
ranma
parents: 9562
diff changeset
15 mplayer -vo null -ao null -frames 0 -identify "$@" 2>/dev/null |
15869
1093105c639c Solaris sed needs the terminating '}' to be on a separate line
ranma
parents: 15857
diff changeset
16 sed -ne '/^ID_/ {
15889
efb8b8fa323e Add missing escapes, this should now cover all shell special characters AFAICS
ranma
parents: 15869
diff changeset
17 s/[]()|&;<>`'"'"'\\!$" []/\\&/g;p
15869
1093105c639c Solaris sed needs the terminating '}' to be on a separate line
ranma
parents: 15857
diff changeset
18 }'