Mercurial > mplayer.hg
changeset 34598:877e37095c2d
Optimize midentify script to not wasted time filling the cache.
This could take particularly much time when the file is
live audio stream and the cache is set large in the configuration.
Based on suggestion by Rodrigo Campos [rodrigo [at] sdfg com ar]
author | reimar |
---|---|
date | Sat, 11 Feb 2012 17:21:14 +0000 |
parents | e227a8ae4418 |
children | 80246b016caf |
files | TOOLS/midentify.sh |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/TOOLS/midentify.sh Sat Feb 11 15:35:39 2012 +0000 +++ b/TOOLS/midentify.sh Sat Feb 11 17:21:14 2012 +0000 @@ -12,7 +12,7 @@ exit 1 fi -mplayer -vo null -ao null -frames 0 -identify "$@" 2>/dev/null | +mplayer -noconfig all -cache-min 0 -vo null -ao null -frames 0 -identify "$@" 2>/dev/null | sed -ne '/^ID_/ { s/[]()|&;<>`'"'"'\\!$" []/\\&/g;p }'