Output video in desired coordinate on screen

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Output video in desired coordinate on screen

Abin P

Hi all

I prepared a simple pipeline.
Gst-launch-1.0 filesrc location=sample.bgra ! Videoparse format=bgra width=640 height=480 ! Waylandsink
.when every time executing this pipeline video will appear at different coordinates on the screen.I want to display this video in a desired  position on the screen.How can i achieve it?.Is there any plugins have such property?.please help me to find out a solution for this problem.

Thanks and regards.
Abin


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Output video in desired coordinate on screen

Sebastian Dröge-3
On Thu, 2016-11-10 at 21:30 +0530, Abin P wrote:
> Hi all
> I prepared a simple pipeline.
> Gst-launch-1.0 filesrc location=sample.bgra ! Videoparse format=bgra
> width=640 height=480 ! Waylandsink
> .when every time executing this pipeline video will appear at
> different coordinates on the screen.I want to display this video in a
> desired  position on the screen.How can i achieve it?.Is there any
> plugins have such property?.please help me to find out a solution for
> this problem.

The automatically created windows by sinks are for debugging purposes
only. You have to write an actual application and embed the video sink
into a window created by your application. That way you have full
control.

--
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 (981 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Output video in desired coordinate on screen

Abin P

Dear sebastian droge

Thanks for your reply.Actually i created two separate applications , videoplayer using qt as one application and video playback using gstreamer as other application.I like to render my video output frame on the desired coordinate of qt window. So display coordinate must be set by gstreamer.Help me to set coordinate using gstreamer.

Thanks and regards.
Abin


On Nov 12, 2016 2:38 PM, "Sebastian Dröge" <[hidden email]> wrote:
On Thu, 2016-11-10 at 21:30 +0530, Abin P wrote:
> Hi all
> I prepared a simple pipeline.
> Gst-launch-1.0 filesrc location=sample.bgra ! Videoparse format=bgra
> width=640 height=480 ! Waylandsink
> .when every time executing this pipeline video will appear at
> different coordinates on the screen.I want to display this video in a
> desired  position on the screen.How can i achieve it?.Is there any
> plugins have such property?.please help me to find out a solution for
> this problem.

The automatically created windows by sinks are for debugging purposes
only. You have to write an actual application and embed the video sink
into a window created by your application. That way you have full
control.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
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
Reply | Threaded
Open this post in threaded view
|

Re: Output video in desired coordinate on screen

Sebastian Dröge-3
On Tue, 2016-11-15 at 12:36 +0530, Abin P wrote:
> Dear sebastian droge
> Thanks for your reply.Actually i created two separate applications ,
> videoplayer using qt as one application and video playback using
> gstreamer as other application.I like to render my video output frame
> on the desired coordinate of qt window. So display coordinate must be
> set by gstreamer.Help me to set coordinate using gstreamer.

That's not a GStreamer problem then and out of scope for GStreamer. You
have to use whatever tools Qt gives you on your target platform for
embedding another application into your Qt window.

--
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 (981 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Output video in desired coordinate on screen

Mikl

Hello, Abin


You can make appsink as a last element in your pipeline.

After this you can read buffer.

This buffer will contain your image.

And you can use it to display in your qt app.


Mikl


From: gstreamer-devel <[hidden email]> on behalf of Sebastian Dröge <[hidden email]>
Sent: Tuesday, November 15, 2016 5:19:38 PM
To: Discussion of the development of and with GStreamer
Subject: Re: Output video in desired coordinate on screen
 
On Tue, 2016-11-15 at 12:36 +0530, Abin P wrote:
> Dear sebastian droge
> Thanks for your reply.Actually i created two separate applications ,
> videoplayer using qt as one application and video playback using
> gstreamer as other application.I like to render my video output frame
> on the desired coordinate of qt window. So display coordinate must be
> set by gstreamer.Help me to set coordinate using gstreamer.

That's not a GStreamer problem then and out of scope for GStreamer. You
have to use whatever tools Qt gives you on your target platform for
embedding another application into your Qt window.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel