Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 5389  / 3 Years ago, tue, may 4, 2021, 4:29:49

I'm having some issues recording sound with FFMPEG on Ubuntu.



ffmpeg -v verbose -f x11grab -y -r 60 -s 1920x1080 -i :0.0 -vcodec mpeg4 -f alsa -i pulse -ar 44100 -acodec libmp3lame -ab 192k -ac 2 output.mp4 -qscale 0


Video comes out flawlessly and at a small filesize but no sound is outputted.


More From » sound

 Answers
5

Default settings ?



At here, Kubuntu 13.10 - ffmpeg 2.1.4



The default, at here, is the PulseAudion Control: 'Built-in Audio Analog Stereo' and the capture doesn't have the sound.



I need to change the Alsa Capture to the Monitor of Built-in Audio Analog Stereo. Then the capture has the sound.



enter image description here



The drill at here:



a) Start the pavucontrol



The PulseAudio Volume Control or pavucontrol is:



:~$ apt-cache show pavucontrol

Package: pavucontrol

Priority: optional

Section: universe/sound
...

Description: PulseAudio Volume Control

PulseAudio, previously known as Polypaudio, is a sound server for POSIX and
WIN32 systems. It is a drop in replacement for the ESD sound server with
much better latency, mixing/re-sampling quality and overall architecture.
.
PulseAudio Volume Control (pavucontrol) is a simple GTK+ based volume
control tool (mixer) for the PulseAudio sound server. In contrast to
classic mixer tools this one allows you to control both the volume of
hardware devices and of each playback stream separately. It also allows
you to redirect a playback stream to another output device without
interrupting playback.

Homepage: http://0pointer.de/lennart/projects/pavucontrol/


b) Start the ffmpeg script



c) Pick a sound source



At here the pavucontrol has options:



enter image description here


[#25885] Wednesday, May 5, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ithriv

Total Points: 46
Total Questions: 115
Total Answers: 96

Location: Malaysia
Member since Wed, May 11, 2022
2 Years ago
ithriv questions
Tue, Mar 14, 23, 14:31, 1 Year ago
Wed, Oct 5, 22, 02:59, 2 Years ago
Fri, Mar 11, 22, 10:12, 2 Years ago
Thu, May 11, 23, 10:55, 1 Year ago
Sun, Sep 26, 21, 06:47, 3 Years ago
;