1. Raspberry Pi camera software

一旦安装好Pi摄像头,RBP的开发者们提供了两个简单但强大的命令行工具,用来直接对摄像头获取的图像或视频流进行保存或分流

raspivid is a command line application that allows you to capture video with the camera module

raspistill allows you to capture images

Example Commands

(http://www.raspberrypi.org/archives/3890)

Capture an image in jpeg format:

raspistill -o image.jpg

Capture a 5s video in h264 format:

raspivid -o video.h264

Capture a 10s video:

raspivid -o video.h264 -t 10000

Capture a 10s video in demo mode:

raspivid -o video.h264 -t 10000 -d

To see a list of possible options for running raspivid orraspistill, you can run:

raspivid | less

raspistill | less

How to install the Raspberry Pi camera module

http://www.techradar.com/news/computing-components/peripherals/how-to-install-the-raspberry-pi-camera-module-1172034

Display a five-second demo: raspivid -d
Display a 640x480 preview: raspivid -p 0,0,640,480
Capture 20s of h264 video: raspivid -t 20000 -o video.h264
Take a 640x480 shot: raspistill -o image.jpg -w 640 -h 480
Take a reduced quality JPEG: raspistill -o image.jpg -q 5

2. Streaming video in RBP native way (Without OpenCV)

RBP的作者们还演示了一种通过网络stream视频流的方式。
在Pi上需要用到raspivid和netcat
raspivid -t 999999 -o – | nc [insert the IP address of the client] 5001

在客户端(包括Linux, Windows和Mac)运行netcat和mplayer即可。比如Linux下只要:
nc -l -p 5001 | mplayer -fps 31 -cache 1024 -

但我如果运行上面命令则直接退出,

libavformat version 53.21.1 (external)
Mismatching header version 53.19.0

Exiting... (End of file)

运行
nc.traditional -l -p 5001 | mplayer -fps 31 -cache 1024 -

就一切正常。

RBP as a streaming server(一)相关推荐

  1. Darwin Streaming Server服务器mp4文件点播返回”415 Unsupported Media Type“错误

    Darwin Streaming Server中mp4文件点播失败,通过抓包发现服务器返回"415 Unsupported Media Type"错误,如下: RTSP/1.0 4 ...

  2. Darwin Streaming Server for Windows 安装

    最近搞流媒体相关的项目,于是打算在局域网搭建一个流媒体服务器.本以为很快搞定的,但是,在安装过程中还是折腾了一番. 现把安装流程记下来: 一.下载 Darwin Streaming Server fo ...

  3. 达尔文流媒体服务器(Darwin Streaming Server)(DSS)并发性能测试报告

    [转自]http://blog.csdn.net/xiejiashu/article/details/40919565 原标题:<Darwin Streaming Server性能测试报告> ...

  4. Darwin Streaming Server 安装流程

    Darwin StreamingServer 安装流程 Darwin StreamingServer 支持开放源代码和基于标准的实时传输协议/实时流协议(RTP/ RTSP).MPEG-4 和MP3 ...

  5. 基于feng streaming server 搭建Android直播测试平台

    由于Android 不像iPhone有http live streaming的端到到方案(方便提供海量服务),使用开源feng(https://github.com/lscube/feng, 支持mp ...

  6. Darwin Streaming Server程序结构分析

    Darwin Streaming Server是Apple公司提供的开源实时流媒体播放服务器程序.整个程序使用C++编写,在设计上遵循高性能,简单,模块化等程序设计原则,务求做到程序高效,可扩充性好. ...

  7. 【深入浅出 Node + React 的微服务项目】14. NATS Streaming Server

    文章目录 现在该做什么 NATS Streaming Server 介绍 创建 NATS Streaming 的 Deployment NATS Streaming 的工作流程 创建一个 NATS 测 ...

  8. live555 android 直播,Live555 + Darwin Streaming Server(DSS)视频直播方案

    该方案的实现原理是,通过Live555的DarwinInjector Class,把本地采集的音频和视频流,注入到DSS服务器.客户端就可以直接访问DSS服务器(不是Live555所在的采集端)来访问 ...

  9. 基于Linux搭建一个类似Qik手机录像直播平台(服务器端:feng streaming server + web server,客户端:Android手机应用)

    一.服务器端 基于Feng开源的流媒体服务器增加一个Web server,用来接收客户端上传的视频数据,然后通过RTSP/RTP直播到手机终端上去 二.客户端应用 1. 介绍 客户端应用主要是基于 A ...

最新文章

  1. 《Code Complete》ch.15 使用条件语句
  2. Android Studio 新建drawable-hdpi、drawable-mdpi等
  3. Oracle TNSListener服务启动后自动停止问题
  4. 进站公交车碾起积水溅上轿车两男子驾车撞伤公交司机
  5. Dotnet中Socket网络通信
  6. 免费发布一个简单而有趣的计算工具
  7. jQuery选择器【学习】
  8. chrome 41 空格 nbsp;
  9. IGBT基本工作原理及IGBT的作用是什么?
  10. 三星30pin引脚_USB3.0针脚定义、引脚定义(精校版本)
  11. 推特文本情感多分类高分方案
  12. loadrunner的使用步骤(一)
  13. Locating Restriction Sites
  14. 2014年国务院批准放假调休日期的具体安排通知
  15. 数据权限设计:从RBAC到ABAC的演变
  16. python关键词挖掘_关键词挖掘,挖掘关键词的方法
  17. html编写田字格,canvas画田字格与米字格
  18. 【贝叶斯分析②】抛硬币问题
  19. (免费分享)基于Springboot的个人健康监控管理系统 毕业论文+项目源码
  20. UA OPTI501 电磁波6 麦克斯韦方程组及其不同形式

热门文章

  1. 如何连接苹果电脑打印服务器
  2. linux runtime pm机制的深入理解
  3. 深信服C++ 一面(技术面、70min、offer)
  4. 平面设计学习之四(PS-计算磨皮法)
  5. bzoj 4372 烁烁的游戏 - 点分治 - 线段树
  6. elasticsearch从入门到入门系列(一)---简单介绍及安装
  7. 2022年湖南省中医执业医师考试第二单元中医诊断学(一)
  8. Paper:自动驾驶领域SAE标准之《道路机动车辆驾驶自动化系统相关术语的分类和定义》官方英文原文翻译与解读(二)
  9. 证明:每个有n个顶点的连通图都至少有n-1条边 Show that every connected graph with n vertices has at least n − 1 edges.
  10. 程序员技术面常用知识点