Skip to content

Commit

Permalink
fix the instruction of the end to end demo and the rspi4 demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
charleszheng44 committed Jan 22, 2021
1 parent 648e6a2 commit 2dbebb7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/end-to-end-demo-rpi4.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ The following will be covered in this demo:
1. Open a new terminal and ssh into your ubuntu server that your cluster is running on.
1. To setup fake usb video devices, install the v4l2loopback kernel module and its prerequisites. Learn more about v4l2 loopback [here](https://github.com/umlaeute/v4l2loopback)
```sh
sudo apt update
sudo apt -y install linux-headers-$(uname -r)
sudo apt -y install linux-modules-extra-$(uname -r)
sudo apt -y install dkms
curl http://deb.debian.org/debian/pool/main/v/v4l2loopback/v4l2loopback-dkms_0.12.5-1_all.deb -o v4l2loopback-dkms_0.12.5-1_all.deb
sudo dpkg -i v4l2loopback-dkms_0.12.5-1_all.deb
```
Expand Down Expand Up @@ -76,6 +80,7 @@ The following will be covered in this demo:
```
1. Now that our cameras are set up, lets use Gstreamer to pass fake video streams through them.
```sh
mkdir camera-logs
sudo gst-launch-1.0 -v videotestsrc pattern=ball ! "video/x-raw,width=640,height=480,framerate=10/1" ! avenc_mjpeg ! v4l2sink device=/dev/video1 > camera-logs/ball.log 2>&1 &
sudo gst-launch-1.0 -v videotestsrc pattern=smpte horizontal-speed=1 ! "video/x-raw,width=640,height=480,framerate=10/1" ! avenc_mjpeg ! v4l2sink device=/dev/video2 > camera-logs/smpte.log 2>&1 &
```
Expand Down
2 changes: 2 additions & 0 deletions docs/end-to-end-demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ The following will be covered in this demo:
1. To setup fake usb video devices, install the v4l2loopback kernel module and its prerequisites. Learn more about v4l2 loopback [here](https://github.com/umlaeute/v4l2loopback)
```sh
sudo apt update
sudo apt -y install linux-headers-$(uname -r)
sudo apt -y install linux-modules-extra-$(uname -r)
sudo apt -y install dkms
curl http://deb.debian.org/debian/pool/main/v/v4l2loopback/v4l2loopback-dkms_0.12.5-1_all.deb -o v4l2loopback-dkms_0.12.5-1_all.deb
Expand Down Expand Up @@ -56,6 +57,7 @@ The following will be covered in this demo:
```
1. Now that our cameras are set up, lets use Gstreamer to pass fake video streams through them.
```sh
mkdir camera-logs
sudo gst-launch-1.0 -v videotestsrc pattern=ball ! "video/x-raw,width=640,height=480,framerate=10/1" ! avenc_mjpeg ! v4l2sink device=/dev/video1 > camera-logs/ball.log 2>&1 &
sudo gst-launch-1.0 -v videotestsrc pattern=smpte horizontal-speed=1 ! "video/x-raw,width=640,height=480,framerate=10/1" ! avenc_mjpeg ! v4l2sink device=/dev/video2 > camera-logs/smpte.log 2>&1 &
```
Expand Down

0 comments on commit 2dbebb7

Please sign in to comment.