Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Video recording with sound #321

Closed
raduburla opened this issue Feb 2, 2018 · 7 comments · Fixed by #320
Closed

Video recording with sound #321

raduburla opened this issue Feb 2, 2018 · 7 comments · Fixed by #320
Milestone

Comments

@raduburla
Copy link

Hi,

First, thank you for this great piece of software, works out of the box like a charm.

I have a particular use case where a videoconference should be recorded and I need help figuring out if it's even posible to achieve.

As the title suggests, I need to record the selenoid browser session with sound.

Doing this on a server with no sound card might be tricky.

From my research the following steps should be taken:

  1. enable on the host OS snd-dummy (https://superuser.com/questions/344760/how-to-create-a-dummy-sound-card-device-in-linux-server)

  2. on the browser machine:
    - install alsa-utils and define /etc/asound.conf
    - install pulseaudio and add user running chrome to audio group (I don't know if this step is really required if my system does not have a sound card)

  3. ffmpeg should be compiled with alsa support and should pick up the sound from the dummy sound card added

From all this I managed to do 1 by creating a custom docker image raduburla/chrome which works well, i think, chrome finds the sound devices and 2, the OS finds the virtual sound card.

With 3 I am unable to modify the image that records video, I might be missing some docker knowledge here.

The videos recorded by selenoid are still without sound.

I am missing something or what I am trying to achieve is not even possible?

Any help appreciated, thank you.

@vania-pooh
Copy link
Member

@raduburla I think that's possible but you are the first person requesting this.

  1. We are using ffmpeg to record video - you could create your own video recorder container using by modifying our build files: https://github.com/aerokube/selenoid-images/tree/master/selenium/video Selenoid allows to override video recorder image by specifying -video-recorder-image flag.
  2. You could build you own browser images using ours as a base (in FROM instruction) and then install required software for Chrome. Then you just replace our images by yours in browsers.json and reload Selenoi configuration (or restart its container). snd-dummy is also not enabled in our images, not sure how to do this with Docker - probably vie enabling it on the host machine.

@ihor-mutel
Copy link

Hi,

First, thank you for this great piece of software, works out of the box like a charm.

I have a particular use case where a videoconference should be recorded and I need help figuring out if it's even posible to achieve.

As the title suggests, I need to record the selenoid browser session with sound.

Doing this on a server with no sound card might be tricky.

From my research the following steps should be taken:

  1. enable on the host OS snd-dummy (https://superuser.com/questions/344760/how-to-create-a-dummy-sound-card-device-in-linux-server)
  2. on the browser machine:
    • install alsa-utils and define /etc/asound.conf
    • install pulseaudio and add user running chrome to audio group (I don't know if this step is really required if my system does not have a sound card)
  3. ffmpeg should be compiled with alsa support and should pick up the sound from the dummy sound card added

From all this I managed to do 1 by creating a custom docker image raduburla/chrome which works well, i think, chrome finds the sound devices and 2, the OS finds the virtual sound card.

With 3 I am unable to modify the image that records video, I might be missing some docker knowledge here.

The videos recorded by selenoid are still without sound.

I am missing something or what I am trying to achieve is not even possible?

Any help appreciated, thank you.

Hello, any progress on this? I also interested in how to record a video with sound. As I understand it is pretty straight forward to add additional flags for ffmpeg in video-recorder container but I'm not sure how to record get an internal audio channel in docker container.

@vania-pooh
Copy link
Member

@web1991t unfortunately no progress here. If you have resources to experiment - we could provide any reasonable help.

@vania-pooh vania-pooh transferred this issue from aerokube/selenoid Dec 6, 2020
@vania-pooh vania-pooh added this to the 7.1.0 milestone Dec 6, 2020
@GhaziTriki
Copy link

@aandryashin Thank you very much for the PR. It is pushing Selenoid into an upper level.

@wangjin
Copy link

wangjin commented Dec 13, 2021

Hi, I’m using Selenoid to record my tests screen which works pretty well. But the video recorded has no audio. I'm running Selenoid in Docker engine v20.10.11 on my mac(macOS 12.0.1) and all the settings are by default. So what else should I check? Any help appreciated, thank you.

@vania-pooh
Copy link
Member

@wangjin it's currently broken. #413

@wangjin
Copy link

wangjin commented Dec 14, 2021

@vania-pooh Thanks for the reply, I tried the old version of chrome image(88.0) and it works!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants