JMF / JFFMPEG - Slow / frame jerk

Hi !
I'm developping a mutimedia player, so I use jffmpeg to extend JMF possibilities
format.
My problem is that videos are really slow (I think it's due to the decompression process), so I would like to know if it's possible to create some kind of buffer
to limit this frame latency or if my code below isn't the best way to do it.
Here how I create my player :
  private Component c=null;
  private Player pl=null;
  private MediaLocator ml=null;
  ml=new MediaLocator(video);
  pl=Manager.createRealizedPlayer(ml);
   //Mute sound
   pl.getGainControl().setMute(true);
   c=pl.getVisualComponent();Thank you.

Hi !
I'm trying to play Divx and Xvid.
After creating the player I'll take the component with
  c=pl.getVisualComponent();and then in another class I add it to my JContentPane of my JFrame.
I've tried FOBS4JMF too but it stop while initializing the player (no error or anything)
Thank you for your help jcparques.

Similar Messages

  • Slow Frame Rates on Macbook Air

    I play online games on my macbook air, and it always seems to have slower frame rates than my windows laptop (like 5-10 vs 20-30).  I'm guessing battery preservation, but does anyone know how to unlock this?

    Yes SP, I play second life which has 3d graphics rendering.  I usually use mid-range graphics settings, and depending on where i am i use my macbook air or windows acer laptop.  I would expect the macbook air to be at least as fast (it is a newer machine as well as a mac!) but even winding down some of the more resource heavy settings i almost never get over 10 frames per second.  On the windows laptop, however, i am flying along at 25-30fps without any messing around. My screen resolution is 1440x900 - default i think on the macbook air?

  • Final cut pro slow frame rate

    So whenever I import P2 files into an event I seen to have a slower frame rate during playback. the footage is good because it plays normally in the import media window but it will at a slower frame rate once imported. the video format is 720p 24 frames.

    Where do you keep your projects and events? What are your system specs?
    Russ

  • Slow frame rate with Prosilica SmartCam

    Have here a Prosilica AVT GT1600C and a very slow frame rate...
    Here are my .icd information.
    I tried to cope with the balance between the ExposureTimeAbs and AcquisitionFrameRateAbs but dont help.
    The .icd file is attached (renamed to .txt), installed version: Vision 2013f2
    Does some of the vision cracks find some optimizing issues?
    thx in advance
    Attachments:
    Allied Vision Technologies GT1600C.txt ‏12 KB

    Ah well, yes...    the variables/options are:
    lighting - this is the most commonly overlooked, and often the easiest to fix;  use/buy more/better lighting!
    lensing - be sure you select a good quality lens (a good lens is more expensive but passes light better), and that the aperture is open as far as possible (unless you have depth of field issues)
    exposure duration - as long as possible relative to framerate desired or to prevent blurring if motion involved
    use of gain - this should be a last resort as "noise" increases with gain... but slight use of gain can be helpful under marginal lighting conditions
    Regards,
    Scott

  • K7N2 DELTA2 + 6600GT veyr slow frame rates...

    Hi!
    I just bought a Gigabyte 6600GT (I upgrade from a fx5700 Ultra) and I`m using it with a MSI K7N2 Delta 2 and I getting slow frame rates using old games like Formula 1 2002.  The extrange thing is that I use to play that game at full 60 fps with the old 5700 with fsaa4x (I saw similar sysconfigs in my friends pcs with relatively good speed)... Also I upgrade my PSU to an nspire 450w true power.  I used a lot of combination of nforce/forceware drivers with fresh installs but nothing.  The only speed up that I got is in benchmarks, for example Aquamark3 before (5700U): 29230, Aquamark After (6600GT) 45000, 3dmark03 before: 3200, after: 7800, pcmark05 after: 2100, before: 2992.  I`ll try a modded bios that I found here at the forums. 
    Any suggestions???
    Here my sys specs:
    MSI k7n2delta2-LSR
    AthlonXP 2800+ (2083Mhz)
    1x512 Kingston Value Ram
    Gigabyte 6600GT AGP
    Maxtor 80GB and 60GB
    nSpire 450w True Power PSU

    A bit off: What are your temps? I'm interested, only.
    A bit on:
    http://www.bluebonepc.com/catalog/detail.asp?id=PS-NP-450
    +5V 40A
    -5V 0.5A
    +12V 20A
    -12V 0.8A
    +3.3V 28A
    +5VSB 2.0A
    Power Supply Connectors Motherboard: 1 x 20pin CPU: 1 x 4pin Hard drives: 6 + 1 SATA Floppy Drive: 2

  • JMF + JFFMPEG + RTP

    hi,
    I'm an Italian student and I'm new in Java/JMF programming!
    I'm tryng to create a videoconferencing software using jffmpeg for the codec-section.
    Since I'm not expert, I have a lot of problem... and I don't find examples on web...
    May someone help me?
    my question -now- is:
    How can I convert DataSource to Buffer??
    (I need buffer to work with Codec!!)

    Ciao,
    Sono contento di trovare un compagno di sventura. Anch'io sto lavorando con un gruppo di tre persone per sviluppare un progetto basato su JMF, ma ci stiamo rendendo conto che i problemi sono infiniti. Comunque, a forza di sbattere i denti, qualcosa abbiamo imparato.
    Non puoi convertire un oggetto DataSource in un oggetto Buffer. Una Data Source rappresenta una astrazione di una sorgente di dati mediali, mentre un oggetto Buffer rappresenta un frame di un flusso mediale (per esempio un fotogramma di un filmato).
    Per ottenere i Buffer corrispondenti ad una DataSource devi impiegare un opportuno Parser, che dipende dal formato dei dati (Per esempio devi impiegare RawBufferParser per dati provenienti da un flusso RTP).
    Comunque queste classi sono scarsamente o per niente documentate...
    Ti lascio il mio indirizzo email: [email protected]
    Non ne approfittare :)
    Ciao.

  • Screen presenter application in an RTP stream using JMF - very slow..

    I am trying to build a screen presenter application using JMF. I got the AVTransmit2 code to run with the Screen grabber data source. I use the following calls
    java AVTransmit2 screen://0,0,160,120/10 224.122.122.122 2222
    - java AVReceive2 224.122.122.122/2222
    The AVReceive does receive the screen data stream in RTP, but either there are too many artifacts(h263) or it is too slow(JPEG format). Is there a way to optimize the screen grabber data source or the encoding somehow to make this more efficient?

    ucla_jatt wrote:
    The AVReceive does receive the screen data stream in RTP, but either there are too many artifacts(h263) or it is too slow(JPEG format). Is there a way to optimize the screen grabber data source or the encoding somehow to make this more efficient?It's not really a question of efficiency, most likely.
    You're probably trying to broadcast a very, very high resolution video (your screen is probably a minimum of 1024x768) at a very, very high framerate (30 fps, I'd bet).
    A DVD runs at 640x480 at around 30 frames per second.
    You're trying to broadcast a video feed with over two and a half times as much visual information as a DVD has, and that's before you throw in that a DVD is encoded using MPEG4 compression.
    In the end, you're probably trying to broadcast 754,974,720 bits per second (1024x768x32(bit color)x30(fps)), or roughly trying to dump 1 CD-RWs worth of data to your network card per second...
    You want it to work well, you're going to need to decrease both the framerate and transcode the full-size video down into a smaller size...
    Or you can go into the DataSource code and modify the resolution of the screen capture image before it's compiled into the video. That would also work.

  • Play .3gp-files with JMF (jffmpeg)

    Hello,
    for a MMS-Application I'm trying to show 3gp-files with Java. I heard that it should work with jffmpeg but I still couldn't get it to work.
    I added the Codec:
    String JFFMPEG_VIDEO = "net.sourceforge.jffmpeg.VideoDecoder";
    try {
        Codec video = (Codec) Class.forName(JFFMPEG_VIDEO).newInstance();
        PlugInManager.addPlugIn(JFFMPEG_VIDEO,
                video.getSupportedInputFormats(),
                video.getSupportedOutputFormats(null),
                PlugInManager.CODEC);
    } catch (Exception e) {
        e.printStackTrace();
    }and then started the player.
    It already works for mpg-Videos, but if the file-extension is .3gp the player throws a javax.media.NoPlayerException: Cannot find a Player for : file://C:/test.3gp
    When I change the file-name to test.mpg the player initializes but doen't show a picture.
    How can I register the 3gp-extension? Or is anything else missing?
    Thanks in advance for any hint :-)

    I still didn't get it to work as I need it, but I made some progress so far:
    Instead of jffmpeg I used the FOBS for JMF Package (http://fobs.sourceforge.net/index.html) in addition with the JMF.
    Using this package allows you to play a 3gp-Video in Swing that is stored in your filesystem (!).
    I'm still having two problems with this solution:
    - I use a Java Webstart-framework and can't acces the user's harddisk, so I need to play the 3gp-Videos directly from memory (they are stored as byte[] in a database), but the current version of FOBS is limited to 3gp-Playback only from filesystem.
    - Each user of the application has to download and install JMF and FOBS for their OS (system-specific libraries). Especially FOBS is not always very easy to install, because it needs to change some of the jmf.properites. This can not be done with the JAR-distribution-System of WebStart and I'm expecting problems, when the users try to install both packages on their own.
    If you are developing a plain Swing-Application you might be satisfied with the possibilities of FOBS and JMF.
    Good luck :-)

  • Problems with solving a JMF - JFFMpeg/gstreamer/fobs4java mpeg4 - stream

    hi!
    im doing a final at univerity, the aim is to enable JMF to play AND stream mp3, mpeg4, aac
    im already trying to get more than the basic JMS-stream (h.263) to work, for a couple of days of intensive work. only things i know now, is, that it is a lot more work than i expected first.. tryed it with gstreamer, JFFMpeg, FFMpeg-java, fobs4java, ... only things which worked been local player .. but the JMS in combination with upper named plugins lost even the ability to stream anything...
    am i doing something very wrong, does any one know about some solutions which work already? or did same i am doing now?
    im wondering if theres some one out there who has a bit more know how or may have a few hints or even some solutions
    would be very happy about some help
    T
    Edited by: T-offline on Jul 8, 2008 5:25 AM

    Hi funnyjanni,
    May be I am writing this after 4 years.
    I am also in the stage when you faced the same problem. You might have found the solution to this.
    Please help me on this. I am trying to use jffmpeg to play UDP mutlicast stream.
    Thanks
    jklanka

  • Intro Movie at slower frame rate when uploaded

    The intro movie I created for my photography site plays too
    slow when uploaded, thus making the music finish long before the
    animation is done; needless to say, this makes for a very tacky
    intro!
    Does anybody know what I'm doing wrong?
    Thanks

    The frame rate is always set to the "prefered" frame rate.
    The actual frame rate depends on the server, the speed and the size
    of the swf file. The best you can do is to fully optomise the
    images before you import them into flash.
    As you are into photography I can understand the need for
    good quality images thefore it is a case of what do you prefer?
    Good images or good speed!

  • JMF Video Player Frame Rate comes down to zero

    Hi
    I am working on video Player using jmf. I am playing .mov file in the Applet. The appled have been signed and this part is working fine.
    I am able to get the video from server to the client using signed applet. But the problem now i am facing is that after few seconds of video download the frame rate and bit rate both comes down to Zero and the movie stops playing. I am using .mov extension with approximately 2-8 MB size of video.
    As i feels problem is coming with the http protocol. Because while playing the local video file with the same code it is performing well.

    This blog is written by one of the principle guys who writes the Flash plug-in.
    http://blog.kaourantin.net/?p=83
    I think it might have some answers for you--not the answer you want.

  • ISight + Slow Frame Rate

    Hello,
    I have been using my isight daily for several months now, and have not had any problems. Two days ago I started experiancing very low framerates, but for my side of the video. I can see the other person clearly and at a good frame rate, but the other person gets a slide show. When I'm not connected I see everything clearly, but when in the video chat, the little window with me in it is also very slow. What can be done to stop this.
    I chat with my girlfriend who has a powerbook with tiger so our set ups are almost identical.
    Can you please tell me who is mostlikely causing this and what can be done to fix it.
    Thank you,
    Stanislav Jidkov

     Hello rhondageske. Until you get a response from Stanislav Jidkov, here are a couple of other ideas you can consider.
    If you have already tried all the relevant suggestions in How to get iChat AV working again without success, both you and your chat buddy whith whom you experience this problem should test with several others to be more certain which system has the problem. Only the system that has trouble connecting with several others will need to do the requisite troubleshooting work.
    If you do not have enough available buddies for testing, see this list of Buddy Names for iChat Test for contact info for some users willing to help you test.
    If your buddy uses a PC, and if testing shows the problem is with the PC end of the connection, your PC friend may need to tune his system, adjust his video quality and frame rate, or consider the other suggestions for the PC side of the connection in Mac Video Chat with PCs.

  • Setting jmf bit rate/ frame rate

    Hi!!
    I'm with some problems configuring my video settings.
    Where should I go to set the frame rate od my video streaming?
    I'm using H263 format, and the frame rate is variable and I want to set it for a lower value so that my video streaming can be more "fluid".
    Should I go to Control Panel of the Windows and change there at Multimedia codecs?
    Regards from Portugal

    Here You have sample how to specify frame rate (in this exampke - 10f). I use here data from video caprure and create processor with ProcessorModel. Then I send it by network (RAW_RTP - in this dimentions it id H263)
    VideoFormat vf = null;
    Dimension size = new Dimension(176, 144);
    vf = new VideoFormat("RGB", size, Format.NOT_SPECIFIED,     null, 10f);
    Format [] formats = new Format[] { vf };
    ContentDescriptor cd = new ContentDescriptor(ContentDescriptor.RAW_RTP);
    ProcessorModel proc_mod = new ProcessorModel(dsCapt, formats, cd);
    dsCapt is DataSource from my capture device.
    for details look: JVidCap file from : http://java.sun.com/products/java-media/jmf/2.1.1/solutions/JVidCap.html

  • Using JMF in JInternal Frames

    Hello,
    I'm am using several JInternalFrames within a desktop pane. Some of these frames have a JMF visual component.
    Is it possible to ensure that if internal frames are selected that they are not obscured by a visual component on other frames??? It seems that the JMF visual component is heavyweight and is thus always on top of anything else.
    thanks,
    Oli Gosling

    Hello Oli,
    I have the same problem. I've tried a lot of things (like adding to panels instead of a getGetContentPane, to send back etc.), but I still can not send to back the Visual Component (as if it is on the glass pane of the JDesktopPane).
    Have you found a solution or should I think of some tabbed pane or splitted panes or even individual frames?
    thanks,
    stefan.
    PS: it may be a bug?

  • Mac os x plus quick cams using UVC = slow frame rates...

    well i took your advice and picked up a logitech 9000 pro quickcam. this camera is uvc compatible and works out of the box on my macbook running 10.5.2.
    the issue i am now having is that the uvc driver is bare bones and doesn't give any way to change the high resolution and low frame rate. the result is that the camera while very sharp gives unacceptable performance approaching 5 fps in any application including quicktime recording.
    any ideas on how to resolve this annoyance? the uvc on the mac is unusable for me at this time because i communicate in American Sign Language and need normal smooth video that one gets with the built in i-sight.
    thanks in advance!

    Unfortunately, I've not located any OSX drivers or software that allow higher framerates with standard UVC cams. There are a couple of options for you though - run bootcamp and run XP when you need to do signing, using the Windows software and drivers that came with your 9000. Or, buy an old Sony video camera, anything with firewire out will do, and are always available on eBay for about what you paid for the 9000.
    John F

Maybe you are looking for

  • ASA5500 using Windows 7 computer as NTP server

    I have an ASA5510 connected to a computer running Windows 7 (the NTP Server) on its "inside" interface. Using the ASDM, I have configured the ASA5510 to use the Windows 7 as its NTP server (my architecture forces me to use a local machine as an NTP s

  • Batch no. assignment to SFG/FG same.

    Hi PP Gurus, Please let me know any possibility for assigning the same external no. range for Semi-finished and Finish good? Is it possible using standard SAP ECC 6.0? Regards, Abu Arbab

  • Add-AdGroupMember. Passing variable in Identity inconsistent.

    Can't get variable to work correctly within the identity parameter. Here is what I am trying to run: $sitename="Site" add-adgroupmember -Identity "cn=ACL_Facilities-$sitename_Read,ou=$sitename,ou=facilities,ou=file,ou=groups,dc=domain,dc=private" -me

  • How do you hide RFx responses on SAP Sourcing 10.0?

    Hi gurus, I'm new on SAP Sourcing 10.0. I want to know where can I go to write a script that will enable me to hide RFx responses. I want to write a script that will hide the RFx Responses tab so that all collaborators assigned to the RFx will not se

  • K7N2 Delta2 Platinium - System freezes when copying or writing to HDD

    I am experiencing a strange problem. I don't know what I have changet to my system but since 3 days ago I am geting this system lock up when I move or copy files from one HDD to another. Windows doesn't show any error message. When copying files, eit