Simple Webcam Capture to JPG

I cannot figure this out.
All I want to do is write a simple program that will take a still capture from my webcam and save it as a JPG. I don't need any kind of GUI or drawing to the screen. I will be using it in a batch script to take a picture and upload to my website at a fixed interval.
I have been messing around with it for a long time and have had no success. Here is some code I wrote just now that won't work. I have imported things while trying different pieces of code, but I never took any of them out. That's why I import so many things.
As you can see, I throw the NoPlayerException and CannotRealizeException. I do not understand why I get these. Also, when I run the program the light on my webcam turns on so I know it's connecting at some level. The file saved test.jpg is not a capture but rather a black square. Is my error in getting the image from the webcam or in writing it onto the BufferedImage so I can the write it to the file?
Any help would be appreciated.
import javax.swing.*;
import javax.swing.event.*;
import java.io.*;
import javax.media.*;
import javax.media.format.*;
import javax.media.util.*;
import javax.media.control.*;
import javax.media.protocol.*;
import java.util.*;
import java.awt.*;
import java.awt.image.*;
import java.awt.event.*;
import com.sun.image.codec.jpeg.*;
import javax.imageio.ImageIO;
public class wc
     public static Player player = null;
     public static CaptureDeviceInfo di = null;
     public static MediaLocator ml = null;
     public static Buffer buf = null;
     public static Image img = null;
     public static BufferToImage btoi = null;
     public static void main(String[] args) throws IOException, NoPlayerException, CannotRealizeException
          String str = "vfw:Microsoft WDM Image Capture (Win32):0";
          di = CaptureDeviceManager.getDevice(str);
          ml = di.getLocator();
          player = Manager.createRealizedPlayer(ml);
          player.start();
          FrameGrabbingControl fgc = (FrameGrabbingControl)
          player.getControl("javax.media.control.FrameGrabbingControl");
          buf = fgc.grabFrame();
          btoi = new BufferToImage((VideoFormat)buf.getFormat());
          img = btoi.createImage(buf);
          BufferedImage bi = new BufferedImage(160, 120, BufferedImage.TYPE_INT_RGB);
          Graphics2D g2 = bi.createGraphics();
          g2.drawImage(img, null, null);
          File f = new File("test.jpg");
          ImageIO.write(bi, "jpg", f);
}

I have a question posted about this code, slightly modified in this thread:
http://forum.java.sun.com/thread.jspa?threadID=5310154&tstart=0
Would you check it out, I made a new thread because its not strictly related to this post.

Similar Messages

  • Synchronous video capturing with a simple webcam with DIAdem-DAC/Visual

    Hello,
    because of DIAdem is not able to synchronise captured video files and MDF-data files measured with
    Vector Canape with all the skills of and in DIAdem-VIEW,
    how about even capturing a video additional to the other measured data with DIAdem-DAC ??
    Vector Canape can this do with a simple webcam ( a better model from Logitech suffice ) and it really works fine,
    but DIAdem is much better for the rest of all measuring tasks and so our favourite.
    And yes : DIAdem  can  data acquisition and we like it  !!! 

    Hallo,
    diese Funktion vermisse ich seit Jahren bei Diadem. Die Hardware (Web-cam) gibts längst an jeder Ecke nur Diadem hinkt (u.a. Vector) hinterher, das kanns ja wohl nicht sein ....

  • Problem with webcam capture

    Dear all,
    Using the Peter Parente's "webcam capture" library (Webcam Continuous Capture.vi), I faced some problems. In fact instead of showing for example one 320*240 picture it displayed some smaller pictures with some other parts of the picture indicator left blank(black).
    What's the problem. Any help would be appreciated.
    Regards

    Hello Smal,
    I did a search for this library and it looks like it was developed some time ago.  The FAQ on the download page seems to indicate that you need to make sure that your acquisition parameters in Windows and LabVIEW need to match in order for this to work properly.  There was also a data type change between Vision 6.1 and 7.0 so that could be related, but it sounds more likely it is something else.
    If your camera is DirectShow compatible and you have Vision, you can try IMAQ for USB.  This, like Peter Parente's Library, is not actively being developed or supported by National Instruments Applications Engineers, but you may have some more luck, assuming you are using more recent versions of LabVIEW and Vision.
    If there is a problem with a specific VI, please try to narrow down where the problem is occurring.  You may be able to post an image that might indicate how the library is failing.
    I hope this helps!  Good luck with your application.
    Regards,
    Angela
    Applications Engineer

  • Manipulating Webcam capture??????

    Hi
    I have successfully managed to capture, transmit, receive and display (using an applet) a webcam capture using jmf.
    However I want to let the user to put their mouse on the applet and be able to scroll around, zoom in and out etc..
    Any suggestions?

    dear Fergus
    My main objective is to capture / preview video using an applet and then capture a still image. save this still image to a file in users machine and then upload the file to the server at a specified folder.
    this applet is a part of Student Registration system and to generate ID cards for students.
    can you help me in this regards ? I have catagorized the requirements and other details. I am pasting the same here.
    Video Capture Module
    Objective: To capture a still image from a web page and Upload the image to specified folder on the server.
    Technologies to be used: JAVA Applets, HTML & Servelets.
    Synopsis: This application basically involves use of Java Media Framework. The primary objectives of this module are categorized according to the functionality.
    1)     Detect the video capture device on the users machine.
    2)     Preview the Live Video from the Detected Compatible Video Capture device.
    3)     Ask for user to click to take a snap and save the file in users machine at some temporary location with some unique file name.
    4)     Upload the file to the server at the specified path.
    There are a few constraints to this application. These are identified in following according to severity of the constraint
    1)     Minimal download time for the applet and supporting files.
    2)     Browser compatibility with Internet Explorer 4.0 upward as well as Netscape Navigator 4.0 upward.
    3)     User interface flexibility and easy to plug-in to the main module.
    4)     Reusability of this module for other purposes.
    There are few technological hurdles involved in doing this. These are stated below in order of severity.
    1)     Detecting the Capture Device on users machine.
    2)     User should not be asked to install Java Media Studio on his / her machine. Whatever the files are required should be loaded at the runtime.
    3)     Making the applet compatible with both the browser technologies.
    Following assumptions are being made
    1)     The browsers are capable to handle applets i.e. the JVM & Java Plug-in are already installed.
    2)     Video capture device Drivers are installed in the machine and the Camera is plugged in to the system.
    The assumptions are prerequisite and must be met.
    Details of the Sub Modules:
    SM-1: Detect Video capture Device in users machine.
    This involves following steps
    1)     Initialize the applet and get permissions to access the system resources such as capture devices and other input devices. Having the signed applet with the required premissions can do this.
    2)     Once we have the permission to access the devices we can scan various input devices and store the information in some temporary place such as cookie.
    3)     If Compatible Video Capture device is found then query the Video capture device.
    4)     If the Video capture device is not found then prompt user to install the Video capture device and revert back to starting the applet again.
    5)     Check for the Device Capabilities. Compare that with our requirements.
    6)     If things are ok then we can proceed to next step else go back to step 4.
    7)     Save the device info for the future use possibly in a cookie.
    SM-2: Preview the Live Video from the Detected Compatible Video Capture device.
    This involves following steps
    1)     Read the information from the cookie.
    2)     Initialize the viewer for the Live Video.
    3)     Present the live video.
    4)     As a tool tip, we should suggest the user to focus the camera and adjust the camera lens to get a sharp image.
    SM-3: Ask for user to click to take a snap and save the file in users machine at some temporary location with some unique file name.
    This involves following steps
    1)     Ask user to look in to camera straight. Not to blink eyes while picture is being taken.
    2)     User should then click the snap button. As a useful tip we may also provide a keyboard short cut to capture the still image.
    3)     Once the image is captured show the still image instead of the live video.
    4)     Give an option to user to recapture the still image.
    5)     If user feels his / her image has been satisfactorily captured.
    6)     Ask for confirmation to save and upload the image to server.
    SM-4: Upload the file to the server at the specified path.
    This involves following steps
    1)     Check for user authentication.
    2)     Check for file name.
    3)     Check for file size.
    4)     If all above is ok then upload the image to server at the specified path.
    regards
    Virendra

  • Webcam capture

    I am using Logitech Quickcam Pro 9000 on my computer and I am
    trying to capture an image size of 533x280. I know it is a non
    standard size. The camera does seem to capture the image at that
    size, but it seems to truncate a lot of the image compared to
    another size that I capture for a different application, the size
    of which is 352x288, which is a standard CIF.
    I have two question based on this observation
    1. if I am streaming the bigger image (with details
    truncated) to FMS, does it transmit more pixels than the truncated
    image that appears on my screen. In short does it transmit more
    than 533x280x30 fps.
    2. Can webcams capture any size (within its outer bounds of
    course) or do they capture only standard sizes that are closest to
    the requested size. Does it make a difference in performance of the
    webcam?
    Thanks

    I would suggest you look at USTREAM. http://www.ustream.tv/
    You can use this free web service to record and broadcast webcam streams from your own computer (or someone else's).
    You can save the streams as an FLV file and then download the FLV to your own computer for editing.  If your bandwidth is reasonable (e.g. 300 kbps) and you use a good quality web cam such as the Logitech C910, which is full HD, you should be able to get excellent video.
    I'm currently using all of this to stream my daughter's wedding tomorrow.

  • Mega simple video capture and edit program. Cross platform.

    Looking for a mega simple video capture and edit program. Am overseeing a bunch of small groups where we want each person in the group's story told. Some groups will have Macs, some PCs, some iPads, iphones, etc. So needs to be cross platform.
    Really, the simpler, the better. Like targeting 5 year olds

    Is there any software anyone recommends - Sorenson?
    I am capturing regular dv from minidv.

  • Webcam Capture Picture Tool

    I want to write a program in VB 2010 that can capture photo using a webcam, and directly saves it to the database. Someone please help me. Thanks! 

    Hi,
     Here is a small code a made a while back that uses the capCreateCaptureWindowA API to capture a webcam and save pictures when the Save Picture button is clicked. You can test it out by creating a new form project and adding 2 buttons and 1 picturebox.
    Name one of the buttons (Button_SavePicture) and the other (Button_SetSizeColor). The picturebox i left as the default name (PictureBox1). In the Button_SavePicture click event you will want to change the path to where the images are saved or you will get
    an error there. As far as saving it to a database i will have to leave that up to someone that knows about using them. There is also this LINK
    where there is a few links to other ways using DirectShow and maybe more.
    Imports System.Runtime.InteropServices
    Public Class Form1
    Dim cWnd As IntPtr = IntPtr.Zero
    Dim devId As Integer = 0 '0 will be the first capture device found
    Dim picnumber As Integer = 0
    Dim tmppic As String = System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Temp.dib")
    Private Const WS_CHILD As Integer = &H40000000
    Private Const WS_VISIBLE As Integer = &H10000000
    Private Const WM_USER As Integer = &H400
    Private Const WM_CAP_DRIVER_CONNECT As Integer = WM_USER + 10
    Private Const WM_CAP_DRIVER_DISCONNECT As Integer = WM_USER + 11
    Private Const WM_CAP_SET_PREVIEW As Integer = WM_USER + 50
    Private Const WM_CAP_SET_PREVIEWRATE As Integer = WM_USER + 52
    Private Const WM_CAP_SET_SCALE As Integer = WM_USER + 53
    Private Const WM_CAP_SAVEDIB As Integer = WM_USER + 25
    Private Const WM_CAP_DLG_VIDEOFORMAT As Integer = WM_USER + 41
    <DllImport("user32.dll", SetLastError:=True, CharSet:=CharSet.Ansi)> Private Shared Function SendMessage(ByVal hWnd As IntPtr, ByVal Msg As Integer, ByVal wParam As Integer, ByVal lParam As String) As IntPtr
    End Function
    <DllImport("avicap32.dll", SetLastError:=True, CharSet:=CharSet.Auto)> Private Shared Function capCreateCaptureWindowA(ByVal lpszWindowName As String, ByVal dwStyle As Integer, ByVal x As Integer, ByVal y As Integer, ByVal nWidth As Integer, ByVal nHeight As Integer, ByVal hWndParent As IntPtr, ByVal nID As Integer) As IntPtr
    End Function
    <DllImport("user32.dll", SetLastError:=True, CharSet:=CharSet.Unicode)> Private Shared Function DestroyWindow(ByVal hwnd As IntPtr) As <MarshalAs(UnmanagedType.Bool)> Boolean
    End Function
    Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
    If Not cWnd.Equals(IntPtr.Zero) Then
    SendMessage(cWnd, WM_CAP_DRIVER_DISCONNECT, devId, Nothing)
    DestroyWindow(cWnd)
    End If
    If System.IO.File.Exists(tmppic) Then System.IO.File.Delete(tmppic)
    End Sub
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    cWnd = capCreateCaptureWindowA(devId.ToString, WS_VISIBLE Or WS_CHILD, 0, 0, PictureBox1.Width, PictureBox1.Height, PictureBox1.Handle, 0)
    If Not SendMessage(cWnd, WM_CAP_DRIVER_CONNECT, devId, Nothing) = IntPtr.Zero Then
    SendMessage(cWnd, WM_CAP_SET_SCALE, 1, Nothing)
    SendMessage(cWnd, WM_CAP_SET_PREVIEWRATE, 66, Nothing)
    SendMessage(cWnd, WM_CAP_SET_PREVIEW, 1, Nothing)
    Else
    MessageBox.Show("Error connecting to capture device. Make sure your WebCam is connected and try again.")
    cWnd = IntPtr.Zero
    Me.Close()
    End If
    End Sub
    Private Sub Button_SavePicture_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button_SavePicture.Click
    SendMessage(cWnd, WM_CAP_SAVEDIB, 0, tmppic)
    Dim bmp As New Bitmap(tmppic)
    Dim saveas As String = "C:\TestFolder\MyPic_" & picnumber.ToString & ".jpg"
    picnumber += 1
    bmp.Save(saveas, Imaging.ImageFormat.Jpeg)
    bmp.Dispose()
    End Sub
    Private Sub Button_SetSizeColor_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button_SetSizeColor.Click
    'Shows a dialog window to choose the size and color depth of the image that the webcam is capable of using.
    SendMessage(cWnd, WM_CAP_DLG_VIDEOFORMAT, 0, Nothing)
    End Sub
    End Class

  • Webcam Capture AS2 CS5

    Hey everyone! I'm attempting to use a webcam to capture images (which this does ok) and then overlay the images over eachother with a low opacity.
    The images will be of a users face, each time a new user takes a picture the new face will be overlayed over the old one.
    The first problem is, no matter how much I alter the alpha levels, it does not affect the opacity of the bitmap, I know this is probably simple but I'm fairly new to actionscripting!
    Also the next step is figuring out how to get the image to stay there once the next one has been taken. I was wondering am I right in thinking of dynamically creating a new movieclip for each bitmap taken and changing the alpha of the movie clip. Would this work as a solution of both problems?
    Many thanks for any help!
    [CODE]import flash.display.BitmapData;
    import com.adobe.images.JPGEncoder;
    var snd:Sound = new camerasound();
    var bandwidth:int = 0;
    var quality:int = 100;
    var cam:Camera = Camera.getCamera();
    cam.setQuality(bandwidth, quality);
    cam.setMode(320,240,30,false);
    var video:Video = new Video();
    video.attachCamera(cam);
    video.x = 20;
    video.y = 20;
    video.alpha = 10;
    addChild(video);
    var bitmapData:BitmapData = new BitmapData(video.width,video.height);
    var bitmap:Bitmap = new Bitmap(bitmapData);
    bitmap.x = 360;
    bitmap.y = 20;
    addChild(bitmap);
    capture_mc.buttonMode = true;
    capture_mc.addEventListener(MouseEvent.CLICK,captureImage);
    function captureImage(e:MouseEvent):void {
    snd.play();
    bitmapData.draw(video);
    save_mc.buttonMode = true;
    save_mc.addEventListener(MouseEvent.CLICK, onSaveJPG);
    save_mc.alpha = 10;
    save_mc.alpha = 10;
    function onSaveJPG(e:Event):void{
    var myEncoder:JPGEncoder = new JPGEncoder(100);
    var byteArray:ByteArray = myEncoder.encode(bitmapData);
    var header:URLRequestHeader = new URLRequestHeader("Content-type", "application/octet-stream");
    var saveJPG:URLRequest = new URLRequest("save.php");
    saveJPG.requestHeaders.push(header);
    saveJPG.method = URLRequestMethod.POST;
    saveJPG.data = byteArray;
    var urlLoader:URLLoader = new URLLoader();
    urlLoader.addEventListener(Event.COMPLETE, sendComplete);
    urlLoader.load(saveJPG);
    function sendComplete(event:Event):void{
    warn.visible = true;
    addChild(warn);
    warn.addEventListener(MouseEvent.MOUSE_DOWN, warnDown);
    warn.buttonMode = true;
    function warnDown(e:MouseEvent):void{
    navigateToURL(new URLRequest("images/"), "_blank");
    warn.visible = false;
    warn.visible = false;[/CODE]

    enderwiggin wrote:
    So it turns out that so many of these cameras update at such a slow rate (or are dead/static) that the system (which only captures most of these cameras once every 30 minutes) does end up downloading duplicates. That does surprise me since I would have expected thermal noise to change some pixels.
    When I originally wrote this I had it saving the images to disk and then checking them, but it was almost impossible to delete the file successfully if the image was determined to be a duplicate. I don't understand this. I don't see how having a duplicate file can in any way influence a 'delete'.
    >
    Rather than save in a ByteArrayOutputStream why not just compare the bytes in the buffer just read with those on the disk. I'm up for trying anything at this point, but I'm having a hard time figuring out how to go about this.Since after every buffer read you know how many bytes have just been read, using a RandomAccess file you can read that number from the file and compare them. If they are different then you change to just writing the new byte directly using the RandomAccess file.
    Ideally, what I need is to read the image into just an array of bytes that I can compare against the last image and then write to disk. Which, as you are finding out, does not scale. Reading the whole of a file into memory is rarely a good idea.
    I'm turning around and passing the array of bytes to another method by way of out.toByteArray() to do the check. By the way I'm limiting the number of simultaneous captures to 10, which works well it seems for most of the program's operation. So put the requests for capture into a priority queue and then process the queue using a finite pool of tasks.
    >
    As a note, I've already tried bumping up the JVM's allocated memory with no luck.... although that would've been a pretty poor long term solution anyways.Yep. If I have to allocate more memory then my solution is poor.

  • Webcam capture & save as JPEG image

    Hi,
    I'm creating an application to capture image via webcam using directshow. I've managed to capture the stream using samplegrabber.
    the problem is when I save the grabbed image to a JPEG, the colors are incorrect.
    provided the link of the captured image from the webcam http://www.filefreak.com/pfiles/44160/test2.jpg
    the right hand side of the image should be brown colored, not blue as in the picture.
    I've also test to save as a bmp image, the color are ok.
    this is how i save the grabbed webcam frame into a jpeg file
    sampleGrabber->GetCurrentBuffer(&bufferSize, (long*)frameBuffer); 
    //save into jpeg 
    struct jpeg_compress_struct cinfo; 
    struct jpeg_error_mgr jerr; 
    JSAMPLE * image_buffer=NULL; 
    FILE * outfile;      
    JSAMPROW row_pointer[1];     
    int row_stride;  
    cinfo.err = jpeg_std_error(&jerr); 
    jpeg_create_compress(&cinfo); 
    if ((outfile = fopen("test2.jpg", "wb")) == NULL) { 
            fprintf(stderr, "can't open %s\n", "test2.jpg"); 
        return; 
    image_buffer = (unsigned char*)frameBuffer; 
    jpeg_stdio_dest(&cinfo, outfile); 
    cinfo.image_width = videoWidth;      
    cinfo.image_height = videoHeight; 
    cinfo.input_components = 3;      
    cinfo.in_color_space = JCS_RGB;      
    jpeg_set_defaults(&cinfo); 
    jpeg_set_quality(&cinfo, 255, TRUE ); 
    jpeg_start_compress(&cinfo, TRUE); 
    row_stride = videoWidth * 3;     
    while (cinfo.next_scanline < cinfo.image_height) { 
        row_pointer[0] = & image_buffer[cinfo.next_scanline * row_stride]; 
        (void) jpeg_write_scanlines(&cinfo, row_pointer, 1); 
    jpeg_finish_compress(&cinfo); 
    fclose(outfile); 
    jpeg_destroy_compress(&cinfo); 
    //end save jpeg 
    Thanks.
    Regards

    Hi,
    Thanks
    for participating on the MSDN Forum! I think your question is mainly related
    with DirectX, but not Visual C++ Language. Thus, I suggest you post your
    question on the microsoft.public.win32.programmer.directx.video newsgroup, there you find DirectX experts and your
    question should be answered in no time.
    The people there will have enough experience with DirectX to give you the best
    advice or answer!
    http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.win32.programmer.directx.video&lang=en&cr=US
    Thanks! Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Webcame Capture Problem

    Hello,
    I am trying to take pictures from webcam throw Labview , Labview can detect the camera but the problem is that it doesn't capture and display the picture
    I have installed the IMAQ USB driver and I have tried 3 types of webcames but the same broblem is present
    I have used the Labview webcame Library,
    and also the example attached
    Can any help me solving this Problem ?
    Thank you
    Mar-Q
    Attachments:
    Acquire a USB Camera Image 1.vi ‏73 KB

    Hi qurrr,
    Your VI worked fine on my system with my Creative Live! USB camera without requiring any modifications. Are you getting any errors when you try to access your camera?
    Are your USB cameras DirectShow compliant? They need to be in order to access them using IMAQ for USB (for example, is the "USB Camera" string indicator you have on the front panel filling in with the name of your camera OK?).
    Another possibility is that your are disabling the "snapshot" property of the Image Viewer on your front panel, but in the VI you posted it was still enabled properly. If it was disabled, then when you dispose of the image, it would clear the image display because they would both be pointing to the same space in memory. Please take a look at the following KnowledgeBase articles to see what I mean there:
    KB 3NDH344Y: IMAQ Image Display Indicator Changes Throughout Execution of VI
    KB 3NRFH84Y: Image Display Refreshing in LabVIEW
    To ensure your image display would be updated before your dispose is called, you could change your simple VI to be like the screenshot I've included, where you put the display indicator in a flat sequence with the IMAQ USB Close VI, so that you force it to get called before the IMAQ Dispose VI.
    Message Edited by VGA CD-ROM on 02-27-2008 03:10 PM
    Regards,
    Vijay S.
    National Instruments
    Attachments:
    display_in_sequence.gif ‏8 KB

  • Webcam capture works fine in JMFStudio, not in Eclipse

    Hi all,
    I search the forum, but can't find any answer !
    I'm trying to capture a webcam using JMF Performance Pack on XP64.
    I can read the webcam in JMFStudio, but when using some code to do it, for instance in eclipse, it says :
    java.io.IOException: Could not connect to capture deviceI tried with several code, some snippets found on this forum, some found on other, but the problem is always the same.
    My webcam is well detected in the DeviceManager list.
    What should be done to capture a video in my own class, knowing that this capture works well in JMF Studio ?
    Thanks in advance,
    PsyKo

    For some reason your codes might me trying to connect to the wrong device.
    Go to JMF - > JMF Registry -> Capture Devices and check the "name" of your webcam. For example, it could be something like "vfw:Creative WebCam NX (VFW):0"
    Then, go to the code you are using and add the device "manually".
    I dont know if that�s the problem, but you can try it.

  • Changing file type in screen capture to .jpg using Terminal

    I am having trouble changing my screen capture function to .jpg. For some reason it is set to .tiff and
    despite opening Terminal and typing in "defaults write com.apple.screencapture type jpg"
    (no quotes) hitting return and restarting, it remains a .tiff
    I have also tried: "defaults write com.apple.screencapture type jpg" (return)
    "killall SystemUIServer" (return) and restarting.(No quotes)
    Can someone tell me how to accomplish this? I use keyboard shortcut control/command/shift/4 and I'm running 10.6.4
    Thanks

    The OP here was using a keyboard shortcut, not Grabber.
    I did some further exploring. I just tried TinkerTool again, and again was able to change the file format of saved screencapture files to jpeg. TinkerTool modifies the com.apple.screencapture.plist file the same way that the Terminal command does.
    This clearly works for command-shift-3 and command-shift-4, which save the screencapture image as a file. However, on looking more closely at the O.P.s initial post in this thread, he/she actually said
    I use keyboard shortcut control/command/shift/4
    When you include the control key in the command, the screencapture image gets saved to the clipboard instead of to a file, and you wouldn't normally be aware of its format until you pasted the clipboard contents somewhere else. I don't know where the OP was pasting it, but as was noted in the thread cited above by Baltwo, pasting a sceencapture image from the clipboard into a mail.app message results in a .tiff file being pasted. I also find this to be true in my system - perhaps this is what the OP was doing all along.
    However this is an issue caused by the receiving app, not by the screencapture function. It's possible to look directly at the contents of the clipboard via:
    Finder>Edit Menu>Show Clipboard
    With my screenshot format set to jpeg by TinkerTool, I used control-command-shift-4 to save a screenshot to the clipboard. Looking directly at the clipboard in Finder as above, the clipboard image was a jpeg. When I then pasted the clipboard contents into a mail message and used Mail>File Menu>QuickLook Attachments, the pasted graphic in the mail message was a .tiff.

  • Simple webcam

    I need to get a webcam for my Grandparents. Something brain-dead simple, that they can just plug in, maybe install something (but preferably PnP), and will work with iChat or Skype. They have an iMac G5 running Leopard.
    Thanks!

    MGW wrote:
    Take a look at the offerings [here|http://www.mac-compatible-web-cam.com>, one of them should be just fine for your brain-dead grandparents (I am a grandparent myself, and far from brain-dead, you may be underestimating them!)
    I actually am a brain-dead grandparent and manage quite nicely, thank you very much-
    -DP

  • Webcam capture under MacOS

    Hi,
    is is possible to capture video from a webcam under MacOS? Under Windows and Linux it works finde with their performance packs, but under MacOS I have to use the "Cross-platform Java" version...
    Thanks
    Alexander Miehlke

    enderwiggin wrote:
    So it turns out that so many of these cameras update at such a slow rate (or are dead/static) that the system (which only captures most of these cameras once every 30 minutes) does end up downloading duplicates. That does surprise me since I would have expected thermal noise to change some pixels.
    When I originally wrote this I had it saving the images to disk and then checking them, but it was almost impossible to delete the file successfully if the image was determined to be a duplicate. I don't understand this. I don't see how having a duplicate file can in any way influence a 'delete'.
    >
    Rather than save in a ByteArrayOutputStream why not just compare the bytes in the buffer just read with those on the disk. I'm up for trying anything at this point, but I'm having a hard time figuring out how to go about this.Since after every buffer read you know how many bytes have just been read, using a RandomAccess file you can read that number from the file and compare them. If they are different then you change to just writing the new byte directly using the RandomAccess file.
    Ideally, what I need is to read the image into just an array of bytes that I can compare against the last image and then write to disk. Which, as you are finding out, does not scale. Reading the whole of a file into memory is rarely a good idea.
    I'm turning around and passing the array of bytes to another method by way of out.toByteArray() to do the check. By the way I'm limiting the number of simultaneous captures to 10, which works well it seems for most of the program's operation. So put the requests for capture into a priority queue and then process the queue using a finite pool of tasks.
    >
    As a note, I've already tried bumping up the JVM's allocated memory with no luck.... although that would've been a pretty poor long term solution anyways.Yep. If I have to allocate more memory then my solution is poor.

  • No audio from second Channel using Webcam Capture with ASIO source

    I am trialing elements version 10 as I am looking for a capture / recording / editing solution for making music videos. I want to be able to record from my webcam and also record two audio streams silmutaneously.
    I am using a logitech webcam pro 9000 and a line6 Ux2 Audio recording Sound device. The UX2 is an ASIO compatible device that allows two streams to be recorded; in my case guitar and Microphone for voice. I am able to do this in ASIO comaptible audio editing software.
    So I have tried selecting the Audio device settings prior to starting a capture but each time I start a capture the audio device reverts to standard windows Realtek audio device. I then select the Line6 Device in the capture window and procede to record but I only get video and one audio channel. Is there a way to record live from webcam AND get both audio channels using ASIO driver?
    Cheers
    Greg

    Only if your camcorder records in stereo. Otherwise, you will only get one channel of audio and you will need to use the Fill Left or Fill Right audio effect to spread the audio across both.

Maybe you are looking for

  • N79 after update to v20.175, cannot connect to "sh...

    i just updated to v20.175, as this is the latest available according to the updater. - i cannot use the share online option (to flickr) anymore, it says something like "new hard disk" connect error and i'm stuck with the wifi selection screen. cannot

  • Bug in 1.5.1 Aktive Report Tab - Navigator fly out not working

    Hello, I open a report and keep it as the aktive tab. Now I minimize the report navigator. When I try to access the navigator it pops up and immediately collapses again. When I change the aktive tab to a worksheet the navigator works correctly. Clien

  • Latency recording audio

    I'm having a BIG problem recording a new track - When I record a guitar track over an existing drum track in Logic Pro 7 - the guitar track isn't in the right spot (It's out of time) this never happened in logic gold (& I am a very competent guitaris

  • Some Schedule jobs are not running in Oracle 10g

    i have total of 8 Schedules jobs in Oracle 10g test database which were not in sync with prod database . So i re-created all of them again and then enbled them . but some 4 of them didnt ran on their NEXT_RUN_DATE . Showing NULL on LAST_START_DATE an

  • Itunes not responding when trying to sync

    ok problem number three in a week, again apologies for my vast lack of knowledge with iphone. when i try to sync my phone to itunes it starts syncing then just stops working. have already deleted and reinstalled itunes this week help???? jen