有没有办法使用他们的 API 以编程方式向 Youtube 视频添加字幕?
当我将视频上传到 YouTube 时,我正在尝试为其添加标题。标题可能会写“由 ABC 公司为您提供”之类的内容。
Google 此处的描述方式似乎非常冗长和复杂。此外,没有使用 Java API 的链接。
有谁知道一个简单的方法来做到这一点?
谢谢, 齿轮。
I'm trying to add a caption to a video when I upload it to youtube. The caption would say something like "Brought to you by Company ABC".
The way Google has described it here seems very long winded and complex. Additionally, there is no link to usage with the Java API.
Does anyone know a simple way of doing this?
Thanks,
Gearoid.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您正在寻找的内容可能更合适地称为“注释”(或者在本例中 "预广告”)而不是“标题”。
(如果有人实际上在说“由 ABC 公司带给您”,并且您希望人们能够在没有声音的情况下知道这一点……或者因为他们关闭了声音,或者正在扫描以编程方式播放视频,或者因为他们有听力障碍。)
目前显然没有用于使用 YouTube 原生注释功能的编程 API:
以编程方式注释 YouTube 视频
如果您想在视频前添加某种标题卡(就像您的视频一样)插入广告的空间)您可以在上传之前阅读有关执行该操作的方法:
将多个视频无缝拼接在一起
您将有更多选择来制作介绍那么序列看起来很漂亮。
What you are looking for might be more properly called an "annotation" (or in this case "premercial") than a "caption".
(A caption would be an appropriate term if someone was actually speaking "Brought to you by Company ABC", and you wanted people to be able to know that with no sound...either because they had the sound off, or were scanning the video programmatically, or because they are hearing-impaired.)
There is apparently no programmatic API at this point in time for using YouTube's native annotation features:
Annotating YouTube videos programmatically
If you wanted to prepend a title card of some kind to your video (like it's your space to inject an advertisement) you can read around for approaches to do that operation before the upload:
Stitching together multiple videos without gap
You'd have a lot more options for making that intro sequence look spiffy, then.