Git Product home page Git Product logo

Comments (7)

preetmishra avatar preetmishra commented on August 28, 2024 2

What follows is the sequence that we followed.

Stack Overflow kernel link: https://stackoverflow.com/questions/49538514/sound-driver-snd-aloop-kernel-module-setup-issue-with-aws-ec2-ubuntu-16-04-ins

Add generic kernel

sudo apt-get update
sudo apt-get -y install linux-image-extra-virtual

Change default kernel

sudo vim /etc/default/grub
sudo update-grub
sudo reboot now

List available kernels

grep -A200 submenu /boot/grub/grub.cfg |grep menuentry

Check selected kernel

uname -srm

Download snd-aloop module

sudo apt install linux-extra-utils

Load snd-aloop

sudo modprobe snd-aloop
modprobe snd-aloop pcm_substreams=1

Check whether loopback devices are setup

aplay -l

Set up .asoundrc in /home/
See also https://www.programmersought.com/article/91613472462/.

pcm.!default { type plug slave.pcm "hw:Loopback,0,0" }

from puppeteer-stream.

gregbarcza avatar gregbarcza commented on August 28, 2024 1

I was able to solve this by creating an ALSA loopback device.

@lakshaytalkstocomputer can you share your solution? A proof of concept repository would be really helpful! Thanks!

from puppeteer-stream.

SamuelScheit avatar SamuelScheit commented on August 28, 2024

not a problem with puppeteer-stream but rather with the chrome extension api
https://bugs.chromium.org/

from puppeteer-stream.

lakshaytalkstomachines avatar lakshaytalkstomachines commented on August 28, 2024

A mention to particular bug or issue number would be helpful, Thanks!

from puppeteer-stream.

SamuelScheit avatar SamuelScheit commented on August 28, 2024

I’m not sure if there’s already one
I’ve only found this post https://stackoverflow.com/questions/51411243/chromes-tabcapture-api-not-recording-all-audio-on-tab but there isn’t a solution.
So I would suggest you to open a new issue on the chromium bug tracker.

from puppeteer-stream.

lakshaytalkstomachines avatar lakshaytalkstomachines commented on August 28, 2024

I was able to solve this by creating an ALSA loopback device.

from puppeteer-stream.

lakshaytalkstomachines avatar lakshaytalkstomachines commented on August 28, 2024

We ( me and @preetmishra )really did not do anything out of ordinary. We ran the script which had ALSA loopback device setup. and it automatically worked. One thing to note is that in ec2 we needed to change the kernel to generic one. AWS one doesnt work because we cannot install custom kernel module (snd-aloop) to it.
Please let me know if this information is any worth it, if you still need a repo i can do that. Also i would like to mention that audio in youtube videos were being recorded on ec2 but audio in webrtc calls were not and for that we dneeded to setup ALSA loopback.

from puppeteer-stream.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.