video-capture

How to make screen capture video using Direct Show.net Library?

拟墨画扇 提交于 2019-12-03 09:10:55
How to make screen capture video using Direct Show.net Library? I read msdn Direct show document and find the way to change video source device within the following code. This code got webcamera as video device. public IBaseFilter FindCaptureDevice() { int hr = 0; IEnumMoniker classEnum = null; IMoniker[] moniker = new IMoniker[1]; object source = null; // Create the system device enumerator ICreateDevEnum devEnum = (ICreateDevEnum) new CreateDevEnum(); // Create an enumerator for the video capture devices hr = devEnum.CreateClassEnumerator(FilterCategory.VideoInputDevice, out classEnum,0);

Android media player - play from network stream

喜你入骨 提交于 2019-12-03 09:08:16
I am trying to make an android media player which should play the media from network stream. I know it can play media that is streamed on RTSP or HTTP but my case is different. I am not having any media streaming server and if I intend to use one, then I will have to modify it. What I am trying to do is to stream the video that is being captured from android camera to the server, do little bit of modification in the video (like change color or apply some effect, etc) and stream it back to the phone. So typically my screen is divided in 2 parts, one is for upstreaming and other shows down

Stream video to web in android

独自空忆成欢 提交于 2019-12-03 08:52:26
I want to make an android app which can stream video to the web. I know how to record a video in android but don't know how to stream it to the web. I don't want to store this video to the sd card of the phone but I want it to be stored on the web. For that purpose I am planning to use asp.net web service. I used onPreviewFrame method of the Camera to achieve this. I just send the byte[] to the server and convert this data to a valid video/image format on the server. For the server, I used gstreamer . 来源: https://stackoverflow.com/questions/5065334/stream-video-to-web-in-android

How to capture live camera frames in RGB with DirectShow

给你一囗甜甜゛ 提交于 2019-12-03 08:40:31
I'm implementing live video capture through DirectShow for live processing and display. (Augmented Reality app). I can access the pixels easily enough, but it seems I can't get the SampleGrabber to provide RGB data. The device (an iSight -- running VC++ Express in VMWare) only reports MEDIASUBTYPE_YUY2. After extensive Googling, I still can't figure out whether DirectShow is supposed to provide built-in color space conversion for this sort of thing. Some sites report that there is no YUV<->RGB conversion built in, others report that you just have to call SetMediaType on your ISampleGrabber

capturing rtsp camera using OpenCV python

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-03 08:39:15
I have a remote camera streaming through rtsp protocol and am trying to access it in OpenCV 2.13.1 using python with following code. camera = cv2.VideoCapture("rtsp://admin:<port>@<ip>/xyz/video.smp") However, when I do that I get the following warning WARNING: Couldn't read movie file rtsp://admin:<port>@<ip>/xyz/video.smp I have also tried doing this: camera = cv2.VideoCapture.open("rtsp://admin:<port>@<ip>/xyz/video.smp") but when I do this I get this error: `AttributeError: 'builtin_function_or_method' object has no attribute` 'open' I did searched quite a bit about this problem but couldn

Android - capture video with watermark

南笙酒味 提交于 2019-12-03 08:36:37
I know how to capture video on android device, but i would like to capture video and add some other information on it e.g. some funny timeclock and save it all to file so the person watching the video will see the exact time of capturing. I would also like to add some watermark. Do you know how can i do it or is it possible on android device? I read the API but couldnt find anything that could help me. I actually don't think that's possible. You can fetch video frames from a camera preview, but there's no good way to encode them to video. The standard video encoder (MediaRecorder) can only

AVFoundation: add text to the CMSampleBufferRef video frame

风流意气都作罢 提交于 2019-12-03 07:54:40
问题 I'm building an app using AVFoundation. Just before I call [assetWriterInput appendSampleBuffer:sampleBuffer] in - (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection *)connection -method. I manipulate the pixels in the sample buffer (using a pixelbuffer to apply an effect). But the client wants me to put in a text (timestamp & framecounter) as well on the frames, but I haven't found a way to do this

Any free C# libraries for video recording (of the screen) around?

做~自己de王妃 提交于 2019-12-03 07:44:40
I am looking for free C#(.net) libraries that allow me to record videos(plus sound) of the screen of my computer (basically, to do what camtasia does). Is there anything easy to use, around? Thanks I came across this solution to your problem, which uses Windows Media Encoder 9 to record the desktop. It's a bit dated, but I think you might find it interesting or helpful: http://www.c-sharpcorner.com/UploadFile/satisharveti/EnhancedDesktopRecorder07222008041309AM/EnhancedDesktopRecorder.aspx 来源: https://stackoverflow.com/questions/4529024/any-free-c-sharp-libraries-for-video-recording-of-the

Know how many people are on a video [closed]

放肆的年华 提交于 2019-12-03 07:39:51
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. So there it is, I want to get a camera video stream from a server, and be able to know how many people appear on it. I can install any OS (MAC, Windows, Linux) on my server, use any API (free or paid) and any language (C++, php etc.) to do so. I already found some interesting things, such as OpenCV but I think it's more useful for face recognizing than to know the number of people in a room... Any help would be

Cross-Platform webcam access [closed]

ε祈祈猫儿з 提交于 2019-12-03 06:23:38
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. I'm looking for a cross-platform video capture library, for webcam access. One that wraps V4L/V4L2 on Linux, DirectShow on Windows, and QuickTime on the Mac. C or C++ is preferred, but I can work in Java or Python if those have better options for libraries. The OpenCV (Open Source Computer Vision) works under Linux, Windows and Mac OS X. I use OpenCV under Mac OS X and it works very well with the built-in iSight of my