capture

DirectShow+Uncompressed AVI

Hello I am trying to capture some stream from a device and save it to an uncompressed avi file. I am using C# + DirectShowLib, and the resulting file is always compressed(mjpeg or dv codec). Any ideas? ...

video capture in wpf

Hello What is the best way to capture video in a wpf application? I am looking for a way to detect the video devices, and then capture video from the selected one. Thanks ...

Capturing delegates in anonymous methods

Consider Action _captureAction; private void TestSimpleCapturedAction() { Action action = new Action(delegate { }); Action printAction = () => Console.WriteLine("Printing..."); action += printAction; CaptureActionFromParam(action); action -= printAction; _captureAction(); //p...

More data in packet payload

I have the following code int ParseData(unsigned char *packet, int len) { struct ethhdr *ethernet_header; struct iphdr *ip_header; struct tcphdr *tcp_header; unsigned char *data; int data_len; /* Check if any data is there */ if(len > (sizeof(struct ethhdr) + sizeof(struct iphdr) + sizeo...

C# capture screen to small video files.

Hello guys, Does someone knows how can I capture my computer screen to a video file? I need the file to be as small as possible. I'm using C#. Third party components also welcome. TY ...

( Flex ) How can we get an imagesnapshot of the entire component without scrollbars?

Hi there I can take snapshot of a component. But the problem is the component is lil bigger with scroll bars. The saved image has scrollbars (only the visible area is getting saved). What i need is I want the entire component to be saved as an image. This exact functionality is available while we print the component using FlexPrintJo...

Java library for capturing active window screenshot

Hi, is there any free and open source java library for capturing active window screenshot? I want to use it to capture any active window, not only SWING windows. Thanks. ...

Capture (trap) the mouse cursor in a window in Java

Hi all, I am looking for a way to capture or trap the mouse in a window after it has entered that window much like a mouse is trapped in a virtual machine window until a user presses CTRL+ALT+DEL or release the mouse in some other manner. How do I make this happen in Java? Going full screen is not an option. EDIT: Here is some SSCCE ...

Capture Sound from Mic/Headphone and trigger action at perticular frequency

I am using .NET 3.5. I need to Capture Sound from Mic/Headphone and trigger action at particular (not exact) frequency (Need to perform some action when player hits ball with stick while playing golf). So, 1. How to capture sound from Mic/Headphone using .NET 3.5? 2. Trigger action at particular (not exact) frequency? Any ideas? ...

Is there any lib for crossplatform Camera like devices streams parsing?

C\C++ lib for cross-platform device streams capturing (It shall find all devices in system and be able to give me their streams for encoding or filtering or any thing else). I want it to be cross-platrorm So is there any lib like this, opensource? ...

CSMA/CD once channel captured, can only one or multiple frames be sent before other stations try transmitting?

Hi there, I have a question regarding CSMA/CD in the IEEE 802.3 LAN standard. I'm trying to understand the behavior of CSMA/CD after a station has captured the channel. Say station A has captured the channel and has an infinite supply of frames it is sending. Also assume that station B has something it wants to send. Now, if I under...

Is it possible to tie nested generics?

Is it possible to tie nested generics/captures together? I often have the problem of having a Map lookup of class to genericized item of said class. In concrete terms I want something like this (no, T is not declared anywhere). private Map<Class<T>, ServiceLoader<T>> loaders = Maps.newHashMap(); In short, I want loaders.put/get to ha...

c# grab image from video card - Canopus ADVC-55

Hi All, Any advice on how I might grab an image using C# from this device (Canopus ADVC-55) I tried emailing the manufacture but they where not interested as they sell it with their own software products. Cheers, jason Canopus-ADVC-55 ...

[WM6] Owner of a component. What exactly is this for?

I am developing an app for Windows Mobile 6 and there is a CameraCaptureDialog class that enables me to call a camera app from my own application. The class has an Owner property that most examples on the internet set to "this". cam.Owner = this; What exactly does this do? I've seen a similar scenario with Windows Forms components/cont...

capture voice in flex using fms

hi i want to capture voice and play voice in flex using fms any give ideas or program regards radha ...

Which regex flavors support captures (as opposed to capturing groups)?

As I just learned from this question, .NET regexes can access individual matches within a repeated capturing group. I. e., if I apply a regex like \b(\w+\s*)+ to a string of words, only the last word will be stored in \1 or Match.Groups(1).Value, but using Match.Groups(1).Captures I get access to all the individual matches the regex it...

Captureing Image And Printing dat in desired Size.

I want to capture a image from a web cam and i want to print dat captured image in desired size. ...

How can I mock a method in easymock that shall return one of its parameters?

Hi, I have a method public Object doSomething(Object o); which I want to mock. It shall just return its parameter. I tried: Capture<Object> copyCaptcher = new Capture<Object>(); expect(mock.doSomething(capture(copyCaptcher))).andReturn(copyCatcher.getValue()); wihtout success, I get just an AssertionError "Nothing captured, yet". Any i...

How can I capture only one part of Perl regular expression with grouping?

I've currenly trying to pull out dates from a file and feed them directly into an array. My regex is working, but I have 6 groups in it, all of which are being added to the array, when I only want the first one. @dates = (@dates, ($line =~ /((0[1-9]|[12][0-9]|3[01])(\/|\-)(0[1-9]|1[0-2])(\/|\-)([0-9][0-9][0-9][0-9]|[0-9][0-9]))/g )); ...

How can I make my Windows Forms application 'listen' for global key presses?

I'm making a little application for taking notes. So when I type 'note' anywhere on my computer, my window will pop up and show me a textbox for me to type something in and save it to XML. I'm stumped on how to get the program to 'listen' to my keypresses. I'll have the app running on the system tray if that's any help. :) ...