Webcam's sequencial frames

Hi I am trying to get some images (10 frames per second) from a webcam so that later I can detect the moving objects.. My code is the following but I dont know how to change it so that I can get 10 frames per second.Any help?
package video;
import java.io.*;
import java.net.*;
public class Main {
public static void main(String[] args) {
try {
String url ="http://studiocam1.disp.duke.edu/view/index.shtml";
HttpURLConnection con = (HttpURLConnection)((new URL(url).openConnection()));
BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream("c:\\image.jpg"));
con.setDoInput(true);
con.setDoOutput(false);
con.setRequestMethod("GET");
BufferedInputStream in = new BufferedInputStream(con.getInputStream());
int bt = 0;
byte[] buffer = new byte[4096];
while ((bt = in.read(buffer, 0, 4096)) > -1) {
out.write(buffer, 0, bt);
in.close();
out.close();
System.out.println("Image saved");
} catch(Exception e) {
e.printStackTrace();
}}}

Very funny..Anyway I came up with the following code but I manage to have an image every 2-3 seconds.
Do you think it's my program's fault or it has something to do with the web cam or the connection or something?
package video;
import java.io.*;
import java.net.*;
import java.util.Timer;
import java.util.TimerTask;
public class Main {
Timer timer;
public Main(){
timer= new Timer();
timer.schedule(new RemindTask(),
     0, //initial delay
     100); //subsequent rate
class RemindTask extends TimerTask {
int i=10;
public void run() {
if(i >0){
try {
String url ="http://studiocam1.disp.duke.edu/jpg/image.jpg";
HttpURLConnection con = (HttpURLConnection)((new URL(url).openConnection()));
BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream("c:\\image"+i+".jpg"));
con.setDoInput(true);
con.setDoOutput(false);
con.setRequestMethod("GET");
BufferedInputStream in = new BufferedInputStream(con.getInputStream());
int bt = 0;
byte[] buffer = new byte[4096];
while ((bt = in.read(buffer, 0, 4096)) > -1) {
out.write(buffer, 0, bt);
in.close();
out.close();
System.out.println("Image"+i+"saved");
} catch(Exception e) {
e.printStackTrace();
i--;
} else{
System.out.format("Time's up!%n");
timer.cancel(); }
public static void main(String[] args) {
System.out.format("About to schedule task.%n");
new Main();
System.out.format("Task scheduled.%n");
}}

Similar Messages

  • No Hassle Sinlge Frame Access From WebCam

    Does anyone have a READABLE solution? The example given in JMF solutions is far to complicated for someone new to JMF. What about the first way of doing the frame access? Can I just treat the output buffers from my webcam datasource as frames? The JMF docs say that a codec can operate in frame-based or non-frame-based modes. How is this set/checked? The example also swaps the input and output buffer. Is this necessary? Then it simply appears to use the buffer as a frame. I'm still in early development ATM so I can't test this. I'm sure it works OK but it doesn't actually show how to turn that buffer into an image, or define under what circumstances it's possible.
    I'm a little disappointed with learning curve for this part of Java, but I guess it's not as widely used as the rest of the language. It's all very well to show the hard way of doing things - i learned a fair bit pulling it apart - but teasing me by telling me there's another way and then not showing it is unfair! :-)
    Any code would be greatly appreciated from some of you veterans out there.
    Thanks very much in advance,
    Aaron Oxford (JSPWebTech)
    [email protected]

    I am not sure I understand your question, but to get an image from a webcam in a java application, you can use the Java Twain from http://www.gnome.sk
    Erika

  • Is it possible to trigger a webcam?

    I am trying to make a breakdown experiment
    where a high voltage RF pulse is sent of a set of electrodes in front
    of a viewport. My pulse is typically about 100mS. I want a cheap/simple
    way to see if I have an arc (to correlate that with my other signals).
    I think a webcam will have as much resolution as I need. Does anybody
    knows if I can trigger the webcam using labview (or some other
    program). I can use a second trigger before the power pulse as needed,
    but I don't know if those libraries mentioned in other posts allow the
    control of the webcam to capture images using a trigger event, and/or
    how many FPS can I obtain from a webcam.
    Basically, I am thinking of sending a pulse, letting the webcam to
    capture frames for say 0.5-1 second. And display the images captured,
    so I can save or whatever. I am not interested in analysis. The
    contrast should be good, light (arc) and darkness (no arc). Could
    anybody recomend a camera that works. I want something as simple to
    setup as possible, I don't know if there is a preferable model or
    something. For example, I was thinking of the Logitech QuickCam Pro
    4000, or the Phillips Vesta PCVC 680K which seems to be the favorite of astrophotographers (good sensitivity in low light conditions).
    Thank you very much for any help.
    Darien

    What immediately comes to mind with a web cam is that at high
    resolution the frame rate is liklely to be 15 frames per second, that
    means that you could typically expect about two or three frames of full
    resolution data. I have had higher but it's unstable more often than
    not and easily stopped by any other activity on the USB bus.
    As far as triggering is concerned I guess you just aquire data in a
    circular buffer and have an external trigger start and if necessary
    stop the aquisition into the circular buffer.
    If you use a video camera you should get better contrast range, higher
    dynamic range, significanlty better focul distances and shutter speed
    control. Also if you use firewire you will get all the frames. You
    could also record the data without the computer as a high voltage spike
    of the type you are describing is likely to stop or ruin just about
    everything electronic not within a faraday cage, this could be
    challenging when you are tyring to put a hole in the cage to poke a
    camera through!
    I guess you have some specially coated glass for that?

  • FrameGrabbingControl returns null

    In my code i want to grab a frame from a video and displey it in another window.But the problem is that " FrameGrabbingControl fgc =(FrameGrabbingControl) player.getControl("javax.media.control.FrameGrabbingControl");" returns null.Please help me by pionting out the error. Thanks in advance.
    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.*;
    import java.lang.Thread;
    import java.util.*;
    import java.lang.*;
    import java.lang.String;
    import java.net.URL;
    import java.net.MalformedURLException;
    import java.io.IOException;
    import java.util.Properties;
    import javax.media.*;
    import java.applet.*;
    import javax.swing. *;
    import javax.swing.border. *;
    import javax.media.datasink. *;
    import javax.media.format. *;
    import javax.media.protocol. *;
    import javax.media.util. *;
    import javax.media.control. *;
    import java.awt.image. *;
    import com.sun.image.codec.jpeg. *;
    import com.sun.media.protocol.vfw.VFWCapture;
    import java.io.*;
    import javax.media.control.FrameGrabbingControl;
    //import com.sun.media.util.JMFSecurity;
    * This is a Java Applet that demonstrates how to create a simple
    * media player with a media event listener. It will play the
    * media clip right away and continuously loop.
    * <!-- Sample HTML
    * <applet code=SimplePlayerApplet width=320 height=300>
    * <param name=file value="sun.avi">
    * </applet>
    * -->
    public class grabframe extends Applet implements ControllerListener,ActionListener
    static int shotCounter = 1;
    Button button;
    // media Player
    Player player = null;
    // component in which video is playing
    Component visualComponent = null;
    // controls gain, position, start, stop
    Component controlComponent = null;
    // displays progress during download
    Component progressBar = null;
    boolean firstTime = true;
    long CachingSize = 0L;
    Panel panel = null;
    int controlPanelHeight = 0;
    int videoWidth = 0;
    int videoHeight = 0;
    * Read the applet file parameter and create the media
    * player.
    public void init()
    setLayout(new BorderLayout());
         setBackground(Color.white);
         panel = new Panel();
         //panel.setLayout( null );
         add(panel,BorderLayout.SOUTH);
         panel.setBounds(0, 0, 320, 240);
    button=new Button("GRAB FRAME");
              panel.add(button);
              button.addActionListener(this);
         // input file name from html param
         String mediaFile = null;
         // URL for our media file
         MediaLocator mrl = null;//MediaLocator describes the location of the media content while
         URL url = null;//URL specify the location of the media
         // Get the media filename info.
         // The applet tag should contain the path to the
         // source media file, relative to the html page.
         if ((mediaFile = getParameter("file")) == null)
         Fatal("Invalid media file parameter");
    //System.out.println("mediafile :"+mediaFile);
         try
         url = new URL(getDocumentBase(), mediaFile);//return a new URL using an existing URL as reference
    //     System.out.println("url :"+url);
                   mediaFile = url.toExternalForm();//return a string representation of the URL
    //     System.out.println("mediafile :"+mediaFile);
              catch (MalformedURLException mue)
         try
         // Create a media locator from the file name
         if ((mrl = new MediaLocator(mediaFile)) == null)
              Fatal("Can't build URL for " + mediaFile);
         // Create an instance of a player for this media
         try
              player = Manager.createPlayer(mrl);
                   catch (NoPlayerException e)
              System.out.println(e);
              Fatal("Could not create player for " + mrl);
    /* catch (CannotRealizeException e)
              System.out.println(e);
              Fatal("Could not create player for " + mrl);
         // Add ourselves as a listener for a player's events
         player.addControllerListener(this);
              catch (MalformedURLException e)
         Fatal("Invalid media file URL!");
              catch (IOException e)
         Fatal("IO exception creating player for " + mrl);
         // This applet assumes that its start() calls
         // player.start(). This causes the player to become
         // realized. Once realized, the applet will get
         // the visual and control panel components and add
         // them to the Applet. These components are not added
         // during init() because they are long operations that
         // would make us appear unresposive to the user.
    }//end of init
    * Start media file playback. This function is called the
    * first time that the Applet runs and every
    * time the user re-enters the page.
    public void start()
         //$ System.out.println("Applet.start() is called");
    // Call start() to prefetch and start the player.
    if (player != null)
         player.start();
    * Stop media file playback and release resource before
    * leaving the page.
    public void stop()
         //$ System.out.println("Applet.stop() is called");
    if (player != null)
    player.stop();
    player.deallocate();
    public void destroy()
         //$ System.out.println("Applet.destroy() is called");
         player.close();
    * This controllerUpdate function must be defined in order to
    * implement a ControllerListener interface. This
    * function will be called whenever there is a media event
    public synchronized void controllerUpdate(ControllerEvent event)
         // If we're getting messages from a dead player,
         // just leave
         if (player == null)
         return;
         // When the player is Realized, get the visual
         // and control components and add them to the Applet
         if (event instanceof RealizeCompleteEvent)
         if (progressBar != null)
              panel.remove(progressBar);
              progressBar = null;
         int width = 320;
         int height = 0;
         if (controlComponent == null)
              if (( controlComponent = player.getControlPanelComponent()) != null)
                        //controlPanelComponent provides the default user interface for controlling the player
              controlPanelHeight = controlComponent.getPreferredSize().height;
              panel.add(controlComponent);
              height += controlPanelHeight;
         if (visualComponent == null)
              if (( visualComponent = player.getVisualComponent())!= null)
                        //visualComponent provides display component(where the visual media is recorded) of the player
              panel.add(visualComponent,BorderLayout.CENTER);
              Dimension videoSize = visualComponent.getPreferredSize();
              videoWidth = videoSize.width;
              videoHeight = videoSize.height;
              width = videoWidth;
              height += videoHeight;
              visualComponent.setBounds(0, 0, videoWidth, videoHeight);
         panel.setBounds(0, 0, width, height);
         if (controlComponent != null)
              controlComponent.setBounds(0, videoHeight,width, controlPanelHeight);
              controlComponent.invalidate();
         } //end of RearizedCompleteEvent
              else if (event instanceof CachingControlEvent)
         if (player.getState() > Controller.Realizing)
              return;
         // Put a progress bar up when downloading starts,
         // take it down when downloading ends.
         CachingControlEvent e = (CachingControlEvent) event;
         CachingControl cc = e.getCachingControl();
         // Add the bar if not already there ...
         if (progressBar == null)
         if ((progressBar = cc.getControlComponent()) != null)
              panel.add(progressBar);
              panel.setSize(progressBar.getPreferredSize());
              validate();
         } //end of CashingControlEvent
                   else if (event instanceof EndOfMediaEvent)
         // We've reached the end of the media; rewind and
         // start over
         player.setMediaTime(new Time(0));
         player.start();
         } //end of EndOfMediaEvent
                   else if (event instanceof ControllerErrorEvent)
         // Tell TypicalPlayerApplet.start() to call it a day
         player = null;
         Fatal(((ControllerErrorEvent)event).getMessage());
    }//end of ControllerErrorEvent
                   else if (event instanceof ControllerClosedEvent)
         panel.removeAll();
         }//end of ControllerClosedEnent
    }//end of controller update
    void Fatal (String s)
         // Applications will make various choices about what
         // to do here. We print a message
         System.err.println("FATAL ERROR: " + s);
         throw new Error(s); // Invoke the uncaught exception
                   // handler System.exit() is another
                   // choice.
    public void actionPerformed(ActionEvent ae)
    Dimension imageSize = null;
    String str=ae.getActionCommand();
    if(str.equals ("GRAB FRAME"))
    Image photo = grabFrameImage();
         if (photo != null)
    MySnapshot snapshot = new MySnapshot(photo, new Dimension(imageSize));
         else
    System.err.println("Errore : Impossibile grabbare il frame");
    repaint();
    * Grabba un frame dalla webcam @restituisce il frame in un buffer
    public Buffer grabFrameBuffer()
    if (player != null)
         FrameGrabbingControl fgc =(FrameGrabbingControl) player.getControl("javax.media.control.FrameGrabbingControl");
    System.out.println(fgc );
         if (fgc != null)
    return (fgc.grabFrame());
         else
    System.err.println("Errore : FrameGrabbingControl non disponibile");
    return (null);
    else
         System.err.println("Errore nel Player");
    return (null);
    * Converte il buffer frame in un'immagine
    public Image grabFrameImage()
    Buffer buffer = grabFrameBuffer();
    if (buffer != null)
    BufferToImage btoi = new BufferToImage((VideoFormat) buffer.getFormat());
    if (btoi != null)
    Image image = btoi.createImage(buffer);
    if (image != null)
    return (image);
              else
    System.err.println("Errore di conversione Buffer - BufferToImage");
    return (null);
         else
    System.err.println("Errore nella creazione di BufferToImage");
    return (null);
         else
    System.out.println("Errore: buffer vuoto");
    return (null);
    class MySnapshot extends JFrame
    protected Image photo = null;
    protected int shotNumber;
         public MySnapshot(Image grabbedFrame, Dimension imageSize)
    super();
    shotNumber = shotCounter++;
    setTitle("Immagine" + shotNumber);
    photo = grabbedFrame;
    setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
    int imageHeight = photo.getWidth(this);
    int imageWidth = photo.getHeight(this);
    setSize(imageSize.width, imageSize.height);
    final FileDialog saveDialog = new FileDialog(this,"Salva immagine", FileDialog.SAVE);
    final JFrame thisCopy = this;
    saveDialog.setFile("Immagine" + shotNumber);
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    saveDialog.show();
    String filename = saveDialog.getFile();
    if (filename != null)
    if (saveJPEG(filename))
    JOptionPane.showMessageDialog(thisCopy,"Salvata immagine " + filename);
    setVisible(false);
    dispose();
                             else
    JOptionPane.showMessageDialog(thisCopy,"Errore nel salvataggio di " + filename);
                             else
    setVisible(false);
    dispose();
    setVisible(true);
    public void paint(Graphics g)
    g.drawImage(photo, 0, 0, getWidth(), getHeight(), this);
    public boolean saveJPEG(String filename)
    boolean saved = false;
    BufferedImage bi = new BufferedImage(photo.getWidth(null), photo.getHeight(null), BufferedImage.TYPE_INT_RGB);
    Graphics2D g2 = bi.createGraphics();
    g2.drawImage(photo, null, null);
    FileOutputStream out = null;
    try
    out = new FileOutputStream(filename);
    JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
    JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(bi);
    param.setQuality(1.0f, false);
    encoder.setJPEGEncodeParam(param);
    encoder.encode(bi);
    out.close();
    saved = true;
         catch (Exception ex)
    System.out.println("Errore salvataggio JPEG: "+ ex.getMessage());
    return (saved);
    }//end of class SimplePlayerApplet

    Hmm....
    some of that looks very familiar to me :-)
    http://forum.java.sun.com/thread.jspa?forumID=28&threadID=570463
    1. post your code wrapped in code tags and it'll display it nicely.
    2. post to the Java Media Framework topic,
    I haven't tried JMF within an applet.
    Have you tried getting it working in an application first ?
    That should simplify your debugging to start with.
    I suspect the Player hasn't started yet, or isn't in a realised state.
    regards,
    Owen

  • How Do I Reset Indicators in User Interface?

    I have a VI that has got out of control.  I have created several test sequences that were developed, proven and built into individual VIs.  I created a Main VI and placed (cut and paste) each invidual test VI into a sequencial Frame.  Long story short; The main screen looks good, but the test values and status indicators do not reset everytime the test is initiated (there is no loop).
    Question- How do I reset each of my indicators on my user interface when the test completes? 
    Thanks in advance,
    Rick Horwitz

    Try the following: Got to "VI properties...execution". Now place a checkmark for "Clear indicators when called". That might be enough.
    (If you are looking for a programmatic solution create an invoke node in the first or last frame as desired, wire it to a reference to the current VI and select method "renintialize all to defaults".)
    LabVIEW Champion . Do more with less code and in less time .

  • 2 DataSource from a Processor

    Hi all, does someone know why when i try to get 2 datasource from a processor, only the second seems to work?
    I want to duplicate the image of the webcam on the frame.
    //Choose the format and processor model
    Format[] format = new Format[1];
    format[0] = new VideoFormat(VideoFormat.RGB);
    FileTypeDescriptor outType = new FileTypeDescriptor(FileTypeDescriptor.RAW);
    //create processor
    processorV = Manager.createRealizedProcessor(new ProcessorModel(format, outType));
    processorV.setContentDescriptor(outType);                                              
    processorV.start(); then
    //Processor --> Datasource
    dataSourceVlocal = processorV.getDataOutput();
    //Create a player for the local_video
    pLocalVideo = Manager.createRealizedPlayer(dataSourceVlocal);
    visual = pLocalVideo.getVisualComponent();
    visual.setLocation(0, 0);
    visual.setSize(320, 240);
    pLocalVideo.start();
    jFrameMain.add(visual);
    //Processor --> Datasource       
    dataSourceVlocal2 = processorV.getDataOutput();
    //Create a player for the local_video       
    pLocalVideo2 = Manager.createRealizedPlayer(dataSourceVlocal2);
    visual2 = pLocalVideo2.getVisualComponent();
    visual2.setLocation(320, 0);
    visual2.setSize(320, 240);
    pLocalVideo2.start();
    jFrameMain.add(visual2);thanks in advance

    HI klschoef
    I'm doing almost same thing as you did, but i got a big problem ,when i start the sendstream"sendstream.start();", but it seems no UDP packet has been sent, so my client-side always wating on the receive , please tell me how to solve this problem

  • Premiere CS4 movies rendering out at 30fps but scene set up is 25fps

    Hi,
    I am scratching my head here, I am rendering out animation movies from Premiere Pro CS4 and the scene is set up to UK Pal 1024x576 custom set up to 25fps, however whenever I render out WMV, Quicktimes or sequencial frames the QT properties on any movie always say 30fps,
    how can this be, is there anywhere else a option for 30fps might be hidden from view,
    Kind Regards
    Mark Miles

    Hi Jeff,
    Basically if I try to import any of the 3d rendered projects I have created over the past 7 yers into a Custom scene in Premiere set to 25fps, it always looks at the files as 29.7 fps, even thougth the project file is set to 25fps,
    If I go to file interpret footage its default is set to "get fps from file" however there must be some flaw somwhere as none of my work has been rendered at 29.7fps, all files have forever been rendered at 25fps
    I have recently migrated over from Premiere 6.5 and have never had this problem in all 7 years of using Premiere, I just think that any uk users using 25 fps footage must have to always manually interpret the footage in the software and specify a fps as Premiere must have an issue in detecting 25fps footage..
    I know that sounds highly unlikely, and I was going to call Adobe UK later today to square this up.
    Cheers
    Mark

  • How to register IBM PC Camera using JMERegistry?

    When I click 'detect capture devices' it is finding 'IBM PC Camera'.
    But when I want to add it, by clicking add button, it is giving err saying 'can't add it err'.
    I want to capture the image from the webcam(IBM PC Camera) into awt frame.
    Any help would be appreciated.
    Thank you.

    To capture an image from a webcam into awt frame, you can use the Java Twain package http://www.gnome.sk
    This package enables you to connect to a camera, scanner or frame grabber directly from your java application. In the tutorial, there is an example how to capture an image into awt frame (ExampleShow).
    Erika

  • Does any know, what the frame rate is for the Creative WebCam NX Ultra

    If you check the specifications, for this webcam. It's listed running 640x480, 320x240, 352x288, and 60x20 resolutions. What is the frame rate? If I run this webcam at 640*480 resolution.
    thanks

    See I knew it! Why can't they make the 30fps at 640*480, thanks guys. Is 5 fps a noticable difference, or what?

  • Webcam recorded frames move very slowly when copied onto cd

    hello
    i had recorded a few lab demos thru creative webcam.later i copied these onto a cd.but when i play from the cd,the images move very slowly (i.e)the frames moving are so apparent.how do i make it move continuously?what setting changes should i make while recording so that later when copied onto cd the image on the cd will move continously/
    kindly help.
    thanks.

    Would cleaning out the preferences help Appleworks to run smoother? I noticed that was suggested in an earlier post.
    Peggy's reply is spot on. Deleting the preferences won't make AppleWorks run smoother and it's not something you should do regularly. It's only a troubleshooting remedy - if the preference files are corrupted then it causes strange behaviour with AppleWorks.
    The reason deleting your recent items makes AppleWorks smoother is because AppleWorks is programmed to check them regularly. And if there's a lot of them, then it takes AppleWorks a long time to check them. This causes AppleWorks to 'run a bit rough' – it's not just handling your typing, formatting, etc but also chasing up documents on your hard drive.
    Hope the explanation helps a bit.

  • How to extract a10 framess from webcam video..wait for sometime then extract 10 more frames

    Sir, 
    I need to extract 10 frames from a real time webcam video..wait for a particular period of time (say 5 sec) and then extract 10 more frames repeat this procedure 15 times. I tried using vision acquisition too..but i couldnt solve the problem. im using Labview 2011..please help me with this issue. 

    I am guessing that this is a Homework problem.  It will not help you to learn LabVIEW if someone else does your work for you.  On the other hand, it might actually be part of the specification for some code that your employer needs to have completed -- if so, are there LabVIEW "experts" there that you can consult?
    If you do, indeed, need someone to develop a "finished product" for you, you will need to provide a full specification of what is involved, and (especially if this is job-related) might consider hiring someone to do this for you.
    On the other hand, if you are a student learning LabVIEW, review your earlier Homework assignments, ask your Professor for help, and write as much code as you can!  Learning to program (in LabVIEW, Fortran, C, Java, it really doesn't matter) is not an "intellectual exercise" -- it is a "Practice makes Perfect" endeavor.

  • Bad webcam frame rate

    I had this problem with my PC and hoped it would go away with the Mac, but it hasn't so any suggestions would be welcome. If I use MSN/Yahoo/Whatever to do a video chat with my mates, I receive their webcam pictures nice and smooth, but outgoing I seem to be sending about 1 frame per second. I'm on 1 meg broadband, and things like uploading emails seem to be plenty fast enough, so I'm a little confused. I'm using a wireless connection to a Netgear DG834 router if it makes any difference.
    Matt.

    One thing that always helps with wireless connections is:
    1. Go to System Preferences > Network
    2. Choose "Network Port Configurations" from "Show" pull-down menu
    3. Drag AirPort to the top of the list (make sure it stays checked)
    4. Click "Apply Now"
    After doing this, try quitting & relaunching iChat (or whatever application you're using). If that doesn't help you could just test with a wired connection and see if it's any better. Chances are if you had the issue with your PC and you had the same internet connection, that's probably the cause.
    good luck

  • Webcam frame rate, netStream frame rate, flv framerate

    I'm recording Webcam to FMS 3.5 but when I play the recorded video from FMS it's choppy. I have set the camera.fps to 30 but when I trace out the currentFPS for camera it's variable and usually falls between 20 and 30. However when I play the recorded video, netStream's currentFPS returns a lower value, something closer to 10. So my question is, 1) why currentFPS of netStream is not the same as Camera's? 2) What's the actual frame rate of the recorded video (not the netStream, but FLV's)?
    I've setup a test page which shows currentFPS of camera during recording as well as netStream's currentFPS during playing of recorded video from FMS:
    http://www.saeidmohadjer.com/clients/mm/startersite/sample_webcam.php

    smohadjer wrote:
    I'm recording Webcam to FMS 3.5 but when I play the recorded video from FMS it's choppy. I have set the camera.fps to 30 but when I trace out the currentFPS for camera it's variable and usually falls between 20 and 30. However when I play the recorded video, netStream's currentFPS returns a lower value, something closer to 10. So my question is,
    1) why currentFPS of netStream is not the same as Camera's?
    [SE_0208] - It might be because of latency or some other reason that your frames are dropped and hence lower FPS is reported. To the first thing which you mention about camera settings, its not mandatory that when you set camera FPS to 30, you will get encoding rate of 30 FPS, it would depend upon data as well as your camera, some webcams don't support beyond certain FPS.
    2) What's the actual frame rate of the recorded video (not the netStream, but FLV's)?
    [SE_0208] - If you are talking about what is reported when metadata is triggered then answer is encoding setting which your publisher uses.
    I've setup a test page which shows currentFPS of camera during recording as well as netStream's currentFPS during playing of recorded video from FMS:
    http://www.saeidmohadjer.com/clients/mm/startersite/sample_webcam.php

  • Qosmio F60 - remove graphics border around webcam picture frame

    I recently bought a Qosmio F60 laptop and when initially setting up/ testing the webcam for use on Skype, I rather foolishly chose a graphics border for around the frame of the webcam picture with lots of yellow stars.
    This ends up blocking a large part of the webcam picture when on Skype, which is very annoying, but I can't seem to figure out a way to get rid of it. I'm sure it's a very simple option somewhere in the webcam settings to turn it off, but any help would be appreciated before it drives me mad!
    Thanks

    Start web camera application and there you will find option Effect. Open it and go to second tab called Frame.
    Click there on OFF and I presume the problem will be solved.

  • How can I change to a higher frame rate than 12 FPS?

    Just got a good deal on a 15 in MACBOOK Pro running Yosemite with the latest Quicktime and iMovie. Is the best frame rate I can get out of this HD camera 12fps? I can't find anywhere to change it in QT or in IMovie.
    MacBook Pro with Retina display, OS X Yosemite (10.10.2)

    studiojl wrote:...So as I understand it the camera will decide on FPS based off available light? ...
    So you seem to correctly understand the information in the linked Use More Light! article.
    studiojl wrote:... I don't like that at all...
    Your emotion is irrelevant.  It simply works the way Apple software is written.  Perhaps some other computer system works different from Mac OS X and Apple camera apps?
    If you intend to keep using Mac, you can take manual control of some camera parameters by using a third party add-on app such as iGlasses, Webcam Settings, or Sight Control.
    studiojl wrote: ... what frame rate does it pick if I import one 30 FPS clip and one 60 FPS clip?
    Whatever frame rate is set by the program of the software application you are using to record those clips.
    You can determine that frame rate by making short test videos and watching it in QT Player.
    The QT "Inspector" window will show you the frame rate for the clip.
    Here's an example for a clip made in my low-light room:
    Message was edited by: EZ Jim
    Mac OSX 10.10.2

Maybe you are looking for

  • ITunes takes FOREVER to open or crashes on new iMac

    Hi. I just got a new iMac (recent PC convert) and have all my music loaded into iTunes and the such. Works great when open. However, I notice that iTunes takes an unusual amount of time to open. Sometimes the dock shows the little arrow like its open

  • Why won't my iphone charge anymore?

    my iphone will not charge after the battery is bout half full..... and now it is not charging at all. I'm confused, can anyone help?

  • Wildcards in alerting rules

    Hello Forum Is it possible to use wildcards in alerting rules? I want to build one, which is triggered when there is a partner entered. So I filled the field with "?*" for "at least one character". Will this work? Regards Christian

  • Web Intelligence Document Freezing

    Hello everyone, I hope someone could help me solve this issue. I open a new Web Intelligence document,  select the required universe on which to build my document, it starts loading for a couple of minutes and then freezes. this issue appeared just y

  • Other ROM(s) for Xperia mini/pro

    Now that Sony has given us the stick, I am not sure that I (we) have any reason to stick to official Sony ROM. Anybody tried any other ROM on these devices. I have been using CyanogenMod 9 for a while and have been satisfied with the experience and w