Video as greyscale.

how do u capture video from a webcamera in greyscale format. currently it is captured in the RGB format.

here's more.. this one is better i think
http://forum.java.sun.com/thread.jspa?threadID=5132310&messageID=9481411#9481411

Similar Messages

  • Can motion mask a video file with a greyscale zdepth map ?

    Like so http://www.deathfall.com/article.php?sid=5039
    Or Like Photoshops Mask layer tool, ?
    Or in other words. Take one color layer and one zdepth layer(greyscale) and mask out all of the black

    Heya,
    The Image Mask tool allows you to mask an object using the Red, Green, Blue, Alpha or Luminance channels of another object. Just select the object you want to mask, go to Object->Add Image Mask and you're good to go.
    Also, the Compound Blur filter allows you to blur an object in the same manner (in case you want to do a depth-of-field blur).
    Good luck!

  • How to record video in black and white mode

    Hi,
    I am developing a live video recording application and my application  have black and white mode recording feature, So please give me some idea  about black and white recording.
    Thanks
    Ram

    Your 1200 is fine it will print in B&W using these settings:
    in the print driver drop down box, select Color Options and tick the print in Greyscale option
    then click in the Presets dropdown and select save as  and type in a description  such as " Black and White"

  • How to swap Effects on a video processor?

    I have written a JMF based program that plays a video and applies an effect (I have written) to it. The code works just fine, but now I want to add the ability to add or swap other effects. The problem is I can't figure out how to correctly do this, and can't find any examples to model. Here's some of the relevant code:
         MediaLocator locator = new MediaLocator(videoFile);
         try {
              processor = Manager.createProcessor(locator);
              } catch (NoProcessorException e) {
                   System.out.println(e);
              } catch (IOException e) {
                   System.out.println(e);
         processor.addControllerListener(this);
         processor.configure();
         public void controllerUpdate(ControllerEvent event) {
              processor = (Processor) event.getSourceController();
              if (event instanceof ConfigureCompleteEvent) {
                   processor.setContentDescriptor(null);
                   TrackControl[] controls = processor.getTrackControls();
                   for (int i = 0; i < controls.length; i++) {
                        if (controls.getFormat() instanceof VideoFormat) {
                             videoTrack = controls[i];
                        else
                             controls[i].setFormat(new AudioFormat(AudioFormat.LINEAR));
                        try {
                             Codec codec[] = { new BorderEffect() };
                             videoTrack.setCodecChain(codec);
                        } catch (UnsupportedPlugInException e) {
                             System.err.println(e);
                   processor.prefetch();
                   processor.start();
              } else if (event instanceof RealizeCompleteEvent){
                   SwingUtilities.invokeLater(new AddComponentsThread());
              } else if (event instanceof EndOfMediaEvent) {
                   processor.setMediaTime(new Time(0));
                   processor.start();
         If I change the line Codec codec[] = { new BorderEffect() };toCodec codec[] = { new ConvolveEffect() };it works fine with the new convolve. Alternately if I change it to:Codec codec[] = { new BorderEffect(), new ConvolveEffect() };the video gets both effects added. But so far I haven't been able to react to a user button click to change from one effect to the other.
    First I tried to call processor.removeControllerListener() and processor.stop(), call a method to change the codec referenced just above and then call processor.addControllerListener(this) and processor.configure() all over again. This didn't work.
    After a bit of reading I have think there are two other tactics:
    *(1)* use a PluginManager and call addPlugin() or removePlugin() to enable / disable. I can't find any examples of using a PluginManager and some things aren't clear. Like - one you call addPlugin() do you still need the lines about new codec, setCodecChain() etc?
    *(2)* chain processors together to add effects, remove a processor from the chain to remove effects. The DataOutput of a processor allows the output of one to be fed to the input of another.
    I haven't been able to get any of these methods to work so far. Any ideas on what is the proper way to swap in/out effects?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    No ideas yet?
    After trying some more things I have my program working ... well working in that I can apply different effects, but I think it is a pretty ugly solution. Here is a representative code snippet:
          if (ae.getActionCommand().equalsIgnoreCase("GREYSCALE")) {
                   processor.stop();
                   removeComponents();
                   processor.removeControllerListener(this);     
                   try {
                        processor = Manager.createProcessor(locator);
                   } catch (NoProcessorException npe) {
                        System.out.println("No Processor Exception");
                   } catch (IOException ioe) {
                        System.out.println("IO error creating player");
                   setCodec("GREYSCALE");
                   processor.addControllerListener(this);
                   processor.configure();                               
              }I wrote a custom method removeComponents() which calls removeAll() on the JPanel containing the video and controls to essentially wipe them out. Then remove the ControllerListener and create a whole new processor. (THIS does not seem to be an elegant or correct way of doing things!) Another custom method setCodec() is used to specify which codec to use, a ControllerListener is added and the new processor is configured.
    This DOES work, but I am quite sure it isn't the best or most elegant way of doing things. Any advice would be much appreciated.
    Edited by: craighagerman on Oct 24, 2009 6:34 PM

  • Color video to mono video

    I want to write a java application that was capable of taking a color video file as an input and stripping the color coding from it. The greyscale video is then saved as an output file.
    I have a very very vague idea how the algorithm would work. What should I be thinking about?. Any ideas how I could strip the color from the video and leave only the greyscale and the audio?.
    All help is greatly appreciated

    You can write a class that extends from javax.media.Effect. It would have YUV video format as input and output. YUV video format has three matrix. The first one (Y) has the black&white image. The other two matrix (U, V), have the color information. If you remove from the Buffer in the process method, you have what you want.
    This should not affect the audio, as it is a video effect, so in the output you should have audio and B&W video.
    Don't know if there is something implemented about this.

  • Iphoto crashing after using mini-dvi to video adapter

    Hi, IPhoto on my Macbook is crashing. I can open it, then as soon as I scroll down it locks up and I have to force quit.
    This started happening right after I used a Mini-DVI to Video Adapter cable to hook my macbook up to my TV. The adapter/s-video connection worked and I was able to see the video on the tv. But iphoto immediately locked up the computer when I went to slide show and now it locks every time I open it.
    Any ideas?
    Thank you:)
    Dorothy

    It means that the issue resides in your existing Library.
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
    Regards
    TD

  • Wrong 'mini dvi to video' adapter for my 12" Powerbook 1.33

    I recently bought the M9319 mini dvi - video adapter for my 12" Powerbook 1.33 to find that the mini dvi on the adapter is a different size to the one on the computer and the adapters supplied with the computer.
    I've been doing a bit of research into this and it seems a bit of a grey area. Apple have not made it clear in advertising this product that it is only suitable for the newest 12" Powerbooks and even state that it will work with a 1.33 machine in their following article:
    http://docs.info.apple.com/article.html?artnum=86507
    Has anyone had a similar experience, or suggest an alternative product that will work? Did Apple make an older version that works with the 1.33?
    Any help would be much appreciated. Thanks, Graeme.

    Just took the adapter to my local Apple store and they identified it as a mini VGA to video adapter - not what it said on the packaging!
    I've noticed a few posts with this problem, so just double check before you leave the store that the packaging matches the product.

  • Apple Mini DVI to Video Adapter - do you need cables as well?????????????

    Apple Mini DVI to Video Adapter
    i have this already,but do i need a certain cable to go into the TV. as it only has one port instead of the usual 3 av leads have???
    help please,confused...............

    Look in your question and you'll find the answer...
    Apple mini DVI to Video Adapter
    ...the usual 3 av (audio/video) leads...
    DVI is video only so you only need one port... if you were hooking up audio and video you'd need three (1 for video - 2 for the left/right audio channels)

  • Macbook + mini-DVI to video adapter problems!

    Hi,
    My roommate and I both have Macbooks - I got mine in June '06, it's one of the older black 80 gb models and hers is a white 120 gb that she got in August '07. We bought a mini-DVI to video adapter so we could watch DVDs and video files on our TV, but have been having some trouble with it lately. At first, it worked perfectly with her computer, but in the past few weeks has been malfunctioning - when she plugs it in, the default background shows up on the TV screen but nothing else, any windows she has open only show up on the TV if she drags them to the right on her screen until she can't see them on her computer anymore, so we're unable to watch anything fullscreen. Any tips on how to fix this?
    Also, the adapter has never worked with my computer - any time I plug mine in, my computer display becomes enlarged and slightly distorted, and on the TV screen is distorted by horizontal lines that move up and down the screen. Any ideas here?
    Thanks so much for the help!

    Hi cbeth,
    welcome to macbook forum.
    For your friend macbook, try to press F7 back and forth to switch between mirror and expanded mode.
    Try to update your macbook hardware firmware and software using software updater and repair permission after that...application/utilities/disk utility/repair permission.
    Also reset your PRAM and PMU.
    Open your friend system preference / display and try to compare and set yours similar to hers, including resolution, color depth, refresh rate.
    Good Luck.

  • Apple Mini-DVI to Video Adapter for eMac ?

    Hi,
    I use an Apple Mini DVI to VGA on my eMac to expand my monitor space, connect to an old Pinceton 15" lcd, both are on 1024 x 768 res in millions colors, and work fine.
    My question is I have plan to buy an Apple Mini-DVI to Video Adapter since some of my project require a transfer process to an old vcr or Sony TRV-27 mini dv cam.
    Would the adapter compatible for my eMac mini DVI port ? because eMac is not mentioned as apple compatible for this adapter at apple store, yet there is a review said it work great on ones eMac.
    Anybody else using this adapter that would share with me ?
    Thank you.

    look like it is indeed an apple mini vga adapter that I use, and now I need an adapter that allow me to connect to a TV, VCR or Mini-DV camcorder.
    will that Apple Mini-DVI to Video adapter compatible to my eMac. Or do they have mini-vga to video adapter on aapple store.
    Thank you any information.

  • Apple Mini-DVI to Video Adapter

    I have just purhased a new Macbook. My first mac ever
    My question is regardng the Apple Mini-DVI to Video Adapter.
    Do I read that correctly that I can hook my macbook up via rca and s-video but not composite? Does Apple make one cable that will do both?
    I would like the ability to hook up to a projector which will likely be composite. As well RCA/S-video via t.v or DVD inputs.
    Thanks
    Tig

    For VGA you will need the Mini-DVI to VGA adapter. For composite video you will need the Mini-DVI to video adapter. If you want sound while using the video adapter you will need a 3.5mm to rca stereo cable. This is a y cable like this Example of 3.5mm to RCA Y cable
    FYI the RCA output on the video adapter is composite video.

  • Apple Mini-DVI to Video Adapter Question

    I want to hook up my macbook (late 2008 model) to my tv. Will the Apple Mini-DVI to Video Adapter
    work? If it will work on my tv then what else do I need to get? It looks like you need other wires to hook up to your tv? Thanks in advance for your help!

    The new MacBooks that use the NVIDIA 9400M video chip do _not_ support output to analog TVs. Thus, with the current MacBooks the only way to get output to an analog TV is with a third-party VGA-to-analog TV converter box -- you can't just use one of Apple's cables (although you'll need the mini display port to VGA adapter cable to connect to a third-party VGA-to-TV converter box).
    More specifically, you can _not_ use one of Apple's $19, DVI to Video (composite/S-Video) adapters on the new MacBooks.
    See also this discussion:
    http://discussions.apple.com/thread.jspa?threadID=1927674&tstart=15

  • Apple Mini-DVI to Video Adapter doesn't fit my aluminum iMac

    I previously had a 17" white iMac (pre-Intel) machine, and about 6 months ago I bought the mini-DVI to video adapter so I could connect it to my television. Worked like a charm. But I recently bought a new aluminum iMac, and the adaptor doesn't fit into the mini-DVI port in the back of the machine. It appears the adaptor and port are both male ends.
    Has the port changed on the aluminum iMacs? The product description for the adaptor on Apple's website says it works with iMac (Intel Core Duo). Isn't the aluminum iMac an Intel Core Duo? I can't figure out why it doesn't fit and which cable I'm supposed to be using instead.
    Any advice would be appreciated!

    Hi Paul
    Yes the Intel iMac [Spec's|http://support.apple.com/specs/imac/iMacMid2007.html] call for the (M9319G/A) Apple Mini-DVI to Video Adapter!
    http://store.apple.com/1-800-MY-APPLE/WebObjects/AppleStore?productLearnMore=M93 19G/A
    The iBook, eMac, or iMac G5 use the Mini-VGA to Video adapter.
    http://store.apple.com/1-800-MY-APPLE/WebObjects/AppleStore.woa/wa/RSLID?mco=722 C6629&nplm=M9109G%2FA
    Dennis

  • Apple Mini-DVI to Video Adapter Questions

    I'm in the processing of producing an instructional video using an Intel Core Duo iMac and iMovie. This content will be distributed primarily via broadcast over cable TV. Considering this, I'd like to be able to edit and view my dv footage on a TV monitor as I work.
    I was told by the Apple Store person that the Apple Mini-DVI to Video Adapter (http://store.apple.com/1-800-MY-APPLE/WebObjects/AppleStore.woa/6314001/wo/jY18n ncCp3Nx2tYjws52iCaPkH1/1.0.21.1.0.8.25.7.11.2.3) will enable me to
    1. Mirror my desktop to simultaneously show me what my iMovie edits will look like on a TV; and
    2. Enable me to edit in iMovie using the TV as my desktop.
    Am I understanding the capabilities of the Apple Mini-DVI to Video Adapter correctly?
    Regarding Cables
    1. I currently use an RCA composite cable to view dv footage from my camcorder directly on the TV. Is this the same cable I'd attach to the Mini-DVI to Video Adapter?
    2. The DVD recorder/player my TV signal is routed through has an s-video port. Is there a benefit to using an s-video connection in addition to/or instead of the RCA connections?
    Thanks for helping me understand this setup scenario!
    core duo Mac OS X (10.4.6)
    core duo   Mac OS X (10.4.6)  

    Ditto to Karsten's post:
    "Mirroring" a Mac's output to a TV, or plugging in an adaptor to provide a display on a Mac's screen and simultaneously on a TV ruins the Mac's display while this is happening by lowering its resolution. Ugghhh! (..I've tried this several times, in order to get a 'TV' signal out, showing the Mac's desktop, but it's hopeless..)
    Karsten's method is the best - output to camcorder via the normal FireWire cable, and plug a TV or monitor into the camcorder's A/V Out socket!
    [..Note, though, that Matti has pointed out that - what was it..? - during editing, some updating of the TV-thro-camcorder display doesn't work correctly. I can't remember exactly what the problem was, and I don't see it mentioned on Matti's Bugs Page, but there was some slight oddity. Nevertheless, this is still the best way of viewing on a TV or monitor..]

Maybe you are looking for

  • How to configure one TREX host with multiple index servers ?

    Hi All, Does anyone know how to configure TREX on the one host, with multiple index servers ? Reason for this is to make better use of resources available on the host server(4 Gig, 4 Processor, Windows2003), to improve the search performance of our K

  • Urxvt and äöå

    Hey! I have this really hard-to-solve problem, so I decided to ask for help.. My keymap works just fine in other programs except for urxvt. Even in urxvt, all the other buttons except for ä å and ö work fine. Copy-pasting them doesn't work either, al

  • IMessage arrive at 3 Phones same time

    I´ve 3 iPhones (3GS, 4 and 4S)  on the same apple ID. Now I get iMessage on all 3 Phones? Do somebody know this Problem? thx

  • How to generate Unique Seq Id in BPEL

    Hi All, How can we generate a unique seq Id in BPEL. One way is to use "*orcl:generate-guid()*" . Are there any other ways by which we can generate the unique seq id. please send me some sample piece of code if any for example. Regards Narendra Mail

  • Mac OS X 10.5 destroyed my Admin permissions

    Ok. I had originally installed Mac OS X 10.5 on my Macbook, but the hard drive got screwed due to an impact on the floor while running Windows XP. I decided to install 10.5 on my Mac Mini, and for some reason, my Admin permissions were destroyed. No