"Full screen" video playing on raspberry pi without Xorg

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

"Full screen" video playing on raspberry pi without Xorg

David Ventura
Hi

I've recompiled plugins-bad with these options:

 --disable-gtk-doc --disable-opengl --enable-gles2 --enable-egl --disable-
glx --disable-x11 --disable-wayland --enable-dispmanx

Which gives me a working glimagesink without X11. My problem is that the videos are played in their original resolution, and low-resolution videos are not stretched to fit the framebuffer resolution.

My pipeline

gst-launch-1.0 filesrc name=file location=Immune_Response.mp4 ! decodebin name=dec ! queue ! glimagesink dec. ! queue ! audioconvert ! volume volume=0.1 name=vol ! autoaudiosink


Adding a "videoconvert ! videoscale " between the queue and glimagesink doesn't change anything.


Right now I'm missing glupload (To follow this pipeline [1]). What do I need to add to my configure parameters?

David

Stack is the new term for "I have no idea what I'm actually using".

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

Re: "Full screen" video playing on raspberry pi without Xorg

Matthew Waters
On 11/11/16 02:16, David Ventura wrote:
Hi

I've recompiled plugins-bad with these options:

 --disable-gtk-doc --disable-opengl --enable-gles2 --enable-egl --disable-
glx --disable-x11 --disable-wayland --enable-dispmanx

Which gives me a working glimagesink without X11. My problem is that the videos are played in their original resolution, and low-resolution videos are not stretched to fit the framebuffer resolution.

There are a couple of options:
1. use the glcolorscale to scale the GL texture to the framebufer size, this use an extra GL texture the size of your framebuffer and may be too slow for you.
2. set the size of the dispmanx window with gst_video_video_overlay_set_render_rectangle().  Only implemented for dispmanx in GStreamer 1.10+
2. provide your own dispmanx handle to glimagesink with gst_video_overlay_set_window_handle() that you control the size of using dispmanx API.  Only implemented for dispmanx in GStreamer 1.10+

Cheers
-Matt

My pipeline

gst-launch-1.0 filesrc name=file location=Immune_Response.mp4 ! decodebin name=dec ! queue ! glimagesink dec. ! queue ! audioconvert ! volume volume=0.1 name=vol ! autoaudiosink


Adding a "videoconvert ! videoscale " between the queue and glimagesink doesn't change anything.


Right now I'm missing glupload (To follow this pipeline [1]). What do I need to add to my configure parameters?

David

Stack is the new term for "I have no idea what I'm actually using".


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

signature.asc (495 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: "Full screen" video playing on raspberry pi without Xorg

munezbn.dev
This post was updated on .
In reply to this post by David Ventura
David Ventura wrote
Hi

I've recompiled plugins-bad with these options:

 --disable-gtk-doc --disable-opengl --enable-gles2 --enable-egl --disable-
glx --disable-x11 --disable-wayland --enable-dispmanx

Which gives me a working glimagesink without X11. My problem is that the
videos are played in their original resolution, and low-resolution videos
are not stretched to fit the framebuffer resolution.

My pipeline

gst-launch-1.0 filesrc name=file location=Immune_Response.mp4 ! decodebin
name=dec ! queue ! glimagesink dec. ! queue ! audioconvert ! volume
volume=0.1 name=vol ! autoaudiosink


Adding a "videoconvert ! videoscale " between the queue and glimagesink
doesn't change anything.


Right now I'm missing glupload (To follow this pipeline [1]). What do I
need to add to my configure parameters?

David

[1]: http://gstreamer-devel.966125.n4.nabble.com/GL-Video-
Scaling-td4676413.html
--
*Stack* is the new term for "I have no idea what I'm actually using".

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
You can refer below sample Dispmanx player based on gstpayer. You can create and set your own dispmanx window and resize/move them using keyboard.

https://github.com/munezbn/dispmanx-gst-play