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/Desktop

0
0

慕瓜6402968

2018-11-29

可以参考ffmpeg文档中关于input-devices的说明:https://ffmpeg.org/ffmpeg-devices.html#Input-Devices

0
0

李超

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

0
0

李超

2018-11-01

ffmpeg -f v4l2 -list_devices true -i "" 这样试试呢

0
2
李超
回复
chen8888
根据你自己的平台,参考 https://ffmpeg.org/ffmpeg-devices.html#Input-Devices
2018-11-29
共2条回复

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

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

2726 学习 · 814 问题

查看课程