OSX Fullscreen capture with avfvideosrc not working

Matthew Waters ystreet00 at gmail.com
Wed Aug 24 02:41:02 UTC 2016


1.9.1 is missing the following commit which would cause something like this:

https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=6de83e0515c334466f0e1649090c7421ea79881e

Cheers
-Matt

On 24/08/16 07:06, Matt Barclay wrote:
> 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/20160824/d8e82ff5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 502 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160824/d8e82ff5/attachment.sig>


More information about the gstreamer-devel mailing list