Problem in capturing webcam image

To capture image directly, I'm using the following code:
import java.io.*;
import java.awt.*;
import java.util.Enumeration;
import java.util.Properties;
import java.util.Vector;
import javax.media.*;
import javax.media.control.*;
import javax.media.protocol.*;
import javax.media.util.*;
import javax.media.format.RGBFormat;
import javax.media.format.VideoFormat;
import javax.media.*;
import javax.media.control.*;
import javax.media.util.*;
import java.awt.image.*;
import java.awt.event.*;
import javax.swing.*;
import javax.imageio.*;
import javax.swing.*;
import javax.swing.border.*;
import java.io.*;
import javax.media.*;
import javax.media.datasink.*;
import javax.media.format.*;
import javax.media.protocol.*;
import javax.media.util.*;
import javax.media.control.*;
import java.util.*;
import java.awt.*;
import java.awt.image.*;
import java.awt.event.*;
import com.sun.image.codec.jpeg.*;
import java.io.IOException;
import java.util.Locale;
import javax.imageio.ImageReader;
import javax.imageio.spi.ImageReaderSpi;
import javax.imageio.stream.ImageInputStream;
import com.sun.media.protocol.vfw.VFWCapture; // JMF 2.1.1e version
// set up player
JPanel videoPanel = new JPanel();
// note I just set the media locator directly
MediaLocator ml = new MediaLocator("vfw://0");
try {
Manager.setHint(Manager.LIGHTWEIGHT_RENDERER, new Boolean(true));
player = Manager.createRealizedPlayer(ml);
player.start();
Component comp;
if ((comp = player.getVisualComponent()) != null) {
videoPanel.add(comp, BorderLayout.CENTER);
videoPanel.setSize(new Dimension(320, 240));
videoPanel.setMinimumSize(new Dimension(320, 240));
videoPanel.setMaximumSize(new Dimension(320, 240));
playerUp=true;
catch (Exception e) {
// process error
// action code on capture button
public void actionPerformed(ActionEvent e) {
JComponent c = (JComponent) e.getSource();
if (c == capture) {
// Grab the frame
FrameGrabbingControl fgc = (FrameGrabbingControl) player.getControl("javax.media.control.FrameGrabbingControl");
Buffer buf = fgc.grabFrame();
// Convert to image
BufferToImage btoi = new BufferToImage((VideoFormat)buf.getFormat());
Image img = btoi.createImage(buf);
// now go and display the captured image
But it gives the error package javax.media does not exist. I'm using jdk 1.4. Classpath is set becoz it doesn't give error for javax.swing, which I'm using in my code. What could be the problem?

You need to get and install JMV.
http://java.sun.com/products/java-media/jmf/
rykk

Similar Messages

  • Capturing webcam images

    Hi,
    I have flash working with flash media server to record a
    webcam. There are two things I also need the application to do
    which it currently doesn't.
    1) How do you capture a still image from the webcam? At the
    moment im using this line of code to record:
    publish_ns.publish("allAboutMe + 1", "record");
    2) How do you show what is being recorded as you record?, at
    present it records with a blank screen and you cant see the results
    until you play it back. This is the code used at the moment.
    var my_nc:NetConnection = new NetConnection();
    my_nc.connect("rtmp://localhost/allAboutMe");
    var publish_ns:NetStream = new NetStream(my_nc);
    publish_ns.attachVideo(Camera.get());
    publish_ns.attachAudio(Microphone.get());
    publish_ns.publish("allAboutMe + 1", "record");
    thanks
    Gavin

    For starters, you should not call NetStream.publish() until
    AFTER you receive a NetConnection.Connect.Success message from the
    server. Failure to do so may prevent anything from streaming.
    Create a new "onStatus" method as follows:
    var my_nc:NetConnection = new NetConnection();
    my_nc.onStatus = function (info:Object)
    if(info.code == "NetConnection.Connect.Success")
    // Publish your stream here
    var publish_ns:NetStream = new NetStream(my_nc);
    publish_ns.attachVideo(Camera.get());
    publish_ns.attachAudio(Microphone.get());
    publish_ns.publish("allAboutMe + 1", "record");
    my_nc.connect("rtmp://localhost/allAboutMe");
    To watch the video, you need to create a Video component on
    the stage and then attach the camera as follows:
    var video:Video; // Don't forget to create this component on
    the stage!
    video.attachVideo(Camera.get());
    As for capturing a single image, I'm not sure how to do that,
    but you can make the player display a single image like this:
    your_netstream.play(yourstream, -1, 0);
    The zero parameter tells Flash to play the stream for zero
    seconds (i.e. 1 frame)
    Good luck,
    Barry

  • HDV image quality problems on capture

    Hey gang! I just got my first tape shot on a Sony Z1U, and I'm trying to caputre with the M10U deck. My problem is that the footage looks fine in the camera, and looks the same when played from the deck (via component video) to two different monitors. When I capture, the image is remarkably different - darker, with muddy colors, lousy skin tones. I'm using the HDV 1080i easy setup, and I've recalibrated my cinema display to its default (calibrated was even worse!) I've also tried using HDVxDV to capture, and iMovie to see if there was something screwy with my capture settings. Any ideas?

    The computer monitor is the LAST thing you want to use to judge your image quality. It will never give you a true representation of what your footage looks like:
    Shane's Stock Answer #2:
    ONLY JUDGE THE QUALITY OF YOUR MATERIAL ON AN EXTERNAL NTSC MONITOR, OR AT LEAST A TV.
    1. Disable overlays on the canvas
    2. Make sure you've rendered everything (no green bars at the top of the timeline
    http://docs.info.apple.com/article.html?artnum=24787
    DV (and especially HDV) footage requires large amounts of data and many computations. In order to maintain frame rate and be viewable at a normal size, only about one-fourth of the DV data is used in displaying the movie to the screen. However, the DV footage is still at full quality, and is best viewed thru a TV or NTSC monitor routed thru your camera or deck.
    HOWEVER...that is the stock answer for DV, but helps explain why your quality looks bad. Unfortunately, HDV does not allow you to view your timeline in real time like DV does. HDV, being HD, requires an HD card and monitor solution:
    Shane's Stock Answer #25 - HDV external Monitor Viewing
    To view HDV on an external monitor you are going to need to purchase a capture card, like the ones Decklink or AJA offer. They will both play out HDV in real time. The catch is that you cannot view this on a regular TV or NTSC monitor. Since this is HD, an HD monitor will be needed.
    HDV cannot be played out of FCP via Firewire because it's Long GOP structure is too taxing on your processors to spare the system resources needed to drive an external monitor.
    (Wow, two Stock Answers in one post. I think this is a first.)

  • Capturing an image from webcam

    hi, i'm trying to capture a image from a webcam, but i don't have a clue of how to do this, could anyone help me with samples or books.
    thanks.

    hi
    so as i understood u want to access the USB and make whats called camera interaction i worked with my webcam and i generate a video stream and i'm working now to sample this video
    i found these class on the internet u have to make a littel changes like camera defention
    * File: DeviceInfo.java.java
    * created 24.07.2001 21:44:12 by David Fischer, [email protected]
    import java.awt.Dimension;
    import javax.media.*;
    import javax.media.control.*;
    import javax.media.format.*;
    import javax.media.protocol.*;
    public class DeviceInfo
         public static Format formatMatches (Format format, Format supported[] )
              if (supported == null)
                   return null;
              for (int i = 0;  i < supported.length;  i++)
                   if (supported.matches(format))
                        return supported[i];
              return null;
         public static boolean setFormat(DataSource dataSource, Format format)
              boolean formatApplied = false;
              FormatControl formatControls[] = null;
              formatControls = ((CaptureDevice) dataSource).getFormatControls();
              for (int x = 0; x < formatControls.length; x++)
                   if (formatControls[x] == null)
                        continue;
                   Format supportedFormats[] = formatControls[x].getSupportedFormats();
                   if (supportedFormats == null)
                        continue;
                   if (DeviceInfo.formatMatches(format, supportedFormats) != null)
                        formatControls[x].setFormat(format);
                        formatApplied = true;
              return formatApplied;
         public static boolean isVideo(Format format)
              return (format instanceof VideoFormat);
         public static boolean isAudio(Format format)
              return (format instanceof AudioFormat);
         public static String formatToString(Format format)
              if (isVideo(format))
                   return videoFormatToString((VideoFormat) format);
              if (isAudio(format))
                   return audioFormatToString((AudioFormat) format);
              return ("--- unknown media device format ---");
         public static String videoFormatToString(VideoFormat videoFormat)
              StringBuffer result = new StringBuffer();
              // add width x height (size)
              Dimension d = videoFormat.getSize();
              result.append("size=" + (int) d.getWidth() + "x" + (int) d.getHeight() + ", ");
              // try to add color depth
              if (videoFormat instanceof IndexedColorFormat)
                   IndexedColorFormat f = (IndexedColorFormat) videoFormat;
                   result.append("color depth=" + f.getMapSize() + ", ");
              // add encoding
              result.append("encoding=" + videoFormat.getEncoding() + ", ");
              // add max data length
              result.append("maxdatalength=" + videoFormat.getMaxDataLength() + "");
              return result.toString();
         public static String audioFormatToString(AudioFormat audioFormat)
              StringBuffer result = new StringBuffer();
              // short workaround
              result.append(audioFormat.toString().toLowerCase());
              return result.toString();
    the second class:
    * File: MyDataSinkListener.java
    * created 24.07.2001 21:41:47 by David Fischer, [email protected]
    * Decription: simple data sink listener, used to check for end of stream
    import javax.media.datasink.*;
    public class MyDataSinkListener implements DataSinkListener
         boolean endOfStream = false;
         public void dataSinkUpdate(DataSinkEvent event)
              if (event instanceof javax.media.datasink.EndOfStreamEvent)
                   endOfStream = true;
         public void waitEndOfStream(long checkTimeMs)
              while (! endOfStream)
                   Stdout.log("datasink: waiting for end of stream ...");
                   try { Thread.currentThread().sleep(checkTimeMs); } catch (InterruptedException ie) {}
              Stdout.log("datasink: ... end of stream reached.");
    * File: MyDataSinkListener.java
    * created 24.07.2001 21:41:47 by David Fischer, [email protected]
    * Decription: simple data sink listener, used to check for end of stream
    import javax.media.datasink.*;
    public class MyDataSinkListener implements DataSinkListener
         boolean endOfStream = false;
         public void dataSinkUpdate(DataSinkEvent event)
              if (event instanceof javax.media.datasink.EndOfStreamEvent)
                   endOfStream = true;
         public void waitEndOfStream(long checkTimeMs)
              while (! endOfStream)
                   Stdout.log("datasink: waiting for end of stream ...");
                   try { Thread.currentThread().sleep(checkTimeMs); } catch (InterruptedException ie) {}
              Stdout.log("datasink: ... end of stream reached.");
    }[i]the 3rd class:/******************************************************
    * File: Stdout.java.java
    * created 24.07.2001 21:44:46 by David Fischer, [email protected]
    * Description: utility class for standard output
    public class Stdout
         public static void log(String msg)
              System.out.println(msg);
         public static void logAndAbortException(Exception e)
              log("" + e);
              flush();
              System.exit(0);
         public static void logAndAbortError(Error e)
              log("" + e);
              flush();
              System.exit(0);
         public static void flush()
              System.out.flush();
    the 4rt is :
    * File: TestQuickCamPro.java
    * created 24.07.2001 21:40:13 by David Fischer, [email protected]
    * Description: this test program will capture the video and audio stream
    * from a Logitech QuickCam� Pro 3000 USB camera for 10 seconds and stores
    * it on a file, named "testcam.avi". You can use the microsoft windows
    * media player to display this file.
    * operating system: Windows 2000
    * required hardware:  Logitech QuickCam� Pro 3000
    * required software: jdk 1.3 or jdk1.4 plus jmf2.1.1 (www.javasoft.com)
    * source files: DeviceInfo.java, MyDataSinkListener.java,
    *               Stdout.java, TestQuickCamPro.java
    * You can just start this program with "java TestQuickCamPro"
    * hint: please make shure that you setup first the logitech camerea drives
    * and jmf2.1.1 correctly. "jmf.jar" must be part of your CLASSPATH.
    * useful links:
    * - http://java.sun.com/products/java-media/jmf/2.1.1/index.html
    * - http://java.sun.com/products/java-media/jmf/2.1.1/solutions/index.html
    * with some small modifications, this program will work with any USB camera.
    import java.io.*;
    import javax.media.*;
    import javax.media.control.*;
    import javax.media.datasink.*;
    import javax.media.format.*;
    import javax.media.protocol.*;
    public class TestQuickCamPro
         private static boolean                    debugDeviceList = false;
         private static String                    defaultVideoDeviceName = "vfw:Microsoft WDM Image Capture (Win32):0";
         private static String                    defaultAudioDeviceName = "DirectSoundCapture";
         private static String                    defaultVideoFormatString = "size=176x144, encoding=yuv, maxdatalength=38016";
         private static String                    defaultAudioFormatString = "linear, 16000.0 hz, 8-bit, mono, unsigned";
         private static CaptureDeviceInfo     captureVideoDevice = null;
         private static CaptureDeviceInfo     captureAudioDevice = null;
         private static VideoFormat               captureVideoFormat = null;
         private static AudioFormat               captureAudioFormat = null;
         public static void main(String args[])
              // get command line arguments
              for (int x = 0; x < args.length; x++)
                   // -dd = debug devices list -> display list of all media devices - and exit
                   if (args[x].toLowerCase().compareTo("-dd") == 0)
                        debugDeviceList = true;
              // get a list of all media devices, search default devices and formats, and print it out if args[x] = "-dd"
              Stdout.log("get list of all media devices ...");
              java.util.Vector deviceListVector = CaptureDeviceManager.getDeviceList(null);
              if (deviceListVector == null)
                   Stdout.log("... error: media device list vector is null, program aborted");
                   System.exit(0);
              if (deviceListVector.size() == 0)
                   Stdout.log("... error: media device list vector size is 0, program aborted");
                   System.exit(0);
              for (int x = 0; x < deviceListVector.size(); x++)
                   // display device name
                   CaptureDeviceInfo deviceInfo = (CaptureDeviceInfo) deviceListVector.elementAt(x);
                   String deviceInfoText = deviceInfo.getName();
                   if (debugDeviceList)
                        Stdout.log("device " + x + ": " + deviceInfoText);
                   // display device formats
                   Format deviceFormat[] = deviceInfo.getFormats();
                   for (int y = 0; y < deviceFormat.length; y++)
                        // serach for default video device
                        if (captureVideoDevice == null)
                             if (deviceFormat[y] instanceof VideoFormat)
                             if (deviceInfo.getName().indexOf(defaultVideoDeviceName) >= 0)
                             captureVideoDevice = deviceInfo;
                             Stdout.log(">>> capture video device = " + deviceInfo.getName());
                        // search for default video format
                        if (captureVideoDevice == deviceInfo)
                             if (captureVideoFormat == null)
                             if (DeviceInfo.formatToString(deviceFormat[y]).indexOf(defaultVideoFormatString) >= 0)
                             captureVideoFormat = (VideoFormat) deviceFormat[y];
                             Stdout.log(">>> capture video format = " + DeviceInfo.formatToString(deviceFormat[y]));
                        // serach for default audio device
                        if (captureAudioDevice == null)
                             if (deviceFormat[y] instanceof AudioFormat)
                             if (deviceInfo.getName().indexOf(defaultAudioDeviceName) >= 0)
                             captureAudioDevice = deviceInfo;
                             Stdout.log(">>> capture audio device = " + deviceInfo.getName());
                        // search for default audio format
                        if (captureAudioDevice == deviceInfo)
                             if (captureAudioFormat == null)
                             if (DeviceInfo.formatToString(deviceFormat[y]).indexOf(defaultAudioFormatString) >= 0)
                             captureAudioFormat = (AudioFormat) deviceFormat[y];
                             Stdout.log(">>> capture audio format = " + DeviceInfo.formatToString(deviceFormat[y]));
                        if (debugDeviceList)
                             Stdout.log(" - format: " +  DeviceInfo.formatToString(deviceFormat[y]));
              Stdout.log("... list completed.");
              // if args[x] = "-dd" terminate now
              if (debugDeviceList)
                   System.exit(0);
              // setup video data source
              MediaLocator videoMediaLocator = captureVideoDevice.getLocator();
              DataSource videoDataSource = null;
              try
                   videoDataSource = javax.media.Manager.createDataSource(videoMediaLocator);
              catch (IOException ie) { Stdout.logAndAbortException(ie); }
              catch (NoDataSourceException nse) { Stdout.logAndAbortException(nse); }
              if (! DeviceInfo.setFormat(videoDataSource, captureVideoFormat))
                   Stdout.log("Error: unable to set video format - program aborted");
                   System.exit(0);
              // setup audio data source
              MediaLocator audioMediaLocator = captureAudioDevice.getLocator();
              DataSource audioDataSource = null;
              try
                   audioDataSource = javax.media.Manager.createDataSource(audioMediaLocator);
              catch (IOException ie) { Stdout.logAndAbortException(ie); }
              catch (NoDataSourceException nse) { Stdout.logAndAbortException(nse); }
              if (! DeviceInfo.setFormat(audioDataSource, captureAudioFormat))
                   Stdout.log("Error: unable to set audio format - program aborted");
                   System.exit(0);
              // merge the two data sources
              DataSource mixedDataSource = null;
              try
                   DataSource dArray[] = new DataSource[2];
                   dArray[0] = videoDataSource;
                   dArray[1] = audioDataSource;
                   mixedDataSource = javax.media.Manager.createMergingDataSource(dArray);
              catch (IncompatibleSourceException ise) { Stdout.logAndAbortException(ise); }
              // create a new processor
              // setup output file format  ->> msvideo
              FileTypeDescriptor outputType = new FileTypeDescriptor(FileTypeDescriptor.MSVIDEO);
              // setup output video and audio data format
              Format outputFormat[] = new Format[2];
              outputFormat[0] = new VideoFormat(VideoFormat.INDEO50);
              outputFormat[1] = new AudioFormat(AudioFormat.GSM_MS /* LINEAR */);
              // create processor
              ProcessorModel processorModel = new ProcessorModel(mixedDataSource, outputFormat, outputType);
              Processor processor = null;
              try
                   processor = Manager.createRealizedProcessor(processorModel);
              catch (IOException e) { Stdout.logAndAbortException(e); }
              catch (NoProcessorException e) { Stdout.logAndAbortException(e); }
              catch (CannotRealizeException e) { Stdout.logAndAbortException(e); }
              // get the output of the processor
              DataSource source = processor.getDataOutput();
              // create a File protocol MediaLocator with the location
              // of the file to which bits are to be written
              MediaLocator dest = new MediaLocator("file:testcam.avi");
              // create a datasink to do the file
              DataSink dataSink = null;
              MyDataSinkListener dataSinkListener = null;
              try
                   dataSink = Manager.createDataSink(source, dest);
                   dataSinkListener = new MyDataSinkListener();
                   dataSink.addDataSinkListener(dataSinkListener);
                   dataSink.open();
              catch (IOException e) { Stdout.logAndAbortException(e); }
              catch (NoDataSinkException e) { Stdout.logAndAbortException(e); }
              catch (SecurityException e) { Stdout.logAndAbortException(e); }
              // now start the datasink and processor
              try
                   dataSink.start();
              catch (IOException e) { Stdout.logAndAbortException(e); }
              processor.start();
              Stdout.log("starting capturing ...");
              try { Thread.currentThread().sleep(10000); } catch (InterruptedException ie) {}     // capture for 10 seconds
              Stdout.log("... capturing done");
              // stop and close the processor when done capturing...
              // close the datasink when EndOfStream event is received...
              processor.stop();
              processor.close();
              dataSinkListener.waitEndOfStream(10);
              dataSink.close();
              Stdout.log("[all done]");
    }finally search with the athour name there is an additional program u must download to detect ur cam .
    i hope that is work with u

  • Problem with capturing image

    http://1drv.ms/1jWJ5a3
    Problem with capturing image. Logs included.
    Also after deploying letters are swapped. System is on D drive, and data on C drive.
    Any idea ?

    Based on the logfiles:
    SMSSITECODE=K01
    SMSMP=SCCM.kolubara.local
    you could also use DNSSUFFIX=kolubara.local
    More on CCMSetup parameters can be found here
    http://technet.microsoft.com/en-us/library/gg699356.aspx. Use client.msi parameters in your task sequence separated by spaces, so that your Setup Windows & Configuration Manager Client -step looks like this:

  • Capturing live image from integrated Webcam using Labview

    How can i capture live image from my laptop integrated webcam using LabVIEW ?
    Even after installing all the IMAQ drivers, MAX is not displaying my integrated webcam ?
    Why is it so ?
    do i need to install some additional drivers for this ?
    Thanks and Regards
    Gaurav Pal

    hi, you can use NI Vision Assistant
    IDE ofNI Vision Assistant
    ..select acquire images
    ...select option 2
    ...select devices: CAM0 (default webcam), video mode resolution 
    ...option 1 acquire single, option 2 acquire continuous 
    Atom
    Certified LabVIEW Associate Developer

  • Big problems with creative webcam instant (sample included)

    yesterday i purchased a creative webcam instant, and i am dissapointed in the quality of the video.
    The frame rate is great, however there is artifacting and the video jumps around all over the place.
    I have never had a problem with any other imaging devices before, so i cant see why this is happening with this camera.
    This happens with the creative webcam center, and also in any other application that uses video from the camera (such as any instant messenger program)
    Here is a .88 meg file to show you how the video jumps around.
    http://steven.moondrummer.com/misc/space/4328.avi

    Blah! The WEBCamInstant is "cheap" & nasty & for beach light only.
    1. You have a USB-2?
    -> calgarysteven ... 0-24-2004 09:47 PM
    2. Try in WebCamCenter - Capture - Source - Exposure to Min. Too dark?

  • Problem with Capture Device Formats

    Hi!, i have 2 questions:
    On Windows the direction of the camera that is connected is: vfw:Microsoft WDM Image Capture (Win32):0
    What is the direction on Linux?
    And the second:
    In some PCs (only two), when I try get the camera's supported formats, I don´t get any, but if I run the JMF Studio if I displayed, why can it be?
    the code is:
    public Vector ObtenerFormatosSopotados() throws NoDataSourceException, IOException{
                   Vector<Format> vectorFormatos = new Vector<Format>();
                        //comprobamos que el origen de datos en un dispositivo de captura(webcam)
                         if (this.origenDatos instanceof CaptureDevice) {
                               FormatControl[] fcs = ((CaptureDevice) this.origenDatos).getFormatControls();
                               for (FormatControl fc : fcs) {
                                   Format[] formats = ((FormatControl) fc).getSupportedFormats();
                                   for (Format format : formats) {
                                        if(format instanceof RGBFormat)
                                             vectorFormatos.add(format);
                   return vectorFormatos;
              }In the most of PCs I've had no problems, the RGB Formats are show.
    Thank!!
    Edited by: NickNN5 on Jun 12, 2010 2:00 AM

    NickNN5 wrote:
    Hi!, i have 2 questions:
    On Windows the direction of the camera that is connected is: vfw:Microsoft WDM Image Capture (Win32):0
    On Windows, you should use "vfw://0" if you're hard-coding the media locator...
    What is the direction on Linux?On Linux, you should use "vfl://0" if you're hard-coding the media locator...
    In some PCs (only two), when I try get the camera's supported formats, I don´t get any, but if I run the JMF Studio if I displayed, why can it be?It'd be helpful if you specified how deep into your code the failure states reach. For instance, it's a much different issue if (this.origenDatos instanceof CaptureDevice) fails than if you aren't getting any format controls or if you're not getting any supported formats.
    With the amount of information I have, I'm going to suggest you don't have JMF installed correctly / linked correctly on those failure machines.

  • "Unable to capture window image"

    if I select a window to be screenshot, I get this error:
    Your screen shot can’t be saved.
    Unable to capture window image.
    (shortcut: cmd-shift-4 and then space)
    It seems to be new in Lion. Never had that problem before. And regular screenshots seem to work fine (cmd-shift-3).
    Thanks for any help! ~ Kai

    Thanks Davide ...
    I created com.apple.screencapture.plist with Terminal and restarted the Mac.
    The first couple of window screenshots worked on a Chrome browser window (command-shift-4, then space bar). But it did not work on other app's windows (Finder, Carousel).
    Then I switched back to Chrome and I didn't work there too anymore. Crazy thing is that now it works on Finder windows. Very very strange.
    All this is only true for capturing a whole window content (command-shift-4, then space bar)
    ~ Kai

  • Capture an image using the web camera from a web application

    Hi All,
    Could anyone please share the steps what have to be followed for capture an image using the web camera from a web application.
    I have a similar requirement like this,
    1) Detect the Webcam on the users machine from the web application.(To be more clear when the user clicks on 'Add Photo' tool from the web application)
    2) When the user confirms to save, save the Image in users machine at some temporary location with some unique file name.
    3) Upload the Image to the server from the temporary location.
    Please share the details like, what can be used and how it can be used etc...
    Thanks,
    Suman

    1) Detect the Webcam on the users machine from the web application.(To be more clear when the user clicks on 'Add Photo' tool from the web application)There's not really any good way to do this with JMF. You'd have to somehow create a JMF web-start application that will install the native JMF binaries, and then kick off the capture device scanning code from the application, and then scan through the list of devices found to get the MediaLocator of the web cam.
    2) When the user confirms to save, save the Image in users machine at some temporary location with some unique file name.You'd probably be displaying a "preview" window and then you'd just want to capture the image. There are a handful of ways you could capture the image, but it really depends on your situation.
    3) Upload the Image to the server from the temporary location.You can find out how to do this on google.
    All things told, this application is probably more suited to be a FMJ (Freedom for Media in Java) application than a JMF application. JMF relies on native code to capture from the web cams, whereas FMJ does not.
    Alternately, you might want to look into Adobe Flex for this particular application.

  • Capturing an image to use for PXE boot

    I'm using Windows Deployment Services in conjunction with Windows Deployment Terminal (Windows Server 2008) to capture an image from one of our workstations to use as a PXE boot image for future computers. I've created the capture image and PXE booted
    to that image, which brings up the "Image Capture" wizard. After capturing the image, I created an install image in WDS using the same .wim file. After trying to PXE boot, the workstation yet again brings up the "Image Capture" wizard.
    I then right clicked the image under Boot Images (in WDS) and selected "Create Discover Boot Image." A loading window pops up, but always ends with an error saying something to the extent of the image doesn't have WDSClient Binaries. Does anyone
    know what this is or how to fix this? Or even if I'm going about it the right way? If anyone has any advice, I'd appreciate it.

    Hi,
    Yes, you can.
    Here are the rough steps:
    1. 
    Install and configure the WDS Server.
    2. 
    Add the Windows 7 boot image to WDS.
    3. 
    Create a Capture Boot Image and add it to Boot Image.
    4. 
    Create a reference Windows 7 computer (install Windows 7, Office and other applications as you like)
    5. 
    Sysprep the Windows 7 computer.
    6. 
    PXE boot the reference Windows 7 computer into capture image on the boot screen and then capture the image.
    7. 
    Upload the captured image to WDS server.
    8. 
    PXE boot clients, choose the captured image to install the system.
    Please refer to this link
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/be3af7db-b71b-4b14-b166-fef83cde0ac6/deploy-windows-7-from-waik-with-some-application-added?forum=winserversetup
    I had the similar problem couple of years back
    UMESH DEUJA MCP,MCTS,MCSA,CCNA

  • How to change the path of sysprep files that were copied to reference computer when i capture the image from reference.

    Dears ,,
    how to change the path that sysprep were copied to reference computer when i capture the image from reference.
    Should i modify some codes in LTIAPPLY.wsf? how to modify it?
    Thanks.

    Sysprep and capture has *Three* steps.
    1. Run sysprep on the local machine (easy).
    2. Copy WinPE down to the local machine so we can reboot into winpe for capture.
    3. Capture the drive in an *offline* state from within WinPE.
    What is most likely happening is that you are having problems with step #2. 100MB is *WAY* too small to copy down WinPE. By default MDT will make this System partition much bigger, 499MB. IF you install Windows 7 from the default media. IT will only create
    a 100MB partition.
    By default MDT 2012 Update 1 and greater *should* recover to a fallback drive with the OS on it, however if you are running older versions that might not happen correctly.
    If you are still having problems, copy your BDD.log file to a public share like OneDrive and copy the link here.
    Keith Garner - keithga.wordpress.com

  • Image Capture Boot Image Fails with 0xc000000f

    I am trying to capture a Windows 8.1 Enterprise (with Update) x64 installation using WDS, but the Capture Image fails to load. I used the boot.wim from the Windows Server 2012 R2 (with Update) ISO to create a boot image in WDS and then a capture image from
    it. After I press F12 and the progress bar finishes the following message appears:
    This only happens when I boot the capture image - the original boot image that I imported in WDS boots normally. I also tried with the Windows 8.1 (with Update) boot.wim, but the issue reoccurs. This is a Hyper-V VM on Windows Server
    2012. Is this a problem with the recent update?

    Hi,
    We’re currently experiencing exactly the same issue. Also a fully-updated Server 2012R2 (with the recent KB2919355 update) machine.
    So far, I found two other posts with exactly the same issue:
    1) http://wp.secretnest.info/?p=1474
    2)
    http://community.spiceworks.com/topic/472581-wds-capture-image-winload-exe-corrupt-or-missing
    According to these posts it seems like the issue occurs after the first time a capture image based upon a Windows 8.1 or Server2012R2 boot.wim is created.
    What I’ve tried so far is removing the server role, deleting the WDS store, rebooting the server and start over with a Windows 7 boot.wim. The normal boot.wim starts ok, but the created capture image doesn’t.
    So the process of creating the capture boot image did ‘something’ in a way the new boot.wim differences from the old boot.wim. To find out what, I first mounted the new .wim file to see if winload.exe is actually there – it is both in
    system32 as well as systen32\boot. So my second guess was that the Windows Boot Manager cannot find the windows loader, because of an incorrect declaration of disks in the BCD store.
    I used BCDEDIT to show the differences between the working and non-working boot images:
    Windows Boot Loader
    identifier {1d214c07-6892-401c-a762-04647ad38560}
    device ramdisk=[boot]\Boot\x64\Images\boot.wim,{b321afc0-8a23-4
    961-85dd-a10f3c46473f}
    description Windows 7 Boot Image
    osdevice ramdisk=[boot]\Boot\x64\Images\boot.wim,{68d9e51c-a129-4
    ee1-9725-2ab00a957daf}
    systemroot \WINDOWS
    detecthal Yes
    winpe Yes
    Device options
    identifier {b321afc0-8a23-4961-85dd-a10f3c46473f}
    inherit {68d9e51c-a129-4ee1-9725-2ab00a957daf}
    ramdiskmcenabled No
    ramdiskmctftpfallback Yes
    -- Second - Non Working disk --
    Windows Boot Loader
    identifier {872352a0-0ad9-46f6-8612-1aed71ea8534}
    device ramdisk=[boot]\Boot\x64\Images\boot-win7-capture.wim,{7a
    b86a3a-3651-4f50-a748-34f3e784158c}
    description Windows 7 Capture
    osdevice ramdisk=[boot]\Boot\x64\Images\boot-win7-capture.wim,{68
    d9e51c-a129-4ee1-9725-2ab00a957daf}
    systemroot \WINDOWS
    detecthal Yes
    winpe Yes
    Device options
    identifier {7ab86a3a-3651-4f50-a748-34f3e784158c}
    inherit {68d9e51c-a129-4ee1-9725-2ab00a957daf}
    ramdiskmcenabled No
    ramdiskmctftpfallback Yes
    So the ID for the osdevice is the same, and only the device is different, but mentioned correctly under Device options (as far as my knowledge goes in this subject). I hope there will be a solution anytime soon.

  • Problem: codebase, jar and image reloading problem please help!

    Hi Java Gurus,
    I have written an applet that extends JApplet for viewing webcam. In order to reduce the download time I put my classes into a doorcam.jar file. The following is my <applet> tag in my html file.
    <applet code="CameraApplet.class"
    archive="doorcam.jar"
         codebase = "webcam/classes"
         width="375" height="475">
    <param name="imagePath" value="http://judge/webcam/images">
    <param name="webCamImage" value="door.jpg">
    <param name="COMPort" value="COM2">
    <param name="frameRate" value="10"> <!-- could not exceed more than 10-->
    <param name="host" value="judge">
    </applet>
    The fist problem is that my class file does not get loaded from the jar file if i provide the "codebase" attribute as above. Instead the browser load every single class file from the webserver. This has some problem too. Coz the browser sometimes just thorough NullPointerException or ClassNotFoundException. After much of debugging I found out that the problem is the IE browser which seldom fails to load classes or image file from the server. If i referesh the browser the applet and all its classes loaded successfully and runs smoothly. This behaviour never occurs when running with "appletviewer".
    I wanted all my classes to be loaded from my jar file. After much of trial and error I found out that if i remove "codebase" attribute the browser loads the classes from my jar file and applet loads very fast. This is where the second problem comes in. The browser does not reload my webcam image file so that the webcam become alive with live images, like before.
    If I run on "appletviewer" everything works fine my web cam is displayed properly. But in IE browser the image does not get reloaded when I refresh my image to give live to my webcam display. The refresh method is given below.
    private void refresh(final URL url) {
    Image webCamImage =getImage(url);
    webCamImage.flush(); // flush out the previous image
    webCamImage = getImage(url); // get a new image
    webCamImageIcon.setImage(webCamImage); webCamImageIcon.paintIcon(webCamLabel, webCamLabel.getGraphics(), 15, 15);
    When I add the "codebase" attribute back, the image gets reloaded for every refresh() and everything works fine. But the classes are also loaded from the server. And occasionally also suffers Class loading and image loading problem. As I presented earlier, when I do refreshing in the browser everything gets loaded and the applet function correctly with web cam displaying very well.
    The problem is so strange that I could not find any way to solve it.
    It would be a great help to me if somebody provide me some work around to the problem.
    I tested on Windows 2000, Windows XP, IE 5.5, IE 6 with J2SDK 1.4.0.
    Thank you all very much in advance.
    best regards,
    Judge

    Thank you so much for the suggestions. I did tried the way u suggested. The problem still the same.
    I think its the problem between IE browser and Java Plug-in.
    I which SUN would find these incompatibilities and solve these problems.
    I even tried using java SDK and plug-in 1.4.1 it even worst. It can't even load an applet. And it does not show any loading messages nor any error messages. It just show a cross sign on the upper left coner.
    I would be so glad, if Sun would try to eliminate the inconsistancies such as caching, loading, initializing etc between browser and its Java plug-In. For example, applets behave well in appletviewer and behave unpredictably in browser environment.
    I have seen so many people in the forums with all sorts of problems because of this.
    Right now I m desperately looking for work around to my problem.
    If somebody would provide me with the solution to my problem it would be a great help to me.
    thank you all so much.
    best regards,
    Judge

  • FMLE encoding stopped: Problem with capture device. Incorrect samples given by the device.

    Hi Support,
    I am trying to use FMLE to encode and stream video from an Axis P1346 IP camera, via Axis' Streaming Assistant software, to a Wowza server.
    Everyting appears to be working perfectly and the encoding and resultant stream quality is excellent. Sometimes after a few hours and sometimes after just a few minutes, the encoding will stop with the following error:
    Tue Mar 26 2013 11:47:18 : Session Stopped
    Tue Mar 26 2013 11:47:18 : Problem with capture device. Incorrect samples given by the device. Stopping encoding session.
    I have attached a recent log of a session that only lasted a few minutes - do you have any ideas on how to resolve this instability?
    =================================================================
    File: C:\Program Files (x86)\Adobe\Flash Media Live Encoder 3.2\FlashMediaLiveEncoder.exe
    Description: Adobe® Flash® Media Live Encoder
    Copyright: © 2009 - 10 Adobe Systems Incorporated. All Rights Reserved. Adobe, the Adobe logo, and Flash are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States and/or other countries. All other trademarks are the property of their respective owners. <AdobeIP#0000716>
    Version: 3.2.0.9932
    =================================================================
    Tue Mar 26 2013 11:42:10 : Selected video input device: TowerBridge
    Tue Mar 26 2013 11:42:10 : Failed with error 80040154:CoCreateInstance(CLSID_VideoMixingRenderer9, NULL, CLSCTX_INPROC, IID_IBaseFilter, pFilterVideoMixingRenderer.ppv())
    Tue Mar 26 2013 11:42:10 : Display Color Quality Warning : Display color quality is currently lower than 32 bit. Colors in video display may be distorted when encoding is not on. To change the display color, open the Display Properties, Settings tab and change color quality to 32 bit.
    Tue Mar 26 2013 11:42:12 : No audio capture devices detected. : Flash Media Live Encoder requires an audio capture device to be connected and properly installed.
    Tue Mar 26 2013 11:42:24 : Primary - Connected to FMS/3,5,7,7009
    Tue Mar 26 2013 11:42:24 : Primary - Network Command: onFCPublish
    Tue Mar 26 2013 11:42:24 : Primary - Stream[fmlestream] Status: Success
    Tue Mar 26 2013 11:42:24 : Primary - Stream[fmlestream] Status: NetStream.Publish.Start
    ==========================================================
    <?xml version="1.0" encoding="UTF-16"?>
    <flashmedialiveencoder_profile>
        <preset>
            <name>Custom</name>
            <description></description>
        </preset>
        <capture>
            <video>
            <device>TowerBridge</device>
            <crossbar_input>0</crossbar_input>
            <frame_rate>30.00</frame_rate>
            <size>
                <width>640</width>
                <height>360</height>
            </size>
            </video>
            <timecode>
            <frame_rate>15</frame_rate>
            <systemtimecode>true</systemtimecode>
            <devicetimecode>
                <enable>false</enable>
                <vertical_line_no>16</vertical_line_no>
                <burn>false</burn>
                <row>Bottom</row>
                <column>Left</column>
            </devicetimecode>
            </timecode>
        </capture>
        <encode>
            <video>
            <format>H.264</format>
            <datarate>1000;</datarate>
            <outputsize>640x360;</outputsize>
            <advanced>
                <profile>Baseline</profile>
                <level>3.1</level>
                <keyframe_frequency>1 Second</keyframe_frequency>
            </advanced>
            <autoadjust>
                <enable>false</enable>
                <maxbuffersize>1</maxbuffersize>
                <dropframes>
                <enable>false</enable>
                </dropframes>
                <degradequality>
                <enable>false</enable>
                <minvideobitrate></minvideobitrate>
                <preservepfq>false</preservepfq>
                </degradequality>
            </autoadjust>
            </video>
        </encode>
        <restartinterval>
            <days></days>
            <hours></hours>
            <minutes></minutes>
        </restartinterval>
        <reconnectinterval>
            <attempts></attempts>
            <interval></interval>
        </reconnectinterval>
        <output>
            <rtmp>
            <url>rtmp://localhost/live</url>
            <backup_url></backup_url>
            <stream>fmlestream</stream>
            </rtmp>
        </output>
        <metadata>
            <entry>
            <key>author</key>
            <value>Octopus MT</value>
            </entry>
            <entry>
            <key>copyright</key>
            <value>Octopus MT</value>
            </entry>
            <entry>
            <key>description</key>
            <value>Tower Bridge - London, UK</value>
            </entry>
            <entry>
            <key>keywords</key>
            <value>"Tower Bridge", London</value>
            </entry>
            <entry>
            <key>rating</key>
            <value></value>
            </entry>
            <entry>
            <key>title</key>
            <value>Tower Bridge - LIVE</value>
            </entry>
        </metadata>
        <preview>
            <video>
            <input>
                <zoom>100%</zoom>
            </input>
            <output>
                <zoom>100%</zoom>
            </output>
            </video>
            <audio></audio>
        </preview>
        <log>
            <level>100</level>
            <directory>C:\Users\Administrator\Videos</directory>
        </log>
    </flashmedialiveencoder_profile>
    ==========================================================
    DumpGraph [00CA91F8]
        Filter [00CABFDC] Output Video Renderer
              Pin [00CAC3B4] Input [Input] Connected to pin [00CACE1C]
        Filter [00CA9C8C] Input Video Renderer
              Pin [00CAA064] Input [Input] Connected to pin [03BA33A4]
        Filter [02F6AF10] Mux
              Pin [02F6AF70] FLV7 [Input] Connected to pin [02F6FC00]
              Pin [02F6B790]  audio [ Input] This pin is not Connected
              Pin [02F6BA08]  out [ Output] This pin is not Connected
        Filter [00CAEADC] AVI Decompressor 0003
              Pin [00CAEC14] XForm In [Input] Connected to pin [02F70D88]
              Pin [00CACE1C] XForm Out [Output] Connected to pin [00CAC3B4]
        Filter [03BA326C] AVI Decompressor
              Pin [00CAACD4] XForm In [Input] Connected to pin [02F68BF8]
              Pin [03BA33A4] XForm Out [Output] Connected to pin [00CAA064]
        Filter [02F70048] H264 Compressor
              Pin [02F70070] Input [Input] Connected to pin [02F6F898]
              Pin [02F70D88] Preview [Output] Connected to pin [00CAEC14]
              Pin [02F6FC00] Output1 [Output] Connected to pin [02F6AF70]
              Pin [02F71228]  Output2 [ Output] This pin is not Connected
        Filter [02F68AF0] Input RGB
              Pin [02F68B08] Input [Input] Connected to pin [02F60178]
              Pin [02F68BF8] Output [Output] Connected to pin [00CAACD4]
        Filter [02F6F118] FPS Controller Encoder
              Pin [02F6F128] Input [Input] Connected to pin [02F6E880]
              Pin [02F6F898] Output [Output] Connected to pin [02F70070]
        Filter [02F5FAB8] YV12
              Pin [02F5FAD0] Input [Input] Connected to pin [03BA3F24]
              Pin [02F60178] Output [Output] Connected to pin [02F68B08]
        Filter [02F6E778] Resize
              Pin [02F6E790] Input [Input] Connected to pin [02F6E620]
              Pin [02F6E880] Output [Output] Connected to pin [02F6F128]
        Filter [02F6DF60] YV12 0002
              Pin [02F6DF78] Input [Input] Connected to pin [02F6DE00]
              Pin [02F6E620] Output [Output] Connected to pin [02F6E790]
        Filter [02F6D680] FPS Controller Resize
              Pin [02F6D690] Input [Input] Connected to pin [00CA9B6C]
              Pin [02F6DE00] Output [Output] Connected to pin [02F6DF78]
        Filter [00CAB9CC] Video Tee
              Pin [00CABA34] Input [Input] Connected to pin [03B9EE9C]
              Pin [03BA3F24] Output1 [Output] Connected to pin [02F5FAD0]
              Pin [00CA9B6C] Output2 [Output] Connected to pin [02F6D690]
              Pin [03BA3454]  Output3 [ Output] This pin is not Connected
        Filter [00CA99C4] Smart Tee
              Pin [00CA9A2C] Input [Input] Connected to pin [00C0974C]
              Pin [03B9EE9C] Capture [Output] Connected to pin [00CABA34]
              Pin [00CAE204]  Preview [ Output] This pin is not Connected
        Filter [00C0A6DC] SOURCE
              Pin [00C0974C] Video [Output] Connected to pin [00CA9A2C]
    DumpGraph [00CA91F8]
        Filter [00CABFDC] Output Video Renderer
              Pin [00CAC3B4] Input [Input] Connected to pin [00CACE1C]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {E436EB7A-524F-11CE-9F53-0020AF0BA770}  MEDIASUBTYPE_RGB8
    Not temporally compressed
    Sample size 230400
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 8 bpp c:0
    Image size 230400
    Planes 1
    Pels per metre (0, 0)
    Colours used 256
    AvgTimePerFrame 333333, 30 fps
        Filter [00CA9C8C] Input Video Renderer
              Pin [00CAA064] Input [Input] Connected to pin [03BA33A4]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {E436EB7A-524F-11CE-9F53-0020AF0BA770}  MEDIASUBTYPE_RGB8
    Not temporally compressed
    Sample size 230400
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 8 bpp c:0
    Image size 230400
    Planes 1
    Pels per metre (0, 0)
    Colours used 256
    AvgTimePerFrame 333333, 30 fps
        Filter [02F6AF10] Mux
              Pin [02F6AF70] FLV7 [Input] Connected to pin [02F6FC00]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {37564C46-0000-0010-8000-00AA00389B71}  Unknown GUID Name
    Temporally compressed
    Variable size samples
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 12 bpp c:37564c46
    Image size 345600
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
              Pin [02F6B790]  audio [ Input] This pin is not Connected
              Pin [02F6BA08]  out [ Output] This pin is not Connected
        Filter [00CAEADC] AVI Decompressor 0003
              Pin [00CAEC14] XForm In [Input] Connected to pin [02F70D88]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {30323449-0000-0010-8000-00AA00389B71}  Unknown GUID Name
    Not temporally compressed
    Sample size 345600
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 12 bpp c:30323449
    Image size 345600
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
              Pin [00CACE1C] XForm Out [Output] Connected to pin [00CAC3B4]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {E436EB7A-524F-11CE-9F53-0020AF0BA770}  MEDIASUBTYPE_RGB8
    Not temporally compressed
    Sample size 230400
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 8 bpp c:0
    Image size 230400
    Planes 1
    Pels per metre (0, 0)
    Colours used 256
    AvgTimePerFrame 333333, 30 fps
        Filter [03BA326C] AVI Decompressor
              Pin [00CAACD4] XForm In [Input] Connected to pin [02F68BF8]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {56555949-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_IYUV
    Not temporally compressed
    Sample size 345600
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 12 bpp c:56555949
    Image size 345600
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
              Pin [03BA33A4] XForm Out [Output] Connected to pin [00CAA064]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {E436EB7A-524F-11CE-9F53-0020AF0BA770}  MEDIASUBTYPE_RGB8
    Not temporally compressed
    Sample size 230400
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 8 bpp c:0
    Image size 230400
    Planes 1
    Pels per metre (0, 0)
    Colours used 256
    AvgTimePerFrame 333333, 30 fps
        Filter [02F70048] H264 Compressor
              Pin [02F70070] Input [Input] Connected to pin [02F6F898]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {32315659-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_YV12
    Not temporally compressed
    Sample size 345600
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 12 bpp c:32315659
    Image size 345600
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
              Pin [02F70D88] Preview [Output] Connected to pin [00CAEC14]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {30323449-0000-0010-8000-00AA00389B71}  Unknown GUID Name
    Not temporally compressed
    Sample size 345600
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 12 bpp c:30323449
    Image size 345600
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
              Pin [02F6FC00] Output1 [Output] Connected to pin [02F6AF70]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {37564C46-0000-0010-8000-00AA00389B71}  Unknown GUID Name
    Temporally compressed
    Variable size samples
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 12 bpp c:37564c46
    Image size 345600
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
              Pin [02F71228]  Output2 [ Output] This pin is not Connected
        Filter [02F68AF0] Input RGB
              Pin [02F68B08] Input [Input] Connected to pin [02F60178]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {32315659-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_YV12
    Not temporally compressed
    Sample size 345600
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 12 bpp c:32315659
    Image size 345600
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
              Pin [02F68BF8] Output [Output] Connected to pin [00CAACD4]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {56555949-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_IYUV
    Not temporally compressed
    Sample size 345600
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 12 bpp c:56555949
    Image size 345600
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
        Filter [02F6F118] FPS Controller Encoder
              Pin [02F6F128] Input [Input] Connected to pin [02F6E880]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {32315659-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_YV12
    Not temporally compressed
    Sample size 345600
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 12 bpp c:32315659
    Image size 345600
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
              Pin [02F6F898] Output [Output] Connected to pin [02F70070]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {32315659-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_YV12
    Not temporally compressed
    Sample size 345600
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 12 bpp c:32315659
    Image size 345600
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
        Filter [02F5FAB8] YV12
              Pin [02F5FAD0] Input [Input] Connected to pin [03BA3F24]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {32595559-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_YUY2
    Not temporally compressed
    Sample size 460800
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 16 bpp c:32595559
    Image size 460800
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
              Pin [02F60178] Output [Output] Connected to pin [02F68B08]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {32315659-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_YV12
    Not temporally compressed
    Sample size 345600
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 12 bpp c:32315659
    Image size 345600
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
        Filter [02F6E778] Resize
              Pin [02F6E790] Input [Input] Connected to pin [02F6E620]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {32315659-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_YV12
    Not temporally compressed
    Sample size 345600
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 12 bpp c:32315659
    Image size 345600
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
              Pin [02F6E880] Output [Output] Connected to pin [02F6F128]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {32315659-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_YV12
    Not temporally compressed
    Sample size 345600
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 12 bpp c:32315659
    Image size 345600
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
        Filter [02F6DF60] YV12 0002
              Pin [02F6DF78] Input [Input] Connected to pin [02F6DE00]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {32595559-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_YUY2
    Not temporally compressed
    Sample size 460800
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 16 bpp c:32595559
    Image size 460800
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
              Pin [02F6E620] Output [Output] Connected to pin [02F6E790]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {32315659-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_YV12
    Not temporally compressed
    Sample size 345600
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 12 bpp c:32315659
    Image size 345600
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
        Filter [02F6D680] FPS Controller Resize
              Pin [02F6D690] Input [Input] Connected to pin [00CA9B6C]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {32595559-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_YUY2
    Not temporally compressed
    Sample size 460800
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 16 bpp c:32595559
    Image size 460800
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
              Pin [02F6DE00] Output [Output] Connected to pin [02F6DF78]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {32595559-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_YUY2
    Not temporally compressed
    Sample size 460800
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 16 bpp c:32595559
    Image size 460800
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
        Filter [00CAB9CC] Video Tee
              Pin [00CABA34] Input [Input] Connected to pin [03B9EE9C]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {32595559-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_YUY2
    Not temporally compressed
    Sample size 460800
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 16 bpp c:32595559
    Image size 460800
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
              Pin [03BA3F24] Output1 [Output] Connected to pin [02F5FAD0]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {32595559-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_YUY2
    Not temporally compressed
    Sample size 460800
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 16 bpp c:32595559
    Image size 460800
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
              Pin [00CA9B6C] Output2 [Output] Connected to pin [02F6D690]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {32595559-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_YUY2
    Not temporally compressed
    Sample size 460800
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 16 bpp c:32595559
    Image size 460800
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
              Pin [03BA3454]  Output3 [ Output] This pin is not Connected
        Filter [00CA99C4] Smart Tee
              Pin [00CA9A2C] Input [Input] Connected to pin [00C0974C]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {32595559-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_YUY2
    Not temporally compressed
    Sample size 460800
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 16 bpp c:32595559
    Image size 460800
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
              Pin [03B9EE9C] Capture [Output] Connected to pin [00CABA34]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {32595559-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_YUY2
    Not temporally compressed
    Sample size 460800
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 16 bpp c:32595559
    Image size 460800
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
              Pin [00CAE204]  Preview [ Output] This pin is not Connected
        Filter [00C0A6DC] SOURCE
              Pin [00C0974C] Video [Output] Connected to pin [00CA9A2C]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {32595559-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_YUY2
    Not temporally compressed
    Sample size 460800
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 16 bpp c:32595559
    Image size 460800
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
    Tue Mar 26 2013 11:42:24 : Session Started
    Tue Mar 26 2013 11:42:24 : Video Encoding Started
    Tue Mar 26 2013 11:47:18 : Video Encoding Stopped
    Tue Mar 26 2013 11:47:18 : Session Stopped
    Tue Mar 26 2013 11:47:18 : Problem with capture device. Incorrect samples given by the device. Stopping encoding session.
    Tue Mar 26 2013 11:47:18 : Primary - Network Command: onFCUnpublish
    Tue Mar 26 2013 11:47:18 : Primary - Stream[fmlestream] Status: NetStream.Unpublish.Success
    Tue Mar 26 2013 11:47:18 :
    ================== Encoding Statistics ====================
                            Current                        
                                           Input              Output
                 Time    Bit Rate     Drops      fps     Drops      fps
    Audio  :                                 
    Video 1:   0:04:50    644 Kbps        72    74.00         0    15.00
                            Average                         
                                           Input              Output
                 Time    Bit Rate     Drops      fps     Drops      fps
    Audio  :                                 
    Video 1:   0:04:50    983 Kbps        75    29.40         0    29.36
    ===========================================================
    ================= Publishing Statistics ===================
             Bandwidth     Buffer   Frame Drops
    Primary:  824 Kbps   0.00 Sec          0
    Backup :    0 Kbps   0.00 Sec          0
    ===========================================================
    Tue Mar 26 2013 11:47:18 : Failed with error 80040273:CoCreateInstance(CLSID_VideoMixingRenderer9, NULL, CLSCTX_INPROC, IID_IBaseFilter, pFilterVideoMixingRenderer.ppv())
    Tue Mar 26 2013 11:47:56 : Primary - Network Status: NetConnection.Connect.Closed status
    Tue Mar 26 2013 11:47:56 : Primary - Disconnected
    Thank you for your assistance
    Richard

    Please attach the session log file.

Maybe you are looking for