从Nest Cam观看直播 [英] Access to live stream from Nest Cam

查看:109
本文介绍了从Nest Cam观看直播的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Nest的综合Apple TV应用程序的开发者,名为Feather(featherapp.co).我遇到的一个问题是用户希望能够查看其摄像机的实时供稿.

I'm the developer on a comprehensive Apple TV app for the Nest called Feather (featherapp.co). One issue that I've run into is that users are expecting to be able to view the live feed of their cameras.

有没有人确定访问摄像机实时供稿的任何方式?我已经做了很多逆向工程,但是我相信流本身受到某种DRM的保护.

Has anyone determined any way of accessing the live feed of the camera? I've done quite a bit of reverse engineering but I believe the stream itself is protected by some sort of DRM.

看起来像是RTMP流,其格式如下:

It looks like it's an RTMP stream that takes a format like below:

rtmps://oculus387-vir.dropcam.com/nexus/[cameraid]

rtmps://oculus387-vir.dropcam.com/nexus/[cameraid]

带有一些参数

_sessionToken,_isHD,_camera.uuid,时间

_sessionToken,_isHD,_camera.uuid,time

我已经尝试了很多方法,但是我从来没有真正能够建立到源的连接.作为应用程序开发人员,我正在深入研究更核心的流技术.任何见解将不胜感激!

I've tried a number of things but I'm never really able to establish a connection to the source. I'm a little out of my depth here, as an application developer getting into the more hardcore streaming technology. Any insight would be really appreciated!

推荐答案

您无法以任何常规方式访问直播流,但是您可能能够每秒从旧的android API中获取一帧.我已经尝试过了,但是我认为他们已经对其进行了修补,或者不适用于新相机

you can't acesses the live stream in any normal way but you may be able to get one frame per second from the old android api. I have tried this but i think they patched it or it doesn't work with the new cameras

#! /bin/bash
i=00
while [ $i -lt 300 ]
do
curl 'https://home.nest.com/dropcam/api/cameras/_your camera url etc' -H 'Cookie: YOUR_COOKIE ETC'  -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'Referer: https://home.nest.com/' -H 'X-Requested-With: XMLHttpRequest' -H 'Connection: keep-alive' --compressed -o nest\ testing/$i.jpeg
let i+=1
echo $i
done
ffmpeg -r 25 -start_number 1 -f image2 -i "%04d.jpg" -vcodec png video.avi
o.avi

这篇关于从Nest Cam观看直播的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆