Skip to content

Commit

Permalink
upate README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yjdwbj committed Jul 27, 2024
1 parent 843df57 commit f266efc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
24 changes: 17 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

* Gst-webrtc-camera project base on gstreamer,project function cover the offical's tutorial and more. i.e., hlssink,udpsink,appsink,splitmuxsink, and webrtc. It's privider offer webrtc camera and hls access and also record audio and video to file triggered by timer or some signal.
* Built-in http server (libsoup) privider http and websocket access, gst-webrtc play as sendonly role of webrtc and html (RTCPeerConnection) play as recvonly role of webrtc. Also support Digest and Basic Authentication. Support get web login auth from sqlite3, Support webrtc and http access log record.
* Supported UVC Camera, DVP, MIPI CSI-2.

## Building

Expand All @@ -15,6 +16,7 @@ You'll need `meson`, the `gstreamer-plugins-bad,gstreamer-plugins-good` library,
* libsoup2.4-dev
* glib-2.0 >= 2.74.6
* sqlite3
* libudev
* libasan6 (optional just for -fsanitize=address)

## Install
Expand All @@ -30,27 +32,35 @@ You'll need `meson`, the `gstreamer-plugins-bad,gstreamer-plugins-good` library,
## Install runtime Environment

```sh
~$ sudo apt-get install -y gstreamer1.0-x gstreamer1.0-opencv gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-good gstreamer1.0-plugins-base gstreamer1.0-plugins-ugly \
libgstreamer-plugins-bad1.0-0 libgstreamer-plugins-base1.0-0 libgstreamer-opencv1.0-0 \
libgstreamer1.0-0 libsoup-3.0-0 libjson-glib-1.0-0 sqlite3
~$ sudo apt-get install -y
gstreamer1.0-x gstreamer1.0-opencv \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-ugly \
libgstreamer-plugins-bad1.0-0 \
libgstreamer-plugins-base1.0-0 \
libgstreamer-opencv1.0-0 \
libgstreamer1.0-0 libsoup-3.0-0 \
libjson-glib-1.0-0 sqlite3
```

## Install Development Environment (Optional)

```sh
~$ sudo apt-get install libgstreamer{1.0-dev,-plugins-{bad1.0-dev,base1.0-dev}} \
libsoup-3.0-dev libsqlite3-dev libjson-glib-dev libudev-dev libblkid-dev \
libmount-dev -y
libsoup-3.0-dev libsqlite3-dev libjson-glib-dev libudev-dev -y
```

## Supported SBC

* You can download [Pre-built Multi-Arch Debian packages](https://github.com/yjdwbj/gst-webrtc-camera/releases).

### Jetson Nano B01

* In Jetson nano, I tested my custom build ubuntu-20.10 (groovy) and it can run nvvidconv and nvarguscamerasrc together.

### RiotBoard(armv7l)
### RiotBoard(armv7l armhf)

* In RiotBoard (imx6 armv7l), I tested it can run v4l2src and v4l2jpegdec together. You can download [Pre-built RiotBoard uSD Image](https://github.com/yjdwbj/imx6-riotboard) to testing this project.

Expand Down
4 changes: 0 additions & 4 deletions build_debian_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,16 +128,12 @@ function build_target() {
CROSS_COMPILE=arm-linux-gnueabi-
CC=${CROSS_COMPILE}gcc
SYSROOT=${HOME}/3TB-DISK/gitlab/docker-cross-compile-qt5/builds/riotboard/debian-4.0-stable/debian-armhf
# PKG_CONFIG_PATH=${SYSROOT}/usr/lib/arm-linux-gnueabihf/pkgconfig
# LDFLAGS=--sysroot=${SYSROOT} -L${SYSROOT}/usr/lib/arm-linux-gnueabihf -Wl,-dynamic-linker,/lib/ld-linux-armhf.so.3 -Wl,-rpath-link ${SYSROOT}/usr/lib/arm-linux-gnueabihf
;;
arm64)
ARCH=${TARGET_ARCH}
CROSS_COMPILE=aarch64-linux-gnu-
CC=${CROSS_COMPILE}gcc
SYSROOT=${HOME}/3TB-DISK/gitlab/docker-cross-compile-qt5/builds/sun50i_a64-repo/debian-4.0-bookworm/debian-arm64
# PKG_CONFIG_PATH=${SYSROOT}/usr/lib/arm-linux-gnueabihf/pkgconfig
# LDFLAGS=--sysroot=${SYSROOT} -L${SYSROOT}/usr/lib/arm-linux-gnueabihf -Wl,-dynamic-linker,/lib/ld-linux-armhf.so.3 -Wl,-rpath-link ${SYSROOT}/usr/lib/arm-linux-gnueabihf
;;
*)
echo "build native mode"
Expand Down

0 comments on commit f266efc

Please sign in to comment.