Displaying text on a video

hello everyone!
This program loads a video and i d like to display a text from a file in my disk
ON the video.Something like a subtitle.
Can anyone please help ?
class VideoPlay extends Frame {
  Player pl = null;
  Component controlPanel = null, visualComponent = null;
  public static void main(String[] args) {
     VideoPlay rtv = new VideoPlay();
     rtv.setVisible(true);
  VideoPlay() {
    super("Video Player");
    setLayout(new BorderLayout());
    setBounds(100, 100, 200, 200);
    try {
        MediaLocator locator = new MediaLocator("file:vid007");
        pl = Manager.createPlayer(locator);
    } catch(Exception e) { System.out.println("ERROR: "+e); }
    if (pl != null) {
      pl.start();
      pl.addControllerListener(new ControllerAdapter() {
         public void realizeComplete(RealizeCompleteEvent e) {
           controlPanel = pl.getControlPanelComponent();
           if (controlPanel != null) add("South", controlPanel);
           visualComponent = pl.getVisualComponent();
           if (visualComponent != null)
              add("Center", visualComponent);
           else
              System.out.println("ERROR: Null Visual Component");
           validate();
         public void endOfMedia(EndOfMediaEvent e) {
           pl.setMediaTime(new Time(0));
           pl.start();
    addWindowListener(new WindowAdapter() {
       public void windowClosing(WindowEvent e) {
         if (pl != null) pl.close();
         dispose();     
          System.exit(0);
}Edited by: madalla on Apr 25, 2008 5:59 AM

in terms, i d like to retrieve a file that contains text, and displaying it to the frame while video is playing

Similar Messages

  • Video displays text garbled up.

    As I scroll through the text of my Mail list, a message, or text file; the video displays a gargle mix of letters and to solve the issue; I have to slowly scroll the text out and back in so it will display correctly.  Is this a software or hardware problem.  I just got my computer a few days ago.  I am worried!!
    Thank you in advanced.

    This same garbled text is happening in FINDER.  How do we fix this?  I am starting to feel like I am runing a PC 

  • Display text and image over Video Image in applet

    Hi
    I am working in JMF for a video applet.
    I have a doubt ,how we can display text and image over Video Image.
    Is anybody know how we can draw text over Video Image,pls sent a small code how can do it in applet?.
    I can do it in a frame,but it not work in a applet !
    CHT

    it is very much possible in a htmlb:button.
    its same as how you have done it in xhtmlb:toolbarButton
    working code
            <%
      data image type   ref to cl_htmlb_image.
      data: image_string type string.
      create object image.
      image->id = 'IEX'.
      image->src = cl_bsp_mimes=>sap_icon( 'ICON_EXECUTE_OBJECT' ).
      image->tooltip = 'Find the Link'.
      clear image_string.
      image_string = image->IF_BSP_BEE~RENDER_TO_STRING( page_context ).
              %>
              <htmlb:button id     = "EX"
                            text   = "<%= image_string %> Execute"
                            encode = "FALSE"
                            onClick = "EXECUTE"/>
    Regards
    Raja

  • How to load and display the external flv video files in dynamicly and the how to control the flv fil

    How to load and display the external flv video files in dynamicly using AS 3.0
    and  How to control the flv file  add the play paus button and add seekbar.
    I have using to load the flv file following code
    var flvPlaceHolder1:MovieClip = new MovieClip();
    var vid1:Video = new Video(734, 408);
    flvPlaceHolder1.addChild(vid1);
    addChild(flvPlaceHolder1);
    flvPlaceHolder1.x = 1059;
    flvPlaceHolder1.y = 152;
    var nc1:NetConnection = new NetConnection();
    nc1.connect(null);
    var ns1:NetStream = new NetStream(nc1);
    vid1.attachNetStream(ns1);
    var listener1:Object = new Object();
    listener1.onMetaData = function(evt:Object):void {};
    ns1.client = listener1;
    ns1.play("GV-1600 TURNING.flv");
    ns1.addEventListener(NetStatusEvent.NET_STATUS, statusChanged1);
    function statusChanged1(ns1:NetStatusEvent):void
             trace(ns1.info.code);
            if (ns1.info.code == 'NetStream.Buffer.Empty')
                 trace('the video has ended');
                 removeChild(flvPlaceHolder1);
                 //trace('removeChild');
                gotoAndPlay(1786);
    then how to add the play,paus ,full screen button    and   seekbar,volumebar.

    I have to Create the flash presentation for our company product
    In this presentation the left  side the text animation are displayed then right side the our product video is displayed.
    In this presentation i need the following option :
    1, The first product video and animation is finished then the next product is played
    2, then the video displayed  (size width and height 400x300) , I click this video to increase the size(ex:1000x700)
    3, then the playing video i control  it play, stop, paus button and volume bar, seek bar.
    4, then this presentation is displayed on 42 inches LCD TV so this full presentation is run full screen.
    I have finished first two steps 1 and 2
    the following are the screen short and code:-
    code :-
    var count=0;
    var flvPlaceHolder2:MovieClip = new MovieClip();   
    var vid2:Video = new Video(734, 408);
    flvPlaceHolder2.addChild(vid2);
    addChild(flvPlaceHolder2);
    flvPlaceHolder2.x = 1059;
    flvPlaceHolder2.y = 152;
    var nc2:NetConnection = new NetConnection();
    nc2.connect(null);
    var ns2:NetStream = new NetStream(nc2);
    vid2.attachNetStream(ns2);
    var listener2:Object = new Object();
    listener2.onMetaData = function(evt:Object):void {};
    ns2.client = listener2;
    ns2.play("GS-4000.flv");
    this.addEventListener(Event.ENTER_FRAME, BtnFadeIn2);
    function BtnFadeIn2(event:Event):void
        if (this.currentFrame == 387)
            /*flvPlaceHolder2.x = 30;
            flvPlaceHolder2.y = 140;
            vid2.width=1800;
            vid2.height=800;
            trace('Screen size is changed');*/
            if(count==0)
            flvPlaceHolder2.x = 30;
            flvPlaceHolder2.y = 140;
            vid2.width=1800;
            vid2.height=800;
            count++;
    ns2.addEventListener(NetStatusEvent.NET_STATUS, statusChanged2);
    function statusChanged2(ns2:NetStatusEvent):void
        trace(ns2.info.code);
        if (ns2.info.code == 'NetStream.Buffer.Empty')
                trace('the video has ended');
                 removeChild(flvPlaceHolder2);
                 //trace('removeChild');
                gotoAndPlay(433);
    flvPlaceHolder2.buttonMode=true;
    flvPlaceHolder2.addEventListener(MouseEvent.CLICK,home2);
    function home2(e:MouseEvent):void
        if(vid2.width==734 && vid2.height==408)
            flvPlaceHolder2.x = 30;
            flvPlaceHolder2.y = 140;
            vid2.width=1800;
            vid2.height=800;
        else
            flvPlaceHolder2.x = 1059;
            flvPlaceHolder2.y = 152;
            vid2.width=734;
            vid2.height=408;

  • Using Text documents in Video

    I'm a novice user of Final Cut Express HD. I'm using equipment and software at the site of a local cable provider. I'm working on a project in which I'd like to place a few pages of text. I used PDF files and just imported them into the FCE browser as a resource, but the resolution of the video is so bad that it's not useable.
    Today I looked through the manual for Live Type and didn't find anything that directly suggested a solution, but I'm a newbe so I could have missed a common term or something.
    What's the method currently used for bringing pages of text into FCE projects?

    Welcome to the family, were were all new to this at one time but there are some fundamentals about imaging and video in general that cannot be covered here, they're just too broad. Video is about 640x480 pixels, that's all. when you bring in a page of text, the page is just an image, it's not raster text. And it will be scaled down to fit the video window. 480 pixels is good to display about 20 lines of very small text and it will be illegible from a comfortable viewing distance so we usually say, in general terms without knowing a great deal about how to compose and maximize the numerous options of the various text tools available within FCP, that video can display only 10-15 lines of legible, sans serif text with a nice shadow and maybe an outline. That's all.
    How you work within the limitations of video to display text is going to be a long process of learnign about fonts, controls, coy editing, compromises with clients and much more. Then you will have to convert your 640x460 full frame video to 320x240 for the Web.
    bogiesan

  • How to create an interactive pdf, hyperlinking text to a video on a usb drive?

    Creating an interactive pdf in InDesign CS6, hyperlinking text to a video.  Both pdf and video placed on a usb thumbdrive.  When clicking link on Mac a warning box came up, but after clicking Allow the video played fine.  On PC the warning box also came up but clicking Allow did nothing

    You'll need to use startDrag and stopDrag  in order to be able to move an object (the slider handle).  You will need to specify a rectangle that has 0 height for the drag limits.  The width of that rectangle will define the maximum value of the scroll (which will be the maximum value of your scale.
    Assuming you will have a linear scale for values along the drag line, the math is fairly easy to manage.  The x property of the handle at the minimum slider position should be 0.  You use the ratio of the current x position of the slider handle to the full width to determine what value to assign ( ex: ratio = handle.x / rectangleWidth).  So if the minimum value is 1K and the maximum value in 10K, you essentially have 9K represented by the length of the line, so the value provided by the slider position at any point along that line would be 1K + (ratio * 9K)
    You can use a MOUSE_MOVE event listener that you assign when the slider's MOUSE_DOWN event occurs to update the textfield as the slider is moved.  You can remove the MOUSE_MOVE listener when the slider's MOUSE_UP event occurs.
    So, in summary, you need to look into the startDrag and stopDrag methods, which will be inititiated using MOUSE_DOWN and MOUSE_UP events, respectively.  The MOUSE_DOWN event will create a MOUSE_MOVE listener that you will use to have a function continually update the textfield value displayed, while the MOUSE_UP event will have that MOUSE_MOVE listener removed.  The ratio of the x property of the slider to the total slideable distance will be used to determine the current value that the MOUSE_MOVE event handler assigns to the textfield display.

  • Show text after a video ends

    Hi,
    I imported a video (progressive) and would like some text to
    appear after the video finishes. The video is in frame 1 and I
    inserted a keyframe after that and added text. When I play the
    movie all I see is the text blinking, no video. What did I do
    wrong?
    Thanks in advance.
    Robert

    Try this:
    Add a stop action to frame 1
    stop();
    also, add this:
    var myListener: Object = new Object();
    myListener.complete = function(eventObj: Object) {
    trace("media is Finished");
    gotoAndStop(2);
    myMedia.addEventListener("complete", myListener);
    Make sure your video component has an instance name: myMedia
    Add a stop action to frame 2.
    test movie.
    I am assuming your video is an FLV outside of flash right?
    You are using the media display component
    to display it right?
    ~~~~~~~~~~~~~~~~
    --> Adobe Certified Expert
    --> www.mudbubble.com
    --> www.keyframer.com
    ~~~~~~~~~~~~~~~~
    rodnyc29 wrote:
    > Thanks for the reply, but how do I find the length of
    the video? I would need to get it to the exact frame, right?

  • MacBook (2006) HDTV Secondary Display Issue (no streaming video)

    I've searched the discussions as thoroughly as I could before posting. I do not have the same issues as many others connecting their Macs to HDTVs for primary or secondary display.
    I recently bought a Sony Bravia (KDL-32EX710) and displays the desktop beautifully at 1080p with just the Mini-DVI to VGA cable. However, the only thing it does not display, without a workaround, is streaming video from websites like YouTube, various Gawker media sites and similar sites. For example, going to YouTube loads the entire page with playlists, comments and the audio comes through but nothing but a black box where the video should be (controls are also hidden).
    To view videos, I have to drag the Safari window to the MacBook's display to start the video then move it back over to the secondary display to view it. Or, I have to enable the video to be viewed in fullscreen (usually by chance) to be able to see the video.
    Watching videos from the local/network drives are fine. Watching streaming videos from Netflix are fine (via Safari). Does this seem like a Flash issue as the problem videos seem to depend on Flash?
    Message was edited by: fantastikot

    It seems updating Flash (for Safari, Firefox and Chrome) did the trick.

  • Displaying text more than 256 in ALV report

    Hi experts,
                     I have problem while displaying text field in ALV report which has more than 256 characters.
    I'm using CL_SALV_TABLE for displaying alv.while concatenating my internal table holding all the text.but at the time of displying the report it's only displaying 256 characters.
               Can anyone guide me how to display more than 256 characters in ALV output using CL_SALV_TABLE.

    Hi,
    Please find the below code.
    TRY.
          gr_column ?= gr_columns->get_column( columnname = 'MATNR' ).
          gr_column->set_output_length( '300' ).
        CATCH cx_salv_not_found.
        Message : Column definition problem
          MESSAGE e075().
      ENDTRY.
    Edited by: Archana.T on Jun 16, 2010 1:24 PM

  • How can I display three images in video rate succession (60 Hz)?

    For a structured illumination microscope application, I have developed a VI that creates three images and displays them in rapid succession (as fast as the loop will go) on a second monitor.
    From the naked eye it's pretty apparent that the loop is not displaying the images at video rate.  Is there a way (perhaps with some sort of buffer) to get them to display faster?  Is WinShow simply not going to be fast enough, and if not, what's an alternative method of displaying the images?  If it helps, the images need only be displayed once each (the loop was just for testing).
    Also, what is a way to measure the frame rate output of the images?
    (sorry for the sloppy code, new to LabView)
    Thanks,
    -T
    Attachments:
    illuminationpattern.vi ‏31 KB

    Hello,
    Why don't  you try drawing one window, call IMAQ WindShow once outside of the loop, then redraw that window each iteration within the loop.  Hopefully this stops the flutter of the window.  You can build a 3 element array of the 3 IMAQ images then use an index array to alternate through which image you want to be redrawn into the single window.  The constant calling of IMAQ WindShow seems messy.
    Regards,
    Isaac S.
    Applications Engineer
    National Instruments

  • How to display text on last but one page in SAPSCRIPTS

    how to display text on last but one page in SAPSCRIPTS

    u have create one Foooter window , this has to be called in  only One Page.So hardcode /assign this window to only one PAGE number.
    regards
    Prabhu

  • Putting Text over a video is not working

    O.K.  I follow the instructions on putting text over a video (for iMovie 11), but every time I do this all I see is a black screen with the text in it.  I can't get the video to show up when I preview/play the video.  I have the same problem when trying to use the green screen feature as well.  Is there a setting or something that I need to change in iMovie?  If so what/where is it, because I am at my "witts end" trying to find it?

    I would suggest trashing the iMovie Preferences file. Instructions are here. (You should not need to trash the iApps preferences, just the iMovie one.)
    https://discussions.apple.com/docs/DOC-4061

  • When I click on - View - Page Source, I want to edit with NotePad - note just display text in fancy colors

    I like to edit my web pages easily,
    - click to see html, edit it, (file name already there), save it
    - hit restore on browser - see what I did -
    Just changed from IE
    which gave me NotePad, which is just fine for me
    Just changed to FireFox
    and it displays text in a non-editor,
    can't edit and save easily
    What to do??
    Even worst - after installing FireFox
    IE no longer clicks to NotePad
    but that fancy non-editor :-(((

    ViewSourceWith: https://addons.mozilla.org/firefox/addon/394
    See also:
    http://kb.mozillazine.org/view_source.editor.external
    http://kb.mozillazine.org/view_source.editor.path

  • HT204291 Using Azul media player app on my ipad  Apple tv will only display sound but not video from movies.  Any ideas on a fix.  I set mirroring to on but it still does not display video.  It will display photos and video recorded from my iphone.

    Using Azul media player app on my ipad  Apple tv will only display sound but not video from movies.  Any ideas on a fix.  I set mirroring to on but it still does not display video.  It will display photos and video recorded from my iphone.

    Here are the steps for AirPlay:
    Before starting Azul from your (running iOS 5.x/6.x) home screen where have have all your apps we need to turn on mirroring
    On your iPhone 4S/5 or iPad 2 or 3, double-click the Home  Button to view your recently-used apps.
    Swipe all the way to the right to until you see the  icon.
    Note: If the icon does not appear, go to the "If AirPlay Mirroring is not visible or available on your mobile iOS device" section.
    Tap the  icon to see the list of available AirPlay devices.
    Enable AirPlay Mirroring in this menu by tapping on an available Apple TV, then sliding the Mirroring slider to ON.
    Now you should be seeing your iPad/iPhone on your TV.
    Start up Azul now and using the settings icon on the top right corner go to the option that say "TV out" ON.
    When you do that you will see an Orange screen
    Now click "Done" and play the video you want to watch and it will AirPlay

  • Display Text in a query as a symbol

    Hi everyone,
    I have a query (BI 7) that displays runtimes of BI applications (generated from technical content -0TCT_MC01 multiprovider).
    In the rows there is 0TCTBIOTYPE (type of BI application) which usually displays texts as below:
    query
    Web Template
    I would like to show in the report the symbol (image) instead of the key/text of this infoobject.
    Any idea?

    Hi Reuvel,
    Nice requirement.
    Not sure 100% but from my memory i guess we can display the image for characteristic, instead of text or key by using Analysis web item Using parameter modification in WAD .
    Kindly check for Modifcation parameter Display image Module (com.sap.ip.bi.*.Documentcontent) in WAD, it might solve your purpose.
    Regards,
    Ashish

Maybe you are looking for

  • HT201263 I did not sync my iPod Touch with iTunes and I have forgotten my password.  How do I unlock it?

    I did not sync my iPod Touch with iTunes and I have forgotten my password and now it is locked.  I have the recovery mode screen at "conect to iTunes", but iTunes is not recognizing it.  How do I unlock it?

  • Selctedcell variant use in abap web dynpro

    hi friends,                 can anybody tell me why we used selectedcell variant in  table column under table in abap webdynpro???? please elaborate with any example if possible. regards, sunil sharma

  • Printer test page

    My HP printer (VIVERA HP inks) prints a test page every time it is switched from off to on how do I disable that?  I want to only have a test page print on my demand thx Mike D

  • Upgrade Siebel 7.5.3 - 8.1.1

    Hi, we have a client that want to upgrade current Siebel version (7.5.3) to Siebel 8.1.1. Does anyone have experience on that? Basically we want to confirm the path for migration (is it required to pass through an intermidiate bersion such as 7.7, 7.

  • Search and search tokens in Mail?

    does anyone know how this works or why i don't see tokens in mac mail search? sorry for the multiple Mail posts but i am trying to nail some things down tonight.