From 1a8391f2cf9570b88badf91d571815f71c55d974 Mon Sep 17 00:00:00 2001 From: Jibon Costa Date: Tue, 7 Apr 2020 19:38:54 +0600 Subject: extra options --- dependencies_check.sh | 3 ++- ffmpegServer.js | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) 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', -- cgit v1.3.1