view TOOLS/midentify @ 14941:d4b70c096a8e

patch by ods15: "10000l to me, I forgot that 'vfilter' could be NULL in case of framecopy, so this code always segfaulted when merging files using -ovc copy..."
author rfelker
date Sun, 13 Mar 2005 21:38:20 +0000
parents 96f874a6cd60
children 70ad5a19d831
line wrap: on
line source

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