Problem with video capture

We expect "Captfoss" to reply soon..
Code:-
import java.awt.*;
import java.net.*;
import javax.media.*;
import java.awt.event.*;
import javax.swing.*;
import javax.media.format.*;
import javax.media.protocol.*;
public class JMF2 extends JFrame implements ControllerListener,ActionListener
     Processor p=null;
     DataSink sink;
     MenuBar mb;
     MenuItem start,stop;
     Menu file;
     ProcessorModel model;
     Format formats;
     DataSource source;
     JMF2()
          setVisible(true);
          setSize(800,600);
          setLayout(new BorderLayout());
          mb=new MenuBar();
          file=new Menu("File");
          start=new MenuItem("Start");
          start.setEnabled(false);
          stop=new MenuItem("Stop");
          file.add(start);file.add(stop);          
          mb.add(file);          
          setMenuBar(mb);
          start.addActionListener(this);
          stop.addActionListener(this);
          addWindowListener(new WindowAdapter()
               public void windowClosing(WindowEvent we)
                    System.exit(0);
          try
               formats=new VideoFormat(VideoFormat.CINEPAK);
               model = new ProcessorModel(new Format[]{formats}, new FileTypeDescriptor(FileTypeDescriptor.QUICKTIME));
               p=Manager.createRealizedProcessor(model);
               source=p.getDataOutput();
               sink = Manager.createDataSink(source, new MediaLocator("file:///c:/New.mov"));
               p.addControllerListener(this);
               p.realize();
          catch (Exception e)
               System.err.println("Got exception "+e);
     public void actionPerformed(ActionEvent ae)
          try
               if(ae.getActionCommand().equals("Start"))
                    p.start();
                    sink.open();
                    sink.start();
                    System.out.println("start");
               else
                    sink.stop();
                    sink.close();
                    p.stop();
                    System.out.println("stop");
          catch(Exception e)
               System.out.println("Some problem "+e);
     public synchronized void controllerUpdate(ControllerEvent ce)
          try
               if (ce instanceof RealizeCompleteEvent)
                    Component comp;
                    System.out.println("Realized");     
                    start.setEnabled(true);
                    if ((comp = p.getVisualComponent()) != null)
                         add (BorderLayout.CENTER, comp);
                    else
                         System.out.println("No vis com");
                    if ((comp = p.getControlPanelComponent()) != null)
                         add (BorderLayout.SOUTH, comp);
                    validate();
                    System.out.println("Updated");
          catch(Exception e)
               System.out.println("Exception rasied "+e);
     public static void main(String s[])
          new JMF2();
1..This is the code which we used for capturing and saving video in the disk..But we got a mov file created zero size..what is the reason for that..Can any one suggest a better way for this..
2..Is Creative Webcam II supported by JMF 2.1 ..
3..Suggest any other format for audio and video capturing and saving..
Thanks in advance..

Thanks T.B.M..
It worked..My webcam details are as follows:
{color:#ff6600}Name = vfw:Microsoft WDM Image Capture (Win32):0
Locator = vfw://0
{color}
It suports the following formats..
{color:#ff6600}
0. javax.media.format.RGBFormat
RGB, 320x240, Length=230400, 24-bit, Masks=3:2:1, PixelStride=3, LineStride=960, Flipped
1. javax.media.format.RGBFormat
RGB, 160x120, Length=57600, 24-bit, Masks=3:2:1, PixelStride=3, LineStride=480, Flipped
2. javax.media.format.RGBFormat
RGB, 176x144, Length=76032, 24-bit, Masks=3:2:1, PixelStride=3, LineStride=528, Flipped
3. javax.media.format.RGBFormat
RGB, 352x288, Length=304128, 24-bit, Masks=3:2:1, PixelStride=3, LineStride=1056, Flipped
4. javax.media.format.RGBFormat
RGB, 640x480, Length=921600, 24-bit, Masks=3:2:1, PixelStride=3, LineStride=1920, Flipped
{color}
So made the following changes in my code..
dl=CaptureDeviceManager.getDeviceList(new VideoFormat(VideoFormat.{color:#ff6600}RGB{color}));
ml=((CaptureDeviceInfo)dl.firstElement()).getLocator();
formats=new VideoFormat(VideoFormat.RGB);
model = new ProcessorModel(ml,new Format[]{formats}, new FileTypeDescriptor(FileTypeDescriptor.{color:#ff6600}MSVIDEO{color}));
p=Manager.createRealizedProcessor(model);
source=p.getDataOutput();
sink = Manager.createDataSink(source, new MediaLocator("file:///c:/Adiyae.{color:#ff6600}avi{color}"));
p.addControllerListener(this);
p.realize();
Now the file is getting created with its size depending upon how long i capture..This is fine..But when i try to play the file using a media player it doesnt open.. when i tried opening it with JMStudio i get the following message..
{color:#ff6600}Controller Error:
Failed to realize:Failed to parse the input media..
{color}Also can you tell me how to choose the FileTypeDescriptors for a particular video format.. The only FileTypeDescriptor that works with mine is the MSVIDEO..
Thanks in advance..
Edited by: s.baalajee on Dec 8, 2008 5:40 AM

Similar Messages

  • Problem with Video capture Device

    i have a problem with FME. i am using Avermedia TV capture
    device and Canon 3ccd Digital Video Camcorder ( PAL ) when i open
    the FME interface the warning given for " Problem with Video
    Capture Device".
    i read all the topics in Flash Media Encoder Category, if
    this problem occures my capture device ( i expect MPEG ) how to
    solve this problem?
    Thanks,

    The Device Matrix is something we'll be updating in the
    future as we continue to test more and more equipement. Ideally, I
    would like for users such as yourselves to be able to add to it and
    tell us what has worked for you as well. If anyone has any ideas
    about what technology we should use to do this (e.g., this forum? a
    wiki?) please let me know.
    Regarding the devices not working - the main problem we see
    is that the system requirements are not being met. Here is what to
    check for:
    - are you running on Windows XP (only supported OS right
    now)?
    - do you have DirectX client runtime version 9c or higher
    installed?
    - do you have hardware acceleration enabled?
    - do you have 32bit graphics enabled?
    - do you have the latest direct show drivers from the
    card/device manufacturer?
    Thanks,
    Chris Hock
    Adobe Systems Inc.

  • FMLE 3.0.0.4743 Problem with video capture device

    log:
    Tue May 05 2009 14:26:54 : Selected video input device: Beholder A/V Capture (SAA7135) [Slot 2]
    Tue May 05 2009 14:26:54 : Selected audio input device: Beholder Aud Capture (SAA7135)
    Tue May 05 2009 14:26:55 : Problem with video capture device. Please verify that the video capture device is working correctly and is not already in use.
    Tue May 05 2009 14:26:56 : Audio Device Error : The selected audio device "Beholder Aud Capture (SAA7135)" doesn't allow setting volume intensity. Disabling the volume slider control.
    Flash Media Encoder 2.5 working without any errors

    The second message that you are getting "The selected audio device "Beholder Aud Capture (SAA7135)" doesn't allow setting volume intensity. Disabling the volume slider control." is because your device does not let you change intensity of volume. This warning message is just to tell user that volume slider will remain disabled for the selecetd device. This is new addition in FMLE 3.0 and was not there in FMLE 2.5
    Also for first message, please make sure that no other instance of FMLE is already running using this device. You can verify this from task manager. If any other instance of FMLE is running then please close that instance so that device gets free for new instance.

  • Problem with video capture device, with a virtual camera

    I try to use Adobe Flash Media Live Encoder 3 with a virtual camera(DirectShow Filter) but met such a problem:
    "Error connecting input preview RGB filter."
    "Failed with error 80004005:SetupInputVideoPreview(pFilter, pguidCategory)"
    "Failed with error ffffff97:SetupVideoPreview(pFilterSource)"
    "Problem with video capture device. Please verify that the video capture device is working correctly and is not already in use."
    However, it is good to use AMCap,
    what's the problem with FMLE.
    Looking forward to your replies. Thx!

    Did you ever figure out the problem/solution?
    I am experiencing the same thing with my virtual camera filter when connecting to FME?
    Shawn

  • Problem with Video Capture, and question towards solution

    Yesterday I worked on a commercial for which we captured 9 clips (roughly 10 seconds or shorter in length). The clips all had text/titles superimposed on them by an outside machine and looked good in the monitors when they were exported and captured into FCP (ie: none of the text was chopped off).
    I edited the commercial and then was exporting it out, only to discover that the text on the bottom of the clips was getting chopped off.
    My first question is this: is there some setting in the capture process that could have done this? something that might have gotten tweaked accidently, or corrupted in some manner? Didn't have this problem with footage captured the previous day. And since it looked good before it was put into FCP, thinking it had to be a problem with FCP.
    Also, in trying to tweak the footage in FCP, I came across a 'there must be an easier way to do it' question. Is there a way to alter parameters on multiple clips (such as raising them, like I had to)? I tried selecting all and double clicking, hoping that the changes I made would affect them all, but it only affected the one I directly clicked. I'm sure there's something simple (and obvious) that I'm overlooking...
    thanks!

    For how and why this could have happened, would you mind sharing your capture and sequence settings?
    As far as applying parameters to multiple clips, I think you can make use of the Paste Attributes function in FCP...
    Alter one of your problematic clips
    Select that clip in the Timeline, then press Command-C (or control-click and choose Copy from the contextual menu)
    Select the remainder of your problematic clips
    With your clips selected press Option-V (or control-click on one of them and select Paste Attributes from the contextual menu) to bring up the Paste Attributes dialog
    Select Basic Motion - under the Video options, on your left-hand side - then click OK
    (Basic Motion because, if I understand your solution correctly, you altered the Center property - either in the Motion tab of the Viewer or manually in the Canvas - of your clips. You nudged them all up a bit, right? If you did, then that would fall under the Basic Motion attribute.)
    All your selected clips should be nudged up appropriately.
    But, again, I'm making a bit of leap since I'm not entirely sure what caused your issue in the first place.

  • Problem with video capture with Blackmagic Intensity Pro card

    I have just installed a blackmagic Intensity Pro card to download analogue VCR tapes to DVD. I have set all the input parameters to the Blackmagic card in both Premiere and the input routine for the card. I am using the breakout cable for NTSC input with the green Y input for the video and the L & R audio inputs. When I try to capture I get snow in the premiere capture window, but it does record the L & R audio. When I stop the tape deck I momentarily get the blue screen with STOP showing and then back to snow. I am hoping it is just a setting somewhere but where????
    The computer is running Vista 32 home premium with 3G ram
    Comments very welcome

    Is there a BlackMagic setting required to tell the driver to see the green as composite rather than component?

  • Problem with video capture and transmission

    Hello..
    I have written an application to capture video using a webcam and transmit it using RTP URL..It did work..
    When the user wishes to stop capturing i would stop the processor and deallocate it.. If the user wishes to start capturing again i would just start the capturing process once again(using the same procedure i followed the first time)..
    When i do this i get an exception stating:
    The capture device is already in use..
    Cannot create the RTP Session: Can't open local data port: 5000
    (Note: I used the same port for transmission for the first time)
    Is there anything that is needed to be done to release a device and port at the end of the program..
    Thanks in advance!!

    Thanks.. The problem was solved when i closed the processor and its data sources..
    One more doubt.. Isnt it possible to transmit and receive Images through RTP..
    When i try to create a Processor for and image located in my system "E:\image.jpg" i get an exception like :
    Cant create Processor for "E:\image.jpg"..
    Thanks for the reply!!!

  • Since 4.4.4 update having problems with video capture for Skype, why?

    Since 4.4.4 maxx update Skype video doesn't work. Video wont turn on, then Skype not responding.
    Also Many cam only sees a black screen.
    Help please.

    Yes I power reset.
    I uninstalled skype, then re-installed, Skype is ok now.
    ManyCam mobile has been uninstalled and re-installed.  It only shows a
    black screen and shows the program has stopped when any icon is pressed.
    Manycam still works fine on my old Galaxy Nexus.
    Manycam did work on the MAXX, but not now.
    On Fri, Aug 22, 2014 at 12:45 PM, Verizon Wireless Customer Support <

  • For all people with video capture problem

    For all people who have trouble with video capture here is the Link

    thnx rus,
    I had no problems with ViVo, but this file is tiny.
    No frills, just what it's meant to do..
     :D  :D  :D
    (will test thorough later on)

  • I'm having a problem with device capture

    I'm having a problem with device capture. I connect my Sony HC-90 via firewire. I can start the capture process in Premier 4 but then all control freezes.
    Any ideas?
    Thanks,
    Jeff

    Are they custom EQ settings in iTunes on the computer?
    Per:
    https://discussions.apple.com/message/17383922#17383922
    "Do the EQ settings from my iTunes library transfer to my iPhone when I sync it"
    Yes.
    " thus causing my iPhone to over process the data when I turn it's EQ on? "
    No. If the EQ ison, the iPhone will use the EQ setting you assigned in iTunes. It will use only the preset EQ. If you have a custom setting or do not have an EQ setting, it will not be used and will use the setting on the iPhone.

  • PROBLEms with videos imac G4 flat 17'

    PROBLEms with videos in imac G4 flat 17'

    It would help to know what videos you are having trouble with?   Are these from specific internet links? Are these playing back commercial DVDs? Are these videos produced by iMovie, Final Cut Pro, or iDVD of home video? Are these videos imported from an external Firewire or USB adapter such as Elgato's devices. You give us little to go on.   Please give us more details what is going on?

  • Problem with video playback with iTunes

    Several problems :
    Problem with video playback with iTunes -
    Since about a week, When I launch a video, it takes a long time to get started, then only the sound starts with no pictures - If I press pause then play the video is played normally. Did anyone face or heard about same kind of issue .
    Problem with permission disk errors
    After re-installing White Tiger and After I installed the last OSX 10.6.5 update
    I found the following problem
    Group differs on "Applications / Utilities / AirPort Utility.app / Contents / Resources / wanArrow.png", should be 0 instead of 80.
    Last but not least :
    My computer seems slow - I have 60gig free on My hard drive and I test my hard drive and everything seems all good .

    What was the fix for this? Everything has sucked for my itunes video playback since the last major revision release.

  • I'm having problems with videos, they shake and the images break up back and forth into striped colors, how do I fix this?

    I'm having problems with videos, they shake and the images break up back and forth into striped colors, how do I fix this?

    1) This is because of software version 1.1. See this
    thread for some options as to how to go back to 1.0,
    which will correct the problem...
    http://discussions.apple.com/thread.jspa?threadID=3754
    59&tstart=0
    2) This tends to happen after videos. Give the iPod a
    minute or two to readjust. It should now be more
    accurate.
    3) This?
    iPod shows a folder icon with exclamation
    point
    4) Restore the iPod
    5) Try these...
    iPod Only Shows An Apple Logo and Will Not Start
    Up
    iPod Only Shows An Apple Logo
    I think 3,4, and 5 are related. Try the options I
    posted for each one.
    btabz
    I just noticed that one of the restore methods you posted was to put it into Disk Mode First rather than just use the resstore straight off, I Have tried that and seems to have solved the problem, If it has thank you. previously I have only tried just restoring it skipping this extra step. Hope my iPod stays healthy, if it doesnt its a warrenty job me thinks any way thanks again

  • I cannot drop any pictures in iMovie 9 (no problem with video)

    I cannot add any pictures in iMovie 9. I have no problem with videos, but when I want to drag and drop pictures, it does not work. (Pictures do not drop..) Does anyone know how to do?
    Thank you a lot

    You need to create a play list of songs that you would use for movies - mine is called Music for Movies.  Then when you click on the music icon (the first box in the line of 5 in the grey bar across the lower third of the screen) and a drop down menu will appear showing all your play lists.  Then simply drag and drop, but make sure that you hover over the video clip that you want to add the music to.  If you don't the music will be added to the start of your presentation.  You can always move the position afterwards. NOTE - if you want to add to your play list do it before you start your video editing as the list does not always update when I Movie. 

  • Motorola SB5101E - problem with video chat

    Hi. I have cable modem Motorola SB5101E and connect to net be cable TV .
    All is normal , functional, audio, text, etc. but I have problem with video chat be iChat. (3,1) According info from Motorola support is this cable modem without firewall and without any ports, cable TV provider was inform me, so in his server is none block none ports for me, therefore I have maybe any problem in me computer. But Where ? Can you help me anyone ? Thank you in advance and have a nice day.

    Hi Jirka:
    Do you have your firewall active on your mac? (System preferences>Sharing>Firewall) If the firewall is on, you need to open some ports.
    Report back and give us more details on your set up to troubleshoot your issue.

Maybe you are looking for

  • Saving changes to PDFs in Preview

    So I make annotations to and highlight PDFs using Preview, and it works to my liking. The only issue that I've been encountering is that when I save, it always asks that I save as, instead of just save. Is there a way that I can circumvent this?

  • Problem with access to Ironport C370

    Hi, We have C370 (upgraded to last version) configured and everythings work fine! But one day, from some reason, we cant access Ironport via HTTPS, HTTP and SSH, only works ping. Problem with network is not because we try access Ironport direct from

  • I cannot cancel a print job, cannot print or restart print so other jobs won't print. any help?

    I cannot cancel print job or restart, so I cannot print new job. How do I clear this off?

  • Freezing video and small screen

    Hi there! I am a beginner at editing and with using Premiere (I am using the cs4 version) right now... I have used a Canon 7d camera to shoot the video... I have already added my clips to the timeline. When they were in the Source (clip) screen I cou

  • WBS element short closure.

    Hi, I have one case where AUC cost is not transferred on Fixed asset in last fiscal year due to which it is not allowing Full settlement in this year. And due to some config changes the same WBS cost got reposted on AUC in this fiscal year. Now, Firs