video-capture

How to capture live camera frames in RGB with DirectShow

可紊 提交于 2019-12-04 14:51:36
问题 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<-

Android media player - play from network stream

冷暖自知 提交于 2019-12-04 14:47:51
问题 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

what technologies are available for programmatic video editing?

﹥>﹥吖頭↗ 提交于 2019-12-04 14:17:28
Problem: Users should be able to upload high resolution video clips from within an app (fat client) that runs on their system. inside this app, i need an framework or lib that is capable of converting an video into an low resolution version. and on the other side, i need something that is capable of building up video right away from images, animating them in a way that they look like videos. I would recommend the following: Windows DirectShow SDK Media Foundation SDK Quicktime SDK Mac QTKit Framework Linux GStreamer If you need a cross platform solution I would recommend the commercial

Stream video to web in android

孤街醉人 提交于 2019-12-04 14:00:58
问题 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. 回答1: 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

Auto-capture an image from a video in OpenCV using python

对着背影说爱祢 提交于 2019-12-04 13:49:11
I am trying developing a code which functions as the self-timer camera. The video would be seen in the window and the person's face and eyes would be continuously detected and once the user selects a specific time, the frame at that point of time is captured. I am able to capture the frame after a certain time using sleep function in time module but the video frame seems to freeze. Is there any solution such that I can continue to see the video and the video capture takes place after some delay automatically. I am using the code- import numpy as np import cv2 import time import cv2.cv as cv

SGNewChannel error -9405 on Mac 10.9.1

冷暖自知 提交于 2019-12-04 13:41:35
I am getting an error –9405, couldntGetRequiredComponent , with SGNewChannel(m_Grabber, VideoMediaType, &m_Channel) on Mac system 10.9.1. This code works on older systems. Is anyone else having this issue? Edit - Initialization code: // standard SG initialization err = OpenADefaultComponent(SeqGrabComponentType, 0, &m_Grabber); err = SGInitialize(m_Grabber); err = SGSetDataRef(m_Grabber, 0, 0, seqGrabDontMakeMovie); After spending some time reverse engineering what SGNewChannel does on both OS X 10.8 and 10.9 I have found what might be the cause of the new behavior on 10.9. The SGNewChannel

Android - capture video with watermark

亡梦爱人 提交于 2019-12-04 13:34:05
问题 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. 回答1: I actually don't think that's possible. You can fetch video frames from a camera

Record a video from a webcam with Qt5

亡梦爱人 提交于 2019-12-04 13:31:49
问题 I have been trying to get this to work for 2 days now and I am desperate. Basically I want to record a video with my webcam using Qt5. I got so far that I can get a widget to display what the webcam is seeing, but for some reason whenever I try to record it with the QMediaRecorder class it doesn't save anything to the outputLocation. The output file is created but contains 0 bytes. I have tried playing around with the settings for the video codec, but still no luck. I would think that simple

capturing rtsp camera using OpenCV python

北城以北 提交于 2019-12-04 13:25:19
问题 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

Can't change video capture resolution using c#

纵然是瞬间 提交于 2019-12-04 12:36:49
I am trying to change the default webcam resolution using DirectShowNet in C#, from what I gather I need to change it from calling the built in VideoInfoHeader class in windows win32 api dll for avi capture. I have the following code from DirectShowNet: hr = capGraph.SetFiltergraph( graphBuilder ); if( hr < 0 ) Marshal.ThrowExceptionForHR( hr ); AMMediaType media = new AMMediaType(); media.majorType = MediaType.Video; media.subType = MediaSubType.RGB24; media.formatType = FormatType.VideoInfo; // ??? hr = sampGrabber.SetMediaType(media); if (hr < 0) Marshal.ThrowExceptionForHR(hr); hr =