Problems recording screen using ffmpeg
To me this looks like ffmpeg ignores the arguments in the command line. What is the problem?


The flags capture_cursor and capture_mouse_clicks are boolean and defaulted to "0"; set them to "1" and put them before the first input.

The format that you want to use for ffmpeg goes like this:


% ffmpeg [input1 flags] -i input1 \
  [input2 flags] -i input2 \ 
  ...
  [inputN flags] -i inputN \
  [output1 flags] output1 \
  [output2 flags] output2


So, in this case, the -capture_cursor 1 and -capture_mouse_clicks 1 must come before the first input (-i).

As for the errors, The frame rate is too high for the muxer that you're using.  Just go with something simple:

% ffmpeg -capture_cursor 1 -capture_mouse_clicks 1 -f avfoundation -i "1" -r 10 -s 1280x720  -t 20 ~/Desktop/screen.mkv


The above will capture the screen at a 1280x720 resolution for 20 seconds and capture both the cursor and the mouse clicks.