프로젝트
GitHub에서 보기
sepfy/libpeer
소개
C를 사용하는 IoT/임베디드 기기용 WebRTC 라이브러리
개발 도구What you can do
- G.711 PCM (A-law)
- G.711 PCM (µ-law)
측정된 스타 증가
- in 24h
- 0
- in 7 days
- +2
- in 15 days
- +2
- in 1 month
- +2
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originallibpeer - Portable WebRTC Library for IoT/Embedded Device
libpeer is a WebRTC implementation written in C, developed with BSD socket. The library aims to integrate IoT/Embedded device video/audio streaming with WebRTC, such as ESP32 and Raspberry Pi
Features
- Video/Audio Codec
- H264
- G.711 PCM (A-law)
- G.711 PCM (µ-law)
- OPUS
- DataChannel
- STUN/TURN
- IPV4/IPV6
- Signaling
- WHIP
- MQTT
Dependencies
Getting Started with Generic Example
- Copy URL from the test website
- Build and run the example
$ sudo apt -y install git cmake wget ffmpeg
$ git clone --recursive https://github.com/sepfy/libpeer
$ cd libpeer
$ cmake -S . -B build && cmake --build build
$ wget -O sample.mp4 \
https://download.samplelib.com/mp4/sample-30s.mp4
$ ffmpeg -i sample.mp4 \
-map 0:v:0 -vf fps=25 -c:v libx264 -profile:v baseline -pix_fmt yuv420p \
-x264-params bframes=0:keyint=25:min-keyint=25:scenecut=0:repeat-headers=1 \
-f h264 test.264 \
-map 0:a:0 -ac 1 -ar 8000 -c:a pcm_alaw -f wav test.wav
$ ./build/examples/generic/sample -u <URL>
- Click Connect button on the website
Examples for Platforms
- ESP32: MJPEG over datachannel
- PICO: Ping pong with datachannel
- Raspberry Pi: Video and two-way audio stream
관련 프로젝트 살펴보기
불러오는 중…