2

Want to capture the audio using ffmpeg Went to this link

The error coming on the first one is

ffmpeg exited with code 1: hw:0: Input/output error

And the pulse one is running on my laptop but not on the server i think some missing drivers

ffmpeg exited with code 1: default: No such process
Hanxue
  • 12,243
  • 18
  • 88
  • 130
somya bhargava
  • 101
  • 1
  • 12

1 Answers1

2

PulseAudio was missing. Did

sudo apt-get install pulseaudio 

and followed the second command below, and it works fine.

ffmpeg -video_size 1024x768 -framerate 25 -f x11grab -i :0.0+100,200 -f alsa -ac 2 -i hw:0 output.mkv
Hanxue
  • 12,243
  • 18
  • 88
  • 130
somya bhargava
  • 101
  • 1
  • 12