view TOOLS/midentify @ 15565:1c1c7cd29707

restored preinit_audio_filters() but set the final sample_rate to the value of -srate, if specified: the source sample_rate is sped up or down while the destination can be resampled at will; 1 aboundant liter to me
author nicodvb
date Tue, 24 May 2005 19:46:44 +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; }'