有没有办法使用他们的 API 以编程方式向 Youtube 视频添加字幕?

发布于 2024-11-19 14:04:30 字数 273 浏览 1 评论 0原文

当我将视频上传到 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

爱人如己 2024-11-26 14:04:30

您正在寻找的内容可能更合适地称为“注释”(或者在本例中 "预广告”)而不是“标题”。

(如果有人实际上在说“由 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文