guest账户中ffmpeg录制屏幕不能使用的问题?

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
jiyinyiyong
帖子: 631
注册时间: 2010-01-03 19:58
系统: OS X, Ubuntu(server)
来自: 杭州
联系:

guest账户中ffmpeg录制屏幕不能使用的问题?

#1

帖子 jiyinyiyong » 2011-06-11 16:24

代码: 全选

ffmpeg -f x11grab -s wxga -r 25 -i :0.0 -sameq /tmp/out.mpg
首先在主用户下可以使用的,而且我是第一次折腾guest账户去的
然后启用guest之后,guest没有ffmpeg,加入到sudoers里面全去了才装好ffmpeg
提示大概是"Input/Output error"之类的,边上好像看到"protocal"什么,忘了拷下来
请问这是怎么回事?guest账户是在哪儿跟主账户不同了,我都加入sudoer了呀?
头像
royclark
帖子: 301
注册时间: 2011-05-15 1:01
系统: Debian GNU/Linux sid

Re: guest账户中ffmpeg录制屏幕不能使用的问题?

#2

帖子 royclark » 2011-06-11 16:33

    上次由 royclark 在 2011-08-31 19:48,总共编辑 1 次。
    头像
    jiyinyiyong
    帖子: 631
    注册时间: 2010-01-03 19:58
    系统: OS X, Ubuntu(server)
    来自: 杭州
    联系:

    Re: guest账户中ffmpeg录制屏幕不能使用的问题?

    #3

    帖子 jiyinyiyong » 2011-06-11 17:35

    按默认设置已经勾选了视频的,不过另外几项不知道是否相关
    我截图
    附件
    Screenshot-1.png
    头像
    royclark
    帖子: 301
    注册时间: 2011-05-15 1:01
    系统: Debian GNU/Linux sid

    Re: guest账户中ffmpeg录制屏幕不能使用的问题?

    #4

    帖子 royclark » 2011-06-11 17:37

      上次由 royclark 在 2011-08-31 19:49,总共编辑 1 次。
      头像
      royclark
      帖子: 301
      注册时间: 2011-05-15 1:01
      系统: Debian GNU/Linux sid

      Re: guest账户中ffmpeg录制屏幕不能使用的问题?

      #5

      帖子 royclark » 2011-06-11 18:03

        上次由 royclark 在 2011-08-31 19:49,总共编辑 1 次。
        头像
        jiyinyiyong
        帖子: 631
        注册时间: 2010-01-03 19:58
        系统: OS X, Ubuntu(server)
        来自: 杭州
        联系:

        Re: guest账户中ffmpeg录制屏幕不能使用的问题?

        #6

        帖子 jiyinyiyong » 2011-06-11 19:47

        的确有楼上提到的问题,,不过好像还有别的问题
        我把提示复制过来了,,中间去掉一点

        代码: 全选

        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
        
        感觉ubuntu切换账户好难看,而且验证密码我还两次卡过1分钟多,直接关机重启了,,
        后面那个提示,,是语法方面的错误?
        头像
        royclark
        帖子: 301
        注册时间: 2011-05-15 1:01
        系统: Debian GNU/Linux sid

        Re: guest账户中ffmpeg录制屏幕不能使用的问题?

        #7

        帖子 royclark » 2011-06-11 19:57

          上次由 royclark 在 2011-08-31 19:50,总共编辑 1 次。
          头像
          jiyinyiyong
          帖子: 631
          注册时间: 2010-01-03 19:58
          系统: OS X, Ubuntu(server)
          来自: 杭州
          联系:

          Re: guest账户中ffmpeg录制屏幕不能使用的问题?

          #8

          帖子 jiyinyiyong » 2011-06-12 10:17

          代码: 全选

          ffmpeg -f x11grab -s 1280x800 -r 25 -i :0.0 /tmp/out.mpg
          楼上这条命令可用,看来还是我的命令找错了
          :em06 得到时候仔细了解ffmpeg的参数了
          多谢两位教我
          头像
          royclark
          帖子: 301
          注册时间: 2011-05-15 1:01
          系统: Debian GNU/Linux sid

          Re: guest账户中ffmpeg录制屏幕不能使用的问题?

          #9

          帖子 royclark » 2011-06-12 10:34

            上次由 royclark 在 2011-08-31 19:50,总共编辑 1 次。
            头像
            jiyinyiyong
            帖子: 631
            注册时间: 2010-01-03 19:58
            系统: OS X, Ubuntu(server)
            来自: 杭州
            联系:

            Re: guest账户中ffmpeg录制屏幕不能使用的问题?

            #10

            帖子 jiyinyiyong » 2011-06-12 10:52

            我出现幻觉了,,,昨天看的时候明明用w命令那帖不是同一人的,,,
            不管怎样@#$@...
            我用了你那条命令可以开始进入录制屏幕的状态了
            ffmpeg我不熟,,有命令能用就行了
            呃,,想起来,,你录屏幕会用什么,也是ffmpeg吗?
            头像
            royclark
            帖子: 301
            注册时间: 2011-05-15 1:01
            系统: Debian GNU/Linux sid

            Re: guest账户中ffmpeg录制屏幕不能使用的问题?

            #11

            帖子 royclark » 2011-06-12 11:04

              上次由 royclark 在 2011-08-31 19:51,总共编辑 1 次。
              头像
              jiyinyiyong
              帖子: 631
              注册时间: 2010-01-03 19:58
              系统: OS X, Ubuntu(server)
              来自: 杭州
              联系:

              Re: guest账户中ffmpeg录制屏幕不能使用的问题?

              #12

              帖子 jiyinyiyong » 2011-06-12 12:49

              试过xvidcap还有俩recordmydesktop,,感觉还是ffmpeg靠谱
              不过也不好啊,,ffmpeg用用差不多了
              回复