Giter Site home page Giter Site logo

wnbx / rtsp-webcam-rpi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chaiai/rtsp-webcam-rpi

0.0 0.0 0.0 6.45 MB

A simple RTSP server that uses a USB webcam and a Raspberry Pi 4B to stream via RTSP to my NVIDIA Jetson Nano running DeepStream applications.

rtsp-webcam-rpi's Introduction

RTSP Webcam Server on a Raspberry Pi

A simple RTSP server that uses a USB webcam and a Raspberry Pi 4B to stream via RTSP to my NVIDIA Jetson Nano running DeepStream applications.

Requirements:

  • Raspberry Pi 4B 4GB with WiFi (unsure how models older than 4 will do)
  • MicroSD card (at least 16GB)
  • USB-C power supply (3.5A recommended example)
  • USB Webcam (mine is the CyberTrack H4)
  • (Optional) Ethernet cable for headless setup, GPIO fan for temperature management

Raspberry Pi Setup

  1. Flash the recommended Raspbian OS using Raspberry Pi Imager and add a blank file (no extensions) to the /boot folder before ejecting the MicroSD card.

On Linux-based systems, you can open the /boot folder in your terminal and use: touch ssh

  1. Assuming you are using headless mode (if you connect a monitor and mouse/keyboard, the UI is very easy to follow instead), plug in an ethernet cable before connecting the power, wait for the Pi to boot for a minute, and find its IP address using your router admin page or an IP scanner. Then issue the following command:

     ssh pi@[IP_ADDRESS] (default password is 'raspberry')
    
  2. Update and upgrade packages using sudo apt update --fix-missing && sudo apt upgrade -y and then reboot.

Assuming you are using a Raspberry Pi with armv7 architecture like I did, you can just clone this repo and modify the config file as needed

    git clone https://github.com/chaiai/rtsp-webcam-rpi.git
    cd rtsp-webcam-rpi/rtsp
    chmod +x rtsp-simple-server
    (Optional) nano rtsp-simple-server.yml
    ./rtsp-webcam-rpi

View the stream with VLC using: vlc rtsp://[RPI_IP_ADDRESS]:8554/webcam

To see config options and how to install/setup from scratch on the Pi, see INSTALL.md

rtsp-webcam-rpi's People

Contributors

chaiai avatar

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.