I am trying to record my desktop and save it as videos but ffmpeg fails.
Here is the terminal output:
$ ffmpeg -f alsa -i pulse -r 30 -s 1366x768 -f x11grab -i :0.0 -vcodec libx264 - preset ultrafast -crf 0 -y screencast.mp4
...
Unable to find a suitable output format for 'pipe:'
-f mp4just before filename and move-r 30 -s 1366x768before -vcodec-r 25 -s 648x480), so your suggestion of changing these options from input options to output options will cause frame duplication (25 to 30) and upscaling (640x480 to 1366x768).-f mp4is superfluous in this case.