glimagesink render-rectangle can not set.

Nicolas Dufresne nicolas at ndufresne.ca
Wed Aug 18 14:51:27 UTC 2021


Le mardi 17 août 2021 à 10:22 +0000, 杨 立明 via gstreamer-devel a écrit :
> Hi all.
> 
>         I try to the   gst-launch-1.0  filesrc location=/mnt/baita.jpg
> !decodebin  ! videoscale ! video/x-raw,width=1920,height=1080 ! imagefreeze !
> glimagesink render-rectangle="<0,0,1920,1080>" and  it is Ok!   
> 
> but i want to put it in codes and i cannot find the format about  the   render-
> rectangle  parameter  in the c language。so  if i want to put  it  in c 
> language,how i  should  use it.Thank you very much !

glimagesink implement the GstVideoOverlay interface, which let you call
gst_video_overlay_set_render_rectangle(), this is much more convenient then
using the property. That property was only added to allow testing that feature
from gst-launch tool.

regards,
Nicolas

https://gstreamer.freedesktop.org/documentation/video/gstvideooverlay.html?gi-language=c#gst_video_overlay_set_render_rectangle

> 
>                                                                                
>     jih488 




More information about the gstreamer-devel mailing list