视频流困境

发布于 2024-07-19 22:16:04 字数 758 浏览 5 评论 0原文

我正在开发一个视频流应用程序,到目前为止,其兼容性仅限于 Windows 和 IE(尽管它似乎在 Firefox 上也运行得很好),

我的任务是让它在 Mac 上运行,并且在未来Unix 也是如此,但我认为如果我让 Mac 能够工作,UNIX 也会随之而来。

我们使用 Windows Media Streaming Server,以及包含流媒体的 .asx 播放列表文件。 URL 还可能包含字幕文件,有点像这样:

mms://192.168.xx.xxx/video/movie99.wmv?SAMI=http://192.168.xx.yyy/subs/movie99.smi

现在,当谈到 Mac OSX 时,我非常迷失,但我设法让视频与 Flip4Mac 一起工作,这似乎是 Quicktime 的某种“微软套件”。 我还让它与 Firefox 和 Safari 中的 VLC 插件一起使用。 然而,我一生都无法让字幕发挥作用。

我愿意听听您能想到的任何解决方案。 JavaScript 魔法? 在Mac上安装一些东西? 使用 java web start 启动一个应用程序,该应用程序运行以字幕文件启动 vlc 的命令行参数? 打我:)

我唯一不想听到的解决方案是“制作一个YouTube”之类的东西。 我们不需要重写所有核心功能的简单解决方案值得赞赏:)

问候, 高手

I'm working on a video streaming application, where compatibility has so far been limited to Windows and IE (though it seems to work well enough on Firefox as well)

I have been tasked to get it to work on Macs, and in the future Unix as well, but I figure that if I get Macs to work, UNIX will follow.

We're using a Windows Media Streaming Server, with an .asx playlist file containing the streaming media. The URLs may also contain a subtitle file, and it goes a little somethin' like this:

mms://192.168.xx.xxx/video/movie99.wmv?SAMI=http://192.168.xx.yyy/subs/movie99.smi

Now, I'm pretty lost when it comes to Mac OSX, but I managed to get the video working with Flip4Mac, which seems to be some kind of "Microsoft Kit" for Quicktime. I also got it to work with a VLC plugin in Firefox and Safari. However, I can't for the life of me get the subtitles to work.

I'm willing to hear whatever solutions you can think of. Javascript magic? Install something on the mac? Use java web start to launch an app that runs a commandline argument starting vlc with the subtitle file? Hit me :)

The only solution I don't want to hear is "Make a youtube" and stuff like that. Simple solutions where we don't have to rewrite all of our core functionality is appreciated :)

Regards,
Ace

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(4

满地尘埃落定 2024-07-26 22:16:04

不幸的是,在 Windows Media Player 之外,流式传输字幕绝对不容易:

http://wiki.videolan.org/Subtitles 甚至这么说。

如果您有可用的源视频,我认为您最好的选择是将替代媒体提供给 Windows/IE 以外的平台。

您可以编写 Javascript 代码进行浏览器检测,然后请求正确的 URL(即 Windows 的流媒体/字幕、流媒体或带有嵌入字幕的流媒体(如果请求字幕))。

我快速搜索了嵌入字幕并获得了这篇文章。 它有一些用于在媒体中嵌入字幕的工具的链接:

http ://mwolk.com/blog/how-to-embed-subtitles-into-videos/

祝你好运!

Unfortunately, outside of Windows Media Player, streaming subtitles is definitely not easy:

http://wiki.videolan.org/Subtitles even says so.

If you have the source video available to you, I think your best bet would be to have alternative media served to platforms other than Windows/IE.

You could code Javascript for the browser detection and then request to proper URL (i.e. Streaming Media/Subtitles for Windows, Streaming Media or Streaming Media with embedded subtitles if subtitles are requested).

I did a quick search for embedding subtitles and netted this post. It has some links to tools used to embed subtitles in your media:

http://mwolk.com/blog/how-to-embed-subtitles-into-videos/

Good luck!

最偏执的依靠 2024-07-26 22:16:04

好吧,这可能不是您所期待的答案,但由于 2 天后您什么也没得到,这是我的 0.02 美元。

忘记 IE,使用 Firefox + theora 一切都会自动工作。 不过,您可能需要重写至少部分核心服务器端功能。 有关详细信息,请参阅此处

Well, probably this is not the kind of answer you were expecting, but since in 2 days you didn't get anything, here are my 0.02$.

Forget IE, use Firefox + theora and everything automagically will work. Probably you will need to rewrite at least part of your core server-side functionality, though. See here for details.

巡山小妖精 2024-07-26 22:16:04

您是想问哪些媒体播放器支持 SAMI?

如果你喜欢这样的事情,你真的可以抓取文件的文本并用 JavaScript 解析它。 顺便说一句,非常感谢您让隐藏式字幕与您正在做的任何媒体项目一起使用!

要求尝试 SMIL 会不会太过分了?

http://en.wikipedia.org/wiki/SAMI#Media_Players_that_Support_SAMI

Are you asking which media players support SAMI?

You really could grab the text of the file and parse it in javascript, if you like that kinda thing. BTW thank you very much for getting closed captions working w/ whatever media project you're doing!!

Would it be too much to ask to try SMIL instead?

http://en.wikipedia.org/wiki/SAMI#Media_Players_that_Support_SAMI

醉殇 2024-07-26 22:16:04

这可能不是您想要走的路,但如果您想确保无论平台如何都显示字幕,您可以将字幕直接合并到视频中,并以与操作系统无关的形式(QuickTime 或 Flash)分发。 通过将字幕嵌入到视频流中,与平台无关。

It might not be the road you want to take, but if you want ensure that subtitles are shown regardless of platform you incorporate them directly into the video and distribute it in an OS agnostic form (QuickTime or Flash). By having the sub-titles embedded within the video streaming and platform are irrelevant.

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