Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Apr 2020 10:51:54 -0300
From:      Marcel Bonnet <marcelbonnet@gmail.com>
To:        Kevin Oberman <rkoberman@gmail.com>
Cc:        Hans Petter Selasky <hps@selasky.org>, multimedia@freebsd.org
Subject:   Re: no audio with simplescreenrecorder
Message-ID:  <CAPe0dBn482SJQQt_CKo_0hMoF9e=5MoyyY5i8xe0arVRyK6aUA@mail.gmail.com>
In-Reply-To: <CAN6yY1tWuxVMkXOdvjaYvm6jNFX-y-rRK47qJnTNuU%2BLLsN=zA@mail.gmail.com>
References:  <CAN6yY1sHbiuqiexzBQ9YXmaGZCdU1eFd5vK=jWQY=Eq-xD%2BBFA@mail.gmail.com> <d965a494-9e11-850d-190e-4e93d7f0cb3b@selasky.org> <CAN6yY1u26r44JHSL1aUOii5NeM-cF3278KTf433tcAKUqLY1vA@mail.gmail.com> <CAN6yY1tWuxVMkXOdvjaYvm6jNFX-y-rRK47qJnTNuU%2BLLsN=zA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 4 Apr 2020 at 21:35, Kevin Oberman <rkoberman@gmail.com> wrote:

> I have confirmed that neither "mic" nor "monitor" seem to record except by
> picking up sound via the microphone. That mic gain is set to 0:0 makes no
> difference really bothers me. Not sure exactly what "monitor" is, but it
> seems to not work. I guess I need to read a bunch of documentation on
> snd_hda and sound. Oh, I did remove the mic items from boot/loader.conf and
> rebooted, but it made no difference.Also tried ALSA without luck,either.
>
> Tobias, I'm averse to trying ffmpeg, but I really want to only record the
> video window and not the entire screen and I don't know of a way to do this
> with ffmpeg.
>

You can try something like this:
Set the recording source, mine is monitor:
$ mixer recsrc=monitor
Recording source: monitor

Take a look at /dev/sndstat and sysct hw.snd.default_unit , to set the
right ones for capture and playback.

$ ffmpeg -loglevel error -f oss -i /dev/dsp0.0 -video_size 800x600
-framerate 25 -f x11grab -i :0.0+60,120 /tmp/test.mpg

 0.0 is display.screen number of your X11 server, same as the DISPLAY
       environment variable. 60 is the x-offset and 120 the y-offset for the
       grabbing.

Not too simple, but you are able to grab only the window area you need.

--
> Kevin Oberman, Part time kid herder and retired Network Engineer
> E-mail: rkoberman@gmail.com
> PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683
>
>
> On Fri, Apr 3, 2020 at 6:55 PM Kevin Oberman <rkoberman@gmail.com> wrote:
>
> > On Fri, Apr 3, 2020 at 1:15 PM Hans Petter Selasky <hps@selasky.org>
> > wrote:
> >
> >> On 2020-04-03 19:29, Kevin Oberman wrote:
> >> > I am attempting to capture screen video with
> >> > multimedia/simplescreenrecorder and can't seem to record the audio.
> >> Video
> >> > is fine, but the audio silent. I have tried oth Pulse and ALSA to find
> >> only
> >> > silence.
> >> >
> >> > My system is an old ThinkPad T520 with Conexant CX20590 HDA audio.
> >> >
> >> > I select "Record audio" and, for ALSA, OSS. For Pulse, I select
> >> /dev/dsp0.
> >> >
> >> > Anyone have this working? Any clues appreciated!
> >>
> >> What is the output from mixer?
> >>
> >> Did you select the correct recording source?
> >>
> >> --HPS
> >
> >
> > Bingo! Well, sort of. I had "mic" as my record device and changes it to
> > the only other option, "monitor. Now I get sound, but I am getting both
> the
> > audio from the web site and from the microphone. I set the mic gain to
> 0:0,
> > but I still hear the sounds in the room. I'm just guessing that my audio
> > device setup is wrong.
> >
> > I have the following mixer setup:
> > > mixer
> > Mixer vol      is currently set to 100:100
> > Mixer pcm      is currently set to 100:100
> > Mixer speaker  is currently set to 100:100
> > Mixer mic      is currently set to   0:0
> > Mixer rec      is currently set to   1:1
> > Mixer monitor  is currently set to  75:75
> > Recording source: monitor
> >
> > I've tried tweaking various settings, but I can't avoid picking up room
> > sounds.  I would also like to record without thee speakers playing, but l
> > found no way to turn off the speakers and still get audio. Makes me
> wonder
> > whether the audio I was recording was picked up by the mic from the
> > speakers.
> >
> > and the following  sound card setup:
> > # Setup headphones
> > # Out : speaker + headphones
> > hint.hdac.0.cad0.nid25.config="as=1 seq=15"
> > # In : mic + external mic
> > hint.hdac.0.cad0.nid35.config="as=2"
> > hint.hdac.0.cad0.nid27.config="as=2 seq=15"
> >
> > I'm going to play with the "mic + external mic" setup though I did this
> > years ago and I think I had help.
> > --
> > Kevin Oberman, Part time kid herder and retired Network Engineer
> > E-mail: rkoberman@gmail.com
> > PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683
> >
> >
> _______________________________________________
> freebsd-multimedia@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-multimedia
> To unsubscribe, send any mail to "
> freebsd-multimedia-unsubscribe@freebsd.org"
>


-- 
Marcel Bonnet



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPe0dBn482SJQQt_CKo_0hMoF9e=5MoyyY5i8xe0arVRyK6aUA>