view TOOLS/midentify @ 11797:571295c177d2

Fix for Real files with header size == 0x10 (normally is 0x12) (fixes sample file header_size_10.rmvb) Patch by LR <hephooey (at) fastmail (dot) fm>
author rtognimp
date Fri, 16 Jan 2004 22:38:55 +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; }'