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
$ 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>
802 followers · starred Apr 2021
425 followers · starred Nov 2023
1,828 followers · starred Jan 2024
140 followers · starred Nov 2024
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
$ 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>
802 followers · starred Apr 2021
425 followers · starred Nov 2023
1,828 followers · starred Jan 2024
140 followers · starred Nov 2024