Add Watermark to Capture stream

安稳与你 提交于 2020-01-14 06:12:09

问题


I am using DirectX.Capture and Direct Show. Using existing project http://www.codeproject.com/KB/directx/directxcapture.aspx?msg=2490488 want to add water mark is it possible? if yes how?


回答1:


To add a watermark in the recorder video, you would have to insert some watermarking filter into the graph that does capture and recording. In my apps, I am doing it via sample grabber filter which enables me to access every video frame as it is captured from the input source.

Beware though: the frame will be in some pixel format, and if it's not RGB24 you'll be in a lot of trouble to draw something on it. If possible, configure your input source to RGB24 and you'll be able to draw on it even with GDI or GDI+.

Expand your question if you need more info.



来源:https://stackoverflow.com/questions/4902697/add-watermark-to-capture-stream

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!