JMF video resize goofyness

Im pulling a camara datasource through a firewire connection as a vfw and creating a processor from that datasource.The Videoformat is
VideoFormat("dvsd",new Dimension(720,480),VideoFormat.NOT_SPECIFIED,null,15f)
Then I process it
VideoDevices vd = new VideoDevices();
CaptureDeviceInfo videoCDI = vd.elementAt(0);
DataSource datasource = Manager.createDataSource(videoCDI.getLocator());
Processor proc = Manager.createProcessor(datasource);I then add it to a JFrame sized at 320x240
Problem is i get video but it looks like this
http://www.weathermaker.us/images/jmfproblem.jpg
Do I need an effect or something please help thanks?

no I dont think thats it because I used CaptureDeviceManager.getDeviceList(null); to get the CaptureDeviceInfo.Plus it looks fine at full resolution its only when it gets smaller that this happens.

Similar Messages

  • Jmf video fps problem

    Hi to all,
    I'm developing a program that takes frames from a video, which are currently working on a jmf player object, and display them with jogl in a GLJPanel. the video is 30 fps. But my display function is called 20 times per second. Therefore I'm loosing some of the frames and video cannot be seen smoothly. I guess that the problem is due to the jmf player's frame rate, because it is the only thing that triggers jogl display function. What I want to know is if there is a way of displaying a 30 fps jmf video by jogl bindings and if yes how? I'm taking the current frame and displaying it as a texture within the display function. Is it ok for my application?
    I will be glad if anyone can help me..Thank you very much.

    Two things you should know:
    1) You can't play ANYTHING in AE.  It's not an editing application, and it doesn't work like one... as in, "push the spacebar and video plays".  Nope.   You have to do a RAM Preview by hitting the zero key on the numeric keypad.
    2) You'll save yourself days of frustration and anger by learning the basics, which can be found here:
    Getting started with After Effects (CS4, CS5, CS5.5,  CS6, & CC)

  • JMF video streaming

    Hi all,
    I want to use JMF video streaming api but I have no idea how to do it.
    I want to create several "agents" where each agent streams a single video to a certain ip address . (actually i want each agent to stream to the same computer)
    I want in my application (not the agents applications) to capture each of these streams and display each of them seperately.
    How can this be achieved with JMF ?
    thx.

    no one ????

  • * JMF Video Server Codec *

    I have added another example to http://www.exactfutures.com/index02.htm which is an Effect that does nothing at all to the video data stream! However, do see below.
    Add it by setCodecChain (see example source TestEffect.java), and then whether you are running a webcam or video you will see no difference in the display or speed.
    To test on a PC you can hit on run.bat and then it may find your webcam to run TestEffect.
    Otherwise, to use for a video track, just set the final codec in setCodecChain to the ServerEffect Codec, and include ServerEffect.class and ServerEffect$SvrControl.class and ServerEffect$clientThread.class in the classpath or application directory.
    So what does this Effect actually do?
    If once running you use your web browser to find http://localhost:8080/any.jpg then JMF will serve it a jpeg. Further, if you load http://localhost:8080/ and hit the link, or just hit http://localhost:8080/camapplet.htm directly, then an applet will pop up streaming the source jpegs.
    This can also stream video over a LAN if localhost is replaced with the IP address. If you try this over a network (adjust your firewall and/or router and/or security settings) then one can achieve good results, especially given the simplicity.
    The code to view the output of this JMF Video Server Codec is like for any other such stream, it does not need JMF, and there are Axis video server cam examples on this forum or elsewhere.
    I have added this because it offers an alternative to using RTP (although one can still use that alongside for the audio if required). It may not be as fast as RTP, although with improving broadband speeds that is becoming less of a issue, but it is simpler and robust.
    It is also interesting to see how such a simple plug in can add such useful further functionality. It may help someone. Enjoy.

    write a codec for jmf that accepts, i think rtp type 96 and something else, look in log files, answer is there

  • Video Resize and JMF libraries import

    well I actually have 2 questions the first is how may I resize this video? (Someone helped me with with this code in the forum before but couldnt ask the same person on how to resize)
    ventanm.add(new Graphs(), BorderLayout.CENTER);
    public Graphs(){
             super(new BorderLayout());
             File f = new File(videofile);
             if (player != null)
             player.close ();
             player = new MediaPlayer();
             try {
               MediaLocator locator = new MediaLocator( f.toURI().toURL() );
               player.setMediaLocator(locator);
               player.setPlaybackLoop(true);
               //player.addControllerListener (this);
               player.prefetch ();
               this.add(player, BorderLayout.CENTER);
               player.start ();
             } catch(Exception e) {
               e.printStackTrace();
               add(new JLabel("Error"));
           }And the second question would be on how can I import the JMF libraries? Because the computer im woring on has JMF but the computer in which I will be doing my presentation dosen't? so anyone who could help?

    i tried using this
    player.setSize(150,100);
    dosent seem to do anything.. :/

  • JMF Video Capture in Vista

    Hey all,
    I have done a lot of searching on this matter, but most of the threads are old. I am wondering if there has been any updates or if this issue has been solved in any way.
    I am trying to create an applet that captures an image from a webcam. I created the applet, using sample code found somewhere on these forums, and it works perfectly. I modified it to take 6 screenshots instead of 1 when the Capture button is pressed, and that works perfectly. However, when I developed this I was at work (Windows XP). When I got home and attempted to test my work further I got the following error:
    java.lang.RuntimeException: No permission to capture from applets
    java.lang.RuntimeException: No permission to capture from applets
    javax.media.NoPlayerException: Error instantiating class: com.sun.media.protocol.vfw.DataSource : java.lang.RuntimeException: No permission to capture from applets
         at javax.media.Manager.createPlayerForContent(Manager.java:1362)
         at javax.media.Manager.createPlayer(Manager.java:417)
         at javax.media.Manager.createRealizedPlayer(Manager.java:553)
         at lib.snapshot.applet.Snapshot.init(Snapshot.java:68)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)I read, through these forums and searching google, that IE is in a sandbox in Vista, which makes signed applets only able to access java related data and certain temporary directories, rather than the whole system like other OS's. However, we have other signed applets that create directories in Program Files folders, download files from the server, etc that work fine in Vista, so that makes no sense. Also, I have disabled Protected Mode on my my machine and turned all security measures off, to no affect. Also the same thing happens in Firefox.
    Has anyone found a way around this for Vista? Does anyone know of another easy to use java API for doing this that works in both Vista and XP? Has anyone who has encountered this problem ended up developing something similar in another language (flash, etc)?
    I require this applet for taking snapshots for a project for my job. I had preferred Java, because our other applets are all Java and I didn't want to mix techonologies too much. But if there is no way to do this in a stable way for both Vista and XP, then I will have to look at other languages.
    Thanks for the help.
    Bryan

    compbry, the fundamental problem is that Vista is 3 years old and the latest releast of JMF is like, 5 or 6 years old. So, there's nothing in the realm of "Vista compatibility" for JMF.
    That said, to my knowledge no one has ever gotten JMF to capture video from inside an applet in Vista, JMF installed on the computer or not.
    However, if you have JMF installed, you can easily run a JMF web-start app that will work just fine in Vista, that would allow you to do whatever it is you're needing to do.
    But if you're going in a different direction, I'd suggest looking at the Adobe Flex API. It's free and from what I've researched about it, it makes webcam and microphone capture damn easy. If you've got a decent web server that will allow you to do ColdFusion or (can't remember the term for it, but you can write Java code that will run on-demand on the web host that your Flex application can talk to to do stuff like upload the images, etc...), it should be a relatively easy and short as far as LOC is concerned, minus of course the learning curve associated with learning something new (which is why I've only researched it, but I would've played with it too had I had a "decent webserver" ;-)

  • Can't keep the original size of the video (Resize Video option is stuck on 640 x 480h)

    I am importing .mp4 files set at 874 x 480h. Somehow AME makes the output size 640 x 480h, which significantly vertically compresses the video.
    I tried so many different ways of uncheking the Rewsize Video box, checking it again and specifiying 874 x 480h. Best I got is 874 x 480h with black borders left and right and the actual video to be rendered in output tab is still at 640 x 480h.
    It seems that Resize Video option is stuck on 640 x 480h and can not be changed.
    Is there some bug in AME I have to work around? Or is it a problem with the original video? If the problem with an original video what exactly do I ask my client to rerender it like if I already receive it in 874 x 480h, can view/play it in this size, AME recognizes the original video to its true size, shows it to its true size if 1x1 pixel preview is selected. However will show a distorted 640 x 480h version if Aspect Ratio Corrected Preview is selected (even with the Resize Video box unchecked)?

    Hi Marion,
    Thanks very much for your message. I have downloaded that program and it's definitely handy for examining the details of the original file. You mentioned in your message about not having to recode the file - The file I'm editing is originally from a Q3 Zoom video recorder and I can use their in-built software (handyware) to trim the file - this doesn't recode the file and so the file size just reduces by the required amount. Unfortunately there is no facility to crop the file with this software - I've looked for other software that would allow cropping without having to recode the file but I haven't found anything suitable for a simple procudure like this - do you know of any software that allows you to crop a file without recoding? Thanks.

  • IPhone 4 original video resized when sending MMS :-(

    Hello,
    I was just unhappily surprised upon finding out that the original HD video I shot of my baby was resized to a lower quality when I sent it via MMS. The lower quality video was later imported into iPhoto. Is there a way to prevent the automatic resizing of the original video? I couldn't find a switch for it in Settings.
    Thanks,
    Ira

    For an HD video that is larger than the overall email message size limit to be sent and received via email, you can get a YouTube account if you don't already have one and upload the video to YouTube with your YouTube account in full size and resolution - which must be done when connected to an available wi-fi network for HD video. When the upload is finished, you can notify others via email that the video is available on YouTube to be viewed with a direct link to the video.
    If you don't want the video available to the public, you can select Unlisted for the video so only those with the link can view it, or you can make the video Private so only specific YouTube users can view the video.
    The overall message size limit for MMS is quite small, which was/is a poor man's way for cellular carriers and cell phone manufacturers to provide very limited email exchange with a cell phone - before there were any smart phones or way before phones in the smart phone category became mainstream, but SMS/MMS is a cash cow for cellular carriers which they make a fortune with.

  • Video resizes to 4:3

    working with a DV NTSC 48 kHz Anamorphic video in FC Pro 5.1.2 - I select a small clip (8 seconds) and do send to motion and and add some text and then save. when i go back to FC that clip is now resized to 4:3 instead od 16:9 like it was originaly. I am sure it is something stupid that i am missing but could use a little help.
    G5   Mac OS X (10.4.8)  
    G5   Mac OS X (10.4.8)  

    you are correct about it forgetting the flag, So i put a check on it in item propeties in FC and it still does the same thing. Kind of frustrating. When in Motion it is anamorphic it just seems to loose it on the return trip.

  • JMF video while in Fullscreen Exclusive

    I am trying to show a video (using JMF) in my window while in fullscreen exclusive mode. Its for a game. It works occasionally. What I've done is turned of the repetitive rendering (from the game loop), and just added the visual component to the window (it can do its own painting). Sometimes it works fine, other times you just hear the sound, and other times its just grey or black.
    Does anybody have any idea how to get the current frame, and draw it so that I can keep the repetitive rendering (from the game loop) running.
    Any other ideas are appreciated too.

    Never written a fullscreen exclusive application. In fact, I've never even heard of such a thing.
    http://download.oracle.com/javase/tutorial/extra/fullscreen/exclusivemode.html
    "In full-screen exclusive applications, painting is usually done actively by the program itself"
    Ah. So no, I don't think JMF would support that because it's not going to be actively rendering, only passively rendering in response to paint requests. It's AWT/Swing based, after all...
    But, the fact that JMF doesn't support it does not mean JMF can't support it. JMF provides a custom Renderer interface which you could implement to actively render the stuff. It'll essentially give you a copy of the video frame in a Buffer object which you can then turn into an image using the BufferToImage class and then render that however you'd render an image for a full screen exclusive application...

  • JMF; Video watermarking in java?

    Can any one suggest me how to proceed for this problem?
    Input is quicktime file. A watermark should be added to the video track (this can be a small black square in the upper left hand corner of the screen, or something more elaborate). The watermarked movie is output to a new Quicktime file.

    Is n't that qtjava out of JMF? i mean it looks like it has got its own packages of Apple

  • Problem with video resize

    I am a beginner in the world of video. I am trying to prepare a highlight film for girls soccer but have run into a snag. I have made a short clip in final cut pro. I resized the video in FCP to 63% with the help of the motion tab in FCP. Saved it as a quicktime movie (self contained). I then imported this into Apple Motion where I am creating the highlight section for this senior. I have masked the black area around the video. I then save the Motion project as quicktime movie (self contained) and placed it back into the FCP project. It appears to be of good quality on playback (computer monitor) but after I burn the whole highlight film, those sections that had been resized appear jagged and of poor quality. Any thoughts?

    Not nearly enough information but we'd first question your workflow. Why are you going to Motion at all for a simple resize?
    "Jagged" implies a field mismatch so try applying a field swap filter, which you may need to locate online and purchase, or try moving the weird clip up one pixel (this tries to swap the fields but it doesn't always work).
    Sorry you're not enjoying Apple's promised instant video gratification. Video is quite complex, especially if you are using multiple applications. Each has separate and different interfaces and confusing user-controllable preferences. Video is harder than it needs to be, true.
    I can assure you that in a few weeks you will be having much more fun with your new tools but, if you look in the box, you will see there are about six thousand pages of manuals and online PDFs. the answer to your workflow issues lies in those manuals.
    bogiesan

  • Video resizes in keynote

    Am using keynote for video playback in theatre show.
    When video is played as quick time file it fills the screen exactly.
    When played back in Keynote it is a smaller size and does not fill screen.
    Have tried adjusting screen resolution and slide resolution to make it fit.
    Why does keynote resize video and how do I stop it from doing this?
    Thanks for reading and I appreciate advice.
    Cheers,

    This is not possible in Keynote -- each Keynote slide it treated as having its own instance of the video. There are other presentation applications that allow this, and you might check out Brian Peat's list of presentation software to see if there is a useful alternative suitable for you.

  • Video resizing after motion

    working with a DV NTSC 48 kHz Anamorphic video in FC Pro 5.1.2 - I select a small clip (8 seconds) and do send to motion and and add some text and then save. when i go back to FC that clip is now resized to 4:3 instead od 16:9 like it was originaly. I am sure it is something stupid that i am missing but could use a little help.
    G5 Mac OS X (10.4.8)

    Yes, but you have to export it. It will not come over using XML I don't believe.

  • JMF video capture on OS X?

    Hello,
    is it possible to somehow do video capture under JMF? I use Mac OS X on Macbook Pro. I have found Quicktime for Java, but I would rather avoid using proprietary QuickTime APIs and work with portable JMF API. When I run JMF studio, I only see audio capture device.
    Juraj.

    You should take a look at the hardware requirements and supported formats for the cross platform version of JMF.
    http://java.sun.com/products/java-media/jmf/2.1.1/formats.html
    http://java.sun.com/products/java-media/jmf/2.1.1/requirements.html
    Be aware that JMF does not have its own video format, but supports proprietary formats like Quicktime.
    regards

Maybe you are looking for

  • Do you need an additional slot for the RBS and does the RBS count as an additional hard drive in the Sharepoint 2013 Server farm?

    Hello Community     If you have a clustered Sharepoint 2013 Server farm running RAID 10, on a clustered WS2012 R2 server that has 10 hard drive slots:         (4) drives being part of the Sharepoint 2013 Server farm         (1) drive for the Web App

  • Backing up database tables

    Hi guys. If I need to make weekly copies of no more than 10 tables from one particular schema located in one database, and not a copy of the entire database, is it poor practice to use export (and import) in order to obtain regular up to date copies

  • PC Hardware Interface

    I will be purchasing a MacMini and Airport Extreme.  I want to attach an existing IBM compatible PC (running Windows XP OS) to the network.  Can someone please tell me:      1.  What PC hardware is required to interface with the Airport?      2.  Doe

  • Re-Installing Final Cut Studio 5 on Mac OSX 10.6.8

    I used to use FCP 5 on my Mac using OS 10.5.8, after I upgraded to 10.6, I realize there's some problem opening FCP files, I tried to unistall and re-install FCP 5 on my Mac now, which is using 10.6.8 now, error message shows "Your computer does not

  • Calling fm in new task only when it is possible.

    I'm calling a fm in a new task, and I need to check it is possible to open a new task before proceeding. How can I check the number of open tasks? How can I check the maximum number of tasks allowed? Thanks in advance.