[Newbies] 华为uos笔记本使用ffmpeg x11grab录屏问题求教
Tofloor
poster avatar
haword_huang
deepin
2021-05-07 01:03
Author

我华为uos笔记本上使用ffmpeg -f x11grab -s 1920x1080 -r 25 -i :0.0 output.mp4录屏命令进行录屏,只能录到鼠标的光标和黑色背景,在uos台式机上是正常的,求高手指教

Reply Favorite View the author
All Replies
guaguale
deepin
2021-05-07 01:26
#1

--enable-x11grab 变成这个呢?

Reply View the author
Ziggy
deepin
2021-05-07 08:23
#2

咋不用深度录屏呢?

Reply View the author
haword_huang
deepin
2021-05-07 20:02
#3
guaguale

--enable-x11grab 变成这个呢?

用了--enable-libxcb
Reply View the author
haword_huang
deepin
2021-05-07 20:04
#4
Ziggy

咋不用深度录屏呢?

我需要写到代码里,你知道深度录屏底层用的什么录的屏吗,我这里:0.0这个设备是不是不对?

Reply View the author
duanyao
deepin
2021-05-07 21:19
#5

命令行的输出?完整地贴一下。

屏幕的名字用环境变量 DISPLAY 查看,或者就用 $DISPLAY 代替 :0.0 。

Reply View the author
haword_huang
deepin
2021-05-07 21:38
#6
duanyao

命令行的输出?完整地贴一下。

屏幕的名字用环境变量 DISPLAY 查看,或者就用 $DISPLAY 代替 :0.0 。

命令行只是测试一下,在台式机上是正常的。具体代码中用了ffmpeg的一些api。我用DISPLAY代替试一下,谢谢

 

Reply View the author
haword_huang
deepin
2021-05-08 01:43
#7

找到原因了,华为uos笔记本使用的显示使用的wayland,x11的工具用不了

Reply View the author