-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to play video using glimagesink on rpi3 with zeus image #140
Comments
Which version of GStreamer? |
Oops, sorry
The gst plugins are the default ones for wpewebkit with |
Content of
|
And your kernel / Mesa versions? |
In any case as this is not (yet) related with wpewebkit, the issue could be reported in the OpenEmbedded tracker. |
I'm using Ok for reporting it on OpenEmbedded |
I had a similar I first debugged it using custom gst-launch-1.0 pipelines until I found the proper setting I had to force to get things working. In my case, I had to force the videosink caps to be compatible with what glimagesink supports. This was the pipeline that worked for me to play an mp4 (h264 + aac) video (ignore the "cat" and "fdsrc" weirdness, it's just to force the pipeline in push mode, line MSE on WPE does):
The key for me here was to use gst-inspect-1.0 to check what video formats were supported by the video decoder (v4l2h264dec in my case, it might be different on your hardware platform) and by glimagesink. Then I just forced compatible caps (RGB16 for me) by using the implicit capsfilter. Once I got that working in gst-launch, I wrote an experimental patch to do the same on WPE side. This is for the (downstream) WPE version I'm using, so there's no guarantee that it would apply cleanly in your version, but it can give you hints on how to fix it on your side: WebPlatformForEmbedded/WPEWebKit@c525cb6 I hope it helps! |
I think the OE kernel differs from the one used by the RPi Foundation folks, iirc they (use to?) heavily patch their kernel. |
@eocanha Thank you very much ! I haven't tested your wpewebkit patch yet, but I can now play the video with |
The patch works great on 2.26 with some adaptations, thank you again. Closing the issue. |
Great to hear that it worked. @eocanha I think it would be a good idea to try to upstream that patch :) |
RGB16 seems to be an odd format to negotiate... I'd like to have this further investigated with RGBA at some point. |
First you would have to persuade v4l2h264dec to accept RGBA as a valid format in its src pad. From
I think I got something working by using v4l2videoconvert some months ago, but it decreased the performance and ruined zero-copy, so direct plugging using RGB16 looked like a much better option back then. |
Ok, I think I420 could be a good candidate. Let's follow-up elsewhere, this issue is closed now :) |
Hi,
I've been trying to generate a weston image for raspberrypi3 with vc4graphics stack. I'm able to play a video via
gst-play-1.0
usingwaylandsink
(and evenkmssink
with weston not started) but glimagesink always throw me this error:The same errors appears in cog when trying to access a page containing video.
Yocto build configuration:
I've been trying to build a simple
core-image-weston
and still hit the bug. Has anyone experienced this ?The text was updated successfully, but these errors were encountered: