Ubuntu下如何查找屏幕的索引号?
来源:2-4 FFmpeg录制命令实战

qq_千里飘雪_0
2018-10-31
llf@llf-System-Product-Name:~$ ffmpeg -f v4l2 -list_devices all
ffmpeg version 4.0.2 Copyright © 2000-2018 the FFmpeg developers
built with gcc 7 (Ubuntu 7.3.0-27ubuntu1~18.04)
configuration: --prefix=/usr/local/ffmpeg --enable-gpl --enable-nonfree --enable-libfdk-aac --enable-libx264 --enable-libx265 --enable-filter=delogo --enable-debug --disable-optimizations --enable-libspeex --enable-shared --enable-pthreads
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
Unrecognized option ‘list_devices’.
Error splitting the argument list: Option not found
执行录屏命令:ffmpeg -f v4l2 -i (设备索引号) -r 30 out.yuv 时 无法获取屏幕的索引号
4回答
-
cryy
2019-06-17
LINUX环境下录制屏幕可以参考
https://trac.ffmpeg.org/wiki/Capture/Desktop00 -
慕瓜6402968
2018-11-29
可以参考ffmpeg文档中关于input-devices的说明:https://ffmpeg.org/ffmpeg-devices.html#Input-Devices
00 -
李超
2018-11-10
Linux 录屏命令 ffmpeg -f x11grab -i :0.0 -s 1600x900 -r 50 -vcodec libx264 –preset:v ultrafast –tune:v zerolatency -crf screen.mp4
00 -
李超
2018-11-01
ffmpeg -f v4l2 -list_devices true -i "" 这样试试呢
022018-11-29
相似问题