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.

Similar Messages

  • Dreamweaver CS4 not working under MacOS 10.9

    on starting DW CS4 it asks for Java Runtime engine 6, but Mavericks has Java v.7 installed. Since Java 6 was part of the OS of previous systems, I cannot install it seperately, besides it would probably cause conflicts with OS 10.9. Do I have to trash my DW, or is there a workaround.
    Thanx

    If I follow click the instal button on
    I get the progress bar for about 1 sec and then the message about a supposed
    network problem
    which is unreal, since my network works perfectly for any other task and I
    had even tried disabling the firewall and little snitch. Things are still
    not working
    Von:  Jon Fritz II <[email protected]>
    Antworten an:  <[email protected]>
    Datum:  Montag, 25. November 2013 18:34
    An:  RoWo <[email protected]>
    Betreff:  Dreamweaver CS4 not working under
    MacOS 10.9
    Re: Dreamweaver CS4 not working under MacOS 10.9
    created by Jon Fritz II <http://forums.adobe.com/people/JonFritzII>  in
    Dreamweaver support forum - View the full discussion
    <http://forums.adobe.com/message/5872889#5872889>
    This has been discussed a lot here, you need to install Java 6.
    http://helpx.adobe.com/dreamweaver/kb/dreamweaver-java-se-6-runtime.ht ml
    <http://helpx.adobe.com/dreamweaver/kb/dreamweaver-java-se-6-runtime.html>
    Please note that the Adobe Forums do not accept email attachments. If you
    want to embed a screen image in your message please visit the thread in the
    forum to embed the image at http://forums.adobe.com/message/5872889#5872889
    Replies to this message go to everyone subscribed to this thread, not
    directly to the person who posted the message. To post a reply, either reply
    to this email or visit the message page:
    http://forums.adobe.com/message/5872889#5872889 To unsubscribe from this
    thread, please visit the message page at
    http://forums.adobe.com/message/5872889#5872889. In the Actions box on the
    right, click the Stop Email Notifications link.  Start a new discussion in
    Dreamweaver support forum at Adobe Community
    <http://forums.adobe.com/choose-container!input.jspa?contentType=1&container
    Type=14&container=2240>  For more information about maintaining your forum
    email notifications please go to
    http://forums.adobe.com/thread/416458?tstart=0.

  • 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.

  • Can not capture under Win7

    If you find that capturing is no longer possible under Win7, you may take this step to remedy the situation.
    Try changing your firewire driver. There's 3 drivers bundled in windows 7, change the driver to the one that has (Legacy) at the end of the name.

    Thanks Harm,
    Was very helpfull.

  • Why does automator crash under MacOS X 10.8?

    All of the automation actions and services that worked so well in Lion now fail silently under Mountain Lion.  As well, the Automator.app crashes on launch -- every time.  Has 10.8 killed MacOS X automation entirely or can I fix this?

    I was able to fix this problem by booting into the Recover disk and performing the following operations:
    1) Disk Utility: repair permissions (only a few permissions related to printing were off and fixed)
    2) Terminal: resetpassword and then reset my personal ACLs and permissions
    3) Attempted to startup in "safe" mode twice but that process took way longer than it should have so I powered down.
    After restarting normally, all was well again.  Not only did Automator launch properly but services that had previously failed (silently) were now operative. 

  • 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.

  • Color misregistration scanning with image capture under Leopard 10.5.2

    The scanner is an older Epson Perfection 1250 Photo. Under Tiger, Image Capture scans perfectly. Under Leopard (Image Capture 4.0), the RGB channels in the image appear to be misregistered. I downloaded the Leopard compatible TWAIN driver from Epson, and the scan looks OK when using the Epson Scan app. The reason I would like to use Image Capture is that it offers PNG as a format for saving, while the Epson Scan app does not (TIFF is significantly bigger). Anybody noticed this issue?

    Move the com.apple.ImageCaptureApp.plist file out of your home /Library/Preferences/ folder to the Desktop and try again. If that works, delete the moved file, and reset IC's preferences. If not, create a new admin user account, log in, and see if the problem persists. Report back.

  • 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.

  • 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.

  • 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.

  • Cannot run two webcams simultaneously under Mountain Lion

    I am working on  a film project for which I want to record skype calls while I at the same time record the "local" side of the conversation in HD quality with the C910 in the Logitech webcam software. Hence, I want to run two webcams at the same time. The in-built laptop camera in Skype and the C910 in the Logitech Webcam software.
    I have had a lot of difficulties doing thid in Mac OS X. On my old MacBook Pro under OS X 10.6.8. the logitech support recommended initiating the skype conversation with the Isight camera first and only then launching the Logitech software and starting the recording with the C910 cam. That worked fine.
    Now, however I have to do the same on a newer 13" MacBook Pro with OS X 10.8.4. and built in Facetime webcam and it just won`t work. Only one webcam functions at a time. If I launch the Logitech software first, the Facetime camera won´t work in Skype   And when I start a skype conversation first, I only get a black screen (no failure notice whatsoever, the C910 is still detected) in the Logitech Webcam Software.
    I am completely desperate and Logitech product service only told me I should contact apple support. Does anyone know how I can get both webcams running simultaneously?

    I am trying to do something similar...not necessarily with skype but need to connect two webcams (via wifi) and want both feeds displayed simultaneosly on imac.  hoping my reply boosts this thread

Maybe you are looking for

  • Can't synch photos with Vista

    This is driving me crazy! I have no problems synching music with Vista, but every time I attempt to synch photos, the photos are corrupted, don't download properly or - more often than not - the computer crashes with a variety of bluescreen error mes

  • HT1338 upon updating itunes programs I lost the "burn" CD feature.  How can I restore it?

    Upon updating my itures program I lost the "burn" CD feature.  How can I get it back?

  • OIM 11g Approval Process

    Hi Expert/All, May I have assistance regarding the OIM 11g? Currently, I already create one approval (only 1 level approval) for some resource in OIM 11g, then I'm continue to test the resource with two below way: 1. If I'm try to add "New Resource"

  • Looking for 9.0.3-r2 Java API

    I'm having a lot of trouble digging this up using the website search function, and browsing through the documentation links. Thanks in advance!

  • Trouble importing 24p footage (no timecode!)

    I shot a project on a Panasonic HVX-100 in 24p advanced pulldown i believe, and I am not trying to import it into FCP 5 using a canon GL2. FCP will not let me capture now because it keeps waiting for a time code, but there is not one visible on the t