1 |
On Wednesday, 18 September 2019 10:10:16 BST Walter Dnes wrote: |
2 |
> I'm trying to do a video+audio capture of my desktop, e.g. a Youtube |
3 |
> video playing, or whatever. I've got video capture working, but not |
4 |
> audio. I've compiled ffmpeg with both "alsa" and "oss" USE flags and |
5 |
> tried the commands... |
6 |
> |
7 |
> ffmpeg -f alsa -ac 2 -i hw:0 -video_size 1920x1080 -framerate 25 -f x11grab |
8 |
> -i :0.0 output.mp4 |
9 |
|
10 |
The above should work, but only if your active audio card has Card ID 0. If |
11 |
your PC uses HDMI as the first card you'll need to adjust /etc/asound.conf |
12 |
accordingly to switch to your analogue audio device, or perhaps try hw:1 in |
13 |
the above incantation instead. |
14 |
|
15 |
Also, check your Mic is not muted with alsamixer, or your desktop GUI |
16 |
equivalent. |
17 |
|
18 |
|
19 |
> ffmpeg -f oss -i /dev/dsp -video_size 1920x1080 -framerate 25 -f x11grab -i |
20 |
> :0.0 output.mp4 |
21 |
|
22 |
I don't have oss experience and as I understand it pre-OSS4 is mono only(?), |
23 |
but again the above ought to work, as long as there is no clash with alsa. |
24 |
You may need jackd to plug in/out the requisite input devices and sinks - too |
25 |
complicated for just a simple audio recording. |
26 |
|
27 |
|
28 |
> In both case the video capture works, and ffmpeg claims to be |
29 |
> capturing audio, but I don't get any audio capture at all. What am I |
30 |
> doing wrong? Any more USE flags to set? |
31 |
|
32 |
Did you try USE="alsa, -speex"? |
33 |
|
34 |
-- |
35 |
Regards, |
36 |
|
37 |
Mick |