Giter Club home page Giter Club logo

rpi-webrtc-streamer-deb's Introduction

Rpi WebRTC Streamer Package

This Repo is for testing the deb package of rpi-webrtc-streamer. For more information on rpi-webrtc-streamer, please refer to this Rpi-WebRTC-Streamer Repo.

Supported Hardware

Raspberry PI

  • Raspberry PI 2/3
  • Raspberry Pi Zero W

Video Camera

  • RPI Camera board V1/V2
  • Arducam 5 Megapixels 1080p Sensor OV5647 Mini Camera Video Module

Latest Deb Package

The latest Deb versions are listed below.

Deb File SHAsum Date
rws_0.74.1_armhf.deb 17699dfee3a4b26f97db8c8a6040d1de 2020-02-04
rws_0.74.1_RaspZeroW_armhf.deb fa4332756f4e302739134470771085c0 2020-02-04
The above deb files are for Raspbian OS Buster.

Downloading Deb Package

The downloaded file can be installed with the following command.

The two apt commands below does not need to be run if the current Raspberry PI OS is up to date.

sudo apt update
sudo apt full-upgrade

sudo dpkg -i rws_xxx_armhf.deb

To remove rws package, please use following command

sudo dpkg -r rws

Since the current log directory is located in the installation directory, you can delete the '/opt/rws' directory manally after dpkg remove.

Installation Directory

When the installation is complete, the following files and directories are created under /opt/rws.

File/Directory Description
LICENSE There are LICENSE files for the S/W package and libraries used by RWS.
webrtc-streamer RWS man binary executable
etc configuration files
web-root Where test html files and js files are located.
log Directory where log messages are stored. Files from rws_log_0 to rws_log_9 are created. If webrtc-streamer is not restarted, the files will not moved between shift folders. When the process is restarted, the log files in the '/opt/rws/log' directory are moved to 00. And files in 00 move to 01, 01 move to 02 ... the log files in the last 09 directory are deleted.

Process Management

RWS is only compatible with systemd. To execute the process and check the status, use the following command.

Stop

sudo systemctl stop rws

Start

sudo systemctl start rws

Status/Monitoring

sudo systemctl status rws is used for process status checking. sudo journalctl -u rws for log message for process start/stop/standard error log checking.

sudo systemctl status rws
● rws.service - Rpi WebRTC Streamer
   Loaded: loaded (/etc/systemd/system/rws.service; enabled)
   Active: active (running) since Thu 2017-06-08 21:08:45 KST; 2h 47min ago
 Main PID: 14968 (webrtc-streamer)
   CGroup: /system.slice/rws.service
           └─14968 /opt/rws/webrtc-streamer --log /opt/rws/log

Jun 08 22:04:44 raspberrypi webrtc-streamer[14968]: ALSA lib control.c:953:(snd_ctl_open_noupdate) Invalid CTL
Jun 08 22:04:44 raspberrypi webrtc-streamer[14968]: ALSA lib control.c:953:(snd_ctl_open_noupdate) Invalid CTL
Jun 08 22:04:44 raspberrypi webrtc-streamer[14968]: ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM
Jun 08 22:04:44 raspberrypi webrtc-streamer[14968]: ALSA lib control.c:953:(snd_ctl_open_noupdate) Invalid CTL
Jun 08 22:04:44 raspberrypi webrtc-streamer[14968]: ALSA lib control.c:953:(snd_ctl_open_noupdate) Invalid CTL
Jun 08 22:04:44 raspberrypi webrtc-streamer[14968]: ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM
Jun 08 22:04:44 raspberrypi webrtc-streamer[14968]: ALSA lib control.c:953:(snd_ctl_open_noupdate) Invalid CTL
Jun 08 22:04:44 raspberrypi webrtc-streamer[14968]: ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM
Jun 08 22:04:44 raspberrypi webrtc-streamer[14968]: ALSA lib control.c:953:(snd_ctl_open_noupdate) Invalid CTL
Jun 08 22:04:44 raspberrypi webrtc-streamer[14968]: ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM
Hint: Some lines were ellipsized, use -l to show in full.

sudo journalctl -u rws
Jun 08 19:56:05 raspberrypi systemd[1]: Stopped Rpi WebRTC Streamer.
Jun 08 19:56:05 raspberrypi systemd[1]: Stopped Rpi WebRTC Streamer.
Jun 08 21:08:45 raspberrypi systemd[1]: Starting Rpi WebRTC Streamer...
Jun 08 21:08:45 raspberrypi systemd[1]: Started Rpi WebRTC Streamer.
Jun 08 21:08:45 raspberrypi systemd[1]: Started Rpi WebRTC Streamer.
Jun 08 21:09:18 raspberrypi webrtc-streamer[14968]: ALSA lib control.c:953:(snd_ctl_open_noupdate) Invalid CTL
Jun 08 21:09:18 raspberrypi webrtc-streamer[14968]: ALSA lib control.c:953:(snd_ctl_open_noupdate) Invalid CTL
Jun 08 21:09:18 raspberrypi webrtc-streamer[14968]: ALSA lib control.c:953:(snd_ctl_open_noupdate) Invalid CTL
Jun 08 21:09:18 raspberrypi webrtc-streamer[14968]: ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM
Jun 08 21:09:18 raspberrypi webrtc-streamer[14968]: ALSA lib control.c:953:(snd_ctl_open_noupdate) Invalid CTL
Jun 08 21:09:18 raspberrypi webrtc-streamer[14968]: ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM
Jun 08 21:09:18 raspberrypi webrtc-streamer[14968]: ALSA lib control.c:953:(snd_ctl_open_noupdate) Invalid CTL
Jun 08 21:09:18 raspberrypi webrtc-streamer[14968]: ALSA lib control.c:953:(snd_ctl_open_noupdate) Invalid CTL
Jun 08 21:09:18 raspberrypi webrtc-streamer[14968]: ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM

Open Testing URL in Chrome Browser

Open the following URL in the chrome browser will display the native-peerconnection testing page.

http://your-private-ip-address:8889/np2/

8889 port number is the websocket_port specified in the config file, and the URL protocol uses http instead of https.

Version History

Please refer to RWS repo for version-specific history and function description.

rpi-webrtc-streamer-deb's People

Contributors

kclyu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

rpi-webrtc-streamer-deb's Issues

Custom streaming page

Hi
I need custom streaming page:
when the page is opened automatically connect to the camera, there should don't be any controls and the image should be stretched to full screen
how to do that?

Secure Websocket

Very nice, thank you. Does it support secure websocket (wss) at all?

If so, how can we activate it on a local network?

Thanks.

Edit: well, I ended up not using it. I wanted something to avoid having to build the webrtc library myself (I remember it was a pain to build years ago), but this project has its own set of problems and seems abandoned, so I am around the raw webrtc again. It is not being so hard at this time, already waiting the build to finish. Good luck to everyone!

dpkg error in dietpi

Running on Dietpi Strech
on Rasp 3b
dpkg: error processing archive rws_0.73.2_armhf.deb (--install):
subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
rws_0.73.2_armhf.deb

Please close, I found the issues
downloaded the incorrect thing.

Pi zero w

Hello I a very interested in this project. I was testing out the zerow deb package on my pi zero w with v2 camera.

I am able to start the service and connect to it from another computer on lan. When I start a webrtc session I hear the speaker on the pi click but shortly after the CPU seems to get fully saturated and connection drops.

Does this make use of the hw acceleration for h264?

Is there something else I need to configure or setup?

Thanks

DietPi install problen at PiZero

Hi
after run install i see strange message

root@DietPi:~# sudo dpkg -i rws_0.74.1_RaspZeroW_armhf.deb 
Selecting previously unselected package rws.
(Reading database ... 33549 files and directories currently installed.)
Preparing to unpack rws_0.74.1_RaspZeroW_armhf.deb ...
Unpacking rws (0.74.1) ...
dpkg: dependency problems prevent configuration of rws:
 rws depends on libavahi-client3 (>= 0.7); however:
  Package libavahi-client3 is not installed.

dpkg: error processing package rws (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 rws
root@DietPi:~# sudo apt-get install libavahi-client3
^Cading package lists... 17%
root@DietPi:~# sudo apt-get install libavahi-client3 -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libavahi-client3 : Depends: libavahi-common3 (>= 0.6.22) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

what should i do?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.