media finder user guide

Upload: alejandro-davila

Post on 04-Apr-2018

225 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/29/2019 Media Finder User Guide

    1/22

    Copyright 2000, Oracle Corporation.

    All Rights Reserved.

    Oracle is a registered trademark of Oracle Corporation. All other company or product names mentioned are used for

    identification purposes only and may be trademarks of their respective owners.

    "MediaFinder" - a Sample Application That Uses OracleinterMedia Annotator Utility

    Readme for Installation, Configuration, and Use

    February, 2000

    Introduction

    Our Goal

    MediaFinder is a sample app lication th at dem onstrates how to bu ild a

    media library by u sing Oracle interMedia com pon ents. Feel free to mod ifythe open sou rce code to build your ow n ap plication.

    Description

    Med iaFind er is an app lication that utilizes Oracle interMedia to let you

    search a video library built using O racle interMedia A nnotator.

    Med iaFind er allows searching by movie title or by keyword , retrieving

    movie annotation information a long with the video clip, and launching

    Qu ickTime to p lay the video, wh ich is being streamed by the Oracle

    interMedia Plug -in for Ap ple Qu ickTime Streaming Server from t he Oracle

    da tabase. During a keyw ord search that w ill result in text samp le mat ches,

    MediaFinder will locate the p oint where the match occurred and allow you

    to start the p layback from that p oint.For more information abou t the playback, refer to the Using a MediaFind er

    App lication section.

    Oracle technologies includ e:

    s Oracle interMedia Ann otator includ ing frame extraction and text track

    sampling

    s Oracle interMediaPlug-in for Ap ple Qu ickTime Streaming Server

    s Oracle interMedia

  • 7/29/2019 Media Finder User Guide

    2/22

    2

    System Requirements

    Med iaFind er consists of server-side an d client-side software w ith the

    following requirements:

    Server-side Requirements:

    s Oracle8i data server with MediaFinder schema setup

    s Oracle interMedia

    s Web serve r (Apache 1.3.6 (or high er), N etscap e Enterp rise Server 3.6 (or

    higher), or others )

    s Servlet Engine to Web Server (Apa che JServ 1.0 wh en u sing Ap ache as

    the Web server or JRun Pro. 2.3 to N etscape Enterprise Server, or oth ers)

    s MediaFinder serv let installed on th e Web server

    Client-side Requirements:

    s interMed ia Annotator 1.5 (for the comp lete list of Ann otator comp onent

    requiremen ts, refer to the Oracle interMedia Annotator Users Guidefor

    release 1.5)

    s Web browser with th e QuickTime plu g-in installed

    s Qu ickTime player

    Installation and Configuration

    Installation

    s Installation of Oracle data server a nd Oracle interMedia

    Oracle8i release 8.1.5 or later is recomm end ed. Refer to the Ora cle

    server docum entation for m ore information.

    s Installation of Web Server

    Apache 1.3.6 or later, or N etscape Enterp rise Server 3.6 or later are u sed

    in the cu rren t release. You can also install other Web servers. Refer to

    the installation or configuration gu ide of the chosen Web server for

    more information.

    s Installation of Java Servlet Engine

    - Apache JSe rv 1.0 on U N IX

    - JRun Pro 2.3 on Window s N T

    Refer to the insta llation or con figura tion gu ide of the chosen servlet

    engine for more information .

  • 7/29/2019 Media Finder User Guide

    3/22

    3

    s Web brow ser

    You m ust h ave a Web brow ser with the Q uickTime plug -in installed.

    s

    Installation of Med iaFind er

    Database Schema Setup You m ust install the MediaFinder d atabase schema

    on you r Oracle8i d ata server. To d o this, perform th e following op erations:

    1. Before runn ing the installation script, ensure t he imag es d irectory,

    wh ich is from the img su bdirectory from the d istribution d irectory,

    has alread y been copied to you r local file system. The installation script

    will invo ke the LOAD_IMAGE procedu re to upload images from that

    directory to the TOPIMAGESOURCE table in you r d atabase.

    2. Go to the installation d irectory of med iaFind er2.

    3. Op en a SQLPLUS wind ow and log in as SYSTEM.

    4. Run th e InstallMd2.sql script located in th e sql d irectory. Runningthis script creates the Med iaFind er tablespace, the d atabase user n amed

    md find er2 with the default password as md find er2, the schema, and

    pop ulates the MediaFind er p roperty table.

    The proper ty table contains, for examp le, the nam e of the PL/ SQL

    procedure u sed for retrieving the image from th e d atabase.

    5. At the "pls_enter_d bf_path " prom pt, enter the location wh ere the

    dat abase tablespace should be stored on you r local file system. The

    de fault size for the ta blesp ace file is 512MB. Sim ilarly, at the p rom pt o f

    pls_enter_dbf_path, you can specify the location of the t ablespace for

    you r rollback segmen t. The defau lt size is 100MB. You can m odify th e

    create_ts_mdfind er2.sql file to chang e the size of both th e tablespace

    file and rollback segm ent file before starting th e installation procedu re.After the installation, refer to the Oracle8i Administ rators Guideabout

    creation and mod ification of tab lespace files.

    6. At the "pls_enter_img_dir" promp t, enter the location of the d irectory of

    images tha t you will use to p opu late your TOPIMAGESOURCE table in

    you r da tabase. This directory should contain all static ima ges that the

    Med iaFind er Web page needs, for exam ple, oracle_bann er.gif.

  • 7/29/2019 Media Finder User Guide

    4/22

    4

    Java Servlet Library Installation In order to install the MediaFinder servlet,

    you m ust copy the Med iaFind er.jar file to the library d irectory tha t is speci-

    fied by you r servlet engine. See the docum entation for your serv let engine

    for the exact location of your library d irectory.

    Please refer t o th e ServletInstallGuide.txt file in th e config d irectory

    un d er the distribution sou rce d irectory to install the Med iaFind er servlet

    library on your servlet engine.

    QuickTime Streaming Server Installation If you choose to u se the Qu ickTime

    Streaming Server to stream th e med ia source from th e Oracle da tabase,refer to th e readm e for installation, configur ation, and use for Oracle

    interMedia Plug-in for Apple QuickTime Streaming Server. You m ay also n eed

    to up date th e MediaFind er configuration table: ServletProps w ith three

    properties: QTSERVER_URL , QTSS_AGENT and PLAY_PROT. The sample

    quer ies are as follows (by d efault, HTTP protocol will be used):

    UPDATE ServletProps SET PROPVALUE=rtsp://your-server-url:554 WHERE

    PROPNAME=QTSERVER_URL;

    UPDATE ServletProps SET PROPVALUE=your-dbagent WHERE

    PROPNAME=QTSS_AGENT;

    UPDATE ServletProps SET PROPVALUE=rtsp WHERE PROPNAME=PLAY_PROT

    COMMIT;

    After you su ccessfully run these queries, you m ust restart you r Web server

    because MediaFind er has in its cache the previou s configur ation values thatcan be refreshed on ly by restarting th e Web server.

    Note:

    1. The installation script is interactive. The d efault p assword for

    md find er2 is md find er2. You w ill be promp ted for the fullpath to the tablespa ce files, as well as the full path to y our

    IMAGE d irectory.

    2. It is very important th at you do not p ress any extra characters

    or the key du ring the execution time w hen there is no

    prom pt for the inpu t. This is especially true wh en you tr y to

    create a large tablespace file; you might n eed to w ait for several

    minutes.

    3. Also, if you are a first-time u ser, you m ay see some w arning

    messages (for example, Not Fou nd ) during th e installation.

    This is norm al. The reason for these messages m ay be because

    the installation script might be trying to clean u p a p revious

    installation o f MediaFind er.

  • 7/29/2019 Media Finder User Guide

    5/22

    5

    You a lso n eed to h ave the root p rivilege and up date th e / etc/ QTSS.conf file

    for your streaming server setu p. The samp le cod e to define the Oracle

    da tabase agent is as follows:

    # database virtual pathoracle_virtual_path your-dbagent

    # Database service name, User name and Password

    your-dbagent-ORACLE_SQL SELECT T.$url2$.source.localData

    FROM $url1$ T WHERE T.vid=$url3$

    your-dbagent-ORACLE_database your-database-tns-entry

    your-dbagent-ORACLE_username mdfinder2

    your-dbagent-ORACLE_password mdfinder2

    Ensure the valu e for [your-dbagent] is consistent with the valu e you just

    used to up date you r ServletProps table in the p revious queries. If you have

    any qu estions about installation and configuration, refer to the readm e for

    installation, configur ation, and use for Oracle interMedia Plug-in for Apple

    QuickTime Streaming Server.

    You h ave now finished the Med iaFind er App lication setup . First, ensu re

    you r Oracle database server is running. Because your Med iaFind er

    database now h as no content, you can use interMedia Annotator to up load

    a m ovie to MediaFinder s dat abase. (For details, refer to Oracle interMedia

    Ann otator Users Guide). Laun ch a Web browser to go to the Med iaFind er

    Web site and begin u sing Med iaFind er; (the URL will be as follows:

    //MediaFinderSedrvlet).

    Note: The Or acle interMed ia Plug-in for Ap ple QuickTime

    Streaming Server is a separ ate pa ckage from O racle interMedia. See

    the following URL for m ore information:

    (http://technet.oracle.com) .

    Note: By d efault, the interMed ia Text index w ill not be refreshed

    autom atically; after upload ing a movie to the dat abase, the ind exes

    will not be up da ted. Refer to Oracle8i interMedia Text Reference for

    details.

  • 7/29/2019 Media Finder User Guide

    6/22

    6

    MediaFinder Graphical User Interface Overview

    Med iaFind er has a grap hical user interface shown in Figure 1 that allows

    you to u se a Web interface to search a video library for a specific text

    samp le, and retrieve the video frames associated w ith each text sam ple. The

    up per-left corner shows th e Oracle interMed ia Annotator, wh ile the

    up per-right corner shows the search page for MediaFind er. The bottom two

    corners, left to right, are the result list and sum mar y pages for MediaFinder.

    Figure 1. Med iaFinder GUI

  • 7/29/2019 Media Finder User Guide

    7/22

    7

    Brief Overview of the Technology Used by MediaFinder

    interMedia Annotator 1.5

    Oracle interMed ia Annotator is a tool that extracts media m etadata from

    image, audio, and video sources of certain formats, and up loads them to the

    Oracle database along with th e choice of med ia source file.

    With the Apple QuickTime-For-Java library, interMedia Annotator can

    extract video frames as well as the text-track samp les from th e specified

    Qu ickTime m ovie. Consequ ently, MediaFinder can en rich the result set of

    you r keyword search by retrieving th e video frame that is closest to the

    matching text sample by means of timestamp comparisons.

    InterMedia

    MediaFinder uses interMedia Text services by wh ich you can issue a text

    search against an XML docum ent as w ell as a p lain text string. For m oreinformation, refer to the Or acle interMedia information provided on the

    Oracle Technology Netw ork Web site: http://technet.oracle.com/.

    Med iaFind er also uses Oracle interMedia image and v ideo options for the

    storage of images an d vid eo in the Oracle8i dat abase. For more informa tion,

    refer to th e Oracle interMedia information provided on the Oracle

    Technology N etwor k Web site:

    http://technet.oracle.com/ .

  • 7/29/2019 Media Finder User Guide

    8/22

    8

    Using a MediaFinder Application

    Step 1 : Search Page

    Launch you r Web browser and point it to the MediaFinder URL:

    http:////MediaFinderServlet

    If you are using Sherlock to perform searches on the Ap ple Macintosh, you

    must upd ate the ACTION param eter in you r Sherlock plug-in:

    http:////MediaFinderServlet

    The Web interface for Med iaFind er is basically a search pa ge. Refer to th e

    interMed ia Text Web site for the correct syn tax of the search criteria. The

    search page contains the following tw o elements:

    s Movie Title

    Enter the search keyword , then click the Search but ton. This returns all

    mov ies wh ose titles contain the keyw ord you entered. Or, you can w ait

    un til you finish the next step, wh ich is specifying th e criteria in the

    keyw ords field, and then begin th e search; or you can skip this step.

    s Keywords

    Enter the search keyword , then click the Search but ton. The search criteria

    will includ e the keyw ords a s well as the value specified for the Movie Titlein the p revious step, if any w as entered. The search retu rns all movies

    wh ose associated ann otation contains the specified keyw ords.

    Search button : After you specify the sear ch criteria, click the Search

    button an d M ediaFinder w ill pu blish the result list in a new page.

    Clear button: Click th e Clear button to remove user inpu t from a ll text

    entry fields.

    Step 2 : Result PageThe MediaFind er search result page is a list of movie items w ith brief

    summ ary information as follows:

    Note: Because Sherlock I and Sherlock II have d ifferent su pp ort

    for HTML tags, it is necessary for Med iaFind er to d ifferentiate a

    Sherlock user from other users w hen p u blishing the Web pages.

    Note: When y ou click the Search button without specifying a

    keywo rd for both Movie Title and Keyword s fields, the search will

    return all items in the d atabase.

  • 7/29/2019 Media Finder User Guide

    9/22

    9

    s Video frame: the cover imag e for this movie

    s Search Score: the search relevance of the sea rch criteria

    s

    Copyright: the copyrigh t date of the m ovies Director: the d irector of the mo vie

    s Performers: the m ovie cast nam es

    Action:

    s Clicking the fram e samp le lau nches the Qu ickTime player to p lay the

    mov ie trailer from th e beginning.

    s Clicking the Mov ie Title URL laun ches a sum mary p age to show the

    full description for that mo vie item. Also, if there is any ma tch between

    the keyword and the closed caption inside that movie, a detailed match

    list will be shown in the ord er of relevance.

    s

    Step 3 : Summary Page

    The MediaFinder search sum mary p age has two p arts:

    s Movie summ ary

    A comp lete description of all the relevant fields from the extracted

    metad ata from that m ovie item, with all the possible text matches

    highlighted . The fields are:

    Note: There are two op tions to p lay back a QuickTime mo vie: for

    a med ia source that is inherently streamable, Med iaFind er will

    mak e the choice based on the user s preference set in the

    SERVLETPROPS table. For other media sources, MediaFinder will

    by d efault use H TTP.

    PLAY_PROT = RTSP PLAY_PROT = HTTP

    Streamable RTSP URL for p layback HTTP URL

    Non-stream able HTTP HTTP

    Field Name PurposeImage Poster frame (cover image) for the movie

    Title Movie title with the playba ck URL

  • 7/29/2019 Media Finder User Guide

    10/22

    10

    s List of text samp le matches

    Inside the m ovie, all the text samp les that contain a m atch for the specified

    keyw ord w ill be displayed in a resu lt list sorted b y their relevance. Each

    entry w ill include its associated timestam p an d th e closest video fram e. The

    fields are :

    Action:

    s Inside the m ovie sum mar y, clicking the frame samp le will start a

    Qu ickTime p layer to p lay the m ovie trailer from the begin ning; clicking

    on the title link will open a browser w indow to play the m ovie by

    invoking th e QuickTime plug-in.

    s Inside the list of text samp le matches, clicking t he frame samp le will

    start a QuickTime p layer to play the m ovie trailer from the timestam p

    associated w ith the vid eo frame tha t is shown . Clicking th e title link

    will open a browser window to play the movie by invoking the

    Qu ickTime p lug-in with th e start time set to the video frames

    timestamp.

    Producer Producer of the movie

    Director Director of the m ovie

    Category Movie category; if it is missing, Not ava ilable is displayed

    Copyright Copyright of the movie

    Information Release informa tion; if it is missing, this field will not be d isplayed

    Performers Performers of the m ovie (that is, movie cast)

    Premi ere Date Release da te; if it is missing, it will not be show n

    More

    InformationRelated information abou t this movie. Usually this will be the linkto the official Web site to this m ovie. If it is missing , this field w illnot be shown .

    Field Name Purpose

    Image The closest frame sam ple to the ma tched text samp le by thecomparison of timestamps

    Title Movie title with th e playback URL, with sta rting time

    Search Score Relevance of this search resu lt entry

    Time Stamp The timestamp for the chosen frame

    Closed Caption Text sample th at matches the search criteria with the m atchingpar t highlighted , if applicable

    Field Name Purpose

  • 7/29/2019 Media Finder User Guide

    11/22

    11

    Workflow of MediaFinder

    The diagra m in Figure 2 d escribes the Med iaFind er work flow. This

    information is useful in p utting together your ow n ap plications that m ay

    use the same components that Med iaFinder u ses.

    Figure 2. MediaFinder Initiation

    Dur ing its initialization time, MediaFinder Servlet instantiates

    OracleDBHan dler and creates the d atabase connection pool. By d efault, the

    size of the connection poo l is 5 connections. You can chang e the m aximu m

    nu mber of connections in the connection pool by changing th e value for

    MAXCONN in the SERVLETPROPS table. Once the conn ection to the

    da tabase is established , the MediaFinderProp erty class is also instantiated .

    The Property class uses the OracleDBHa nd ler to commu nicate with thedatabase and load the configuration information for MediaFinder from the

    SERVLETPROPS table.

  • 7/29/2019 Media Finder User Guide

    12/22

    12

    GET Request

    Figure 3. Handling HTTP:GET Requ est

    When you browse to the Med iaFind er URL (for examp le,

    http://websvr/MF2/MediaFinderServlet ), the Web server inv okes

    Med iaFind erServlet to respond to tha t GET request and a DoGetHan dler

    instance is created and used to pu blish the Med iaFinder search p age.

  • 7/29/2019 Media Finder User Guide

    13/22

    13

    POST Request

    Figure 4. Handl ing HTTP:POST Action

    When yo u click the Search but ton, a POST action with all the specified

    search criteria is forward ed to th e Web server. The Med iaFind erServlet

    instantiates a DoPostHan dler instance and pa sses to it the search criteria.

  • 7/29/2019 Media Finder User Guide

    14/22

    14

    The DoPostHan dler then creates an instance of the

    MediaFinderQu eryBuilder and gets the qu ery string from its bu ildQu ery()

    method. Then, the DoPostHand ler promp ts the OracleDBHand ler for a

    da tabase connection and u ses that connection to execute the qu ery. Aninstance of Med iaFind erQuer yResult is built based on the raw d atabase

    result set.

    Then, the DoPostHan dler starts to generat e the result list page. The

    Proper ty class uses th e UrlFactory class to build va rious URLs that are pa rt

    of the result pag e. For examp le, you can bu ild an ima ge URL by the file

    nam e or by the databa se ROWID of the image item. The app ropriate

    function calls are:

    MediaFinderurlFactory.getImgURL("filename")

    MediaFinderurlFactory.getImgURL(szRowid)

  • 7/29/2019 Media Finder User Guide

    15/22

    15

    Appendix A. Class Diagram for MediaFinder

    Figure 5. Class Diagram for MediaFinder

  • 7/29/2019 Media Finder User Guide

    16/22

    16

    Appendix B. Database Schema for MediaFinder

    Figure 6. Database Schema for MediaFinder

  • 7/29/2019 Media Finder User Guide

    17/22

    17

    Appendix C. Property Table for MediaFinder

    Property Name Default property Value Notes

    GETIMG_PROC MediaFind erDataPump The name of the storedprocedure or the

    designated servlet used topu mp (retrieve) the imageout of the da tabase.

    GETVID_PROC MediaFind erDataPump The name of the storedprocedure or thedesignated servlet used topu mp the video out of thedatabase.

    IMG_TBL_NAME topImageSource The name of the imagetable in wh ich to store allimages in the da tabase (forexample, banners of thepag e, the Oracle logo).

    IMG_SRC_NAME mediaContent The name of theORDImage column in the

    IMG_TBL_NAME table inwh ich to store images.

    IMG_COL_NAME file_name The name of the columnused in the search criteria,for exam ple, SELECTWH ERE S.file_nam e =oracle8i_logo.gif.

    CLIP_TBL_NAME clipsTable The name of the table usedto store all the movie

    trailers and their metad atainformation (includingAnnotations).

    CLIP_COL_NAME clip The name of the

    ORDVideo column in theCLIP_TBL_NAME table

    used to store the moviesource.

    FRAME_TBL_NAME frameTable The name of the table thatstores all the extractedframe samples and th eirmetadata information.

    FRAME_SRC_NAME snapShot The name of the

    ORDImage column inwhich to store the videoframe source.

  • 7/29/2019 Media Finder User Guide

    18/22

    18

    Q TSERVER_URL r tsp :/ / q tss.o ra cle.com :554 Th e loca tion o f yo urQuickTime Streamin g

    Server.

    QTSS_AGENT db The designated databaseagent defined in theconfiguration file forQuickTime Streamin gServer (OTSS.conf).

    QT_START_MOV QtStart.mov Static movie beforeplaying a movie clip

    (optional).

    PLAY_PROT rtsp RTSP means streamingenabled; HTTP otherwise.

    BANNER_IMG oracle_banner.gif The name of the image filethat has to be uploaded to

    the TOPIMAGESOURCEtable by the LOAD_IMAGE procedu re, whichis used as the banner of theMediaFinder Web p age.

    Property Name Default property Value Notes

  • 7/29/2019 Media Finder User Guide

    19/22

    19

    Appendix D. Queries in MediaFinder

    Scenario I: Search for All (No Input at All)

    For examp le, if there are no search criteria, a search w ill be started as

    follows:

    SELECT DISTINCT C.rowid, C.vid, C.title, C.cpyrght, C.director,

    C.casting, C.category, C.content_date, C.getWidth(),

    C.getHeight(), C.streamable,

    F.rowid, F.time_stamp, F.time_stamp

    FROM frametable F, clipstable C

    WHERE F.fid = C.vid

    AND F.time_stamp = ( SELECT MIN( F1.time_stamp)

    FROM frametable F1

    WHERE F1.fid = C.vid )

    Scenario II: Search Against Annotation (Input for Director, Performer, Title, andSo Forth)

    For exam ple, if the Title value is specified as Dyn am ic, then a search will

    be started a s follows:

    SELECT DISTINCT SCORE(99) S, C.rowid, C.vid, C.fname,

    C.title, C.content_date, C.cpyrght, C.info,

    C.premier_date, C.producer, C.director, C.casting,

    C.category, C.rating, C.related_info,

    C.comments, C.streamable, C.clip.width, C.clip.height,

    F.rowid, F.time_stamp, F.snapshot.mimetype

    FROM clipstable C, frametable F

    WHERE F.fid = C.vid

    AND F.time_stamp = ( SELECT MIN( F1.time_stamp )

    FROM frametable F1

    WHERE F1.fid = C.vid )

    AND CONTAINS( C.clip.comments, ( Dynamic WITHIN MEDIATITLETAG ),99)>0

    ORDER BY S DESC

    Scenario III: Search Based Only on Text Input in the Keywords Field

    For example, a search will be started aga inst both th e text samp le associated

    with the m ovie item and the metad ata inside the Annotation XML

    docu men t, as follows:

    SELECT DISTINCT SCORE(99) S, C.rowid, C.vid, C.fname, C.title,

    C.content_date, C.cpyrght, C.info, C.premier_date,

    C.producer, C.director, C.casting, C.category,C.rating, C.related_info, C.comments, C.streamable,

    C.clip.width, C.clip.height,

    F.rowid, F.time_stamp, F.snapshot.mimetype

  • 7/29/2019 Media Finder User Guide

    20/22

    20

    FROM clipstable C, frametable F

    WHERE F.fid = C.vid AND F.time_stamp =

    ( SELECT MIN( F1.time_stamp ) FROM frametable F1

    WHERE F1.fid = C.vid )

    AND CONTAINS( C.clip.comments, (dynamic services) , 99 ) > 0

    ORDER BY S DESC

    Scenario IV: Search for Both Metadata and Text (Input for Both Title and Text)

    For examp le, a search w ill be started with inpu t on Title as Dynam ic and

    Text as Dyn am ic Services, as follows:

    SELECT DISTINCT SCORE(99) S, C.rowid, C.vid, C.fname, C.title,

    C.content_date, C.cpyrght, C.info, C.premier_date,

    C.producer, C.director, C.casting, C.category,

    C.rating, C.related_info, C.comments, C.streamable,

    C.clip.width, C.clip.height,

    F.rowid, F.time_stamp, F.snapshot.mimetype

    FROM clipstable C, frametable FWHERE F.fid = C.vid AND F.time_stamp =

    ( SELECT MIN( F1.time_stamp ) FROM frametable F1

    WHERE F1.fid = C.vid )

    AND CONTAINS( C.clip.comments, ( Dynamic WITHIN MEDIATITLETAG ) &

    (Dynamic Services) , 99 ) > 0

    ORDER BY S DESC

    Scenario V: Search for Text Sample Matches in the Summary Page

    For examp le, from the resu lt list pag e, the movie item w hose VID is 3 is

    picked up . In the su mm ary page, a search will be started on the keyword

    Dynam ic Services within the text sam ples for the m ovie wh ose VID is 3, as

    follows:

    SELECT DISTINCT SCORE(99) S, C.rowid, C.vid, C.fname, C.title,

    C.content_date, C.cpyrght, C.info, C.premier_date,

    C.producer, C.director, C.casting, C.category,

    C.rating, C.related_info, C.comments, C.streamable,

    C.clip.width, C.clip.height,

    F.rowid, F.time_stamp, F.snapshot.mimetype ,

    T.text_info, T.trackId

    FROM txtSampleTable T, frametable F, clipstable C

    WHERE C.vid = 3 AND F.fid = C.vid AND T.clipid = F.fid AND

    CONTAINS( T.text_info, ( Dynamic Services ), 99 ) > 0

    AND MYABS( F.time_stamp, T.time_stamp ) =

    ( SELECT MIN( MYABS( F1.time_stamp, T1.time_stamp ) )

    FROM frametable F1, txtSampleTable T1

    WHERE F1.fid = F.fid AND T1.clipid = T.clipidAND T1.time_stamp = T.time_stamp AND T1.trackId =

    T.trackId )

    ORDER BY S DESC

  • 7/29/2019 Media Finder User Guide

    21/22

    21

    Scenario VI: Search in the Movie Play Window

    For examp le, from the resu lt list pag e, the movie item w hose VID is 3 is

    picked up . In the su mm ary page, a search will be started on the keyword

    Dyna mic Services within the text sam ples for the m ovie wh ose VID is 3and with a starting time of 43.0764, as follows:

    SELECT C.rowid, C.vid, C.streamable, F.rowid, F.snapshot.mimetype,

    F.snapshot.height, F.snapshot.width

    FROM clipstable C, frametable F

    WHERE C.vid = 3 AND F.fid = C.vid AND F.time_stamp = 43.0764

  • 7/29/2019 Media Finder User Guide

    22/22

    22

    Appendix E. FAQ

    Q: Why can I not start MediaFind er servle t on Oracle Appl ication Server?

    A: Check you r OAS configu ration file to see w hether the correct servletnam e "MediaFind erServlet" and the correct servlet virtua l path is specified.

    You sh ould also check the OAS log file. Sometimes w hen t he cartrid ge

    server of OAS fails to start, you cannot start the Med iaFind er dem o and the

    error message is stored in your OAS log file.

    Q: Why i s there no hig hligh t in my result page for a keyword search?

    A: Only wh en you sp ecify a single word as the keyw ord w ill highlighting

    be enabled. This is becau se MediaFind er does not p arse the keyword string

    for highlighting. So, if you specify the keyword string as legen d & fall,

    th e interMedia text engine w ill find the text samp le, for example: The

    legend w ill fall. But th e High Light-fun ction w ill not be able to high light

    legend and fall separately because the algorithm is to locate the exact

    ap peara nce of legend & fall within tha t sentence of The legend will fall.

    Q: Why do es Me diaFinder not refl ect the changes I made to the database

    or to its configuration fil e on the servlet engi ne?

    A: If you cannot see the med ia source that you u ploaded to the database,

    check the MediaFinder serv let configuration file to see that it is pointing to

    the correct da tabase (ORCL_DRIVER). If you just tried to up dat e the

    prop erty table for MediaFinder, or mod ified the servlet configuration file on

    the servlet engine, you m ust also restart you r Web server to refresh the

    configur ation values in the MediaFind er cache.

    Feedback and Comments

    Please send us you r feed back and comm ents on an y Beta softwar e releases

    of this software to t he following em ail account:

    [email protected]

    For released (non-Beta) MediaFinder sam ple ap plication software, please

    send feedback and comments throug h norm al Oracle sup port channels.