directshow

how to use x264 encoder with directshow

自古美人都是妖i 提交于 2019-12-03 21:19:28
i can't figure out how to use x264 with directshow. i installed many thinks that pretend to have x264 encoder in with no use i downloaded the videoLAN x264 binary and when i run it, it shows so fast a console windows, and nothing happen after that these is the encoders that i have i am working on windows 8.1 x64 please help with this issue it's just going to make me crazy hhh, i wanna use x264 because the other encoders that i have installed, either didn't work or encode with so big size. x264 itself does not have DirectShow interface, so you need a wrapper (or, you need to implement it

IKsPropertySet interface is not supported in IMFMediSource

為{幸葍}努か 提交于 2019-12-03 20:30:07
I am porting my Direct Show camera based SDK to MFT. In my old code I have KSProxy interface like IksTopolgy,IKsControl and IKsProperty . IksTopolgy,IKsControl is used to enumerate the property set and IKsProperty to get/set the property value. Now I was trying to same in new code.I am able to enumerate the property i.e following code is supported in MFT. CComPtr<IKsTopologyInfo> ksTopology = NULL; hRet = m_pMediaSource->QueryInterface(&ksTopology); But IKsProperty interface which is used to get/set the property value is not working returning E_NOINTERFACE. hRet = m_pMediaSource-

Displaying live video from a raw uncompressed byte source in C#: WPF vs. Win forms

孤人 提交于 2019-12-03 20:21:26
I have a live 16-bit gray-scale video stream that is pushed through a ring-buffer in memory as a raw, uncompressed byte stream (2 bytes per pixel, 2^18 pixels/frame, 32 frames/sec). (This is coming from a scientific grade camera, via a PCI frame-grabber). I would like to do some simple processing on the video (clip dynamic range, colorize, add overlays) and then show it in a window, using C#. I have this working using Windows Forms & GDI (for each frame, build a Bitmap object, write raw 32-bit RGB pixel values based on my post-processing steps, and then draw the frame using the Graphics class)

How to get started with directshow?

不打扰是莪最后的温柔 提交于 2019-12-03 20:16:13
I'm having a great trouble trying to understand this , what's the least set up to compile/run directshow apps? I've already installed visual c++ 2008 express. A hello world will be nice, RGS! Try downloading SDK such as Windows SDK " http://www.microsoft.com/downloads/details.aspx?FamilyID=6b6c21d2-2006-4afa-9702-529fa782d63b&displaylang=en ". There are usually a bunch of samples for directshow. But, mainly they either use commandline "nmake" (not make) or "cl" (not cc or gcc) to build. Sometimes they provide *.sln files to be used under VS. Your vcam package is only a dll and you still need

DirectShow - Getting video frames

强颜欢笑 提交于 2019-12-03 13:42:24
I'm creating a Windows video capture application and am using DirectShow for capture. As each frame comes in, I want to grab it as a raw RGB bitmap into a buffer, at which point my code will do whatever processing I need. I've been searching for samples similar to what I want to do, and everywhere I look online, people recommend using either the IMediaDet and/or the ISampleGrabber interface to do frame-by-frame capture. Unfortunately, both are deprecated and aren't even in the newest version of the Windows SDK. What is the best (modern) way to do frame-by-frame capture in DirectShow? If there

How to create virtual webcam in Windows 10?

99封情书 提交于 2019-12-03 11:31:11
I would like to take video from a webcam, render some text on the frames and do some motion tracking and pass it on to a virtual webcam so it can be streamed easily. I found some answers on stackoverflow suggesting that I should use DirectShow. According to information in DirectShow documentation , the DirectShow SDK is part of Windows SDK. So I installed the latest Windows SDK but it seems that it doesn't include DirectShow because there are no DirectShow samples under C:\Program Files (x86)\Microsoft SDKs\Windows . (The stackoverflow answers are also pretty old - dated around 2010) Can you

SampleGrabber Parameter is Incorrect

做~自己de王妃 提交于 2019-12-03 09:16:05
I'm banging my head over trying to save a jpg file using the samplegrabber in my directshow application. The graph runs fine however when I launch the CaptureImage() function it gets as far as GetCurrentBuffer and returns "parameter is incorrect".. hr = -2147024809. AMMediaType mediaType = new AMMediaType(); VideoInfoHeader videoInfo = new VideoInfoHeader(); (pSampleGrabber as ISampleGrabber).GetConnectedMediaType(mediaType); videoInfo = (VideoInfoHeader)Marshal.PtrToStructure(mediaType.formatPtr, typeof(VideoInfoHeader)); int width = videoInfo.BmiHeader.Width; int height = videoInfo.BmiHeader

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);

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

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