Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

FFMpeg needs --enable-x11grab #17641

Closed
cadorn opened this issue Feb 6, 2013 · 10 comments
Closed

FFMpeg needs --enable-x11grab #17641

cadorn opened this issue Feb 6, 2013 · 10 comments

Comments

@cadorn
Copy link

cadorn commented Feb 6, 2013

Please add the --enable-x11grab option for the ffmpeg formula.

See: http://ffmpeg.org/trac/ffmpeg/ticket/821

Example:

ffmpeg -f x11grab -r 25 -s 1280x720 -i :0.0+0,24 -vcodec libx264 -vpre lossless_ultrafast -threads 0 video.mkv

Thanks!

@MikeMcQuaid
Copy link
Member

What does it do?

@MikeMcQuaid
Copy link
Member

Cool. Can you make a pull request (after checking this works without X11 on OSX)? Thanks!

@eladg
Copy link
Contributor

eladg commented Feb 8, 2013

Will love to do it, after: #17699

@eladg
Copy link
Contributor

eladg commented Feb 10, 2013

After doing some research, apparently x11grab can only capture X application (like Gimp, Wireshark and other ported apps). Normal screen capturing is not possible using x11grab (bummer).

Sources:
http://ffmpeg.org/pipermail/ffmpeg-devel/2010-May/095594.html
http://superuser.com/questions/497215/error-when-trying-to-enable-x11grab-in-ffmpeg
http://jorgenpt.tumblr.com/post/21484803576/livecasting-osx-desktop

@cadorn
Copy link
Author

cadorn commented Feb 10, 2013

Oh, too bad :)

Thanks for looking into it anyway.

@cadorn cadorn closed this as completed Feb 10, 2013
@robertoandrade
Copy link

was this ever integrated? I'm actually in need for x11grab to capture some X applications screenshot and didn't want to recompile ffmpeg just for that.

@eladg
Copy link
Contributor

eladg commented Mar 4, 2015

@robertoandrade try compile ffmpeg yourself and see if it works, if so, we can add it to homebrew support...

Compiling ffmpeg should be relatively easy...

@mistydemeo
Copy link
Member

It doesn't look like a patch was ever merged for this, but we'd review one.

@robertoandrade
Copy link

I followed the compilation instructions, but it looks like that option seems to be for legacy purposes only (Xlib users), it's automatically enabled if libxcb is installed (don't think that is the case on OSX though).

According to the following instructions ffmpeg under OSX should really use avfoundation device instead of x11grab, so as long as you adapt your ffmpeg command line option to pass in a different -f argument as well as -i with the proper format depending on what environment you're running on (Linux or OSX), anyone attempting to use x11grab under OSX should be good to go, so I guess no work is needed from Homebrew after all.

@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants