如何在捕获的视频中添加时间戳 [英] How to add timestamp in captured video

查看:842
本文介绍了如何在捕获的视频中添加时间戳的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用directshow框架进行视频捕获。视频捕获正确完成。但我无法弄清楚如何在视频中添加时间戳。

我期待你的帮助..



谢谢。

I am using directshow framework for video capturing. Video capturing is done properly. But i can not figure it out how to add timestamp in the video.
I am expecting your help..

Thanks.

推荐答案

取决于您拍摄视频的方式。例如,如果您使用新的帧事件,则可以使用Pen对象或画笔将时间戳放在Bitmap上,并在图片框或其他任何内容中显示生成的位图,您将获得实时视频效果,但会加上时间戳。另一个选择,如果你使用directshow是将samplegrabber内联并对其采取行动。
Depending on how you did your video capture. For example if your using the new frame event, you can then use a Pen object or brush to put the timestamp on the Bitmap, and display the resulting bitmaps in a picturebox or whatever and you will have a live video effect, but timestamped. Another option if your using directshow is to put a samplegrabber inline and act upon that.


这篇关于如何在捕获的视频中添加时间戳的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆