video fullscreen
Nicolas Dufresne
nicolas.dufresne at collabora.com
Wed Jul 9 12:19:16 PDT 2014
Le mercredi 09 juillet 2014 à 20:42 +0200, Marco Trapanese a écrit :
> Il 09/07/2014 20:38, Nicolas Dufresne ha scritto:
> > Stretching a video this way would break aspect ratio.
>
> Not (always) true. I might have a video with the same aspect ratio, but
> scaled down.
>
> > Again, it's application role to set a background. You have multiple
> > options, allocate an empty VT, and clear the framebuffer, or create
> > you down DISPMANX window, set it up the way you want and pass it to
> > glimagesink.
>
> I don't want to have black or transparent backgrounds :-)
> I just want to scale the video output. The problem about the stretching
> is my own!
>
> Reading the docs I know it's possible to set width/height and x/y on a
> video sink, but I don't understand how to set them in the pipeline I
> wrote in the first post.
Btw, to control aspect ratio, see force-aspect-ratio. Was mistakenly
false by default, but will be TRUE in 1.4. The window sizing is usually
handled at the window manager level, in this case it's DISPMANX. The
support for this window manager seems incomplete though. Currently, the
window implementation seems to always resize to the video size and
center upon display. You only way out would be to do some hacking in:
gst-plugins-bad/gst-libs/gst/gl/dispmanx/gstglwindow_dispmanx_egl.c
See window_resize() function. You could also try and provide your own
GLContext/Window implementation, but that's a bit more work. If you
want, you could also try to improve all this by adding support for
set_window_handle() (if possible).
Nicolas
More information about the gstreamer-devel
mailing list