directshow

IKsPropertySet interface is not supported in IMFMediSource

♀尐吖头ヾ 提交于 2019-12-05 06:12:39
问题 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

how to use x264 encoder with directshow

放肆的年华 提交于 2019-12-05 04:37:00
问题 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. 回答1

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

纵然是瞬间 提交于 2019-12-05 02:20:38
问题 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

Live streaming H.264 in DirectShow

僤鯓⒐⒋嵵緔 提交于 2019-12-05 01:45:32
问题 Does anyone know which filters in DirectShow I have to use in order to stream H.264 LIVE stream over http? (especially what kind of source filter I have to use) Any code suggestion will be helpful. Thanks! 回答1: Do you mean HTTP tunneling or the chunk-based methods of apple (MPEG-TS) and MicroSoft (MP4) ? If you are looking for a tunneling solution, the following might be helpful: One (typical) option is to use an RTSP source filter. However there is no stock RTSP source filter in windows. You

How to run/start a thread at a given time using Media Foundation?

孤街浪徒 提交于 2019-12-04 22:54:44
I am looking for to start a thread at a specified time with Media Foundation. I know that in DirectShow there is a function called by IMediaFilter where tStart is the time value of the reference clock.: Interface::HRESULT Run(REFERENCE_TIME tStart); But in Media Foundation there is no such function that will run or start a thread with a time as a parameter. Is there a solution to do this in Media Foundation? Neither DirectShow or Media Foundation have functionality that matches the question description. Both APIs have methods to start activity immediately following the request. DirectShow's

Forcing Mpeg2Demultiplexer to use ffdshow to render H264 Digital TV Video

半世苍凉 提交于 2019-12-04 22:27:14
I spend a lot of time trying to make DTVViewer sample of DirectShow work unfortunately with no success. The video format of DVBT network is H264 and I found that the IntelliConnect behavior of IFilterGraph prefers to use Mpeg2 Video format. For those who want to see the code, here it is. If you do not know anything about DirectShow I shared my experience with this code. And the most probably problem is described in step 5 and 6 of the tutorial. The code for helper function which connects filters: public static void UnsafeConnectFilters(IFilterGraph2 graph, IBaseFilter source, IBaseFilter dest,

How do you get DirectShow to play a video from a resource?

女生的网名这么多〃 提交于 2019-12-04 21:56:05
I'm extending an application to play one of several videos on a control in a dialog. Starting with the Windowless sample, I've got this working, though the videos have to be separate files from the main executable. The ideal scenario from a packaging standpoint is for the videos to be included with the executable as resources. I did a bit of googling for this, and there's a fair amount of "somebody should do this", and several pointers to the Async sample, though it's not clear how to get where I want from there. Does anybody know a simple way to do this? It doesn't seem like this is a corner

.Net sdk for video editing like Windows Movie Marker

别说谁变了你拦得住时间么 提交于 2019-12-04 21:19:37
i am currently working on .net application which contains one audio & video file. audio file is split as in to small section as per database entries. then we have to merge this files on video file at specific positions.we what something like windows movie maker it will be nice if someone suggest some .net based sdk for this. You can use ffmpeg for this purpose. But you will need a .net wrapper to make it usable in C#. You can use ffmpeg-sharp or SolidFFMpeg . its a a wrapper library over the FFmpeg multimedia suite that provides easy to use wrappers for use in C#. Datastead Software's

Get MP4 stream lengths

China☆狼群 提交于 2019-12-04 17:54:38
I'm working in an app in wich we use IMediaDet to get stream lengths. Now we're starting to work with MP4 containers. The problem is, when I try an IMediaDet::put_fileName() with the MP4 file, I get HRESULT = -2147024770 (ERROR_MOD_NOT_FOUND). Using a comercial mp4 demuxer, I see the video stream uses mpg2 encoding. My questions: How to get the stream length of a stream inside a MP4 container? Is there a way to make IMediaDet accept these files? Is there a way to point what demuxer IMediaDet should use? Any help would be much appreciated. Thanks. Unfortunately, DirectShow does not contain an

How to create virtual webcam in Windows 10?

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