Spydroid还是大牛直播内置RTSP服务SDK

废话不多说,先列二者功能:

1. Spydroid:

  • The stream can be directly read by VLC which is great because VLC is a very powerful tool, for example you can really easily record the stream in a file. [FAQ See the FAQ to find out how].
  • You can enable/disable sound or video streaming
  • The resolution, the bitrate and the framerate of the stream can be configured... Two video encoders are available for the video streaming: H.263 and H.264. For sound streaming AMR and AAC are available.
  • The flash can be controlled remotly !
  • You can choose between the back facing camera and the front facing camera (if your phone has one)
  • Funny sounds can be played on the phone from the HTTP interface !
  • You can make the phone vibrate remotely
  • You can see the battery level of the phone

Advanced Use of Spydroid

RTSP Server

Since v3.2, you can pass sophisticated URIs to the RTSP server to remotly configure Spydroid. Here are some example of what you can do:

Enable video streaming & with H.264 and turn flash on ! (H.264 is a standard for video compression)

vlc "rtsp://xxx.xxx.xxx.xxx:8086?h264&flash=on"

Enable video streaming of the front facing camera !

vlc "rtsp://xxx.xxx.xxx.xxx:8086?h264&camera=front"

Enable video streaming with H.263 and sound streaming with AMR and turn flash on ! (H.263 is also a standard for video compression and AMR is a standard for audio compression)

vlc "rtsp://xxx.xxx.xxx.xxx:8086?h263&amr&flash=on"

Enable video streaming and set bitrate to 200kb/s

vlc "rtsp://xxx.xxx.xxx.xxx:8086?h264=200"

Enable video streaming and set bitrate to 500kb/s and framerate to 20fps

vlc "rtsp://xxx.xxx.xxx.xxx:8086?h264=500-20"

Enable video streaming and set bitrate to 500kb/s / framerate to 20fps / resolution to 320x240px

vlc "rtsp://xxx.xxx.xxx.xxx:8086?h264=500-20-320-240"

Enable aac streaming (introduced in v3.3): this is very experimental and it requieres ICS

vlc "rtsp://xxx.xxx.xxx.xxx:8086?aac"

You can of course still use the following basic URI. Spydroid will then use a default configuration, that you can modify in the option menu !

vlc "rtsp://xxx.xxx.xxx.xxx:8086/"

HTTP Server

If you don‘t want to use the RTSP protocol, you can also start/stop streams using only the HTTP server You can use any of the options presented for the RTSP server ! The HTTP server will respond with a Session Descriptor.

vlc "http://xxx.xxx.xxx.xxx:8080/spydroid.sdp"

Because you‘re not using the RTSP protocol, streaming won‘t stop when you quit VLC. You have to GET the following URL:

curl "http://xxx.xxx.xxx.xxx:8080/spydroid.sdp?stop"

You can start up to two streams with the HTTP server. You can specify a stream id to distinguish the streams. For example:

vlc "http://xxx.xxx.xxx.xxx:8080/spydroid.sdp?id=0&h264&flash=on"

vlc "http://xxx.xxx.xxx.xxx:8080/spydroid.sdp?id=1&amr"

curl "http://xxx.xxx.xxx.xxx:8080/spydroid.sdp?id=1&stop"

2. 大牛直播轻量级RTSP服务SDK:

为满足内网无纸化/电子教室等内网超低延迟需求,避免让用户配置单独的服务器,大牛直播SDK在推送端发布了轻量级RTSP服务SDK:

简单来说,之前推送端SDK支持的功能,内置轻量级RTSP服务SDK后,功能继续支持。

Windows/Android/iOS内置轻量级RTSP服务SDK功能说明

  • 支持Windows/Android/iOS平台RTMP直播SDK除推送RTMP外的所有常规功能;
  • 音频编码:AAC;
  • 视频编码:H.264;
  • 内置服务协议:RTSP;
  • 支持RTSP端口设置;
  • 支持RTSP鉴权用户名、密码设置;
  • 支持获取当前RTSP服务会话连接数;
  • 支持同时创建多个内置RTSP服务。

对应Demo:

  • Windows测试程序:SmartPublisherDemo.exe;
  • Windows C++工程:WIN-PublisherSDK-CPP-Demo;
  • Windows C#工程:WIN-PublisherSDK-CSharp-Demo;
  • Android工程:SmartPublisherV2;
  • iOS工程:SmartiOSPublisherV2。

技术对比:

1. Spydroid最新的代码,更新于5年前,目前支持android平台,可采集安卓摄像头和音频,对外提供http server和rtsp server,延迟和丢包处理有待优化,优势在于,代码逻辑简单,便于初学者根据协议规范,快速迭代产品初步模型,video编码支持H.263和H.264,audio支持AMR和AAC编码。

2. 大牛直播内置RTSP服务SDK系商业化SDK,技术成熟,有专人维护、迭代,覆盖windows、android、iOS平台,支持采集屏幕、摄像头,支持实时静音、快照、扩展录像、外部编码前后数据对接等,功能更强大,video编码支持H.264和H.265,audio支持AAC编码,亦可扩展拉取外部rtsp或rtmp流,扩展RTSP网关服务器,支持RTSP鉴权和多个RTSP service启动。

原文地址:https://www.cnblogs.com/daniulivesdk/p/10960829.html

时间: 2024-11-09 00:38:03

Spydroid还是大牛直播内置RTSP服务SDK的相关文章

servicemix-3.2.1 内置的服务引擎和绑定组件

服务引擎: servicemix-bean servicemix-camel servicemix-cxf-se servicemix-drools servicemix-eip servicemix-jsr181  JSR-181服务引擎 servicemix-lwcontainer  轻量容器服务引擎 servicemix-quartz servicemix-saxon servicemix-script servicemix-wsn2005  WS-Notification服务引擎 绑定组

轻量级RTSP服务模块和RTSP推流模块适用场景区别

好多开发者一直搞不清轻量级RTSP服务SDK和RTSP推流SDK的区别(Github下载地址),以下是相关区别: 1. 轻量级RTSP服务模块:轻量级RTSP服务解决的核心痛点是避免用户或者开发者单独部署RTSP或者RTMP服务,实现本地的音视频数据(如摄像头.麦克风),编码后,汇聚到内置RTSP服务,对外提供可供拉流的RTSP URL,轻量级RTSP服务,适用于内网环境下,对并发要求不高的场景,支持H.264/H.265,支持RTSP鉴权.单播.组播模式,考虑到单个服务承载能力,我们支持同时创

新版树莓派中内置的real-vnc-server

买了个树莓派3B,下载了最新的"2017-01-11-raspbian-jessie.img"镜像,启动后试图安装VNC服务,按照网上的教程输入: sudo apt-get install tightvncserver 提示会安装"tightvncserver xfonts-base", 同时会删除"realvnc-vnc-server": [email protected]:~ $ sudo apt-get install tightvncse

Node.js开发入门—使用AngularJS内置服务

在上一篇,"AngularJS简单示例"中演示了一个非常简单的使用Angular的小demo,那篇已经太长,原本要介绍的一些内容只好单另开篇了.这些内容,就是如何使用Angular服务. 我们还是基于"AngularJS简单示例"中的示例来改造一下.新的示例,能从Node.js+Express构造的服务器上获取管理菜单.为了实现这个,需要做几部分改造: 服务器提供adminMenu的下载功能,需要修改app.js,处理路由 修改Angular实现的控制器x-cont

AngularJS复习-----内置过滤器和内置服务

AngularJS中的内置服务(共30多个): $http 发送http请求,主要用于进行异步数据请求的功能实现,这个服务主要封装了XMLHttpRequest对象和JSONP数据访问模式来完成远程请求 $resource  创建一个可以restful服务器端数据源交互对象 $location  用于返回当前页面的URL地址 $window  浏览器的window元素的jquery包装 $document  浏览器的document元素的jQuery包装 $rootscope  跟作用域的访问

高效利用Angular中内置服务

AngularJS中为我们提供了众多的内置服务,通过这些内置服务可以轻松的实现一些常用功能.下面对Angular中常用的内置服务进行一下总结. 1.$location服务 $location服务用于返回当前页面的URL地址,示例代码如下: var app = angular.module('myApp', []); app.controller('customersCtrl', function($scope, $location) { $scope.myUrl = $location.absU

angularJS使用内置服务

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <script src="http://cdn.static.runoob.com/libs/angular.js/1.4.6/angular.min.js"></script> </head> <body ng-app="myApp" ng-contr

Hive基础(4)---Hive的内置服务

版权声明:<—— 本文为作者呕心沥血打造,若要转载,请注明出处@http://blog.csdn.net/gamer_gyt <—— 目录(?)[+] 一:Hive的几种内置服务 执行bin/hive --service help  如下: [html] view plain copy [[email protected] hive]$ bin/hive --service help ls: 无法访问/opt/spark/lib/spark-assembly-*.jar: 没有那个文件或目录

利用PHP内置 SERVER开启web服务!

PHP从5.4的版本开始已经有了内置 server.这里是在win10 平台下开启server服务: 1.首先在win 平台下安装好PHP > 5.4.在C:\php\pear目录下建立  router.php,文件,并写一个echo 输出. 2.利用管理员进入 powerShell,输入一下命令 php -S localhost:8000 router.php 回车执行返回了: PHP 5.4.45 Development Server started at Tue Nov 07 16:32: