Beschriftung von Videos mit SMIL 2.0

Download Report

Transcript Beschriftung von Videos mit SMIL 2.0

Vertieferseminar „Navigation mit GIS“
Themenblock E:
Multimediale Visualisierung
ortsspezifischer Informationen
Beschriftung von Videos mit
SMIL 2.0
Datum: 12. Dezember 2002, Referent: Oliver Tatz
Übersicht
1. Einleitung
Motivation
2. SMIL 2.0
Konzept
Module
Profile
Structure Modul
RealNetworks
Animation
TimeManipulation
Beispiel
3. Abschluss
Automatisierung
Fazit
12.12.2002
1. Einleitung
Motivation
2. SMIL 2.0
Konzept
Module
Profile
Structure Modul
RealNetworks
Animationsmodule
TimeManipulation Modul
Beispiel
1.
Einleitung
Motivation
2.
SMIL 2.0
Konzept
Module
Profile
Structure Modul
RealNetworks
Animationsmodule
TimeManipulation Modul
Beispiel
3.
Abschluss
Automatisierbarkeit
Fazit
3. Abschluss
Automatisierbarkeit
Fazit
Oliver Tatz - Videobeschriftung mit SMIL 2.0
2
Motivation
1. Einleitung
Motivation
Motivation
2. SMIL 2.0
Konzept
Module
Profile
Structure Modul
RealNetworks
Animation
TimeManipulation
Beispiel
3. Abschluss
Automatisierung
Fazit
12.12.2002
Verwendung der Videobeschriftung:
• Arumentierte Realität
• praktischer gedacht: Integration in ein
Fußgänger-Navigationssystem
– Routenplanung
– Informationsgehalt/LandmarkGewinnung
– Georeferenzierung von Videos
– Beschriftung von Videos
Oliver Tatz - Videobeschriftung mit SMIL 2.0
3
SMIL 2.0
• SMIL: Synchronized Multimedia
1. Einleitung
Motivation
2. SMIL 2.0
Konzept
Module
Profile
Structure Modul
RealNetworks
Animation
TimeManipulation
Beispiel
3. Abschluss
Automatisierung
Fazit
12.12.2002
Integration Language
– Sprache zur Synchronisation und Integration
von Multimediaelementen
• Basiert auf XML
– Mark-Up-Sprache
• Empfehlung vom W3C (August 2001)
– Herstellerunabhängig
Oliver Tatz - Videobeschriftung mit SMIL 2.0
4
SMIL 2.0 Konzept
1. Einleitung
Motivation
2. SMIL 2.0
Konzept
Konzept
Module
Profile
Structure Modul
RealNetworks
Animation
TimeManipulation
Beispiel
3. Abschluss
Automatisierung
Fazit
12.12.2002
• unterschiedliche Endgeräte haben unterschiedliche
Möglichkeiten und stellen unterschiedliche
Anforderungen
• nicht alle SMIL 2.0 Elemente werden auf allen
Plattformen benötigt
• SMIL-Konzept: Module und Profile
– in SMIL 2.0 sinnmäßig- zusammengehörende
Elemente und/oder Attribute gruppiert (Module)
– Module lassen sich in Profilen kombinieren, die
auf bestimmt Bedürfnisse zugeschnitten sind:
kleine Profile für kleine Apparate, große für
große Maschinen
Oliver Tatz - Videobeschriftung mit SMIL 2.0
5
1. Einleitung
Motivation
2. SMIL 2.0
Konzept
Module
Module
Profile
Structure Modul
RealNetworks
Animation
TimeManipulation
Beispiel
3. Abschluss
Automatisierung
Fazit
12.12.2002
•
•
•
•
•
•
•
•
•
•
Structure Module
Metainformation Module
SMIL Layout Modules
Timing and Synchronization Module
SMIL Media Object Modules
Transition Effects Module
Animation Modules
Linking Modules
Content Control Modules
Time Manipulations Module
Oliver Tatz - Videobeschriftung mit SMIL 2.0
insgesamt: 45 Module
Gruppierte Module
6
SMIL Profile
• SMIL 2.0 Language Profile
1. Einleitung
Motivation
2. SMIL 2.0
Konzept
Module
Profile
Profile
Structure Modul
RealNetworks
Animation
TimeManipulation
Beispiel
3. Abschluss
Automatisierung
Fazit
12.12.2002
– benutzt nur Module der W3C-Empfehlung
• SMIL 2.0 BasicLanguage Profile
– Untermenge des Language Profile
– für PDAs, Mobilfunktelefone usw.
• XHTML+SMIL 2.0 Language Profile
– Untermenge des Language Profile
– aber erweiterte Elemente
Oliver Tatz - Videobeschriftung mit SMIL 2.0
7
SMIL 2.0 Profile
1. Einleitung
Motivation
2. SMIL 2.0
Konzept
Module
Profile
Profile
Structure Modul
RealNetworks
Animation
TimeManipulation
Beispiel
3. Abschluss
Automatisierung
Fazit
XHTML+
Basic
Profile Language
SMIL 2.0
....
Language
Module
Language
Structure
Module
Metainformation
Module
BasicAnimation
Module
SplineAnimation
Module
......
12.12.2002
Oliver Tatz - Videobeschriftung mit SMIL 2.0
8
Structure Modul
1. Einleitung
Motivation
2. SMIL 2.0
Konzept
Module
Profile
Structure
Strukture Modul
RealNetworks
Animation
TimeManipulation
Beispiel
3. Abschluss
Automatisierung
Fazit
12.12.2002
• Beinhaltet die Elemente <smil>, <head>
und <body>
• welches SMIL-Profil von der Datei
unterstützt wird, setzt der Autor mit dem
Attribut xmlns im <smil>-Element fest:
<smil xmlns="http://www.w3.org/2001/SMIL20/Language“>
...
</smil>
Oliver Tatz - Videobeschriftung mit SMIL 2.0
9
RealText
1. Einleitung
Motivation
2. SMIL 2.0
Konzept
Module
Profile
Structure Modul
RealNetworks
Animation
TimeManipulation
Beispiel
3. Abschluss
Automatisierung
Fazit
12.12.2002
• Ergänzung von RealNetworks
• erlaubt es Text sowie Textstreams zu
erzeugen:
–
–
–
–
–
–
–
Textformation
Textpositionierung ( <pos x=“4“ y=“3“/> )
zeitlicher Ablauf
beweglicher Text (z.B. Aktienindizes)
in einem fest definierten Fenster
wird in extra Datei gespeichert (*.rt)
Aufruf in SMIL-Dokument: <text scr=“hi.rt“.../>
Oliver Tatz - Videobeschriftung mit SMIL 2.0
10
RealText
Beispiel: Beschriftung „Beethovenhaus“
1. Einleitung
Motivation
2. SMIL 2.0
Konzept
Module
Profile
Structure Modul
RealNetworks
Animation
TimeManipulation
Beispiel
3. Abschluss
Automatisierung
Fazit
<window height=„50“ width=„150“>
<font face="Helvetica" color="white" size="2">
Beethovenhaus</font>
<time begin=„2“ /> <clear/>
<font face="Helvetica" color="white" size=“3">
Beethovenhaus</font>
<time begin=„5“ /> <clear/>
<font face="Helvetica" color="white" size=“4">
Beethovenhaus</font>
</window>
12.12.2002
Oliver Tatz - Videobeschriftung mit SMIL 2.0
11
Transparenz
• Ergänzung von RealNetworks
1. Einleitung
Motivation
2. SMIL 2.0
Konzept
Module
Profile
Structure Modul
RealNetworks
Animation
TimeManipulation
Beispiel
3. Abschluss
Automatisierung
Fazit
12.12.2002
– Attribute:
backgroundOpacity
mediaOpacity
– Attribute können allen MultimediaElementen zugefügt werden
– „rn:“ muss bei Verwendung vorangestellt
werden
– „rn“ muss im <smil>-Element verlinkt
werden:
<smil xmlns:rn="http://features.real.com/2001/SMIL20/Extensions">
Oliver Tatz - Videobeschriftung mit SMIL 2.0
12
Tranzparenz
1. Einleitung
Motivation
2. SMIL 2.0
Konzept
Module
Profile
Structure Modul
RealNetworks
Animation
TimeManipulation
Beispiel
3. Abschluss
Automatisierung
Fazit
• „Opacity“ ist die
Lichtundurchlässigkeit:
– je höher der Wert, desto weniger
transparent
• rn:backgroundOpacity=“20%“
– Lichtundurchlässigkeit des Hintergrunds
eines Multimedia-Objekts
0%
50%
100%
12.12.2002
Oliver Tatz - Videobeschriftung mit SMIL 2.0
13
Transparenz
• rn:mediaOpacity=“20%“
1. Einleitung
Motivation
2. SMIL 2.0
Konzept
Module
Profile
Structure Modul
RealNetworks
Animation
TimeManipulation
Beispiel
– Lichtundurchlässigkeit des
Multimediaobjektes
– Bsp.: semi-transparentes gif-Bild
3. Abschluss
Automatisierung
Fazit
12.12.2002
Oliver Tatz - Videobeschriftung mit SMIL 2.0
14
Animationsmodule
1. Einleitung
Motivation
2. SMIL 2.0
Konzept
Module
Profile
Structure Modul
RealNetworks
Animation
Animation
TimeManipulation
Beispiel
• Animationsmodule:
–BasicAnimation Modul
–SplineAnimation Modul
3. Abschluss
Automatisierung
Fazit
12.12.2002
Oliver Tatz - Videobeschriftung mit SMIL 2.0
15
BasicAnimation Modul
• <animate>
1. Einleitung
Motivation
2. SMIL 2.0
Konzept
Module
Profile
Structure Modul
RealNetworks
Animation
Animation
TimeManipulation
Beispiel
3. Abschluss
Automatisierung
Fazit
12.12.2002
– es kann die Attribute eines generierten
Elementes in Bewegung setzten
– bei <region> z.B.: top, left, width, height
• <animateMotion>
– ist für die Bewegung von Elementen
konzipiert
– im Gegensatz zu <animate> werden
hier Koordinatenpaare verändert
Oliver Tatz - Videobeschriftung mit SMIL 2.0
16
BasicAnimation Modul
• <animateColor>-Element
1. Einleitung
Motivation
2. SMIL 2.0
Konzept
Module
Profile
Structure Modul
RealNetworks
Animation
Animation
TimeManipulation
Beispiel
3. Abschluss
Automatisierung
Fazit
12.12.2002
– realisiert Farbübergänge
– RGB-Farben werden mit HexadezimalZahlen angegeben und die bisherigen
Elemente sind auf Dezimalzahlen
zugeschnitten
• <set>-Element
– kann den Wert eines Attributes für eine
bestimmte Zeit verändern
– keine Übergänge: kann eigentlich durch
eine <animate>-Element mit einer
bestimmten Attribut-Einstellung ersetzt
werden (calcMode=“discrete“)
Oliver Tatz - Videobeschriftung mit SMIL 2.0
17
BasicAnimation Modul
1. Einleitung
Motivation
2. SMIL 2.0
Konzept
Module
Profile
Structure Modul
RealNetworks
Animation
Animation
TimeManipulation
Beispiel
Die Attribute auf den folgenden
Seiten sind in dem BasicAnimation
Modul integriert.
3. Abschluss
Automatisierung
Fazit
12.12.2002
Oliver Tatz - Videobeschriftung mit SMIL 2.0
18
BasicAnimation Modul
• targetElement
1. Einleitung
Motivation
2. SMIL 2.0
Konzept
Module
Profile
Structure Modul
RealNetworks
Animation
Animation
TimeManipulation
Beispiel
– zulässige Werte: XML-Identifikationen (id)
– Elemente: alle 4 Animations-Elemente
– die Animation wird einem Element
zugewiesen (z.B. eine Region)
• attributeName
3. Abschluss
Automatisierung
Fazit
12.12.2002
– zulässige Werte: Name des zu änderten
Attributs
– Elemente: bis auf <animateMotion> alle 4
– um mehrere Attribute zu ändern benötigt
man mehrere Animations-Elemente
Oliver Tatz - Videobeschriftung mit SMIL 2.0
19
BasicAnimation Modul
• from
1. Einleitung
Motivation
2. SMIL 2.0
Konzept
Module
Profile
Structure Modul
RealNetworks
Animation
Animation
TimeManipulation
Beispiel
3. Abschluss
Automatisierung
Fazit
12.12.2002
– zulässige Werte: alle für das Ziel-Attribut
zulässigen Werte
– Elemente: bis auf <set> alle
– Attributs-Ausgangswert
– falls nicht gesetzt: Ausgangswert gleich
dem im Element gesetzten Wert
• während einer Animation ändert sich
nur ein Präsentationswert, nicht der
im Element festgesetzte
Oliver Tatz - Videobeschriftung mit SMIL 2.0
20
BasicAnimation Modul
1. Einleitung
Motivation
2. SMIL 2.0
Konzept
Module
Profile
Structure Modul
RealNetworks
Animation
Animation
TimeManipulation
Beispiel
3. Abschluss
Automatisierung
Fazit
12.12.2002
• to
– zulässige Werte: alle für das Ziel-Attribut
zulässige Werte
– Elemente: bis auf <set> alle
– (absoluter) Wert des Ziel-Attributs am
Ende der Animation
• by
– zulässige Werte: alle für das Ziel-Attribut
zulässige Werte
– Elemente: bis auf <set> alle
– relative Änderung zum Ausgangswert
Oliver Tatz - Videobeschriftung mit SMIL 2.0
21
BasicAnimation Modul
• values
1. Einleitung
Motivation
2. SMIL 2.0
Konzept
Module
Profile
Structure Modul
RealNetworks
Animation
Animation
TimeManipulation
Beispiel
3. Abschluss
Automatisierung
Fazit
12.12.2002
– zulässige Werte: mehrere für das ZielAttribut zulässige Werte, die durch
Semikolons getrennt werden
– Elemente: bis auf <set> alle
– das Ziel-Attribut nimmt die Werte in
dieser Reihenfolge an
<animate
– Bsp.:
targetElement=“meinlied“
attributeName=“soundLevel“
values=“0%;25%;100%;75%“
dur=“8s“ />
Oliver Tatz - Videobeschriftung mit SMIL 2.0
22
BasicAnimation Modul
1. Einleitung
Motivation
2. SMIL 2.0
Konzept
Module
Profile
Structure Modul
RealNetworks
Animation
Animation
TimeManipulation
Beispiel
3. Abschluss
Automatisierung
Fazit
12.12.2002
• calcMode
– zulässige Werte: discrete, linear, paced;
Standard: linear
– Elemente: bis auf <set> alle; bezieht sich
auf die Werte, die im values-Attribut gesetzt
wurden
– setzt fest wie die Werte zwischen zwei
Werten interpoliert werden soll
Oliver Tatz - Videobeschriftung mit SMIL 2.0
23
BasicAnimation Modul
discrete
1. Einleitung
Motivation
2. SMIL 2.0
Konzept
Module
Profile
Structure Modul
RealNetworks
Animation
Animation
TimeManipulation
Beispiel
Attribut
calcMode
linear
paced
3. Abschluss
Automatisierung
Fazit
12.12.2002
Oliver Tatz - Videobeschriftung mit SMIL 2.0
24
BasicAnimation Modul
• additive
1. Einleitung
Motivation
2. SMIL 2.0
Konzept
Module
Profile
Structure Modul
RealNetworks
Animation
Animation
TimeManipulation
Beispiel
3. Abschluss
Automatisierung
Fazit
12.12.2002
– zulässige Werte: sum, replace
(Standard: replace)
– Elemente: <animate>, <animateColor>,
<animateMotion>
– gibt an ob die Attribut-Werte, die im ZielElement festgesetzt wurden, als
Startwerte übernommen werden (sum)
oder ersetzt werden sollen (replace)
• (repeatCount: gibt in ganzen Zahlen die
Anzahl der Wiederholung an)
Oliver Tatz - Videobeschriftung mit SMIL 2.0
25
BasicAnimation Modul
• accumulate
– zulässige Werte: sum, none
– Elemente: <animate>, <animateMotion>,
<animateColor>
– sum: bei Wiederholungen werden die
Werte aufeinander addiert; Bsp.:
1. Einleitung
Motivation
2. SMIL 2.0
Konzept
Module
Profile
Structure Modul
RealNetworks
Animation
Animation
TimeManipulation
Beispiel
3. Abschluss
Automatisierung
Fazit
12.12.2002
<animateMotion values=“10,10 ; 20,0 ; 20,10“ repeatCount=“5“
calcMode=“linear“ accumulate=“sum“ />
5x
none
Oliver Tatz - Videobeschriftung mit SMIL 2.0
sum
26
SplineAnimation Modul
1. Einleitung
Motivation
2. SMIL 2.0
Konzept
Module
Profile
Structure Modul
RealNetworks
Animation
Animation
TimeManipulation
Beispiel
3. Abschluss
Automatisierung
Fazit
12.12.2002
• das splineAnimation Modul umfasst
Elemente und Attribute die SplineInterpolationen ermöglichen
– Elemente: <animate>, <animateMotion>
und <animateColor>
– das calcMode Attribut wird um “spline“
erweitert und es werden Attribute
hinzugefügt, die diese Einstellung
spezifizieren
Oliver Tatz - Videobeschriftung mit SMIL 2.0
27
SplineAnimation Modul
• keyTimes
1. Einleitung
Motivation
2. SMIL 2.0
Konzept
Module
Profile
Structure Modul
RealNetworks
Animation
Animation
TimeManipulation
Beispiel
3. Abschluss
Automatisierung
Fazit
12.12.2002
– zulässige Werte: Liste von Werten
zwischen 0 und 1, getrennt durch
Semikolons; jeder Wert muss größer sein
als der vorherige; Bezug auf values-Werte
– Elemente: <animate>,<animateColor>,
<AnimateMotion>
– hilft das Tempo einer Animation zu steuern
<animateMotion dur=“4s“
zur Zeit t=1s
targetElement=“horst“
values=“10,10 ; 20,0 ; 20,10“
zur Zeit t=0
keyTimes=“0;.25;1“
zur Zeit t=4s
calcMode=“linear“/>
Oliver Tatz - Videobeschriftung mit SMIL 2.0
30
SplineAnimation Modul
• keySplines
1. Einleitung
Motivation
2. SMIL 2.0
Konzept
Module
Profile
Structure Modul
RealNetworks
Animation
Animation
TimeManipulation
Beispiel
3. Abschluss
Automatisierung
Fazit
–Element: <animate>,<animateColor>,
<animateMotion>
–zulässige Werte: Liste von Werten
keySplines
of those
attributes
zwischen 0 is
undone
1, getrennt
durch
Freistellen;
Wert
muss
größer
sein
that can jeder
make
your
head
hurt
als der vorherige; Bezug auf keyTimesjust
trying
to
figure
it
out.
Werte
–steuern das Tempo zw. den keyTimes
keySplines 1
keyTimes 1
12.12.2002
keySplines 2
keyTimes 2
Oliver Tatz - Videobeschriftung mit SMIL 2.0
keyTimes 3
31
SplineAnimation Modul
• keySplines
2. SMIL 2.0
Konzept
Module
Profile
Structure Modul
RealNetworks
Animation
Animation
TimeManipulation
Beispiel
3. Abschluss
Automatisierung
Fazit
<... keyTimes=“0;1“ keySplines=“0 0 1 1“/>
(1,1)
(0,0.5)
(0,0)
12.12.2002
(0.5,1)
(0,1)
(1,0.5)
Distanz
1. Einleitung
Motivation
Zeit
(0.5,1)
(1,0)
Oliver Tatz - Videobeschriftung mit SMIL 2.0
32
SplineAnimation Modul
1. Einleitung
Motivation
keySplines=“0 0 1 1“
keySplines=“.5 0 .5 1“
2. SMIL 2.0
Konzept
Module
Profile
Structure Modul
RealNetworks
Animation
Animation
TimeManipulation
Beispiel
3. Abschluss
Automatisierung
Fazit
12.12.2002
Oliver Tatz - Videobeschriftung mit SMIL 2.0
33
SplineAnimation Modul
1. Einleitung
Motivation
keySplines=“0 .75 .25 1“
keySplines=“1 0 .25 .25“
2. SMIL 2.0
Konzept
Module
Profile
Structure Modul
RealNetworks
Animation
Animation
TimeManipulation
Beispiel
3. Abschluss
Automatisierung
Fazit
12.12.2002
Oliver Tatz - Videobeschriftung mit SMIL 2.0
34
SplineAnimation Modul
1. Einleitung
Motivation
2. SMIL 2.0
Konzept
Module
Profile
Structure Modul
RealNetworks
Animation
Animation
TimeManipulation
Beispiel
3. Abschluss
Automatisierung
Fazit
• keyTimes
– Bei mehreren
keyTimes
hintereinander
sollte man
einen
fließenden
Übergang
generieren
keySplines 1
keyTimes 1
12.12.2002
keySplines 2
keyTimes 2
Oliver Tatz - Videobeschriftung mit SMIL 2.0
keyTimes 3
35
TimeManipulations
1. Einleitung
Motivation
2. SMIL 2.0
Konzept
Module
Profile
Structure Modul
RealNetworks
Animation
TimeManipulation
Beispiel
3. Abschluss
Automatisierung
Fazit
• Besteht aus 4 Attributen
• beeinflusst die Länge (dur) eines
zeitlich kontrollierten Elements
Attribut
mögliche Werte
Langsameres oder
Gleitkommazahlen
größer und kleiner als 0 schnelleres abspielen
(Wert=Faktor)
speed
accelerate
Gleitkommazahlen
von 0 bis 1
decelerate
Gleitkommazahlen
von 0 bis 1
autoReverse
12.12.2002
Effekte
true oder false
Beschleunigen von v=0 bis
Vmax (Wert: erreichen von
Vmax bei % des Clips)
Abbremsen von Vmax bis
v=0 (Wert: Abbremsen setzt
bei % vor Clipende ein)
TRUE: nach dem Clip
abgespielt wurde, wird der
Clip rückwärts abgespielt
Oliver Tatz - Videobeschriftung mit SMIL 2.0
36
Beschriftung von Video
1. Einleitung
Motivation
2. SMIL 2.0
Konzept
Module
Profile
Structure Modul
RealNetworks
Animation
TimeManipulation
Beispiele
Beispiel
3. Abschluss
Automatisierung
Fazit
12.12.2002
• Realisierbar mit SMIL
1.0
• Elemente:
–<smil>,<head>,<body>
–<layout>, <region>
–<video>, <img>
–<par>, <seq>
• Attribute:
–left, top, height, width
–begin, end, dur
–fit, id, z-index
Oliver Tatz - Videobeschriftung mit SMIL 2.0
37
Beschriftung von Video
1. Einleitung
Motivation
2. SMIL 2.0
Konzept
Module
Profile
Structure Modul
RealNetworks
Animation
TimeManipulation
Beispiele
Beispiel
3. Abschluss
Automatisierung
Fazit
12.12.2002
Oliver Tatz - Videobeschriftung mit SMIL 2.0
39
Beschriftung von Video
1. Einleitung
Motivation
2. SMIL 2.0
Konzept
Module
Profile
Structure Modul
RealNetworks
Animation
TimeManipulation
Beispiele
Beispiel
3. Abschluss
Automatisierung
Fazit
12.12.2002
Oliver Tatz - Videobeschriftung mit SMIL 2.0
40
Automatisierbarkeit
1. Einleitung
Motivation
2. SMIL 2.0
Konzept
Module
Profile
Structure Modul
RealNetworks
Animation
TimeManipulation
Beispiel
• Es werden zwei 3-dimensional
Welten miteinander verschnitten
– Geobasisdaten
– Video
• die Videos müssen wackelfrei sein
(die vorhandenen Videos reichen in
der Form nicht aus)
3. Abschluss
Automatisierung
Automatisierung
Fazit
12.12.2002
Oliver Tatz - Videobeschriftung mit SMIL 2.0
41
Fazit
• Mit SMIL 2.0 hat man, dank der
1. Einleitung
Vielseitigkeit und Flexibilität, keine
Motivation
Probleme
auch
komplexere
2. SMIL 2.0
Vielen
Dank
Konzept
Videobeschriftungen
vorzunehmen.
Module
für
Eure
Aufmerksamkeit!
Profile
Structure Modul
• Wenn ein georeferenziertes,
RealNetworks
Animation
wackelfreies
Video
vorhanden
ist,
Noch Fragen?
TimeManipulation
Beispiel
sowie ein 3-D Basismodell, sollte es
3. Abschluss
möglich
sein
die
Beschriftung
von
Automatisierung
Fazit
einem Computer durchführen zu
lassen.
12.12.2002
Oliver Tatz - Videobeschriftung mit SMIL 2.0
42