You are not logged in.

#1 2020-07-13 15:51:20

veronikazaglotova
Member
Registered: 2020-07-08
Posts: 12

[SOLVED]FFmpeg doesn't record screen with x11grab if I use pulseaudio

I was about to record a gameplay of me playing McOsu and FFmpeg does try to record anything, but it just won't if I use pulse as the sound source. Turns out, if start recording with FFmpeg first and then open McOsu, McOsu won't be able to start any maps and show a "Couldn't load music file" error. If I start McOsu and then start recording with FFmpeg, FFmpeg will freeze.
This is what FFmpeg says when it does not record https://pastebin.com/UAF87Q1N and it stays like that always until I kill the process with Ctrl+C. This is what FFmpeg shows when it is able to record everything properly.
What do?

Last edited by veronikazaglotova (2020-07-14 14:54:38)

Offline

#2 2020-07-13 22:36:45

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,420

Re: [SOLVED]FFmpeg doesn't record screen with x11grab if I use pulseaudio

Sounds like McOsu is not using pulseaudio, what does it use instead? If it tries just alsa, installing pulseaudio-alsa (... and fwiw lib32-libpulse lib32-alsa-plugins) should help. Can you post during a not working situation (or rather during both of these distinct cases)

sudo fuser -v /dev/snd/*
pacmd list-sink-inputs

in [ code ] [ /code ] tags?

Online

#3 2020-07-14 05:40:25

veronikazaglotova
Member
Registered: 2020-07-08
Posts: 12

Re: [SOLVED]FFmpeg doesn't record screen with x11grab if I use pulseaudio

Sure.

~ % sudo fuser -v /dev/snd/*
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  veronika    525 F.... pulseaudio
/dev/snd/pcmC0D0p:   veronika    525 F...m pulseaudio
~ % pacmd list-sink-inputs
0 sink input(s) available.

Is the output when sound in McOsu doesn't work. And

~ % sudo fuser -v /dev/snd/*
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  veronika    525 F.... pulseaudio
                     veronika   4194 F.... McEngine
/dev/snd/pcmC0D0p:   veronika   4194 F...m McEngine
/dev/snd/timer:      veronika   4194 f.... McEngine
~ % pacmd list-sink-inputs
0 sink input(s) available.

When sound works. Both are when McOsu is running.

Last edited by veronikazaglotova (2020-07-14 05:43:04)

Offline

#4 2020-07-14 05:45:05

veronikazaglotova
Member
Registered: 2020-07-08
Posts: 12

Re: [SOLVED]FFmpeg doesn't record screen with x11grab if I use pulseaudio

V1del wrote:

If it tries just alsa, installing pulseaudio-alsa (... and fwiw lib32-libpulse lib32-alsa-plugins) should help

Thanks a lot, works now!

Offline

#5 2020-07-14 07:07:53

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,420

Re: [SOLVED]FFmpeg doesn't record screen with x11grab if I use pulseaudio

Glad to hear, please mark as [SOLVED] by editing the subject line in your first post.

https://wiki.archlinux.org/index.php/Co … ow_to_post

Online

Board footer

Powered by FluxBB