Quantcast
Channel: Media Foundation Development for Windows Desktop forum
Viewing all articles
Browse latest Browse all 1079

MFDub sample does't work

$
0
0

I am writing a tool to read video and audio data from one media file and then write those to a new video file. I can sample and transfer just video data frame by frame successfully. But I don’t know how to do it with audio altogether. I found an article "http://blogs.msdn.com/b/mf/archive/2010/03/12/mfdub.aspx" talking about this. It is published by Media Foundation Team. However, when I tried the sample codes “MFDub” shared on the article, I got an error when line “CHECK_HR( hr = pThis->m_spSinkWriter->BeginWriting());” in mediatranscoder.cpp is invoked. It says “hr = 0xc00d36b4 : The data specified for the media type is invalid, inconsistent, or not supported by this object.” This is an error of MF_E_INVALIDMEDIATYPE. Do you know what’s causing this and how to fix it?


Viewing all articles
Browse latest Browse all 1079

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>