将文本添加到视频文件
我需要向视频文件添加文本。 我需要读取一个视频文件并向其中添加一行文本。
I need to add text to a video file. I need to read one video file and add one line of text to it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
这不是一个真正的问题,你需要具体并提供背景信息,否则人们很难提供帮助。
你说你需要添加一行文字,这是一次性活动吗? 1 个视频,1 行文字? 您是否需要在播放视频的同时显示一行文字; 多个视频,每个视频都有一行文字? 潜在场景的列表几乎是无穷无尽的,并且您还没有表明您已经尝试过什么来实现这一目标。
我担心仅仅将其标记为 C# 并没有什么帮助。
This is not really a question, you need to be specific and give context otherwise it's hard for people to help.
You say you need to add a line of text, is this a one-off activity; 1 video, 1 line of text? Are you needing to display a line of text while showing video; multiple videos with a line of text each? The list of potential scenarios is virtually endless and you've not indicated what you've tried to achieve this already.
Just tagging it as C# isn't going to help I fear.
DirectShow VRM7 和 VRM9(视频渲染器)都允许您在显示视频时执行此操作。
Both DirectShow VRM7 and VRM9 (video renderers) allow you to do that when displaying video.
您可以使用命令行并从中运行额外的工具吗?
例如,ffmpeg 或 VideoCHARge Studio
Can you use command line and run extra tool from ?
For exaple, ffmpeg or VideoCHarge Studio
你正在踏入一个高度被忽视的领域。 我的意思是微软真的忽略了它,即使是最简单的事情很快也会变得一团糟。
现在您可以选择:
项目。 它包装 DirectShow 库
让你重新做所有事情
视频。
周围)如何在 WPF 上播放视频。 你
可以轻松添加文本或其他内容,但是
我不确定是否可以保存。
You are stepping into a highly neglected area. I mean MS is really ignoring it and even the most simple things turn out into a mess very quickly.
Now for your options:
project. It wrapps DirectShow library
and let you do all sort of stuff over
video.
around) how to play video on WPF. You
could easily add text or whatever but
I am not sure about saving.
阅读视频 Alpha 混合。
Read up on video alpha blending.