Gstreamer not playing videos in weston/wayland

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

Gstreamer not playing videos in weston/wayland

Abin P

Hi I am trying t build a player in R car-E2 (arm based board).I already build weston /wayland ,gststreamer-1.0 and waylandsink in R car-E2. I checked all the plugins using gst-inspect-1.0.
Then i started to test video rendering as " gst-launch-1.0 videotestsrc ! waylandsink.
--I got plenty of errors like ERROR
:from element /Gstpipeline:pipeline0/GstvVideoTestSrc:videotestsrc0: Internal data flow error
--Additional debug info: gstreamer-1.4.1/libs/gst/base/gstbasesrc.c(2933):gst_base_src_loop():/GstVideoTestSrc:videotestsrc0: streaming task paused, reason not negotiated (-4)
-- ERROR:pipeline doesn't want to preroll."
.Can anyone help me to solve this problem.I debugged with GST_DEBUG=4 gst-launch-1.0 videotestsrc ! waylandsink.

regards Abin


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

Re: Gstreamer not playing videos in weston/wayland

Sebastian Dröge-3
On Mon, 2016-09-26 at 11:12 +0530, Abin P wrote:

> Hi I am trying t build a player in R car-E2 (arm based board).I
> already build weston /wayland ,gststreamer-1.0 and waylandsink in R
> car-E2. I checked all the plugins using gst-inspect-1.0.
> Then i started to test video rendering as " gst-launch-1.0
> videotestsrc ! waylandsink.
> --I got plenty of errors like ERROR
> :from element /Gstpipeline:pipeline0/GstvVideoTestSrc:videotestsrc0:
> Internal data flow error 
> --Additional debug info: gstreamer-
> 1.4.1/libs/gst/base/gstbasesrc.c(2933):gst_base_src_loop():/GstVideoT
> estSrc:videotestsrc0: streaming task paused, reason not negotiated (-
> 4)
> -- ERROR:pipeline doesn't want to preroll." 
> .Can anyone help me to solve this problem.I debugged with GST_DEBUG=4
> gst-launch-1.0 videotestsrc ! waylandsink.
You probably want to test with GStreamer GIT master. There were many
changes to waylandsink recently, which should make it work better and
more reliable.

If that still does not help, please file a bug with the exact system
details and a debug log obtained with GST_DEBUG=6. Thanks!

https://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

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

Re: Gstreamer not playing videos in weston/wayland

Nicolas Dufresne-4
Le lundi 26 septembre 2016 à 09:16 +0300, Sebastian Dröge a écrit :
> You probably want to test with GStreamer GIT master. There were many
> changes to waylandsink recently, which should make it work better and
> more reliable.
>
> If that still does not help, please file a bug with the exact system
> details and a debug log obtained with GST_DEBUG=6. Thanks!
>
> https://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer

Though, due instability of the wayland protocol and often inability to
test due to lack for compliant compositor, don't expect too much at
this moment from this element. At best, be prepared to contribute the
missing features.

Unlike X11 XV extension, wayland makes it really hard to playback video
since it's support is strictly limited to hardware accelerators that
can produce DMABuf. For anything else, we are suppose to fallback to
GL, which unfortunately is very complex to implement. Wayland protocol
is really missing something to make developer life easier.

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

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

Re: Gstreamer not playing videos in weston/wayland

sudipj
You can try some weston-apps like weston-terminal, weston-flower etc.. If they run succesfully, then the pipeline should work. 

However, I have faced this issue multiple times on my target when connecting videotestsrc ! waylandsink even though videotestsrc can produce formats acceptable to waylandsink. I didn't investigated much as gst-launch-1.0 videotestsrc ! videoconvert ! waylandsink resolves. May be its worth giving a simple try. And then you could share the results

Sudip



On 26 September 2016 at 19:00, Nicolas Dufresne-4 [via GStreamer-devel] <[hidden email]> wrote:
Le lundi 26 septembre 2016 à 09:16 +0300, Sebastian Dröge a écrit :
> You probably want to test with GStreamer GIT master. There were many
> changes to waylandsink recently, which should make it work better and
> more reliable.
>
> If that still does not help, please file a bug with the exact system
> details and a debug log obtained with GST_DEBUG=6. Thanks!
>
> https://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer

Though, due instability of the wayland protocol and often inability to
test due to lack for compliant compositor, don't expect too much at
this moment from this element. At best, be prepared to contribute the
missing features.

Unlike X11 XV extension, wayland makes it really hard to playback video
since it's support is strictly limited to hardware accelerators that
can produce DMABuf. For anything else, we are suppose to fallback to
GL, which unfortunately is very complex to implement. Wayland protocol
is really missing something to make developer life easier.

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

signature.asc (188 bytes) Download Attachment



If you reply to this email, your message will be added to the discussion below:
http://gstreamer-devel.966125.n4.nabble.com/Gstreamer-not-playing-videos-in-weston-wayland-tp4679768p4679795.html
To start a new topic under GStreamer-devel, email [hidden email]
To unsubscribe from GStreamer-devel, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer not playing videos in weston/wayland

Abin P
In reply to this post by Nicolas Dufresne-4

Thanks nicolas..
Can you please suggest me any compositor to make video play in weston.i already made different combinations of pipeline. But all getting same result. Also i debugged with GST_DEBUG =6. It results lots of errors and at the final i saw error like "gst_denit:deinitialized gstreamer". Is there any way to integrate gstreamer player in weston/wayland.

Regards Abin


On Sep 26, 2016 6:56 PM, "Nicolas Dufresne" <[hidden email]> wrote:
Le lundi 26 septembre 2016 à 09:16 +0300, Sebastian Dröge a écrit :
> You probably want to test with GStreamer GIT master. There were many
> changes to waylandsink recently, which should make it work better and
> more reliable.
>
> If that still does not help, please file a bug with the exact system
> details and a debug log obtained with GST_DEBUG=6. Thanks!
>
> https://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer

Though, due instability of the wayland protocol and often inability to
test due to lack for compliant compositor, don't expect too much at
this moment from this element. At best, be prepared to contribute the
missing features.

Unlike X11 XV extension, wayland makes it really hard to playback video
since it's support is strictly limited to hardware accelerators that
can produce DMABuf. For anything else, we are suppose to fallback to
GL, which unfortunately is very complex to implement. Wayland protocol
is really missing something to make developer life easier.

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


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

Re: Gstreamer not playing videos in weston/wayland

sudipj
From your comments it is not clear if Weston is running. How do you ensure ?

Can you once again paste the logs with this pipeline gst-launch-1.0 videotestsrc ! videoconvert ! waylandsink --gst-debug=*sink*:5

I am using 1.4,5 version of waylandsink and it works fine. I guess you are using 1.4.1, but that should be fine too.

Sudip

On 27 September 2016 at 14:22, Abin P [via GStreamer-devel] <[hidden email]> wrote:

Thanks nicolas..
Can you please suggest me any compositor to make video play in weston.i already made different combinations of pipeline. But all getting same result. Also i debugged with GST_DEBUG =6. It results lots of errors and at the final i saw error like "gst_denit:deinitialized gstreamer". Is there any way to integrate gstreamer player in weston/wayland.

Regards Abin


On Sep 26, 2016 6:56 PM, "Nicolas Dufresne" <[hidden email]> wrote:
Le lundi 26 septembre 2016 à 09:16 +0300, Sebastian Dröge a écrit :
> You probably want to test with GStreamer GIT master. There were many
> changes to waylandsink recently, which should make it work better and
> more reliable.
>
> If that still does not help, please file a bug with the exact system
> details and a debug log obtained with GST_DEBUG=6. Thanks!
>
> https://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer

Though, due instability of the wayland protocol and often inability to
test due to lack for compliant compositor, don't expect too much at
this moment from this element. At best, be prepared to contribute the
missing features.

Unlike X11 XV extension, wayland makes it really hard to playback video
since it's support is strictly limited to hardware accelerators that
can produce DMABuf. For anything else, we are suppose to fallback to
GL, which unfortunately is very complex to implement. Wayland protocol
is really missing something to make developer life easier.

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


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



If you reply to this email, your message will be added to the discussion below:
http://gstreamer-devel.966125.n4.nabble.com/Gstreamer-not-playing-videos-in-weston-wayland-tp4679768p4679809.html
To start a new topic under GStreamer-devel, email [hidden email]
To unsubscribe from GStreamer-devel, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer not playing videos in weston/wayland

Nicolas Dufresne-4
Le mardi 27 septembre 2016 à 02:11 -0700, sudipj a écrit :
> From your comments it is not clear if Weston is running. How do you
> ensure ?
>
> Can you once again paste the logs with this pipeline gst-launch-1.0
> videotestsrc ! videoconvert ! waylandsink --gst-debug=*sink*:5
>
> I am using 1.4,5 version of waylandsink and it works fine. I guess
> you are using 1.4.1, but that should be fine too.

And git master also works fine for me.

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

Re: Gstreamer not playing videos in weston/wayland

muddog
In reply to this post by Nicolas Dufresne-4
Hi Nicolas

I have same problem, but little bit different. I use the waylandsink gst-plugins-bad-1.8.1.
It's ok for the pipeline: "videotestsrc ! waylandsink" in the weston. But it's in the desktop background. When I try to write a weston client to play videotestsrc on a surface, it failed without any error (GST_DEBUG is on). No test pattern showed on the background or surface. Any suggesting? The weston client is refer to the GTK demo: tests/examples/waylandsink/main.c in the gst-plugins-bad, also this file: https://git.collabora.com/cgit/user/gkiagia/weston.git/commit/?h=gst-wayland&id=b2aa3c31cc14d4662f67ede7d6ab9468cb68d1dc

Any idea?

Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer not playing videos in weston/wayland

Nicolas Dufresne-5
Le dimanche 05 février 2017 à 22:54 -0800, muddog a écrit :

> Hi Nicolas
>
> I have same problem, but little bit different. I use the waylandsink
> gst-plugins-bad-1.8.1.
> It's ok for the pipeline: "videotestsrc ! waylandsink" in the weston.
> But
> it's in the desktop background. When I try to write a weston client
> to play
> videotestsrc on a surface, it failed without any error (GST_DEBUG is
> on). No
> test pattern showed on the background or surface. Any suggesting? The
> weston
> client is refer to the GTK demo: tests/examples/waylandsink/main.c in
> the
> gst-plugins-bad, also this file:
> https://git.collabora.com/cgit/user/gkiagia/weston.git/commit/?h=gst-
> wayland&id=b2aa3c31cc14d4662f67ede7d6ab9468cb68d1dc
Try with newer version of GStreamer and an upstream example.

https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/tests/examp
les/waylandsink

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

signature.asc (188 bytes) Download Attachment