Re: Informationen über Multimediadaten
Hallo,
Am Fre, 23 Jan 2009, Jens Schüßler schrieb:
>* David Haller <lists@dhaller.de> wrote:
>> Hallo,
>>
>> Am Don, 22 Jan 2009, Jens Schüßler schrieb:
>> >Einfach und ohne zig mplayer-Optionen alles im Blick.
>>
>> MPlayer bringt ein 'midentify' in seinem TOOLS Verzeichnis mit, da muß
>> man sich keine Option merken.
>
>Gibts hier in lenny nicht.
Bug #489412
Zumindest ins mplayer-doc Paket könnte man das TOOLS Verzeichnis aus
den Source mit reinpacken...
Ansonsten ist midentify einfach nur ein kl. Shellscript, das den
mplayer -identify Aufruf verpackt und die ID_ Zeilen rauspult:
==== ~/bin/mplayer ====
#!/bin/sh
#
# This is a wrapper around the -identify functionality.
# It is supposed to escape the output properly, so it can be easily
# used in shellscripts by 'eval'ing the output of this script.
#
# Written by Tobias Diedrich <ranma+mplayer@tdiedrich.de>
# Licensed under GNU GPL.
if [ -z "$1" ]; then
echo "Usage: midentify <file> [<file> ...]"
exit 1
fi
mplayer -vo null -ao null -frames 0 -identify "$@" 2>/dev/null |
sed -ne '/^ID_/ { s/[]()|&;<>`'"'"'\\!$" []/\\&/g;p; }'
====
-dnh
--
Unix: Alles ist ein File, und was kein File ist, hat sich gefaelligst
als ein solches zu tarnen. [Wolfgang Weisselberg]
Reply to: