[FFmpeg-user] problem capture desktop

Moritz Barsnick barsnick at gmx.net
Sun Oct 18 00:18:27 EEST 2020


Hi Juan Carlos,

On Sat, Oct 17, 2020 at 20:00:44 +0200, Juan carlos Rebate wrote:
> fmpeg -f dshow -i video="screen-capture-recorder" -vcodec libx264 -r
> 25 -crf 10 -i audio="virtual-audio-capturer" -acodec mp3 output.mp4
[...]
> Unknown decoder 'libx264'
> the strange thing is that if I delete the part that refers to the
> audio if the video codec recognizes me, what am I doing wrong?

You need to specify your input options before the inputs, and your
output options before your outputs. By using "-vcodec libx264" before
your audio input, you are trying to tell ffmpeg to use libx264 to
decode the audio - which it cannot do.

You need to place "-vcodec libx264" after the inputs:
$ ffmpeg -f dshow -i video="screen-capture-recorder" -i audio="virtual-audio-capturer" -vcodec libx264 -r 25 -crf 10 -acodec mp3 output.mp4

Cheers,
Moritz


More information about the ffmpeg-user mailing list