Skip to content

Commit

Permalink
Merge pull request #106 from EdJoPaTo/use-bash
Browse files Browse the repository at this point in the history
use bash instead of sh
  • Loading branch information
jibon57 authored Oct 29, 2021
2 parents 410edb1 + 5b0d629 commit fbf5842
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ Bigbluebutton recordings export to `webm` or `mp4` & live broadcasting. This is

The latest Google Chrome stable build should be use.

```sh
```bash
curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list
apt-get -y update
apt-get -y install google-chrome-stable
```

FFmpeg (if not installed already & have plan for mp4 or RTMP)
```sh
```bash
sudo add-apt-repository ppa:jonathonf/ffmpeg-4
sudo apt-get update
sudo apt-get install ffmpeg
Expand All @@ -34,7 +34,7 @@ sudo apt-get install ffmpeg

Clone the project first:

```javascript
```bash
git clone https://github.com/jibon57/bbb-recorder
cd bbb-recorder
npm install --ignore-scripts
Expand Down Expand Up @@ -73,7 +73,7 @@ bbb "https://BBB_HOST/playback/presentation/2.0/playback.html?meetingId=MEETING_

### Recording export

```sh
```bash
node export.js "https://BBB_HOST/playback/presentation/2.0/playback.html?meetingId=MEETING_ID" meeting.webm 10 true
```

Expand All @@ -91,12 +91,12 @@ You can pass 4 args

You can also use `liveJoin.js` to live join meeting as a recorder & perform recording like this:

```sh
```bash
node liveJoin.js "https://BBB_HOST/bigbluebutton/api/join?meetingId=MEETING_ID...." liveRecord.webm 0 true
```
Here `0` mean no limit. Recording will auto stop after meeting end or kickout of recorder user. You can also set time limit like this:

```sh
```bash
node liveJoin.js "https://BBB_HOST/bigbluebutton/api/join?meetingId=MEETING_ID...." liveRecord.webm 60 true
```

Expand All @@ -108,20 +108,20 @@ Sometime you may want to broadcast meeting via RTMP. To test you can use `ffmpeg
1) First run websocket server by `node ffmpegServer.js`
2) Then in another terminal tab

```sh
```bash
node liveRTMP.js "https://BBB_HOST/bigbluebutton/api/join?meetingId=MEETING_ID...."
```
You can also set duration otherwise it will close after meeting end or kickout:

```sh
```bash
node liveRTMP.js "https://BBB_HOST/bigbluebutton/api/join?meetingId=MEETING_ID...." 20
```

Check the process of websocket server, `ffmpeg` should start sending data to RTMP server.

Alternatively, you can stream via a docker container:

```
```bash
# copy compose file, update the environment params and the meeting join url
cp docker-compose.yml.livertmp-stream-example docker-compose.yml
docker-compose build
Expand Down
4 changes: 2 additions & 2 deletions dependencies_check.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

packages="gconf-service
libasound2
Expand Down Expand Up @@ -69,4 +69,4 @@ if [[ $neededCount -gt 0 ]]; then
echo "-----------------------------------------------------"
fi

exit 0
exit 0
4 changes: 2 additions & 2 deletions namespace_checker.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

VALUE=$(cat /boot/config-$(uname -r) | grep CONFIG_USER_NS)

Expand All @@ -18,4 +18,4 @@ else
echo 'You do not have namespacing in the kernel. You will need to enable the SUID sandbox or upgrade your kernel.'
echo 'See https://chromium.googlesource.com/chromium/src/+/master/docs/linux_suid_sandbox_development.md'
exit 1
fi
fi
2 changes: 1 addition & 1 deletion start_stream.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash
# Script to launch a live rtmp streaming session
# The script populates .env file with environment variables passed by docker-compose.yml

Expand Down

0 comments on commit fbf5842

Please sign in to comment.