Unix Technical Forum

ffmpeg capture x11

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 10:01 PM
korgman
 
Posts: n/a
Default ffmpeg capture x11

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 10:01 PM
loki harfagr
 
Posts: n/a
Default Re: ffmpeg capture x11

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 ;-)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 10:01 PM
Jonathan A.
 
Posts: n/a
Default Re: ffmpeg capture x11

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. The example given in my copy of the man page is:

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-20-2008, 10:01 PM
korgman
 
Posts: n/a
Default Re: ffmpeg capture x11

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-20-2008, 10:01 PM
loki harfagr
 
Posts: n/a
Default Re: ffmpeg capture x11

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. The example given in my copy of the man page is:
>
> 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:13 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com