代码: 全选
ffmpeg -f x11grab -s wxga -r 25 -i :0.0 -sameq /tmp/out.mpg
然后启用guest之后,guest没有ffmpeg,加入到sudoers里面全去了才装好ffmpeg
提示大概是"Input/Output error"之类的,边上好像看到"protocal"什么,忘了拷下来
请问这是怎么回事?guest账户是在哪儿跟主账户不同了,我都加入sudoer了呀?
代码: 全选
ffmpeg -f x11grab -s wxga -r 25 -i :0.0 -sameq /tmp/out.mpg
代码: 全选
w
19:40:19 up 4 min, 4 users, load average: 0.29, 0.53, 0.27
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
guest tty7 :0 19:35 4:41 11.55s 0.13s gnome-session --session=ubuntu
guest pts/0 :0 19:36 0.00s 0.00s 0.00s w
chin tty8 :1 19:36 4:41 14.63s 0.13s gnome-session --session=ubuntu
chin pts/1 :1 19:36 1:08 0.30s 0.30s bash
guest@chin-up:~$ ffmpeg -f x11grab -s 1280x800 -r 25 -i :1.0 /tmp/out.mpg
FFmpeg version 0.6.2-4:0.6.2-1ubuntu1, Copyright (c) 2000-2010 the Libav developers
built on Mar 22 2011 15:35:22 with gcc 4.5.2
configuration: --extra-version=4:0.6.2
.................................
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.19. 0 / 1.19. 0
libswscale 0.11. 0 / 0.11. 0
libpostproc 51. 2. 0 / 51. 2. 0
[x11grab @ 0x8d57420]device: :1.0 -> display: :1.0 x: 0 y: 0 width: 1280 height: 800
No protocol specified
[x11grab @ 0x8d57420]Could not open X display.
:1.0: Input/output error
guest@chin-up:~$ ffmpeg -f x11grab -s 1280x800 -r 25 -i :0.0 /tmp/out.mpg
FFmpeg version 0.6.2-4:0.6.2-1ubuntu1, Copyright (c) 2000-2010 the Libav developers
built on Mar 22 2011 15:35:22 with gcc 4.5.2
configuration: --extra-version=4:0.6.2-
..................
libswscale 0.11. 0 / 0.11. 0
libpostproc 51. 2. 0 / 51. 2. 0
[x11grab @ 0x990d420]device: :0.0 -> display: :0.0 x: 0 y: 0 width: 1280 height: 800
[x11grab @ 0x990d420]shared memory extension found
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 143 (MIT-SHM)
Minor opcode of failed request: 4 (X_ShmGetImage)
Serial number of failed request: 11
Current serial number in output stream: 11
代码: 全选
ffmpeg -f x11grab -s 1280x800 -r 25 -i :0.0 /tmp/out.mpg