view TOOLS/midentify @ 8672:9065fd98fad3

I've made some changes to the -identify handling. As previously the output for ID_VIDEO_FORMAT was only meaningful if it was a fourcc file, the output for mpeg1 and mpeg2 was jibberish. based on patch by Philip J¸«£genstedt <philipj@telia.com>
author arpi
date Tue, 31 Dec 2002 02:26:32 +0000
parents d151608b9f28
children 6cf694df50b3
line wrap: on
line source

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