Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work for 2.5? #15

Open
mricim opened this issue Mar 15, 2023 · 0 comments
Open

Doesn't work for 2.5? #15

mricim opened this issue Mar 15, 2023 · 0 comments

Comments

@mricim
Copy link

mricim commented Mar 15, 2023

I have bbb 2.5.14 installed.
I get it to connect to the session and broadcast on youtube, but it doesn't connect to the audio and it's not able to show the screen share either.

image

He left the commands and the output here:
root@TEST:~/bbb-streaming# bash start-streaming.sh

root@TEST:~/bbb-streaming# docker run --rm --name bbb-streaming --env-file $(pwd)/env manishkatyan/bbb-streaming:v2.5.1
BBB Url:  https://meet.acipe.org/bigbluebutton/api/join?userdata-bbb_force_listen_only=true&userdata-bbb_listen_only_mode=true&userdata-bbb_skip_check_audio=true&userdata-bbb_show_public_chat_on_login=true&role=VIEWER&fullName=Live%20Stream&meetingID=4392bc233207200f0106fe14f2a532f35c181c65-1678889103284&password=437183&checksum=556d304acb6b96d404fc713676b3c4c2764b3db5
Listen only button not found
TimeoutError: waiting for selector `button[aria-label="Leave audio"]` failed: timeout 30000ms exceeded
    at new WaitTask (/usr/src/app/node_modules/puppeteer/lib/cjs/puppeteer/common/DOMWorld.js:528:34)
    at DOMWorld.waitForSelectorInPage (/usr/src/app/node_modules/puppeteer/lib/cjs/puppeteer/common/DOMWorld.js:432:26)
    at internalHandler.waitFor (/usr/src/app/node_modules/puppeteer/lib/cjs/puppeteer/common/QueryHandler.js:31:77)
    at DOMWorld.waitForSelector (/usr/src/app/node_modules/puppeteer/lib/cjs/puppeteer/common/DOMWorld.js:323:29)
    at Frame.waitForSelector (/usr/src/app/node_modules/puppeteer/lib/cjs/puppeteer/common/FrameManager.js:942:51)
    at Page.waitForSelector (/usr/src/app/node_modules/puppeteer/lib/cjs/puppeteer/common/Page.js:2370:33)
    at main (/usr/src/app/stream.js:133:24)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
The streaming bot has joined the BBB session
Streaming has started...
FFmpeg STDERR: ffmpeg version 4.3.5-0+deb11u1 Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 10 (Debian 10.2.1-6)
  configuration: --prefix=/usr --extra-version=0+deb11u1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared

FFmpeg STDERR:   libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100

FFmpeg STDERR: Input #0, matroska,webm, from 'pipe:':
  Metadata:
    encoder         : Chrome
  Duration: N/A, start: 0.000000, bitrate: N/A

FFmpeg STDERR:     Stream #0:0(eng): Video: h264 (Constrained Baseline), yuv420p(progressive), 1920x1080, SAR 1:1 DAR 16:9, 1 tbr, 1k tbn, 2k tbc (default)
    Stream #0:1(eng): Audio: opus, 48000 Hz, stereo, fltp (default)

FFmpeg STDERR: Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (opus (native) -> aac (native))

FFmpeg STDERR: Output #0, flv, to 'rtmp://a.rtmp.youtube.com/live2/dr2t-pd7x-se2r-a1x0-bs6z':
  Metadata:
    encoder         : Lavf58.45.100
    Stream #0:0(eng)
FFmpeg STDERR: : Video: h264 (Constrained Baseline) ([7][0][0][0] / 0x0007), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 4000 kb/s, 1 tbr, 1k tbn, 1k tbc (default)
    Stream #0:1(eng): Audio: aac (LC) ([10][0][0][0] / 0x000A), 48000 Hz, stereo, fltp, 160 kb/s (default)
    Metadata:
      encoder         : Lavc58.91.100 aac

And if I try to build my own image:

root@TEST:~/bbb-streaming/build# bash build.sh stream-build
[+] Building 0.8s (14/14) FINISHED
 => [internal] load .dockerignore                                                                                       0.1s
 => => transferring context: 2B                                                                                         0.0s
 => [internal] load build definition from Dockerfile                                                                    0.1s
 => => transferring dockerfile: 950B                                                                                    0.0s
 => [internal] load metadata for docker.io/library/node:18-bullseye-slim                                                0.5s
 => [internal] load build context                                                                                       0.0s
 => => transferring context: 63B                                                                                        0.0s
 => [1/9] FROM docker.io/library/node:18-bullseye-slim@sha256:7d67f2765f8d1b13f3833001bebbc6513581ef3f300aa4b1019a0b6d  0.0s
 => CACHED [2/9] RUN apt-get update && apt-get install curl gnupg psmisc wget -y   && curl --location --silent https:/  0.0s
 => CACHED [3/9] RUN echo ""> /etc/apt/sources.list.d/google.list                                                       0.0s
 => CACHED [4/9] RUN apt update -y && apt remove google-chrome-stable -y &&  wget --no-verbose -O /tmp/chrome.deb  htt  0.0s
 => CACHED [5/9] WORKDIR /usr/src/app                                                                                   0.0s
 => CACHED [6/9] RUN rm -rf node_modules                                                                                0.0s
 => CACHED [7/9] COPY package.* .                                                                                       0.0s
 => CACHED [8/9] RUN npm install                                                                                        0.0s
 => CACHED [9/9] COPY stream.js ./stream.js                                                                             0.0s
 => exporting to image                                                                                                  0.1s
 => => exporting layers                                                                                                 0.0s
 => => writing image sha256:5e5c606d2f789b5b236154341de73c6cc431a1bd398777af7f72376136b8fe6c                            0.1s
 => => naming to docker.io/library/stream-build                                                                         0.0s
root@TEST:~/bbb-streaming/build# cd ..
root@TEST:~/bbb-streaming# docker run --rm --name bbb-streaming --env-file $(pwd)/env stream-build
BBB Url:  https://meet.acipe.org/bigbluebutton/api/join?userdata-bbb_force_listen_only=true&userdata-bbb_listen_only_mode=true&userdata-bbb_skip_check_audio=true&userdata-bbb_show_public_chat_on_login=true&role=VIEWER&fullName=Live%20Stream&meetingID=4392bc233207200f0106fe14f2a532f35c181c65-1678889103284&password=437183&checksum=556d304acb6b96d404fc713676b3c4c2764b3db5
TypeError: page._client.send is not a function
    at main (/usr/src/app/stream.js:100:28)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
/usr/src/app/stream.js:232
        ffmpeg.kill('SIGINT');
               ^

TypeError: Cannot read properties of undefined (reading 'kill')
    at main (/usr/src/app/stream.js:232:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v18.15.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant