Hi all,
For live streaming to the local screen, I am using the command: gst-launch-1.0 v4l2src ! autovideosink which works fine but does not scale the output of an USB camera to the maximum screen width and height. I can set that manually with something such as: gst-launch-1.0 4l2src ! videoscale ! video/x-raw,width=1920,height=1080 ! autovideosink but for some systems, I might need: gst-launch-1.0 v4l2src ! videoscale ! video/x-raw,width=1024,height=768 ! autovideosink Now, these systems do not provide available screen dimension via xrandr or xpdyinfo as X is not used nor is X configured. 1) Can gstreamer query the screen width and height? 2) Can a pipeline like above do that automatically with a scaling with only referring to "maximum available screen size" in the video sink? 3) Are there other non-gstreamer tools to figure out the width and height of a connected screen, without using tools from X? Thanks, Pander _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
On Sun, 2016-10-02 at 11:36 +0200, Pander wrote:
> > Now, these systems do not provide available screen dimension via > xrandr or xpdyinfo as X is not used nor is X configured. > > 1) Can gstreamer query the screen width and height? > > 2) Can a pipeline like above do that automatically with a scaling > with > only referring to "maximum available screen size" in the video sink? > > 3) Are there other non-gstreamer tools to figure out the width and > height of a connected screen, without using tools from X? same is true for the window created by the sinks. If you need control over the window, embed it into your application with the GstVideoOverlay interface or any of the UI toolkit specific video sinks. This way you can also do full screen or anything else you would like to do with the video. -- Sebastian Dröge, Centricular Ltd · http://www.centricular.com _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel signature.asc (949 bytes) Download Attachment |
On 10/03/2016 11:45 AM, Sebastian Dröge wrote:
> On Sun, 2016-10-02 at 11:36 +0200, Pander wrote: >> >> Now, these systems do not provide available screen dimension via >> xrandr or xpdyinfo as X is not used nor is X configured. >> >> 1) Can gstreamer query the screen width and height? >> >> 2) Can a pipeline like above do that automatically with a scaling >> with >> only referring to "maximum available screen size" in the video sink? >> >> 3) Are there other non-gstreamer tools to figure out the width and >> height of a connected screen, without using tools from X? > > Don't use gst-launch-1.0, it is only a debugging/testing tool, and the > same is true for the window created by the sinks. > > > If you need control over the window, embed it into your application > with the GstVideoOverlay interface or any of the UI toolkit specific > video sinks. This way you can also do full screen or anything else you > would like to do with the video. Can non-testing command line usage of gstreamer do this? Such as $ avplay /dev/video0 > > > > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel > _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
On Sun, 2016-10-09 at 16:50 +0200, Pander wrote:
> > > If you need control over the window, embed it into your application > > with the GstVideoOverlay interface or any of the UI toolkit specific > > video sinks. This way you can also do full screen or anything else you > > would like to do with the video. > > > Can non-testing command line usage of gstreamer do this? > > Such as $ avplay /dev/video0 do that. gst123 for example can. -- Sebastian Dröge, Centricular Ltd · http://www.centricular.com _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel signature.asc (985 bytes) Download Attachment |
Free forum by Nabble | Edit this page |