raspberry_ninja

(★ 198)

Publish or capture VDO.Ninja streams with Python (Raspberry Pi, Linux, Mac, Windows WSL)

  • .actrc
  • .gitignore
  • _config.yml
  • AGENTS.md
  • CHANGELOG.md
  • CNAME
  • config.json
  • config_loader.py
  • install.sh
  • publish.py
  • QUICK_START.md
  • README.md
  • record.py
  • setup.ninja_record.systemd.sh
  • signaling_utils.py
  • test_config.json
  • test_config_minimal.json
  • v4l2_devices.py
  • VERSION
  • webrtc_subprocess_glib.py

# 설치 가이드

1. 코드 내려받기
git clone https://github.com/steveseguin/raspberry_ninja

깃허브에서 프로젝트 코드 전체를 내 컴퓨터로 내려받습니다.

cd raspberry_ninja

방금 내려받은 프로젝트 폴더 안으로 이동합니다.

2. 공식 설치 스크립트

쉬움 추천
사전 준비물
  • APT (Debian/Ubuntu 계열) Debian/Ubuntu 계열 리눅스에 기본 내장된 패키지 매니저입니다.
  • Python 3 pip 명령어를 쓰려면 Python이 필요합니다.
curl -sSL https://raw.githubusercontent.com/steveseguin/raspberry_ninja/main/install.sh | bash

공식 설치 스크립트를 다운로드해서 바로 실행합니다. 이 한 줄로 필요한 게 자동으로 설치됩니다.

sudo apt-get install python3-pip -y

APT 패키지 저장소에서 바로 설치합니다 (Debian/Ubuntu 계열).

sudo apt-get install -y libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-tools gstreamer1.0-x python3-pyqt5 python3-opengl gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-qt5 gstreamer1.0-gtk3 gstreamer1.0-pulseaudio gstreamer1.0-nice gstreamer1.0-plugins-base-apps

APT 패키지 저장소에서 바로 설치합니다 (Debian/Ubuntu 계열).

pip3 install --break-system-packages websockets cryptography

PyPI에 배포된 패키지를 바로 설치합니다. 소스 클론이 필요 없습니다.

설치 후 새 터미널을 열고, 프로그램의 버전 확인 명령(예: --version)으로 정상 설치됐는지 확인하세요.

이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.

3. Node.js

쉬움
사전 준비물
  • Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
  • Node.js npm 명령어를 쓰려면 Node.js가 설치되어 있어야 합니다. LTS(장기지원) 버전을 추천합니다.
cd tools

이 프로젝트의 관련 파일이 하위 폴더 안에 있어서, 먼저 그 폴더로 이동합니다.

npm install

package.json에 명시된 라이브러리들을 내려받아 설치합니다.

npm start

개발/실행 서버를 켭니다.

명령어 실행 후 터미널에 나타나는 주소(보통 http://localhost:3000 형태)를 브라우저에서 열어보세요.

4. Python

쉬움
사전 준비물
  • Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
  • Python 3 설치 시 'Add Python to PATH' 옵션을 꼭 체크하세요 (Windows).
sudo apt-get install python3-pip -y

APT 패키지 저장소에서 바로 설치합니다 (Debian/Ubuntu 계열).

pip3 install --break-system-packages websockets cryptography

PyPI에 배포된 패키지를 바로 설치합니다. 소스 클론이 필요 없습니다.

pip3 install PyGObject ## possibly optional

PyPI에 배포된 패키지를 바로 설치합니다. 소스 클론이 필요 없습니다.

pip3 install aiohttp --break-system-packages # optional

PyPI에 배포된 패키지를 바로 설치합니다. 소스 클론이 필요 없습니다.

When using the `--midi` parameter, video and audio are disabled. Instead, the script can send and recieve MIDI commands over VDO.Ninja. Supports plug-and-play, although you may need to install `python-rtmidi` using pip3 first.

이 명령어를 터미널에 그대로 입력해 실행하세요.

에러 메시지 없이 실행되고 터미널에 안내 문구가 출력되면 정상입니다.

이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.

5. Rust

보통
사전 준비물
  • Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
  • Rust (rustup) rustup으로 설치하면 cargo도 함께 설치됩니다.
For Windows WSL, there's an install script here: https://github.com/steveseguin/raspberry_ninja/blob/main/installers/wsl/install_ndi.sh, however please make sure Rust (cargo) is installed first.

이 명령어를 터미널에 그대로 입력해 실행하세요.

cargo build가 에러 없이 끝나면 성공입니다. target/ 폴더에 실행 파일이 생성됩니다.

이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.

// repository documentation