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

来源:2-4 FFmpeg录制命令实战

MissYouEven

2019-09-08

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

写回答

2回答

文川雪

2019-09-26

ffmpeg -f gdigrab  -i desktop out.mp4

2
0

李超

2019-09-08

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

0
2
文川雪
-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
共2条回复

经典再升级-FFmpeg5.0核心技术精讲,打造音视频播放器

学好FFmpeg核心技术,做高效,高薪,有竞争力的音视频工程师

2726 学习 · 814 问题

查看课程