User Activity

  • Posted a comment on discussion Open Discussion on Media Foundation .NET

    Hello, I'm looking some way to take snapshot image of video on MediaSession. I found the code in TanTan project and modify it like this: public void SnapShoot(String dir) { HResult hr; BinaryWriter bitmapWriter = null; BitmapInfoHeader workingBitmapInfoHeader = new BitmapInfoHeader(); IntPtr bitmapData = IntPtr.Zero; int bitmapDataSize = 0; long bitmapTimestamp = 0; //we have to be playing or paused if (OpenState == OpenStates.Closed ) { return; } try { object evrVideoService; // we need to get the...

  • Modified a comment on discussion Open Discussion on Media Foundation .NET

    You means using MFGetService to get IID_IDirect3DDeviceManager9 object and then set this object into IMFSourceReader? HResult hr = MFExtern.MFGetService( pStreamSink, MFServices.MR_VIDEO_ACCELERATION_SERVICE, IID_IDirect3DDeviceManager9, out obj); Can we use this way to setup gpu for transform node in MediaSession?

  • Posted a comment on discussion Open Discussion on Media Foundation .NET

    You means using MFGetService to get IID_IDirect3DDeviceManager9 object and then set this object into Transform? HResult hr = MFExtern.MFGetService( pStreamSink, MFServices.MR_VIDEO_ACCELERATION_SERVICE, IID_IDirect3DDeviceManager9, out obj);

  • Posted a comment on discussion Open Discussion on Media Foundation .NET

    Hello, I'm building a topology to decode h264 video and view on panel with and H264 video source node, transform node, tee node, 1 grabber node and 1 EVR sink node that shows in this image The grabber node use to get the sample for doing snapshot or video record. Because of transform working on CPU, the cpu usage look so height. How can I do the transform on GPU? I take a look some ways that using DirectX for decoder but I don't know how to add it to work with mediasession. I still wondering about...

  • Posted a comment on discussion Open Discussion on Media Foundation .NET

    Yeb, I greatly appreciate your help and support, hope to collaborate with you in the future. Thank you!

  • Posted a comment on discussion Open Discussion on Media Foundation .NET

    Woaw.... incredible. It's great! I changed the code as your suggest by using WorkQueeue. It work well and really smooth. And also speed of render is near to real-time. Many thanks for your help I still wondering about scaling to 128 players or 256 player. Is it reality? (Assume that hardware resource is supported)

  • Posted a comment on discussion Open Discussion on Media Foundation .NET

    If I remove MF_LOW_LATENCY as your suggest above, the video is smooth and steady. But video from camera look so not real time yet. I mean it is delayed 0.5s or 1s. Because of the delay, I wanna use MF_LOW_LATENCY to speed up video render for faster. Make it near the real-time The CPU(i7-8th) is around 10% and GPU(gtx 1060 for laptop) is 60% . I think it's normally. It's not consume so much for 12 player. Do you know how can I reduce the delay of render?

  • Posted a comment on discussion Open Discussion on Media Foundation .NET

    Thanks for your reply. When I remove attribute MF_LOW_LATENCY the frozen of video is not happen while I start the other players . However the delay of render is increase Do you have any ideas to keep low of delay in render and video still smooth?

View All

Personal Data

Username:
stmx64
Joined:
2021-03-26 03:07:41

Projects

  • No projects to display.

Personal Tools

MongoDB Logo MongoDB