请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

老师Windows下的cywin64怎么执行录制。ffmpeg我已经编译好了

$ ./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’

正在回答 回答被采纳积分+3

插入代码

2回答

文川雪 2019-09-26 01:57:01

ffmpeg -f gdigrab  -i desktop out.mp4

2 回复 有任何疑惑可以回复我~
李超 2019-09-08 17:56:24

你搜索一下ffmpeg,gdi 应该就找到答案了

0 回复 有任何疑惑可以回复我~
  • 老师好,-f 不是用来指定format(格式)吗,为什么录制屏幕后面跟的是device(设备)。使用ffmpeg -h 查看后面是format,根据这个说明和见名知意的特点,有点不明白,反应不过来。望说明一下,谢谢
    回复 有任何疑惑可以回复我~ 2019-09-26 02:05:00
  • -formats
    Show available formats (including devices).
    -f fmt (input/output)
    Force input or output file format. The format is normally auto detected for input files and guessed from the file extension for output files, so this option is not needed in most cases.
    官网文档
    回复 有任何疑惑可以回复我~ 2019-09-26 02:36:30
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号