Chapter 2.3-Multimedia Storage Techniques

download Chapter 2.3-Multimedia Storage Techniques

of 33

Transcript of Chapter 2.3-Multimedia Storage Techniques

  • 8/9/2019 Chapter 2.3-Multimedia Storage Techniques

    1/33

    XPath Introduction XPath is a language for finding information in an XML

    document.

    XPath is used to navigate through elements and attributes inan XML document.

    What is XPath?

    * XPath is a syntax for defining parts of an XML document* XPath uses path expressions to navigate in XML documents

    * XPath contains a library of standard functions

    * XPath is a major element in XSLT( EXtensible Stylesheet

    Language).

    * XPath is a W3C recommendation

  • 8/9/2019 Chapter 2.3-Multimedia Storage Techniques

    2/33

    In XPath, there are seven kinds of nodes: element,attribute, text, namespace, processing-instruction,comment, and document (root) nodes.

    Harry

    Potter

    J K. Rowling200529.99

  • 8/9/2019 Chapter 2.3-Multimedia Storage Techniques

    3/33

    Example of nodes in the XMLdocument above:

    (document node)

    J K. Rowling (element node)lang="en" (attribute node)

    Atomic values

    Atomic values are nodes with no children or parent.Example of atomic values:J K. Rowling"en"

  • 8/9/2019 Chapter 2.3-Multimedia Storage Techniques

    4/33

    Items

    Items are atomic values or nodes.

    Relationship of Nodes

    Parent

    Each element and attribute has one parent.

    In the following example; the book element is the parent of the title,

    author, year, and price:

    Harry Potter

    J K. Rowling

    2005

    29.99

  • 8/9/2019 Chapter 2.3-Multimedia Storage Techniques

    5/33

    Children

    Element nodes may have zero, one or more children.In the following example; the title, author, year, andprice elements are all children of the book element:

    Harry PotterJ K. Rowling2005

    29.99

  • 8/9/2019 Chapter 2.3-Multimedia Storage Techniques

    6/33

    Siblings

    Nodes that have the same parent.In the following example; the title, author, year, andprice elements are all siblings:

    Harry PotterJ K. Rowling2005

    29.99

  • 8/9/2019 Chapter 2.3-Multimedia Storage Techniques

    7/33

    Ancestors

    A node's parent, parent's parent, etc.In the following example; the ancestors of the titleelement are the book element and the bookstoreelement:

    Harry PotterJ K. Rowling

    200529.99

  • 8/9/2019 Chapter 2.3-Multimedia Storage Techniques

    8/33

    Descendants

    A node's children, children's children, etc.In the following example; descendants of the bookstoreelement are the book, title, author, year, and priceelements:

    Harry PotterJ K. Rowling

    200529.99

  • 8/9/2019 Chapter 2.3-Multimedia Storage Techniques

    9/33

  • 8/9/2019 Chapter 2.3-Multimedia Storage Techniques

    10/33

    XPath uses path expressions to select nodes or node-sets in an XML document.

    The node is selected by following a path or steps.

    Harry Potter

    29.99

    Learning XML

    39.95

  • 8/9/2019 Chapter 2.3-Multimedia Storage Techniques

    11/33

    Selecting Nodes

    XPath uses path expressions to select nodes in an XML document.

    The node is selected by following a path or steps. The most useful

    path expressions are listed below:

  • 8/9/2019 Chapter 2.3-Multimedia Storage Techniques

    12/33

    Examples

    In the table below we have listed some path expressions and the result

    of the expressions:

  • 8/9/2019 Chapter 2.3-Multimedia Storage Techniques

    13/33

    Predicates

    Predicates are used to find a specific node or a node that contains a

    specific value.

    Predicates are always embedded in square brackets.

  • 8/9/2019 Chapter 2.3-Multimedia Storage Techniques

    14/33

    Selecting Unknown Nodes

    XPath wildcards can be used to select unknown XML elements.

    Selecting Several Paths

    By using the | operator in an XPath expression you canselect several paths.

  • 8/9/2019 Chapter 2.3-Multimedia Storage Techniques

    15/33

    Xpath Axes

    In the table, we have listed some path expressions andthe result of the expressions:

  • 8/9/2019 Chapter 2.3-Multimedia Storage Techniques

    16/33

    XPath Axes

    An axis defines a node-set relative to the current node.

  • 8/9/2019 Chapter 2.3-Multimedia Storage Techniques

    17/33

  • 8/9/2019 Chapter 2.3-Multimedia Storage Techniques

    18/33

    Location Path Expression

    A location path can be absolute or relative.

    An absolute location path starts with a slash ( / ) and a relative location

    path does not. In both cases the location path consists of one or more

    steps, each separated by a slash:

  • 8/9/2019 Chapter 2.3-Multimedia Storage Techniques

    19/33

    XPath Operators

  • 8/9/2019 Chapter 2.3-Multimedia Storage Techniques

    20/33

    Video, Audio and the Switch Element (SMIL)

    Adding video and audio media to your presentationis just as easy as adding images. The onlydifference is that we use the and tags instead of tags. These tags also take a

    lot of the same attributes such as src, region, begin,dur, etc. To add some audio, or more specifically aRealMedia (.rm) file, we add this tag to our SMILdocument, . Below is what

    our code should look like now.

  • 8/9/2019 Chapter 2.3-Multimedia Storage Techniques

    21/33

  • 8/9/2019 Chapter 2.3-Multimedia Storage Techniques

    22/33

    When it comes to video, it's just like adding anotherimage.

    First, create a region to hold the video, then specify thevideo with the tag.Include the location of the video file in the src attributeof the tag.

    With the tag, we can optimize the presentationto fit the user's situation. All the content tags, i.e., , , ,, , etc., have attributes that you use along

    with such as system-screen-size, system-bitrateand system-language. The SMIL parser then selects themedia that best suits the user's needs using theseattributes.

  • 8/9/2019 Chapter 2.3-Multimedia Storage Techniques

    23/33

    What this does is chooses only one tag to use based on the user's bitrate. For example, if someone views this SMIL

    presentation with a 28kbps modem, they'll get the "moo-28k.rm" file. On the other hand, if someone views it with something else not

    specified, they'll get the "moo-other.rm" file since that has no "system-bitrate" attribute and is deemed the default.

  • 8/9/2019 Chapter 2.3-Multimedia Storage Techniques

    24/33

  • 8/9/2019 Chapter 2.3-Multimedia Storage Techniques

    25/33

    Metadata Processing Steps for Lecture Archive

  • 8/9/2019 Chapter 2.3-Multimedia Storage Techniques

    26/33

    illustrates the metadata processing and generation components for this

    application.

    Spatial Layout for a Simple SMIL Example

  • 8/9/2019 Chapter 2.3-Multimedia Storage Techniques

    27/33

    Spatial Layout for a Simple SMIL Example

    Replay Interface for a SMIL Presentation Lecture

  • 8/9/2019 Chapter 2.3-Multimedia Storage Techniques

    28/33

    Replay Interface for a SMIL Presentation Lecture

    P t ti C t

  • 8/9/2019 Chapter 2.3-Multimedia Storage Techniques

    29/33

    Presentation Capture

    1. Filming a lecturer giving a PowerPoint

    presentation;2. Digitizing and encoding the video footage to

    MPEG format (for analysis) and RealMedia

    format (for streaming);

    3. Analysing the digitized footage or logging datato determine the times at which slide changes

    occur;

    4. Using the temporal information to generate a

    SMIL presentation which integrates synchronized

    digital video and PowerPoint slides with a timeline

    for browsing and jumping directly to a particular

    slide.

    Overview of System Components and Process Flow

  • 8/9/2019 Chapter 2.3-Multimedia Storage Techniques

    30/33

    Ove v ew o Syste Co po e ts a d ocess ow

    PresentationIndexer application

  • 8/9/2019 Chapter 2.3-Multimedia Storage Techniques

    31/33

    PresentationIndexer application.

    Presentation Archive Search

  • 8/9/2019 Chapter 2.3-Multimedia Storage Techniques

    32/33

    Presentation Browse and Replay Interface

  • 8/9/2019 Chapter 2.3-Multimedia Storage Techniques

    33/33

    p y