capture

How can I capture audio AND video simultenaous with ffmpeg from a linux USB capture device

随声附和 提交于 2019-12-21 04:57:06
问题 I'm capturing a video by means of an USB Terratec Grabster AV350 (which is based on the em2860 chip). I don't succeed to get the audio when it is played . If I play the captured video with vlc or with ffplay I got only 3 seconds sound and then a silence for the rest of the video ... During the capturing I don't get any errors. At the end it indicates the size of the video and audio captured .... I'm using the ffmpeg command for this : ffmpeg -f alsa -ac 2 -i hw:3 -f video4linux2 -i /dev

How to capture image without displaying preview in iOS

和自甴很熟 提交于 2019-12-20 10:59:10
问题 I want to capture images at specific instances, for example when a button is pushed; but I don't want to show any video preview screen. I guess captureStillImageAsynchronouslyFromConnection is what I need to use for this scenario. Currently, I can capture image if I show a video preview. However, if I remove the code to show the preview, the app crashes with the following output: 2012-04-07 11:25:54.898 imCapWOPreview[748:707] *** Terminating app due to uncaught exception

How can I capture the stdout from a process that is ALREADY running

自作多情 提交于 2019-12-20 08:42:47
问题 I have a running cron job that will be going for a while and I'd like to view its stdout. I don't know how important the fact that the process was started by cron is, but I figure I'd mention it. This is on OSX so, I don't have access to things like... /proc/[pid]/..., or truss, or strace. Suggestions of executing with IO redirection (e.g. script > output & tail -f output ) are NOT acceptable, because this process is 1) already running, and 2) can't be stopped/restarted with redirection. If

How can I capture the stdout from a process that is ALREADY running

↘锁芯ラ 提交于 2019-12-20 08:42:15
问题 I have a running cron job that will be going for a while and I'd like to view its stdout. I don't know how important the fact that the process was started by cron is, but I figure I'd mention it. This is on OSX so, I don't have access to things like... /proc/[pid]/..., or truss, or strace. Suggestions of executing with IO redirection (e.g. script > output & tail -f output ) are NOT acceptable, because this process is 1) already running, and 2) can't be stopped/restarted with redirection. If

How do I capture desktop screenshot behind full screen form?

回眸只為那壹抹淺笑 提交于 2019-12-20 07:35:45
问题 I have a full screen form to block all inputs. How to capture screenshot of all desktop behind this form? In other words, how to take a printscreen without appearing this form that is in front of the screen? I'm writing a remote access software. I need show info of technical support in screen and block all inputs during access for analysts work quietly - VNC for example have option to turn off the monitor, Dameware have option to block input. There is another way to work remotely behind this

OpenCV / Array should be CvMat or IplImage / Releasing a capture object

我只是一个虾纸丫 提交于 2019-12-19 11:34:51
问题 Edit : Array should be CvMat or IplImage is not an error message specific to this issue, that's the only most relevant error message i got. I'm trying to make an *.exe out of an application using opencv. I'm using Python 2.6 and openCV 2.1 . I can run part of the *.exe, i'm having a menu from where i can choose to process some pictures from 2 differents sources my webcam & a static image. The static image part works but when i'm chosing the webcam here is the output: OpenCV Error: Bad

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

[亡魂溺海] 提交于 2019-12-19 09:07:52
问题 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. :) 回答1: Take a look at http://www.codeproject.com/KB/cs/globalhook.aspx Besides this question has been asked around in SO already. Take a look at here: Global Keyboard Hooks

Capture all unhandled exceptions automatically with WebService

核能气质少年 提交于 2019-12-19 08:31:23
问题 I have a C# WebService application in which I want to capture all unhandled exceptions thrown from the application. How can I do this? 回答1: For some reason the Application_Error event does not fire for Web Services (see other question). Mr Jeff Atwood himself has posted some advice on the coding horror blog. He writes: * Put a try..catch around every WebService method. These methods tend to be wrappers around other classes, so this isn't quite as bad as it sounds, but it's still not good. *

Capture all unhandled exceptions automatically with WebService

こ雲淡風輕ζ 提交于 2019-12-19 08:31:13
问题 I have a C# WebService application in which I want to capture all unhandled exceptions thrown from the application. How can I do this? 回答1: For some reason the Application_Error event does not fire for Web Services (see other question). Mr Jeff Atwood himself has posted some advice on the coding horror blog. He writes: * Put a try..catch around every WebService method. These methods tend to be wrappers around other classes, so this isn't quite as bad as it sounds, but it's still not good. *

How does a ComboBox capture mouse when it is dropped-down?

倾然丶 夕夏残阳落幕 提交于 2019-12-19 06:39:18
问题 I am trying to model the behavior of a ComboBox dropdown (or other drop downs for that matter, including context menus) where the drop down closes when you click anywhere else, even on something that can't be focused. I've tried subscribing for events such as MouseCaptureChanged, LostFocus, and Leave. I have a custom UserControl which is acting as a dropdown and I just want to close it up when the user clicks anywhere else. This seems like something that's done in many controls so I'd be