OSX Fullscreen capture with avfvideosrc not working

Matt Barclay mbarclay at gmail.com
Tue Aug 23 21:06:11 UTC 2016


Hello,

I'm on a OS X 10.11.5 Mac book running Gstreamer 1.9.1.

Using avfvideosrc, I am only able to capture a portion of the screen.  Is
it possible to capture the full screen?  Here is the command I'm using:

gst-launch-1.0 avfvideosrc capture-screen-cursor=true capture-screen=true !
video/x-raw,width=1440,height=900,format=UYVY,framerate=30/1 ! videoscale !
videoconvert ! video/x-raw,format=YV12 ! x264enc ! rtph264pay pt=96 !
udpsink host=10.42.0.1 port=5000

The resolution of the Mac is 2880x1800, but setting those in the pipeline
doesn't work:

gst-launch-1.0 avfvideosrc capture-screen-cursor=true capture-screen=true !
video/x-raw,width=2880,height=1800,format=UYVY,framerate=30/1 ! videoscale
! videoconvert ! video/x-raw,format=YV12 ! x264enc ! rtph264pay pt=96 !
udpsink host=10.42.0.1 port=5000
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
ERROR: from element /GstPipeline:pipeline0/GstAVFVideoSrc:avfvideosrc0:
Internal data flow error.
Additional debug info:
gstbasesrc.c(2947): void gst_base_src_loop(GstPad *) ():
/GstPipeline:pipeline0/GstAVFVideoSrc:avfvideosrc0:
streaming task paused, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

What am I doing wrong?

Thanks,
Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160823/25402cee/attachment.html>


More information about the gstreamer-devel mailing list