在哪里从诺基亚相机示例应用程序获取流(实时)视频和音频?

发布于 2024-08-26 04:50:50 字数 279 浏览 7 评论 0原文

在哪里从诺基亚(例如 5800)的相机示例中获取流(实时)视频和音频?

假设我想创建一些实时视频流服务应用程序,所以我将在后端拥有一些很酷的服务器。我知道如何做那部分。假设我有一些适用于 PC 的独立应用程序,现在我想继续使用移动设备。所以我决定从诺基亚开始,因为我拥有它并且可以用它做我想做的事(诺基亚 5800 XpressMusic)。所以我想看到一些示例应用程序从手机抓取音频和视频流,同步它们,并将实时流发送到服务器。我需要任何可以执行此操作或类似操作的开源示例(JAVA 或 C 或 C++)。我在哪里可以买到一个?

Where to get streaming (live) video and audio from camera example for Nokia (5800 for ex)?

Suppose I want to create some live video streaming service app so I'll have some cool server at the back end. And I know how to do that part. Suppose I have some stand alone app for PCs now I want to go on to mobile devices. So I decided to start from Nokia because I have it and can do with it what I want (Nokia 5800 XpressMusic). So I want to see some sample app grabing audio and video streams from Phone, Synchronizing them, and sending LIVE stream to server. I need any OpenSource sample (JAVA or C or C++) that ll do this or something like this. Where can I get one?

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

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

发布评论

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

评论(3

狂之美人 2024-09-02 04:50:50

您是否已经了解用于流媒体内容的网络协议(例如 RTSP)?

如果没有,您可能需要从这里开始。

您应该在 Helix 源代码 中找到合适的代码。

您可能会遇到网络移动运营商过滤除 HTTP 之外的任何内容的常见问题,这对于您想要执行的操作来说不是一个非常实用的协议。

我不建议使用 Java,因为简单地同步音频和视频捕获将是一场噩梦,而且我不会依赖能够打开 GCF 流连接。

对于 Symbian OS C++,我建议从 多媒体示例代码 来自快速食谱一书,然后迭代设备上安装的媒体框架插件以查看其中之一是否可以流视频。

如果您的手机还没有可以执行此操作的媒体框架插件,那么一旦您意识到您基本上需要手机制造商签署您可能想要自己开发的任何其他插件,您可能会想放弃。

此时,值得浏览 Qt 文档和示例代码,因为 Qt 具有不错的多媒体功能最初是针对台式计算机开发的。

考虑到依赖良好的网络带宽来快速上传大量数据,以及在录制视频时移动手机往往会产生较差的视频质量,因此来自移动电话的视频流本身也可能是一个坏主意。高视频压缩用于将比特率保持在最低水平。

Do you already know network protocols used to stream media content, like RTSP?

If not, you probably need to start with that.

You should find good code to start with in the Helix source code.

You may face the usual issue of your network mobile operator filtering out anything but HTTP, which is not a very practical protocol for what you want to do.

I wouldn't advise using Java as simply synchronizing audio and video capture will be a nightmare and I wouldn't rely on being able to open a GCF streaming connection.

For Symbian OS C++, I would suggest starting with the multimedia example code from the Quick Recipes book then iterating through the Media Framework plugins installed on your device to see whether one of them can stream video.

If your handset doesn't already have a Media Framework plugin that can do this, you will probably want to give up once you realize that you basically need the handset manufacturer to sign any additional plugin you might want to develop yourself.

At this point, it would be worth going through the Qt documentation and example code since Qt has decent multimedia capability and was first developed with desktop computers in mind.

Video streaming from a mobile phone might also be a bad idea in and of itself, considering the reliance on good network bandwidth to upload lots of data very quickly and the fact that moving the handset while it records video tends to produce bad video quality because of the high video compression used to keep bitrates at a minimum.

俏︾媚 2024-09-02 04:50:50

论坛讨论,人们未能做同样的事情,建议使用 摄像机媒体记录器 API另一个讨论包含成功创建接收器的接收器的详细信息来自手机摄像头的 H263 编码音频和视频,然后该用户将其保存在 3gp 文件中,但您将发送到您的服务器。

另一个论坛讨论包括一个 MIDlet 示例,该示例在OutputStream,您可以覆盖它以重定向到您的服务器。

A forum discussion of people failing to do the same thing, suggests using the Camcorder Media Recorder API, and another discussion includes details of succeeding in creating a sink to receive the H263 encoded audio and video from their phone's camera, which that user then saves in a 3gp file, but you'd send to your server.

Another forum discussion includes a MIDlet example obtaining the stream in an OutputStream, which you could override to redirect to your server.

吻泪 2024-09-02 04:50:50

诺基亚论坛上的这个问题应该帮助您入门

http://discussion.forum.nokia.com/forum/showthread.php?t=155355

This question on the Nokia forum should get you started:

http://discussion.forum.nokia.com/forum/showthread.php?t=155355

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