Two Players in a single Frame

Hi!
I'm creating a mini app that plays two media files (no necessary the same file in both cases). I've created two JPanels and added to them the visual and control components. All OK, but there is a problem, only one of the visual component can be seen, the other is in black (altought the file is loaded correctly and the control component works fine).
This seems to be a problem with some type of buffer or something similar...
Anyone can help me?
Greetings from the Botxo!

there is a problem, only one of the visual component
can be seen, the other is in black I just tried loading and displaying two MOV's
in separate (JMStudio) frames and they played
at the same time with no problems, so I guess
the problem is somewher in your code, which
brings me to..
Anyone can help me?Maybe if we can see an SSCCE.
An SSCCE is the 'shortest' code that can
display the problem, more details here..
http://www.physci.org/codes/sscce
In this case, I think we can assume that anybody
able to help, has the JMF installed, and a couple
of JMF friendly media files lying around to test with,
so all we need is an example fo the code that fails.

Similar Messages

  • How do I position to panels in a single frame?

    Hi,
    Can someone tell me how i can position two panels in a single frame using the BorderLayout class.
    I have included my code below. When it is run it shows two JPanels positioned at the top and the bottom, a text area to the right, a panel in the center and a panel on the left. I want to get the panel on the left - the yellow panel - to be positioned in the lower third of the center panel. I have tried to use the BorderLayout.SOUTH statement - but this positions the panel across the very bottom which causes the bottom JPanel and part of the text area to disappear.
    Can anyone help with this please???
    Many thanks
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Panels extends JFrame implements ActionListener
         private TopPanel topPanel;
         private BottomPanel bottomPanel;
         private JButton open;
         private JButton close;
         private JButton connect;
         boolean openClicked = false;
         boolean closeClicked = false;
         public Panels()
              super("Panels");
              setSize(1000,600);
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              setVisible(true);
              Container contentArea = getContentPane();
              topPanel = new TopPanel();
              bottomPanel = new BottomPanel();
              JTextArea textArea = new JTextArea("Text Area",20,20);
              JScrollPane textScroller = new JScrollPane(textArea);
              open = new JButton("Open");
              open.addActionListener(this);
              close = new JButton("Close");
              close.addActionListener(this);
              connect = new JButton("Connect");
              connect.addActionListener(this);
              JPanel topBar = new JPanel();
              topBar.setBackground(Color.red);
              topBar.add(open);
              topBar.add(close);
              JPanel lowerBar = new JPanel();
              lowerBar.setBackground(Color.red);
              lowerBar.add(connect);
              bottomPanel.setPreferredSize(new Dimension(100,100));
              contentArea.add(topPanel);
         contentArea.add(bottomPanel,BorderLayout.WEST);
              contentArea.add(textScroller,BorderLayout.EAST);
              contentArea.add(lowerBar,BorderLayout.SOUTH);
              contentArea.add(topBar,BorderLayout.NORTH);
              setContentPane(contentArea);
    public void actionPerformed(ActionEvent e)
         if(e.getSource() == open)
         openClicked = true;
         topPanel.repaint();
         if(e.getSource() == close)
         {closeClicked = true;
         bottomPanel.repaint();
    class TopPanel extends JPanel
         public TopPanel()
         public void paintComponent(Graphics painter)
              super.paintComponent(painter);
              painter.setColor(Color.white);
              painter.fillRect(0,0,getSize().width,getSize().height);
              if (openClicked == true)
              drawTopMessage(painter);
         public void drawTopMessage(Graphics painter)
              painter.setColor(Color.black);
              painter.drawString("This is the top panel", 20,20);
    class BottomPanel extends JPanel
         public BottomPanel()
         public void paintComponent(Graphics painter)
              super.paintComponent(painter);
              painter.setColor(Color.yellow);
              painter.fillRect(0,0,getSize().width,getSize().height);
              if (closeClicked == true)
              drawBottomMessage(painter);
         public void drawBottomMessage(Graphics painter)
              painter.setColor(Color.black);
              painter.drawString("This is the bottom panel", 20,20);
    public static void main(String[] args)
         Panels example = new Panels();

    One solution would be to create a new panel, bothPanels and adding the two panels that you need to this panel.
    Once you have done that, you can add bothPanels to contentArea.add( bothPanels, BorderLayout.CENTER)
    hth

  • When I put in a scroll in fcx, I get a single frame of the scroll flashing on the screen about a second or two before the scroll appears. There is nothing on the timeline and this only appears after I have made the quicktime or dvd. Any thoughts?

    When I put in a scroll in fcx, I get a single frame of the scroll flashing on the screen about a second or two before the scroll appears. There is nothing on the timeline and this only appears on the quicktime or dvd. Any thoughts?

    '''I fixed mine by removing the Ask.com extension.'''
    Tools
    Add-ons
    Settings icon
    View Recent Updates
    Ask.com '''DISABLE'''
    Running FF 8.0 on Windows 7 (64-bit)

  • Concatenate two single frame swf's into one singleframe swf?

    Hi
    Is it possible to combine multiple swf's into one "single frame" swf?
    I have an flex application, that has a scroller with a swfloader inside, and the swfloader should load the "single frame" swf and it is possible to navigate up and down, via the scroller.
    Any help is appreciated.
    /Allan

    I've experienced the same thing sometime long in the past,
    and I probably did a frame by frame Print Screen to get around it.
    If it's single frame swf, then that's probably all you're going to
    get is one frame as an output.
    You may be able to incorporate a jpeg encoder of some sort to
    take snapshots as the piece animates in some form of loop fashion,
    but I'm not savvy in that dept.

  • How to use single frame in a page

    Hello, i would like to now how to make a frame in a page
    without having two or more, i was used to work with GoLive and
    there i could use the grid an put a single frame and make links to
    other pages that would open in that frame, it worked wel for me,
    but since I switched from golive to dreamweaver CS3 i am not able
    to do so. Is there some one how could tel me how to do so, since i
    use a lot of single frames in my pages,
    greetings

    why are you wanting to use single frames?
    They allow having the initial frame address stay in the
    address bar, and not
    show the linked page's address. The problems they cause
    usually override any
    value.
    Or- if we aren't using the same words the same way, please
    give an example
    site of what you want to do.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • Displaying two blocks in a single screen

    Hi all,
    I want to dispaly two screens in a single with as-usual properties.
    Please give your suggestions with steps.
    Thansk in advance,
    Regards,
    Balaaji.

    hi balaji ,
    create a main screen and in which  create two sub screens . like this .
    REPORT ZSUBSCREEN.
    TABLES: USR02,       "Logon data
             SSCRFIELDS.  "FIELDS ON SELECTION SCREENS
    SUBSCREEN 1
    SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-010.
        SELECT-OPTIONS: USERNAME FOR USR02-BNAME.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN END OF SCREEN 100.
    SUBSCREEN 2
    SELECTION-SCREEN BEGIN OF SCREEN 200 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-020.
        SELECT-OPTIONS: LASTLOGI FOR USR02-TRDAT.
    SELECTION-SCREEN END OF BLOCK B2.
    SELECTION-SCREEN END OF SCREEN 200.
    SUBSCREEN 3
    SELECTION-SCREEN BEGIN OF SCREEN 300 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-030.
        SELECT-OPTIONS: CLASSTYP FOR USR02-CLASS.
    SELECTION-SCREEN END OF BLOCK B3.
    SELECTION-SCREEN END OF SCREEN 300.
    STANDARD SELECTION SCREEN FOR SCROLLING LEFT AND RIGHT
    SELECTION-SCREEN: FUNCTION KEY 1,
                       FUNCTION KEY 2.
    SELECTION-SCREEN: BEGIN OF TABBED BLOCK SUB FOR 15 LINES,
                       END OF BLOCK SUB.
    START-OF-SELECTION.
         SELECT * FROM USR02 WHERE BNAME IN USERNAME
                               AND ERDAT IN LASTLOGI
                               AND CLASS IN CLASSTYP.
            WRITE: / 'User ', USR02-BNAME,
                     'Last Login Date ', USR02-TRDAT,
                     'Last Login Time ', USR02-LTIME,
                     'CLASS ', USR02-CLASS.
         ENDSELECT.
    END-OF-SELECTION.
    INITIALIZATION.
    SCREEN ICON LEFT AND RIGHT
       SSCRFIELDS-FUNCTXT_01 = '@0D@'.
       SSCRFIELDS-FUNCTXT_02 = '@0E@'.
       SUB-PROG = SY-REPID.
       SUB-DYNNR = 100.
    AT SELECTION-SCREEN.
       CASE SY-DYNNR.
         WHEN 100.
           IF SSCRFIELDS-UCOMM = 'FC01'.
             SUB-DYNNR = 300.
           ELSEIF SSCRFIELDS-UCOMM = 'FC02'.
             SUB-DYNNR = 200.
           ENDIF.
         WHEN 200.
           IF SSCRFIELDS-UCOMM = 'FC01'.
             SUB-DYNNR = 100.
           ELSEIF SSCRFIELDS-UCOMM = 'FC02'.
             SUB-DYNNR = 300.
           ENDIF.
         WHEN 300.
           IF SSCRFIELDS-UCOMM = 'FC01'.
             SUB-DYNNR = 200.
           ELSEIF SSCRFIELDS-UCOMM = 'FC02'.
             SUB-DYNNR = 100.
           ENDIF.
       ENDCASE.
    regard,
    sandeep patel
    reward point if helpful

  • What's the simplest way to export a single frame from an animated gif as gif?

    i have an animated gif and wish to save a single frame as a non-animated gif.
    in the past i've been achieving this by deleting all the frames i don't wish to export and deleting them before exerting, this seems very clumsy though so i figure there's a more sensible solution in there somewhere, but where?

    Thanks, Bill! Actually version 9 looks a little clearer than that, as it has two bold clear white paddles to mark the edge of the work area.
    I was a little frustrated at first, because whatever I did, it still took a year and exported the entire video.
    Then:
    I caught sight of this teeny tiny box waiting for a tick from me, which said:
    Share Work area Bar Only
    We have lift-off 
    Thanks again. So much quicker than all that deleting ahnd hoping you don't accidentally say "yes" when prompted to save changes!

  • Exporting non-looping (single frame) swf file

    I am using a third-party application to create a "page-flipping" version of a book. For quality reasons, I want to export the pages of the document as swf files. When I import the resulting swf files to the application, they flicker at the default frame rate of 24 fps. When I open the swf file in Flash Player, if I hit the "play" button, it flickers as well. If I use the "next frame" and "previous frame" commands, it's apparent that the file has two frames, one with the page content, the other with a blank (white) appearance.
    Is there a way to export the pages as *SINGLE* frame swf files?
    In desperation I've tried to export the pages as .fla files and generate the swf files from Flash, but the layouts are significantly corrupted when I open the fla files in Flash.
    FYI, I'm using InDesign CS6.

    Amy, you tease...go on, what's planned for the next release then?
    Nah, I know you won't tell.
    Michael/Sebastian,
    There are a number of workarounds that are more or less usable. You can place a print button on the page where the chart is located. A user can print to printer or to pdf if she has that functionality. The only issue there is that the whole dashboard screen prints. Depending how just how much you have on a screen that you don't want printed, you may have to reorganise the charts on to their own tabs, for example, which is what I do. I use the whole tab for the chart itself, probably leave a logo on top and bottom and then the whole page prints with my logos and the chart.
    Less elegant but always good value for money: flash image capture. I don't like that and it requires a utility clients side.
    Hope this helps.
    Chris
    Go on Amy...

  • Premiere Pro CC inserting single frame into exported files

    I have never had this issue before today.
    A project I have been compiling off and on for several months was exported using AME via PPCC.
    In previous exports this issue did not come up at all.
    Here is the problem:
    The rendered videos (using Apple ProRes 422 HQ, QT H.264, and MPEG2 DVD) have a single frame insert between two stills in a montage.
    The previous render it appeared on a different photo a few seconds later in the program, like this:
    Again, these are single frame artifacts not found in the timeline in PPCC. They only appear as "flash frames" in the exported video.
    Anybody else seeing this? Is there a solution?
    Thanks
    Jeremy Praegitzer
    Adobe Premiere Pro CS5/CS6 Certified Associate
    TV Department Manager - Love A Child, Inc.

    Hi Jeremy,
    Thanks for posting on Adobe forums,
    Please provide us details of your systems:
    What is the OS and version ?
    What is the Graphics Card installed on the system ?
    How much Ram do you have ?
    Do you use any external Hard Drive ?
    and if you are using GPU Acceleration on Open CL, You can these issue on Export.
    Please switch GPU acceleration on Software only mode, (if using cuda enabled card then Cuda )
    Regards,
    Sandeep

  • Format for single frame numbered graphic sequences?

    Hi, I'm working on a HDV 1080p25 project.
    The footage has been shot on a Canon EOS 7, and looks perfect.
    The client has also hired an animator to produce some sequences for editing in.
    The animator is using 3DMax.
    He's supplied a test set of numbered single frame jpg files, 1440 * 1080 (1:33 ratio) Progressive (no fields)
    But once rendered on the timeline, pans in the animation look jerky.
    What should I be asking him to render to best fit in the sequence?
    Or should I put his files in a different sequence setting, and render them to something useful myself?
    Unfortunately I think his system is very old (he says the files work perfectly for him in Premiere1.5) so I'm not sure what options will be available.
    All help appreciated.
    Thanks, Linda

    Jim, thank you for taking an interest. Yes, it's quite possible that I'm being far too fussy, and that what I've got is acceptable.
    I've uploaded a couple of test files to yousendit: perhaps you won't mind taking the time to look:
    I got two sets of test files from the animator: one rendered "progressive", the other "lower fields"
    I put both sequences on a HDV 1080p25 timeline, and rendered out to high quality mp4.
    Here are the results:
    1080p25_P.mp4
    https://www.yousendit.com/download/dklyaXROR0Z6NEkwTVE9PQ
    1080p25_LOWER.mp4
    https://www.yousendit.com/download/dklyaXRIcVhLVlh2Wmc9PQ
    I've watched both files so many times I can't tell the difference any more. I presume the progressive one should be right. But confirmation would be good.
    If it would help, I could also upload the test images I have.
    Thanks, Linda

  • Lots of weird Single-Frame offset errors lately

    Hi Everyone,
        I have been fighting some mighty germlins of late.  At first, I though the issue was isolated, but it appears to be spreading - or at least not as isolated as I first thought.
        The problems began when I was asked to employ the use of the CC Twister plugin on a project for use as a text transition.  When I initially set it up, it worked great, but I found I needed to adjust the timing.  When I dragged a keyframe to facilitate this, I found that the text would either not resolve where it should, instead animating up to the upper left corner (0,0) or if it didn't resolve there, it would simply pop up there for a single frame at some point during the transition.  I found that changing ANYTHING would cause this... even if I kept the timing alone and disabled the layer's track matte; and I didn't have to undo, I could just put the property back like it was and it would work again.  Obviously, I tried deleting the effect, and applying it anew - same results...   I then tried cleaning all the cache files, applying the effect anew once more, and again... same results.  There was no rhyme or reason to it... nothing that appeared to be driving the issue.  In fact, at one point I could RAM preview the comp, and it looked correct, but the problem would pop up again when rendering... despite changing nothing in the comp.  So, I simply had to presume that this effect had a bug of some sort, rendering it useless pending an update. 
         So then, last night, I had a similar issue during rendering with Trapcode Form.  Whenever I would do quarter or half res previews, things were working as expected... then I'd do a full res export and some of the forms would jump wildly from one frame to the next... always for just one frame, but often several scattered individual frames would be effected.  When I'd go back into the comp after the render, the errors were 'baked in' as though they has always been there... though they most definitely had not.  In this case, the issue started when I enabled multi-processing (it was never on in the first example with CC Twister above).  It occured to me that in THAT case, since one core might be rendering a frame two or three frames ahead of another core, and said core therefore perhaps didn't have the necessary data from the preceeding frame, the position would be incorrectly calulated.  A similar phenomenon occurs in C4D with certain generators when rendering out of sequence, necessitating baking of the solution.... Whether or not this is the case, the fact that the error actually affected the comp post render is really unsettling.  After turning off Multi-Processing, I was able to to export a clean full-res render without any issue.  So, I thought it odd that I was having similar issues with entirely different circumstances at play, but again had to assume these were isolated and that THIS issue was simply a matter of the notoriously unstable AE multi-processing rearing once more its not ready for prime time head.
         That brings me to today.  I was asked by my client to give a little subtle movement to the text layers in my scene.  I wanted to try a couple of things... a subtle wiggle on the text layer itself, or using the similar function from the plugin Sure Target, in case they wanted the movement to be on more elements than just the text, I could easily add new elements to the movement by making them 3D layers.  So I made 2 new comps to test, find the right settings, and decide if there was a technique I preferred.  On the text layer itself, I was able to apply the wiggle with some experession controls, no problems at all.  In my second comp, when I employed the use of Sure Target (which itself uses thw Wiggle Experssion with controls), I found that my text would, at some random frame, suddenly pop over to X-0, and nothing I could would prevent it. 
        So there it is... 3 different situations in the last few days... different variables at play in each one, but a similar issue.  The only commonality here is that all 3 issues involved 3rd party plugins, though all from different companies (Cycore, Red Giant, and Video Copilot), so maybe there is something to that... but there has to be more to it.
        My next step is to try and replicate these issues at home, just to rule out the very unlikely possibility that this machine is the culprit.
        Appogies for the length of this post - I know that will prevent some of you from reading it, but for those who do and can perhaps offer some theories or insights, I truly appreciate it.
    - Will
    FWIW the system I am using is a 2013 iMac 3.4GHz i7 with 16GB of RAM running OSX 10.8.4 and the latest version of Creative Cloud.

    Hi Guys,
       Thanks for the repsonses.  Todd, my versions for everything are as follows:
    After Effects 12.0.0.404
    FORM 2.0.5
    Cycore Effects HD 1.7.5
    CC Twister 1.6
       There are no updates available for AE, the version we have of FORM is actually higher than what they have on their update pafe (they list 2.0.4), and the Cycore stuff is integtrated now, so I would expect any updates along those lines to be delivered via CC desktop.
       So, whatever is causing the issue(s), I don't think versions are behind it.  Even though the cache bugs that Mylenium referenced have been tended too, perhaps not all the bugs have been squashed.  When I'm back in that project, I will try disabling the cache and fast previews to see if it makes a difference.

  • Premiere Pro CC won't render single frame cuts.

    I'm cutting a corporate video with a glitchy treatment, so there are tons of shots that are only held for a single (or two) frames. When I want to render, the render sometimes only goes up to the single frame cut and then stops. No error messages. It doesn't crash (If I press cancel, it immediately puts me back into editing mode, with everything up to the single frame rendered). It just stops rendering.
    What gives? Help! D:
    Pieter

    OK.
    Let's see a bit of the sequence where the issue lies.

  • Single frame disappears when compressing with de-interlacing turned on

    I'm having trouble with a single frame - showing a lightning flash - disappearing after compression. I've found I need to turn on de-interlacing in the Inspector to avoid bad problems with the interlacing showing on edges when panning sidewards, but since I've turned de-interlacing on, this one frame disappears.
    I've tried making it a freeze-frame, held for several seconds. I've tried slowly zooming in on the same frame for several seconds. I've tried putting in compression markers all over it. In all cases, the lightning flash is there in Final Cut Pro, but disappears on compression.
    Any suggestions?

    I dont have the answer, but rather a similair problem. If you don't mind I will add it to your blog here so hopefully someone can answer both our problems with one solution.
    I have been compressing the same FCP sequence several times making only small changes to my sequence each time(adding and deleting certain photos per clients request). Now all of a sudden, one on the photos simply does not show up after being compressed. It renders just fine in FCP and exports to Compressor just fine, but after I compress it, when I play it, the two seconds of the sequence that is supposed to show a certain picture, it is just black.

  • Slow video down to single frame, pause a few seconds, then speed back up?

    I'm working with a video clip where I'd like to show a single frame for a few seconds. I think I can figure out how to slow down the video for a second or two surrounding the desired frame, but I can't figure out how to pause or freeze it at that point.
    I'd like it to be fairly smooth on the slowdown, stop, and start up, I'll also have the audio slow down and stop, I think it will be a neat effect.
    Any good ideas?
    iMac 20"   Mac OS X (10.4.10)  

    I'd like it to be fairly smooth on the slowdown, stop, and start up
    A possibility is to use the Time Remap free filter. Use the default Mode (Variable Speed) and keyframe the Speed control from 100% to 0% on the frame you want still, and back to 100%. You can also use the Smooth contextual command on the 0% keyframe to get a smooth speed change.
    What the filter does not do, though, is to change the audio speed...
    Piero

  • Single fram render madness

    Hello budding motioners...I thought I would see just how far I could push motion 3d, I have done some great work and really dont want to compromise on the render quality. However I am killing my power mac. The best approch to not crashing I thought would be to use image sequinces, so if a crash occurs I could start again form where it left off. However! when I set the time line to the next section rather than rendering a sequince it just goes ahead and renders a single frame, looks smug and says job done. What gives?
    Anyone seen anything like this before
    (I also have image corruption when things got a bit hairy when trying to do HD renders, so I have had to go back to SD ).
    Adam

    No, you are doing it correctly. It is just going to take a while to encode. You do realize that putting 3 hrs on a single layer DVD is a bit much. It is going to be so compressed that the quality is going to suffer, and suffer is an understatement. It's gonna be ugly. You need to think about either a dual layer DVD or splitting your movie into two chunks.
    K

Maybe you are looking for

  • HTML link

    We have a custom object. We want to be able to click a record from an analytics report and then go to the page layout of that record. For typical object like Account, we can accomplish this via ActionLink for the column in Analytics. However since th

  • Can't See Ipod Songs in Itunes??

    I have just upgraded to a new ipod nano 8mgb and I'm using itunes 9. I want to add songs to my ipod manually rather than using sync. I have managed to do this but I cant see the songs I've transferred in itunes like I have in the past. I can see them

  • I have a "?" on my address book icon.

    I have a "?" on my address book icon and it won't open. I am syncing to mobile me. My iPhone and iPad contacts still are there. ideas?

  • Odbc connectivity problem

    Hi all, when i am installing ECC 5.0 i got below error. "odbc connectivity problem, error executing sql command" what may be the reason. plz give me some solution. vinnu.

  • The battery of my macbook pro is always dying when I put it on standby

    Whenever I leave my computer on standby the percentage of my battery will go down. For example, it was 95% full and when I came back to it, only 77%. what is wrong here?