我在Ubuntu上用FFMPEG录制声音时遇到一些问题。
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
视频可以完美播放,并且文件大小很小,但是没有声音输出。
默认设置 ?
在这里,Kubuntu 13.10-ffmpeg 2.1.4
此处的默认值为PulseAudion控件:“内置音频模拟立体声”,并且捕获的声音不存在。
我需要将Alsa Capture更改为内置音频模拟立体声的监视器。然后捕捉到声音。
此处的演练:
a)启动pavucontrol
PulseAudio音量控制或pavucontrol为:
:~$ 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)启动ffmpeg脚本
c)选择一个音源
在这里,pavucontrol具有以下选项:
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句