This is a discussion on ffmpeg capture x11 within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hello again. The issue maybe it's not slackware related. I wish to capture my screen. ffmpeg is istanlled and ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hello again. The issue maybe it's not slackware related. I wish to capture my screen. ffmpeg is istanlled and working (I convert video files). From his man-page I execute: ffmpeg -f x11grab -vd x11:0.0 /tmp/out.mpg but it says: "Unknown input or output format: x11grab" Mind you the program is compiled by me (2007_FEB_9) including the option --enable-x11grab locate x11grab returns null (maybe unrelated). Also I replaced x11:0.0 with $DISPLAY like that: ffmpeg -f x11grab -vd $DISPLAY /tmp/out.mpg Any ideas? Anyone with success of capture screen and ffmpeg on Slackware? -- Please excuse my english writing! Slackware 11 Knowledge report: One year, still plenty to learn |
| |||
| On Thu, 10 May 2007 18:23:53 +0000, korgman wrote: > Hello again. > > The issue maybe it's not slackware related. > > I wish to capture my screen. ffmpeg is istanlled and working (I convert > video files). > > From his man-page I execute: > ffmpeg -f x11grab -vd x11:0.0 /tmp/out.mpg > > but it says: "Unknown input or output format: x11grab" > > Mind you the program is compiled by me (2007_FEB_9) including the option > --enable-x11grab > > locate x11grab returns null (maybe unrelated). Maybe not, please check with: $ ffmpeg -formats | grep -i x if you have something about your wanted x11grab ? I'll try tomorrow to build a fresh ffmpeg with this option just to cross-check a possible ffmpeg compilation failure but it'll really have to be tomorrow and, besides my tests on 2.6.21.1 and different "new trend" modules can probably spoil the game ;-) |
| |||
| On Thu, 10 May 2007 18:23:53 +0000 (UTC), korgman <korgie@gmail.com> appears to have said: > From his man-page I execute: > ffmpeg -f x11grab -vd x11:0.0 /tmp/out.mpg My man page is different, but then ffmpeg is a bit of a moving target. I'm using svn 8861, which was current as of May 1, and I'm sure it's obsolete already. ffmpeg -f x11grab -s cif -i :0.0 /tmp/out.mpg > but it says: "Unknown input or output format: x11grab" > > Mind you the program is compiled by me (2007_FEB_9) including the > option --enable-x11grab Turns out that "--enable-x11grab" will fail silently, unless you explicitly specify X11 includes and libs to the configure script. Works for me with: ../configure \ --enable-x11grab \ --extra-cflags=-I/usr/X11R6/include \ --extra-ldflags=-L/usr/X11R6/lib http://lists.mplayerhq.hu/pipermail/...ch/007267.html HTH, Jonathan -- Don't just hit reply. Email address is broken. Thank your friendly neighborhood spammer. Email replies to: user: daboid domain: suddenlink<dot>net |
| |||
| On 2007-05-11, Jonathan A. <invalid@example.net> wrote: > Turns out that "--enable-x11grab" will fail silently, unless you > explicitly specify X11 includes and libs to the configure script. > Works for me with: > > ./configure \ > --enable-x11grab \ > --extra-cflags=-I/usr/X11R6/include \ > --extra-ldflags=-L/usr/X11R6/lib > > http://lists.mplayerhq.hu/pipermail/...ch/007267.html Spot-on, both of you. x11grab was absent. Re-compiled and working. Now I test which is better: recordmydesktop or ffmpeg Thanks! > > HTH, > Jonathan > -- Please excuse my english writing! Slackware 11 Knowledge report: One year, still plenty to learn |
| ||||
| On Fri, 11 May 2007 01:31:45 +0000, Jonathan A. wrote: > On Thu, 10 May 2007 18:23:53 +0000 (UTC), korgman <korgie@gmail.com> > appears to have said: > >> From his man-page I execute: >> ffmpeg -f x11grab -vd x11:0.0 /tmp/out.mpg > > My man page is different, but then ffmpeg is a bit of a moving target. > I'm using svn 8861, which was current as of May 1, and I'm sure it's > obsolete already. > > ffmpeg -f x11grab -s cif -i :0.0 /tmp/out.mpg > >> but it says: "Unknown input or output format: x11grab" >> >> Mind you the program is compiled by me (2007_FEB_9) including the >> option --enable-x11grab > > Turns out that "--enable-x11grab" will fail silently, unless you > explicitly specify X11 includes and libs to the configure script. Works > for me with: > > ./configure \ > --enable-x11grab \ > --extra-cflags=-I/usr/X11R6/include \ --extra-ldflags=-L/usr/X11R6/lib Confirmed here, slightly more up2date version gives the same results and has the same solution by adding the extra flags :-) $ ./ffmpeg -formats | grep -i grab FFmpeg version SVN-r8996, Copyright (c) 2000-2007 Fabrice Bellard, et al. configuration: --enable-gpl --enable-x11grab --extra-cflags=-I/usr/X11R6/ include --extra-ldflags=-L/usr/X11R6/lib libavutil version: 49.4.0 libavcodec version: 51.40.4 libavformat version: 51.12.1 built on May 11 2007 11:43:56, gcc: 4.1.2 DE audio_device audio grab and output D dv1394 dv1394 A/V grab D video4linux video grab D video4linux2 video grab D x11grab X11grab |
| Thread Tools | |
| Display Modes | |
|
|