【问题标题】:H.264 hardware encoding for live video stream from Google Glass来自 Google Glass 的实时视频流的 H.264 硬件编码
【发布时间】:2014-03-07 13:31:54
【问题描述】:

我正在尝试将视频流从 Google Glass 传输到本地服务器。 首先,作为测试,我尝试了 SpyDroid v9.1。 使用 H.263 编码的流媒体效果很好,但质量不太好。 尝试使用 H.264 硬件编码进行直播时,连接失败。 收到的错误是:“Error: stsd box could not be found”,从这里抛出:

public StsdBox getStsdBox() throws IOException {
                try {
                        return new StsdBox(fis,getBoxPos("/moov/trak/mdia/minf/stbl/stsd"));
                } catch (IOException e) {
                        throw new IOException("Error: stsd box could not be found");
                }
        }

另外,由于目前 Glass 有 Android 15,MediaCodec 类 (android.media.MediaCodec) 不可用(Android 16 中添加了媒体 API)。

向 Google 提出了类似的问题,但没有真正可行的解决方案: 一种。 https://code.google.com/p/google-glass-api/issues/detail?id=207。 湾。 https://code.google.com/p/spydroid-ipcamera/issues/detail?id=129

有谁知道如何从 Google Glass 发送 H.264 硬件编码的实时视频流?

非常感谢有关此问题的任何帮助/指南。

【问题讨论】:

  • 您可能想要等待 XE14(转向 KitKat 兼容性)...没有正式日期,但最初的目标是 2 月底。我不知道从现在开始大约 2 周的“可穿戴设备”SDK 是否与 XE14 有任何关系。

标签: android video google-glass


【解决方案1】:

Glass 中的 SoC 不支持 VP8,仅支持 h263/h264,并且由于 google 正在其所有产品上推动 VP8,因此 google 不会在 glass 上提供硬件加速。资料来源:last IO 关于 glass 软件开发的演讲。

一种可能的解决方案是将 gstreamer-ducati 库移植到 glass 并使用它们直接与 omap4 SoC (IVA-HD) 上的视频加速硬件通信。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-03-18
    • 2013-06-06
    • 2016-08-21
    • 2012-11-23
    • 2012-02-16
    • 2016-01-16
    相关资源
    最近更新 更多