webcam

NetStream.publish Webcam to FMS working in standalone player, but not in browser

这一生的挚爱 提交于 2019-12-06 09:26:31
I am trying to publish the video of a webcam to a Flash Media Server 2. My code is working in the Flash standalone player (tested with 10.0 and 10.2), but not in the browser plugin (tested with 10.2, both in IE and Opera. The connection to my FMS is working successfully, but after the publish, nothing happens, I never get the NetStream.Publish.Start Event. On the server I can see the connection in the management console, even the stream in the streams tab. But I cannot connect to that strea. Anybody an idea what could be going wrong? NetConnection.defaultObjectEncoding = ObjectEncoding.AMF0; /

Change resolution of Webcam video using Delphi program

冷暖自知 提交于 2019-12-06 09:20:37
问题 How do I change the size of the webcam from (640x360) as default in VFrames into a (160x120) as the new default. I'm using this component found on this page. 回答1: There is a predefined method in VFrames var cam:TVideoImage; camlist:TStringList; reslist:TStringList; vp:TVideoProperty; begin camlist := TStringList.Create ; reslist :=TStringList.Create; cam := TVideoImage.Create; cam.GetListOfDevices(camlist); cam.SetDisplayCanvas(PaintBox1.Canvas); cam.VideoStart(camlist.Strings[0]) ; //

How to switch between webcams when using CaptureElement/MediaCapture? [closed]

拥有回忆 提交于 2019-12-06 08:56:08
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I am trying to provide an option to switch between webcams used to display preview using CaptureElement/MediaCapture. Unfortunately I tried multiple combinations of call sequences and the preview only shows up for the first device I use. This is what I have been trying to do: XAML: <CaptureElement x:Name="captureElement" Stretch="UniformToFill" /> C#: MediaCapture mediaCapture; DeviceInformationCollection

.NET Options Stream Video Files as WebCam Image

梦想的初衷 提交于 2019-12-06 07:51:59
I am interested in developing an application that will allow me to build a list of videos from xml (containing video title, duration, etc) and play that list as my webcam stream. Meaning, if I were to visit ustream.tv, or activate my webcam on live messenger my video playlist would register as my active webcam. Does anybody have experience in this area, and perhaps have some advice to offer? I don't have a lot of experience in this area, but I would start by looking at the MSDN docs for the DirectShow API . A couple of .NET wrapper libraries exist as well: Managed DirectShow DirectShow.NET

Fastest way to get frames from webcam

早过忘川 提交于 2019-12-06 07:15:26
问题 I have a little wee of a problem developing one of my programs in C++ (Visual studio) - Right now im struggling with connection of multiple webcams (connected via usb cables), creating for each of them separate thread to capture frames, and separate frame for processing image. I use OpenCV to process frames, but the problem is that i dont get a peak of webcam possibilities (it supports 25 fps, i get only 18) is there some library that i could use to get frames, than process them with OpenCV

Is it possible to fake a video stream as virtual cam that is visible in Skype, Lync etc?

点点圈 提交于 2019-12-06 06:51:24
I'm trying to build a crucial part for my application in which I need to be able to fake a virtual cam video stream. The video stream that I want to fake as a virtual webcam is streamed through my PC, where I can set the video source from my webcam or somewhere from my hdd. To sum up, something I can set as MediaElement.SourceProperty or Image.Source in WPF. I've seen Vivek's Vcam, a directshow filter here in tmhare.com which seems like it is extremely related to what I'm looking for. But I couldn't find a way to compile it with VS2010, I also don't really know what to do with it. I think I

Can't change video capture resolution using c#

血红的双手。 提交于 2019-12-06 06:46:34
问题 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

How do I track a blob using OpenCV and Python

牧云@^-^@ 提交于 2019-12-06 01:58:19
问题 I've gotten OpenCV working with Python and I can even detect a face through my webcam. What I really want to do though, is see movement and find the point in the middle of the blob of movement. The camshift sample is close to what I want, but I don't want to have to select which portion of the video to track. Bonus points for being able to predict the next frame. Here's the code I have currently: #!/usr/bin/env python import cv def is_rect_nonzero(r): (_,_,w,h) = r return (w > 0) and (h > 0)

QT's QMediaRecorder not working - Unable to record from webcam

旧时模样 提交于 2019-12-06 00:59:34
I've been searching everywhere for a solution to this and I've seen some threads here about this problem but without a solution. I'm trying to record a video from two different webcams that I have on my computer. I am able to show the video for both of them but the problem is recording. When I try it nothing happens. No file is saved and the states also never change. Bellow I have attached the code that loads the cameras and the code that loads the QMediaRecorders. I also tried with just one of the cameras and it still doesn't work. The QT example "camera" does not work as well, the option for

Query maximum webcam resolution in OpenCV

不羁的心 提交于 2019-12-05 21:50:59
I'm dealing with several types of cameras and I need to know the maximum resolution each one is capable. Is there a way to query such property in OpenCV? If not, is there any other way? The application will work under Windows (by the moment) and all the project is being developed using C++. user2949634 A trick that's working for me: Just set to a very high resolution (above the capabilities of any usual capture device), then get the current resolution. You will see that the device will automatically switch to his maximum value. Code example in Python with OpenCV 3.0: HIGH_VALUE = 10000 WIDTH =