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

TypeError: Cannot read property 'isOnlyAudio' of null #57

Closed
oktab1 opened this issue Mar 21, 2021 · 2 comments
Closed

TypeError: Cannot read property 'isOnlyAudio' of null #57

oktab1 opened this issue Mar 21, 2021 · 2 comments
Labels
question Further information is requested

Comments

@oktab1
Copy link

oktab1 commented Mar 21, 2021

Hello @tilmanmoser,
Thanks for this enhancement. I'm getting some errors and will appreciate your help resolving the issue. I've followed the guide exactly as documented, the only thing I changed was from --user 998:998 to --user=998:998 based on docker documentation. I've tried using both the manual option and bbb-record --rebuild, please see below the result in both cases.

  1. When I run the command manually for an already published presentation, I get the error below
ubuntu@ip-xxx-xx-x-xxx:/opt/bbb-video-download$ sudo -u bigbluebutton docker-compose run --rm --user=998:998 app node index.js -i /var/bigbluebutton/published/presentation/f729564ec72824546f0eab6badd8e9398b4e56cf-1614810834891 -o /var/bigbluebutton/published/presentation/f729564ec72824546f0eab6badd8e9398b4e56cf-1614810834891/video.mp4
[Start] Rendering downloadable video for BBB presentation  {
  args: Namespace(input='/var/bigbluebutton/published/presentation/f729564ec72824546f0eab6badd8e9398b4e56cf-1614810834891', output='/var/bigbluebutton/published/presentation/f729564ec72824546f0eab6badd8e9398b4e56cf-1614810834891/video.mp4'),
  format: 'mp4',
  docker: true
}
[Error] Failed rendering downloable video for BBB presentation  {
  args: Namespace(input='/var/bigbluebutton/published/presentation/f729564ec72824546f0eab6badd8e9398b4e56cf-1614810834891', output='/var/bigbluebutton/published/presentation/f729564ec72824546f0eab6badd8e9398b4e56cf-1614810834891/video.mp4'),
  format: 'mp4',
  docker: true,
  workdir: './tmp/datakDAFEj'
} TypeError: Cannot read property 'isOnlyAudio' of null
    at combinePresentationWithWebcams (/home/bigbluebutton/modules/processor.js:53:33)
    at module.exports.createVideo (/home/bigbluebutton/modules/processor.js:21:29)
    at async run (/home/bigbluebutton/index.js:10:9)
  1. When I rebuild an existing presentation, the video.mp4 file is not created.
root@ip-xxx-xx-x-xxx:/opt/bbb-video-download# bbb-record --rebuild f729564ec72824546f0eab6badd8e9398b4e56cf-1614810834891

Any suggestion on how to fix this, preferably the second option so that mp4 videos are published automatically.

Thanks for your help.

@oktab1
Copy link
Author

oktab1 commented Mar 28, 2021

Hello @tilmanmoser
Looking for help with this. I'm still unable to use the script due to the error described above. Can you please advise.

Thank you!

@tilmanmoser
Copy link
Owner

tilmanmoser commented Mar 29, 2021

To be honest, I have no clue, how this can happen at all. If the webcams object is null, the code should never reach the line, where it breaks:

in the function combinePresentationWithWebcams are two null checks before that line, that handle non existing webcams:
[...]
if (!presentation && !webcams)
[...]
if (presentation && !webcams)
[...]
if (presentation && webcams.isOnlyAudio)
[...]

Can you provide the presentation data in question to run some tests on it?

@tilmanmoser tilmanmoser added the question Further information is requested label Apr 12, 2021
tilmanmoser added a commit that referenced this issue Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants