view TOOLS/midentify @ 15415:c73564d69136

1.891: vstrict vs mjpeg update, typo 1.892: sync to x264 r137: adaptive B-frame decision, flush delayed frames 1.893: missing linebreak (skipped) 1.894: Move audio filter descriptions to the man page. 1.895: changed noreorder to reorder in mpegopts (ordering disabled by default) (skipped) 1.897: both reorder and noreorder flags are now available (skipped) 1.898: Document reorder and noreorder as (no)reorder. (skipped, last three were fixed prviously) 1.899: where the hell they got these infos from (native-endianness)
author kraymer
date Wed, 11 May 2005 20:57:28 +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; }'