Adding an image at the start of Video file C# and DirectShow?

最后都变了- 提交于 2019-12-13 07:39:07

问题


i have code which record an video from webcam and store in "filename.wmv" format. now i want to add an image at the start of video

How can i do this by using DirectshowLib or any other lib? Is it possible by using DirectShow?

For my Video Recoding code go to this link


回答1:


It will be difficult to add image to the start of already saved video. If you are able to do it at the time of recording, you can use same technique I proposed in an answer to the link you provided, just don't draw overlay, but replace the whole frame with your image.

For those who won't click on the link, here's the text:

I'm doing it in my software in a way that SampleGrabber filter is inserted into a graph, and upon arrival of a picture, I convert it to Bitmap object, then draw on it with Graphics.



来源:https://stackoverflow.com/questions/10860659/adding-an-image-at-the-start-of-video-file-c-sharp-and-directshow

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