Escolar Documentos
Profissional Documentos
Cultura Documentos
Entidades Bsicas
O qu? como?
quando?
relacionamentos e relaes
Copy right 2006 Tele M dia 3
udio vdeo
imagem
Estrutura: contextos
udio1 vdeo1
audio1 e imagem1
s so acessveis dentro do contexto ctx1
imagem1
Onde?
rgV ideo1
Como?
dV ideo1
video1
dV ideo1
rgV ideo1
video1
audio1
Quando video1 terminar, inicia audio1 Quando audio1 iniciar, inicia imagem1 elo
image1
10
video1
audio1
Quando video1 terminar, inicia audio1 Quando audio1 iniciar, inicia imagem1
C onBeginStart
elo conector
C A
imagem1
11
12
13
14
Exemplo 0 Storyboard
animao udio
drible foto
T V interat iv a se faz com Ginga Copy right 2006 Tele M dia 16
5%
6.7%
frameReg
17
foto
5 5
18
onBegin onBegin
onBegin onEnd
Start Stop
Start
animation audio
Start
drible photo
T V interat iv a se faz com Ginga Copy right 2006 Tele M dia 19
Ambientes
Usurios (Telespectadores) Execuo
Exhibition Tools
Armazenamento
Controle de Verso Adaptation Suporte a trabalho cooperativo Provedores de contedo
Formatter
Dispositivos
Autoria
A mb ien te Gr fico
Edio Grfica
Usurios (Autores)
Edio Textual
Provedores de Aplicao
20
10
Composer
21
21
NCL Eclipse
22
11
23
23
24
12
cabealho do documento
corpo do documento
animao udio
drible foto
T V interat iv a se faz com Ginga Copy right 2006 Tele M dia 26
13
Exemplo 0
<body > <media id=" animat io n" src= ../media/animGar.mo v >
27
Esquema
file: http:
Uso
Para arquivos locais Para arquivos remotos buscados pelo canal de interatividade usando o protocolo http Para arquivos remotos buscados pelo canal de interatividade usando o protocolo https Para fluxos (streams) obtidos pelo canal de interatividade usando o protocolo rtsp Para fluxos (streams) obtidos pelo canal de interatividade usando o protocolo rtp Para um fluxo de contedo idntico a um que esteja em apresentao por um outro elemento de mdia
https:
//server_identifier/file_path/#fragment_identifier
rtsp:
//server_identifier/file_path/#fragment_identifier
rtp:
//server_identifier/file_path/#fragment_identifier
ncl-mirror:
//media_element_identifier
sbtvd-ts:
//program_number.component_tag
28
14
Exemplo 0
<body > <media id=" animat io n" src= ../media/animGar.mo v > <area id=" segDrible" begin= 12s" /> <area id=" segPho t o " begin= 41s"/> <pro pert y name=" w idt h" value= 100%"/> <pro pert y name=" heigt h" v alue= 100%"/> </media>
29
Exemplo 0
<body > <media id=" animat io n" src= ../media/animGar.mo v > <area id=" segDrible" begin= 12s" /> <area id=" segPho t o " begin= 41s"/> <pro pert y name=" w idt h" value= 100%"/> <pro pert y name=" heigt h" v alue= 100%"/> <pro pert y name=" zIndex " v alue=" 2"/> </media> <media id=" cho ro " src=" ../media/cho ro .mp3" /> <media id=" drible" src=" ../media/drible.mp4" > <pro pert y name=" left " value= 5%"/> <pro pert y name=" t o p" value= 6.7%" /> <pro pert y name=" w idt h" value= 18.5%" /> <pro pert y name=" heigt h" v alue= 18.5%"/> <pro pert y name=" zIndex " v alue=" 3"/> </media>
30
15
Exemplo 0
<media id=" pho t o " src=" ../media/pho t o .png > <pro pert y name=" left " value= 5%"/> <pro pert y name=" t o p" value= 6.7%" /> <pro pert y name=" w idt h" value= 18.5%" /> <pro pert y name=" heigt h" v alue= 18.5%"/> <pro pert y name=" zIndex " v alue=" 3"/> <pro pert y name=" ex plicit Dur" v alue="5s"/> </media>
31
body
entry
animation
32
16
Exemplo 0
<body > <po rt id=" ent ry " co mpo nent = animat io n" /> <media id=" animat io n" src= ../media/animGar.mo v > <area id=" segDrible" begin= 12s" /> <area id=" segPho t o " begin= 41s"/> <pro pert y name=" w idt h" value= 100%"/> <pro pert y name=" heigt h" v alue= 100%"/> <pro pert y name=" zIndex " v alue=" 2"/> </media> <media id=" cho ro " src=" ../media/cho ro .mp3" /> <media id=" drible" src=" ../media/drible.mp4" > <pro pert y name=" left " value= 5%"/> <pro pert y name=" t o p" value= 6.7%" /> <pro pert y name=" w idt h" value= 18.5%" /> <pro pert y name=" heigt h" v alue= 18.5%"/> <pro pert y name=" zIndex " v alue=" 3"/> </media>
33
onBegin
Start
animao udio
drible foto
T V interat iv a se faz com Ginga Copy right 2006 Tele M dia 34
17
animation
?
Copy right 2006 Tele M dia
drible
35
Connector onBeginStart
...inicia a exibio da ncora ligada ao papel start.
st art
animation
onBegin bind
connector onBeginStart A
bind
drible
Quando iniciar a exibio da ncora ligada ao papel onBeg in...
36
18
Connector onBeginStart
<causalConnector id="onBeginStart"> <simpleCondition role="onBegin"/> <simpleAction role="start" max="unbounded" </causalConnector>
drible
qualifier="par"/>
A
st art
</link>
na seo body
37
onBegin onBegin
Start
animao udio
Start
drible foto
T V interat iv a se faz com Ginga Copy right 2006 Tele M dia 38
19
Connector onBeginStart
<causalConnector id="onBeginStart"> <simpleCondition role="onBegin"/> <simpleAction role="start" max="unbounded" </causalConnector>
phot o
qualifier="par" />
<bind ro le=" o nBegin co mpo nent = animat io n" int erface= segPho t o /> <bind role=" st art component = phot o" />
A
st art
</link>
na seo body
39
onBegin onBegin
onBegin
Start
Start
animao udio
Start
drible foto
T V interat iv a se faz com Ginga Copy right 2006 Tele M dia 40
20
Connector onBeginStart
<causalConnector id="onBeginStartDelay"> <connectorParam name=xyz"/> <simpleCondition role="onBegin"/> <simpleAction role="start" delay="$xyz" max="unbounded" qualifier="par"/> </causalConnector>
choro
C
o nBegin
A
st art
</link>
na seo body
T V interat iv a se faz com Ginga Copy right 2006 Tele M dia 41
paused
stop | abort pause start start | resume
sleeping
occurring
21
Eventos de Apresentao
start onBegin stop onEnd pause resume
Exibidor De Mdia
Eventos de Atribuio
start/set onBeginAttribution stop onEndAttribution pause resume
Exibidor De Mdia
22
Eventos de Seleo
start onBeginSelection stop onEndSelection / onSelection pause resume
Exibidor De Mdia
abort onAbortSelection
Eventos de Seleo
start onBeginSelection stop onEndSelection / onSelection
NCL Player
Media Player
23
onBegin onBegin
onBegin onEnd
Start Stop
Start
animao udio
Start
drible foto
T V interat iv a se faz com Ginga Copy right 2006 Tele M dia 47
Connector onEndStop
<causalConnector id="onEndStop"> <simpleCondition role="onEnd"/> <simpleAction role="stop" max="unbounded" </causalConnector>
choro
qualifier="par" />
A
st o p
</link>
na seo body
48
24
Exemplo 0
<link id=" lM usic" xconnect or=" onBeginS t art " > <bind role=" onBegin" component = animat ion" /> <bind role=" st art " component =" choro" > <bindParam name= xy z v alue= 5s /> </bind> </link> <link id=" lDrible" xconnect or=" onBeginS t art " > <bind role=" onBegin" component =" animat ion" int erface=" segDrible" /> <bind role=" st art " component =" drible" /> </link> <link id=" lPhot o" xconnect or=" onBeginS t art " > <bind role=" onBegin" component =" animat ion" int erface=" segPhot o" /> <bind role=" st art " component =" phot o" /> </link> <link id=" lEnd" xconnect or=" onEndS t op" > <bind role=" onEnd" component =" animat ion" /> <bind role=" st op" component =" choro" /> </link> </ body > </ nc l>
49
onBegin onBegin
onBegin onEnd
Start Stop
Start
animao udio
Start
drible foto
T V interat iv a se faz com Ginga Copy right 2006 Tele M dia 50
25
Entidades Bsica
o qu? como?
quando?
relacionamentos e relaes
Copy right 2006 Tele M dia 51
<head> <regionBase> ... </regionBase> <descript orBase> ... </descript orBase> <connect orBase> ... </connect orBase> </head>
cabealho
regions - onde
descriptors - como
d1 d2 d3
E onEnd S Start onEnd E Start S onEnd E Start S
connectors - quando
<body > <port id=" pInicio" component =" video1" /> <!-- cont ext and media object s --> <!-- elos --> </body >
T V interat iv a se faz com Ginga
corpo
context e media o qu links - quando
2
au dio1 v ideo1 image1
52
26
Regions
<regionBase> <region id="screenReg" height=100%" width=100%" zIndex="2"> <region id="frameReg" left=5%" top=6.7%" height=18.5%" width="160 zIndex=3"/> </region> </regionBase>
5%
6.7%
screenReg frameReg
(100% x 100%)
T V interat iv a se faz com Ginga Copy right 2006 Tele M dia 53
Descriptors
(how?)
54
27
Exemplo 1 Descriptors
<descriptorBase> <descriptor id="screenDesc" region="screenReg"/> <descriptor id="photoDesc" region="f rameReg" explicitDur="5s"/> <descriptor id="audioDesc"/> <descriptor id="dribleDesc" region="f rameReg"/> </descriptorBase>
screenDesc
screenReg
audioDesc
audioReg
55
<?x ml v ersio n=" 1.0" enco ding=" ISO- 8859- 1" ?> <! - - Ex emplo de sincro nismo sem a int eracao do usuario - - > <ncl id=" sy nc" xmlns=" http://www.ncl.o rg.br/NCL3.0/EDTVPro file" > <head> <regio nBase> <regio n id= screenReg" height = 100%" width= 100%" zIndex =" 1"> <regio n id=" frameReg" left = 5%" top= 6.7%" height = 18.5%" width=" 18.5%" zIndex = 3" /> </regio n> </regio nBase> <descript o rBase> <descript o r id=" screenDesc" regio n=" screenReg" /> <descript o r id=" pho t o Desc" regio n=" frameReg" ex plicit Dur=" 5s"/> <descript o r id=" audio Desc" /> <descript o r id=" dribleDesc" regio n=" frameReg" /> </descript o rBase> <co nnect o rBase> <impo rt Base do cument URI=" causalCo nnBase.ncl" alias=" co nEx " /> </co nnect o rBase> </head>
56
28
Exemplo 1
<body > <po rt id=" ent ry " co mpo nent = animat io n" /> <media id=" animat io n" src= ../media/animGar.mo v " descript o r=" screenDesc" > <area id=" segDrible" begin= 12s" /> <area id=" segPho t o " begin= 41s"/> </media> <media id=" cho ro " src= ../media/cho ro .mp3" descript o r=" audio Desc" /> <media id=" drible" src= ../media/drible.mp4" descript o r=" dribleDesc" /> <media id=" pho t o " src= ../media/pho t o .png" descript or=" pho toDesc"/>
57
<?x ml v ersio n=" 1.0" enco ding=" ISO- 8859- 1" ?> <! - - Ex emplo de base de co nect o res - - > <ncl id= causalCo nnBase" x mlns=" ht tp://www.ncl.o rg.br/NCL3.0/causalCo nnect o rPro file" > <head> <co nnect o rBase> <causalCo nnect o r id=" o nBeginSt art Delay " > <co nnect o rParam name=" delay " /> <simpleCo ndit io n ro le=" o nBegin" /> <simpleAct io n ro le=" st art " delay ="$delay " max =" unbo unded" qualifier=" par" /> </causalCo nnect o r> <causalCo nnect o r id=" o nBeginSt art " > <simpleCo ndit io n ro le=" o nBegin" /> <simpleAct io n ro le=" st art " max =" unbo unded" qualifier=" par" /> </causalCo nnect o r> <causalCo nnect o r id=" o nEndSt o p" > <simpleCo ndit io n ro le=" o nEnd" /> <simpleAct io n ro le=" st op" max =" unbo unded" qualifier=" par" /> </causalCo nnect o r> </co nnect o rBase> </head>
58
29
<?x ml v ersio n=" 1.0" enco ding=" ISO- 8859- 1" ?> <! - - Ex emplo de sincro nismo sem a int eracao do usuario - - > <ncl id=" sy nc" xmlns=" http://www.ncl.o rg.br/NCL3.0/EDTVPro file" > <head> <regio nBase> <regio n id= screenReg" height = 100%" width= 100%" zIndex =" 1"> <regio n id=" frameReg" left = 5%" top= 6.7%" height = 18.5%" width=" 18.5%" zIndex = 3" /> </regio n> </regio nBase> <descript o rBase> <descript o r id=" screenDesc" regio n=" screenReg" /> <descript o r id=" pho t o Desc" regio n=" frameReg" ex plicit Dur=" 5s"/> <descript o r id=" audio Desc" /> <descript o r id=" dribleDesc" regio n=" frameReg" /> </descript o rBase> <co nnect o rBase> <impo rt Base do cument URI=" causalCo nnBase.ncl" alias=" co nEx " /> </co nnect o rBase> </head>
59
Exemplo 1
<link id=" lM usic" xconnect or=" conEx#on Be ginS t art " > <bind role=" onBegin" component = animat ion" /> <bind role=" st art " component =" choro" > <bindParam name= xy z v alue= 5s /> </bind> </link> <link id=" lDrible" xconnect or=" con E x#on BeginS t art " > <bind role=" onBegin" component =" animat ion" int erface=" segDrible" /> <bind role=" st art " component =" drible" /> </link> <link id=" lPhot o" xconnect or=" conE x#on BeginS t a rt " > <bind role=" onBegin" component =" animat ion" int erface=" segPhot o" /> <bind role=" st art " component =" phot o" /> </link> <link id=" lEnd" xconnect or=" conE x#o nEndS t op" > <bind role=" onEnd" component =" animat ion" /> <bind role=" st op" component =" choro" /> </link> </ body > </ nc l>
60
30
Exemplo 0 e 1 Storyboard
61
Exemplo 2 Storyboard
62
31
Exemplo 2
onBegin onBegin onBegin onBegin onEnd Start Set size Set size Stop Start Stop
Start
Start
Start
63
Conector onKeySelectionStopSetStart
<causalC onnector id="onKeySelectionStopSetStart"> <connectorP aram name="varSet"/> <connectorP aram name="keyCode"/> <simpleC ondition role="onSelection" key="$keyCode"/> <compoundA ction operator="seq"> <simpleA ction role="stop" max="unbounded" qualifier="par"/> <simpleA ction role="set" value="$varSet"/> <simpleA ction role="start" max="unbounded" qualifier="par"/> </compoundA ction> </causalC onnector>
64
32
Exemplo 3
Start
Start
Start
65
body
entry
animation
66
33
port
define a v isibilidade externa dos elementos de um contexto formato:
<port id="id_da_porta" component="id_of_the_mapped_component" interface="component_interface" /> body pInicio video1
interface
uma porta de um outro contexto ou uma ncora de um n de contedo
exemplos:
<port id="pInicio1" component="video1" /> <port id="pInicio3" component="video1" interface="aCena2" /> <port id="pInicio2" component="ctxCapitulo1"
julho /2008
67
context
pIcon
icon
68
34
Exemplo 3
onBegin onBegin onBegin onBegin Set size Set size Stop Stop onEnd Start Start
Start
Start
69
70
35
Exemplo 5 Storyboard
71
Exemplo 5
onBegin onBegin
onBegin onEnd
Start Stop
Start
Stop
Start
Start
Start
Start onEnd
72
36
Exemplo 6
Start
Start
Start
73
74
37
75
76
38
Exemplo 7
onBegin onBegin
Start
Stop
Start
Start
Contexto de Propaganda
77
78
39
79
Exemplo 8
onBegin onBegin
onBegin onEnd
Start Stop
Start
Stop
Start
Contexto de Propaganda
80
40
Exemplo 9 Storyboard
81
Exemplo 9 Storyboard
82
41
Exemplo 9
onBegin onBegin onBegin onEnd Stop Set position I = on Start onBegin onSelection Stop Start onEnd Start Stop Stop Start
Start
Start
Start
Stop Set Ion onBegin Set Set size size Set Ion onSelection Start Set Ioff Start onSelection Stop Start
Contexto de P ropaganda
Contexto de Interatividade
83
Conector onBeginVarStart
<causalC onnector id="onBeginVarS tart"> <compoundC ondition operator="and"> <simpleC ondition role="onBegin"/> <assessmentS tatement comparator="eq"> <attributeA ssessment role="var" attributeType="nodeProperty" ev entType="attribution"/> <v alueAssessment value="true"/> </assessmentS tatement> </compoundC ondition> <simpleA ction role="start"/> </causalC onnector>
84
42
85
86
43
Exemplo 10
onBegin onBegin onEnd Start Start Set position Stop Start onEnd onBegin Stop Start
Set vol.
chorinho
onSelection currentFocus = ?
Conector onOrSelectionSetStopStart
<causalC onnector id="onOrSelectionSetStopStart"> <connectorP aram name="var"/> <simpleC ondition role="onSelection" qualifier="or" max="unbounded"/> <compoundA ction operator="seq"> <simpleA ction role="set" value="$var" max="unbounded" qualifier="par"/> <simpleA ction role="stop"/> <simpleA ction role="start"/> </compoundA ction> </causalC onnector>
88
44
Fluxo TS
45
HDTV 1
HDTV 1
Data SDTV 16
19,3 Mbps
MPEG-2 System
Component_tag Program_number
46
Streaming
Streaming
47
NPT
contentId = x contentId = y
contentId = x
Synchronism
Controle do NPT Controle da aplicao
NPT de partida
48
97
49
NCL
java
Start
Interfaces
50
paused
stop | abort pause start start | resume
sleeping
occurring
NCLua
local counter = 0 local dx, dy = canvas:attrSize() -- dimensoes do canvas function handler (evt) if evt.class =='ncl' and evt.type=='attribution' and evt.action== 'start ' and evt.name=='add' then if evt.value ~= 'FIM' then counter = counter + evt.value else canvas:attrColor ('black') canvas:drawRect('fill',0,0,dx,dy) canvas:attrColor ('yellow') canvas:attrFont ('vera', 24, 'bold') canvas:drawText (10,10, 'O nmero de vezes que voc trocou de ritmo foi: '..counter) canvas:flush() end event.post { class = 'ncl', type = 'attribution', name = 'add', action = 'stop', value = counter, } end end event.register(handler)
51
Exemplo 11
onBegin onBegin onEnd Start Start Set position Set Stop Start onEnd onBegin Stop Start
onSelection currentFocus = ?
104
52
NCL
java
Start
106
53
107
108
54
109
110
55
111
112
56
Exemplo
Start Start
Start
Start onSelection
114
57
Exemplo 12, 13
onBegin onBegin onBegin Stop Start Start Stop Start Start onSelection Stop Start Start onBegin onEnd Start Stop
115
116
58
Interfaces
117
Exemplo 14
onBegin onBegin onBegin Stop Start Start Stop Start Start onSelection Stop Stop Start Start onBegin onEnd Start Stop
118
59
119
java
Start
60
Exemplo 15
onBegin onBegin onBegin Stop Start Start Stop Start Start Start onSelection Stop Stop Start Start onBegin onEnd Start Stop
61
62
Exemplo 16
onBegin onBegin onBegin Stop Start Start Start Stop Start Start onSelection Stop Stop Start Start onBegin onEnd Start Stop
63
Exemplo 17
onBegin onBegin onBegin Stop Start Start Start Stop Start Start onSelection Stop Stop Start Start onBegin onEnd Start Stop
Exemplos 18, 19 e 20
Start
Start onSelection
128
64
65
66
Exemplo 18
onBegin onBegin onBegin Stop Start Start Start Stop Start Start onSelection Stop Start Start onBegin onEnd Start Stop
67
Exemplo 19
onBegin onBegin onBegin Stop Start Start Start Stop Start Start onSelection Stop Start Start onBegin onEnd Start Stop
68
Exemplo 20
onBegin onBegin onBegin Stop Start Start Start Stop Start Start onSelection Stop Start Start onBegin onEnd Start Stop
Gerao do Fluxo TS
138
69
Gerao do Fluxo TS
1) Codificao udio/vdeo:
V deo: H.264 HP L4.0 udio: HE AAC Ferrament a: TM PGEnc 4.0 X Press
2)
139
Gerao de Fluxo TS
1. Agregar Fluxos para Interativ idade
NPT Ferrament a: No exist e no mundo, apenas por hardw are. Implement ao do TeleM idia ser disponibilizada Gerao do Carrossel Ferrament a: dsmcc-mhp-t ools e/ou opencast er (codigo abert o)
M uxer S ubst it uir os pacot es nulos gerados pelo elecard. Ferrament a: ht t p://w w w.scara.com/~schirmer/o/ mp lex13818/ (cdigo abert o)
140
70
71