English 中文(简体)
利用媒体基金会
原标题:live streaming using Media Foundation SDK

利用媒体基金会使用数据I m编码,将数据从网络上流出,而不是将其编成WMV的档案?

问题回答

First, I guess, you need to know what format (encoded as/contained in) you are going to stream as.

I am thinking h264. With windows 7 media foundation create h264 helper functions. You need to create a topology. Source reads a file and sink turns the decoded and encoded format to h264. All you need is source and a sink. You dont actually need a decoder and an encoder. Topology builder figures what needs to be plugged in between.

There is a CreateTranscodeTopology function but that wont help you because it writes the encoded data to a file. That is why you need to create your own topology.

仅需要写字,就是一个执行基金组织ByteStream的班子。

你们的思考应当让你们执行这一 by。 你履行“标准”职能时,将写到你想要向数据发送的袖珍。 因此,也许你可以向基金组织执行银行董事会的施工者或追随职能转告。

I would also suggest you put some print statements in the the other function that you need to implement in IMFByteStream because SinkWriter calls certain stuff like. GetCapabilities so you should at least return.

HRESULT STDMETHODCALLTYPE NetworkOutputStream::GetCapabilities(__RPC__out DWORD        *pdwCapabilities){HRESULT hr=S_OK; 
 printf("GetCapabilities
");

*pdwCapabilities= (MFBYTESTREAM_IS_READABLE|MFBYTESTREAM_IS_WRITABLE|MFBYTESTREAM_IS_SEEKABLE);

return hr;
}

尽管如此, 如果您在客户中担任过角色(“超文本5 Browser”) 我建议你采用“最惠国”的例子。

Creating topology is mostly for playback and stuff. So it decodes and encodes it the speed that move should play. But all you need is encode the file and send it of the wire . So take a look at the MFCopy and implement your own IMFByteStream. Instead of creating a sink that write to local file system pass your IMFByteStream to the sink.





相关问题
Undefined reference

I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...

C++ Equivalent of Tidy

Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

typedef ing STL wstring

Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?

热门标签