Live Streaming using Media Foundation
Hi, I'd like to make the server application to capture the live video and do streaming it to a client. I know that it was easy to implement by using Windows Media Format SDK (e.g....
View ArticleUse Media Foundation In Game
I want to play videos and music with Media Foundation in my Direct2D game, there are 2 questions I need tosolve:1. How to show a video in a bitmap render target?2. How to play media files with Source...
View ArticleAudio Video Capture to file
I am trying to implement A/V capture and encoding to MP4 file. I am very familiar with directshow but I am struggling with Media Foundation.I have constructed a topology that looks like this:Video...
View ArticleKnown bugs in H.264 MFT encoder on Windows 8
1) Does not support documented GetBlob of MF_MT_MPEG_SEQUENCE_HEADER. From documentation : "After the output type is set, the video encoder updates the type by adding the MF_MT_MPEG_SEQUENCE_HEADER...
View ArticleMedia Foundation Using IMFSourceReader, IMFMediaSink, EVR
I'll open video file by IMFSourceReader and want to show it on window by IMFMediaSink+EVR. I dont know where to get value for IMFPresentationClock. And i dont know how to start MediaSink. Or maybe i...
View Articleconverting block of jpg to wmv using window media encoder
Hi I try to convert jpg to wmv using window media encoder I running this code (contain single jpg for Trial) I get error"System.Runtime.InteropServices.COMException (0xC00D0BB8): The input media format...
View ArticleTopology Resolution failure with avshws(avstream minidriver) sample
Hi,I am trying to resolve the topology using topoedit of the following components:1. Source component ("avshws" (avstream minidriver sample) exposed as devproxy in user mode)2. Custom MFT3. Custom...
View ArticleHow to reconnect to ASF network stream without restarting topology ?
ASF media stream communicates through IMFByteStream where programmer free to do whatever he wants.Sink out Process started from Write synchronous function and continues in...
View ArticleD3D11 Chroma Siting
I'm looking at the ID3D11VideoContext interface wondering if there's a way to set extended video color information for de-interlacing (like in DXVA2). MediaFoundation supports an attribute called...
View ArticleWhat does this error mean? "D3D11 ERROR:...
I have some errors when trying to play .wmv file using my video player, based on Media IMFMediaEngine API. Here they are:D3D11 ERROR: ID3D11DeviceContext::GetVideoProcessorFilterRange: The filter...
View ArticleMEBufferingStarte/Ended events and sample timstamps
Hi,I'm new to media foundation. Currently working on a project which displays live video stream from a IP Camera. For this task i have created a custom media source and custom media stream classes...
View Articlewhy cannot receive data in ProcessOutput
I have received data from IMFMediaSource in IMFTransform::ProcessInput, after I process the data then I should receive it in ProcessOutput.But It seems not work. when I get the IMediaBuffer in...
View ArticleH.264 Encoder ProcessOut problem
I read data from IMFMediaSource,Then use H.264 Encoder to encode IMFSample,But some problem happened: hr=m_pVideoEncoder->ProcessInput(pSample); BREAK_ON_FAIL(hr); CComPtr<IMFSample>...
View ArticleDecoding mpeg4 frames failure using Media Foundation
I am trying to decode mpeg4 frames using media foundation with no luck. Using MFTrace i've found that the decoder keeps requesting samples but produces no decoded image. MFTrace log also highlights...
View ArticleEVRpresenter example
when I use EVRpresenter example with the MFplayer.I open media files again and again form the menu.but the system memory it use in taskmanager become larger and larger.Also the workthread become more...
View ArticleCan't get IMFCaptureEngine to use IMFVideoSampleAllocatorEx
Hello,My goal is to gain access to the IMFDXGIBuffer from inside of the IMFSourceReader::OnReadSample call back function that gives us an IMFSample buffer...HRESULT CSourceReaderCB::OnReadSample(...
View ArticleHow many samples to allocate?
How many samples should be allocated by MFT if MFT_OUTPUT_STREAM_PROVIDES_SAMPLES flag is specified?The same problem occures when MFT holds some sample. I found only MF_SA_REQUIRED_SAMPLE_COUNTflag,...
View ArticleHow to do audio mixing in Media Foundation?
Dear all, Is there any existing MTF can mix one audio stream into another? Or I should write a custom MTF to do this job.
View ArticleCreating VideoProcessor InputView with custom buffer.
I am writing a test application to test D3D11 VideoProcessing APIs.I have a input buffer with NV12 data. I want to do a VideoProcessBlit on this buffer and receive the output in other buffer.To do a...
View ArticleIMFStreamSink skips few samples, calculation of presentation time
For live streaming purposes, I have written custom mp4 container and I am facing few issues.First: I have noticed, that IMFMediaSink somehow skips some of samples(frames). While testing, running both...
View Article