gstreamer waylandsink doesn't work with wayland
Description
Environment
None
Attachments
1
- 02 Feb 2018, 08:55 AM
Activity
Show:
Matt Ranostay July 31, 2018 at 4:32 PM
Matt Ranostay
July 31, 2018 at 4:32 PM
Yes I know of the videoplayer application but that uses qtmultimedia directly which isn't ideal
Harunobu Kurokawa July 31, 2018 at 5:42 AM
Harunobu Kurokawa
July 31, 2018 at 5:42 AM
Do you know video application?
Matt Ranostay July 31, 2018 at 4:33 AM
Matt Ranostay
July 31, 2018 at 4:33 AM
Ok that is one way to test it. But mediaplayer needs agl-service-mediaplayer to render the video which need to request a surface
Harunobu Kurokawa July 31, 2018 at 2:10 AM
Harunobu Kurokawa
July 31, 2018 at 2:10 AM
Hi @Matt Ranostay
I can play and display video image using gst-launch and waylandsink , it is launched from homescreen. it should be use "runxdg".
For example.
$ cat /var/local/lib/afm/applications/video/0.1/runxdg.toml
[application]
# role: identifier for WindowManager (used in layers.json)
# e.g. role = "WebBrowser"
role = "Video"
# launch by "POSIX"(fork/exec), "AFM_DBUS"(afm via dbus), "AFM_WEBSOCKET"(afm via websockt)
method = "POSIX"
# path: path to the executable
# e.g.
# path = "/usr/bin/chromium"
path = "/usr/bin/gst-launch-1.0"
# params: arguments of the excecutable
# e.g.
params = [
"filesrc",
"location=/home/0/REL_video.mp4",
"!",
"qtdemux",
"!",
"queue",
"!",
"h264parse",
"!",
"omxh264dec",
"!",
"queue",
"!",
"waylandsink"
]
Matt Ranostay July 30, 2018 at 5:34 PM
Matt Ranostay
July 30, 2018 at 5:34 PM
@Harunobu Kurokawa Yes but it still doesn't display video on the homescreen which was the primary issue because it can't get a surface
Won't Fix
Details
Details
Assignee
Harunobu Kurokawa
Harunobu KurokawaReporter
Matt Ranostay
Matt RanostayComponents
Priority
Created January 22, 2018 at 11:52 PM
Updated August 14, 2018 at 1:23 PM
Resolved July 30, 2018 at 1:57 PM
gstreamer playback doesn't work ivi-wayland-extension 2.0.2 or desktop-shell.so. Also gstreamer + bad plugins from meta-renesas is at 1.6.3 which is rather old, and 1.10.4 fail to compile with several weston issues.
$ gst-play-1.0 big_buck_bunny_720p_stereo.ogg
Press 'k' to see a list of keyboard shortcuts.
Now playing /home/0/big_buck_bunny_720p_stereo.ogg
Prerolling...
*(gst-play-1.0:4830): GLib-CRITICAL *: g_thread_join: assertion 'thread' failed
WARNING Could not initialise Wayland output
WARNING debug information: ../../../git/ext/wayland/gstwaylandsink.c(309): gst_wayland_sink_find_display (): /GstWaylandSink:waylandsink0:
Failed to create GstWlDisplay: 'Could not bind to wl_scaler. Either it is not implemented in the compositor, or the implemented version doesn't match'
*(gst-play-1.0:4830): GLib-CRITICAL *: g_thread_join: assertion 'thread' failed
*ERROR Disconnected: Connection terminated for file:///home/0/big_buck_bunny_720p_stereo.ogg*
ERROR debug information: ../../../git/ext/pulse/pulsesink.c(413): gst_pulsering_is_dead (): /GstPlayBin:playbin/GstPlaySink:playsink/GstBin:abin/GstPulseSink:pulsesink0
Reached end of play list.