$ ./ffmpeg -f avfoundation -i 1 -r 30 out.yuv
ffmpeg version 4.0.2 Copyright © 2000-2018 the FFmpeg developers
built with gcc 7.4.0 (GCC)
configuration: --prefix=/usr/local/ffmpeg --enable-gpl --enable-small --arch=xmizations --enable-shared
libavutil 56. 14.100 / 56. 14.100
libavcodec 58. 18.100 / 58. 18.100
libavformat 58. 12.100 / 58. 12.100
libavdevice 58. 3.100 / 58. 3.100
libavfilter 7. 16.100 / 7. 16.100
libswscale 5. 1.100 / 5. 1.100
libswresample 3. 1.100 / 3. 1.100
libpostproc 55. 1.100 / 55. 1.100
Unknown input format: 'avfoundation’
Antony@DESKTOP-4I1339S /usr/local/ffmpeg/bin
$ ./ffmpeg -f desktop -i 1 -r 30 out.yuv
ffmpeg version 4.0.2 Copyright © 2000-2018 the FFmpeg developers
built with gcc 7.4.0 (GCC)
configuration: --prefix=/usr/local/ffmpeg --enable-gpl --enable-small --arch=xmizations --enable-shared
libavutil 56. 14.100 / 56. 14.100
libavcodec 58. 18.100 / 58. 18.100
libavformat 58. 12.100 / 58. 12.100
libavdevice 58. 3.100 / 58. 3.100
libavfilter 7. 16.100 / 7. 16.100
libswscale 5. 1.100 / 5. 1.100
libswresample 3. 1.100 / 3. 1.100
libpostproc 55. 1.100 / 55. 1.100
Unknown input format: 'desktop’