summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJibon Costa <jiboncosta57@gmail.com>2020-04-07 19:38:54 +0600
committerJibon Costa <jiboncosta57@gmail.com>2020-04-07 19:38:54 +0600
commit1a8391f2cf9570b88badf91d571815f71c55d974 (patch)
tree83c78cf3f7c85d7d0fac27475c5ebf633084f58c
parent45985f25b7cc85a9a38d21b5b4e0ca86b217520f (diff)
downloadbbb-recorder-1a8391f2cf9570b88badf91d571815f71c55d974.tar.gz
bbb-recorder-1a8391f2cf9570b88badf91d571815f71c55d974.zip
extra options
-rwxr-xr-xdependencies_check.sh3
-rw-r--r--ffmpegServer.js10
2 files changed, 12 insertions, 1 deletions
diff --git a/dependencies_check.sh b/dependencies_check.sh
index b734df3..1588863 100755
--- a/dependencies_check.sh
+++ b/dependencies_check.sh
@@ -38,7 +38,8 @@ libnss3
lsb-release
xdg-utils
wget
-xvfb"
+xvfb
+fonts-noto"
declare -a neededPackages
diff --git a/ffmpegServer.js b/ffmpegServer.js
index c4acb1b..01b3059 100644
--- a/ffmpegServer.js
+++ b/ffmpegServer.js
@@ -40,10 +40,20 @@ wss.on('connection', function connection(ws, req) {
// so that we don't waste any CPU and quality with unnecessary transcoding.
'-vcodec', 'copy',
+ // use if you need for smooth youtube publishing. Note: will use more CPU
+ //'-vcodec', 'libx264',
+ //'-x264-params', 'keyint=120:scenecut=0',
+
//No browser currently supports encoding AAC, so we must transcode the audio to AAC here on the server.
'-acodec', 'aac',
+
+ // remove background noise. You can adjust this values according to your need
+ '-af', 'highpass=f=200, lowpass=f=3000',
+ // This option sets the size of this buffer, in packets, for the matching output stream
'-max_muxing_queue_size', '99999',
+
+ // better to use veryfast or fast
'-preset', 'veryfast',
//'-vf', 'mpdecimate', '-vsync', 'vfr',