开发者

How can I show a live stream of video data in my app?

开发者 https://www.devze.com 2022-12-15 05:44 出处:网络
I get a video feed (mpeg2-ts @ 500kb/s) over the network, but I\'m uncertain on how to go from here.

I get a video feed (mpeg2-ts @ 500kb/s) over the network, but I'm uncertain on how to go from here.

The videofeed is now collected in a rather fast growing byte array, and I need a hint on how to feed a video renderer with these开发者_开发知识库 bytes. I've used DirectX's AudioVideoPlayback before, but as far as I can se it can only read from files, and I wish to avoid disk usage.

Edit: I have never worked with DirectShow, so this could be interesting. Maybe using Media Foundation for best forward compatibility? This stuff is brand new so Google dosn't offer me much help...


You should be able to do this with DirectShow. Depending on your exact needs you could render the buffer or let DirectShow handle the networking aspect as well.

0

精彩评论

暂无评论...
验证码 换一张
取 消