JMF - How to draw Circles over Video (JMF / Java2D / Swing)

Hi there!
I want to draw polygons over a playing video-panel, but they keep vanishing behind the video... Is there a way to bring them on top of the video canvas? The application which I'm going to develop should indicate ROIs on a playing video... This thread was inspiring, but didn't help at all...
http://forum.java.sun.com/thread.jspa?forumID=28&threadID=612055

Hi there!
I want to draw polygons over a playing video-panel, but they keep vanishing behind the video... Is there a way to bring them on top of the video canvas? The application which I'm going to develop should indicate ROIs on a playing video... This thread was inspiring, but didn't help at all...
http://forum.java.sun.com/thread.jspa?forumID=28&threadID=612055

Similar Messages

  • I need help figuring out how to put pics over video

    How do I put pictures over video while keeping the audio from the video? I am using Premiere Elements 9.

    Do you want the pictures to fill your video frame or do you want them smaller than the video frame so that the video shows behind them?
    Have a look at my sample "Add Motion Behind Your Slideshow" sample and see if that's what you're trying to do.
    http://muvipix.com/cooltricks.php
    In any event, you put the video on one video track and the photos on a track above it, basically.
    There's much more to explain, but before we get too deeply into that, we need to know exactly what you're trying to do. Can you link us to a YouTube video example?

  • How to draw circle if I have two points info and radius of the circle?

    Hi,
    I am trying to draw circle.
    Inputs I have is 1. Two points of the circle and
    2. Radius of the circle.
    Please let me know if u have solution using Shape, Graphics2D apis.
    Thanks in advance..
    Cheers,
    Somasekhar

    As far as the drawing is concerned, you would use Graphics# drawOval. There's no API method to draw a circle using the parameters of two points and a radius.
    You need to solve the problem on paper and work out the maths involved, then translate that math into working Java code.
    btw, you do realize that the information will give you zero to two valid circles, don't you?
    db

  • How to add picture over video to create a lower third look

    Here's one I've not been able to deduce. After creating a small JPEG label, I want to place it on the lower portion of the video as a title, but one that has been custom made. In this case the logo needs to cover the lower right of the screen. Therefore, I need to bring this photo over into IPhoto, import it into the video, and be able to manipulate it to sit exactly where I want it to go. Picture in Picture doesn't work because that deals with two video elements. Crop doesn't work partially for the same reason but also because the crop box won't go that small or that wide.
    This lower third logo needs to be able to stay over the entire length of the video (as in this case) or be able to fade in and fade out at certain times.
    Not sure if IMovie has this capability, and would sure appreciate the tips. Thanks.

    If you upgrade to iMovie 09, you could do this with the cutaway feature.
    You would create the lower third title in Photoshop or the like. Make the slide in the same dimensions as your iMovie project and the same aspect ratio. Set the lower third title exactly where you would want it on the frame. Use PNG not JPEG so you can make the only thing showing your title. Everything else in the frame should be alpha-channel transparent.
    Drag this over your video in iMovie 09 and select Cutaway.

  • 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 draw 2D shapes on the image generated by JMF MediaPlayer?

    Hello all:
    IS there any way that we can draw 2D shapes on the image generated by JMF
    MediaPlayer?
    I am currently working on a project which should draw 2D shapes(rectangle, circle etc) to
    mark the interesting part of image generated by JMF MediaPlayer.
    The software is supposed to work as follows:
    1> first use will open a mpg file and use JMF MediaPlayer to play this video
    2> if the user finds some interesting image on the video, he will pause the video
    and draw a circle to mark the interesting part on that image.
    I know how to draw a 2D shapes on JPanel, however, I have no idea how I can
    draw them on the Mediaplayer Screen.
    What technique I should learn to implement this software?
    any comments are welcome.
    thank you
    -Daniel

    If anyone can help?!
    thank you
    -Daniel

  • How to display subtitles over videoComponent from getVisualComponent - JMF

    I'm writting video player and I have encountered a problem. Is there a possibility to add Component (or something else what could display text in) to Component that I got from JMF method getVisualComponent(). As this method returns Component I can't add subcomponent to it. I tired to add recived Component to LayeredPane and JPanel with subtitles to higher layer of LayeredPane, and it works if I force lightweight renderer. But I'd like to use OpenGL renderer (com.omnividea.media.renderer.video.OpenGLRenderer), and in this case I've got black background in topmost layer with subtitles (even with setOpaque(false) ). Is there possibility to display one Component over another Component (top most component should be with transparent background)?
    ps. If video is rendered by open gl renderer it is possible to draw with open gl in Canvas (instead of GLCanvas)? Precisly I've got HeavyComponent from getVisualComponent() that is subclass of Canvas.
    ps2. Or how to tie my component1 to component2 in a way that component1 gets paint event when component2 gets paint event or when component2 is repainted?
    ps3. Ok I figured out that problem with black background is thanks to havyweight component. If I add some component (lightweight component) on GlassPane it is above all lightweight components and below all heavyweight components. So is there a way to add lightweight component above heavy weight component in a way that lightweight component have transparent background?
    Edited by: cartoon_20 on May 31, 2010 12:16 AM
    Edited by: cartoon_20 on May 31, 2010 12:22 AM

    Gosh, talk about a confusing mess of questions...
    Heavyweight components will not go behind lightweight ones, which is why it's bad to mix heavy & lightweight components.
    And yes, you can draw on the video inside whatever is rendering the video. You'd just, essentially, draw the image and then draw whatever you want on top of the image.
    I'd point you to the following thread to read:
    [http://forums.sun.com/thread.jspa?forumID=28&threadID=5368127]

  • I am making a graduation video for my cousin using Final Cut Pro. I have photos layered over videos, and I was wanted to find out how you can add a border around the photos so they stand off of the video. Anyone know what I could do?

    I am making a graduation video for my cousin using Final Cut Pro. I have photos layered over videos, and I was wanted to find out how you can add a border around the photos so they stand off of the video. Anyone know what I could do?

    You would need an image editor to edit the images and add a border to the image first before importing them into Final Cut.
    Cheapest and very good image editor?
    PIxelmator.
    Located in the Mac App Store. $14.99 USD.
    Here is the Pixelmator website to give you an overview of the app.
    http://www.pixelmator.com/
    Good Luck!

  • How do I superimpose a video over a picture?

    How do I superimpose a video over a picture?

    First, go to iMovie/Preferences and make sure that the Advanced Tools are enabled.
    Drag the Photo to your project.
    Now select the frames that you want from the clip in your event library. You can get the whole clip, or a selection. Your selection will have a yellow border around it. Click inside this yellow border and drag it to your photo. Drop it at the point where you want the video to be superimposed and drop it on the photo. A popup menu will appear. Choose CUTAWAY.

  • Last question for today - how to draw with API circle of N pixels radius

    Hi,
    While I'm bit of exhausted while fighting with those paths movement (see my other thread in this forum) - I'd like to ask maybe someone has code snippet, which shows how to draw a circle of N pixels/N mm/inches radius?
    There is one helper function for that inside SDK samples:
    PDEPath DrawCurve(ASFixed x, ASFixed y, ASFixed x1, ASFixed y1, ASFixed x2, ASFixed y2, ASFixed x3, ASFixed y3, int lineWidth, int r, int g, int b)
    but I'm just out of my mind for today what parameters should be provided and how many calls of it I should write.
    Any help would be appreciated.

    You call it four times...
    Here is a snippet that explains the math...
    /* 4/3 * (1-cos 45)/sin 45 = 4/3 * sqrt(2) - 1 */
    #define ARC_MAGIC ((ASFixed) 0.552284749)
    #define PI ((ASFixed)3.141592654)
    void DrawCircle( ASFixed inCenterX, ASFixed inCenterY, ASFixed inRadius )
    /* draw four Bezier curves to approximate a circle */
    MoveTo( inCenterX + inRadius, inCenterY );
    CurveTo( inCenterX + inRadius, inCenterY + inRadius*ARC_MAGIC,
    inCenterX + inRadius*ARC_MAGIC, inCenterY + inRadius,
    inCenterX, inCenterY + inRadius );
    CurveTo( inCenterX - inRadius*ARC_MAGIC, inCenterY + inRadius,
    inCenterX - inRadius, inCenterY + inRadius*ARC_MAGIC,
    inCenterX - inRadius, inCenterY );
    CurveTo( inCenterX - inRadius, inCenterY - inRadius*ARC_MAGIC,
    inCenterX - inRadius*ARC_MAGIC, inCenterY - inRadius,
    inCenterX, inCenterY - inRadius );
    CurveTo( inCenterX + inRadius*ARC_MAGIC, inCenterY - inRadius,
    inCenterX + inRadius, inCenterY - inRadius*ARC_MAGIC,
    inCenterX + inRadius, inCenterY );
    Close();

  • How to draw a perfect circle and how to make sure it is perfectly centered inside a square

    How to draw a perfect circle and how to make sure it is perfectly centered inside a square in Photoshop elements using the Ellipse option.

    1. Create a square canvas.
    2. With the Elipse tool, hold down Shift (Shift forces a circle). Draw the circle anywhere on the canvas (Shape 1 in this example).
    3. Simplify the circle layer
    4. Ctrl-click the layer to select the circle.
    5. Copy the selection to the clipboard (Edit > Copy).
    6. Deselect the selection.
    7. Paste from the clipboard (Edit > Paste). The pasted circle (Layer 1) will be centered.
    8. Delete the original circle layer.
    NOTE: Step 6 is the key. This guarantees that the pasted circle will be centered.
    If you want a circle completely within a square you can simply draw and simplify a circle on any shape canvas. Ctlrl-click the circle to to select it and copy to the clipboard.
    Then do File > New from Clipboard. This creates the circle cropped to a square on transparent background.

  • FCPX, How do I reconnect a video file that has been modified or over written?

    FCPX, How do I reconnect a video file that has been modified or over written?
    As an animator, I am constantly modifying and overwriting movies files that have already been imported into the Final Cut time line. In FCP7, I could easily modify and update movie files and have those changes appear in the timeline without the need to reimport and re-edit those clips, but FCPX seems to lose it's connection with any modified or overwritten file, making all the editing work I've done to these files worthless.
    Does anyone know of a way to reconnect to a modified or overwritten file? Because, this one single issue makes FCPX completely worthless to me.
    Andy Murdock

    If you import the new clip , select it and drag over the old offline clip , you can choose from the menu ...

  • On the new IMOVIE, How do you do voice overs and how do you add a video going while another video is going? HELP.

    I recently got a MAC BOOK PRO! The newest version and I make beauty videos, so I need to edit my videos, how do you do voice overs on Imovie? It doesnt give me an option to do a voice over.  And how do you have a video going and then in the corner have another one going? I Have the IMOVIE app on my phone and I know how to do all of that but it doesnt let me do it on my laptop.  Please help! Thank you

    Voice over:
    http://help.apple.com/imovie/mac/10.0/#mov91a895a64
    Picture-in-Picture:
    http://help.apple.com/imovie/mac/10.0/#mova1aaa682b
    Matt

  • Drawing over Video

    Hi
    I'm testing my xlets on xleTView and OpenMHP. I can play videos from files (for testing purposes) but I cannot draw over them, the video component is drawn over everything, even when I override the paint() method. Is it possible to draw over video considering my test environment? Suggestions?
    Thanks in advance.

    I want to know, too

  • How to transmit audio and video simultaneously?

    Hi,
    I am new at jmf.Now i have a problem that how to transmit audio and video at the same time.The AVTransmit can transmit only one media,audio or video.Anybody have experience with it?Please help me.Thanks a lot!

    Hi, audio and video data must be transmitted in 2 distinct RTP sessions, by using different ports at sender side.
    At receiver side, the port can be only 1.

Maybe you are looking for