Playbin works but autovideosink fails

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

Playbin works but autovideosink fails

longkas
Hello,

Using playbin and autovideosink with gst-launch cli both works well, but
when I test it  to run my program,
the playbin works ok, but autovideosink  got error:

Debugging info: gstkmssink.c(1530): gst_kms_sink_show_frame ():
/GstPipeline:mix-player/GstAutoVideoSink:autovideosink0/GstKMSSink:autovideosink0-actual-sink-kms:Error:
GStreamer encountered a general resource error.
drmModeSetPlane failed: Permission denied (-13)


If I switch to xvimagesink, got error as well:
Debugging info: xvimagesink.c(1773): gst_xv_image_sink_open ():
/GstPipeline:mix-player/GstXvImageSink:xvimagesink0:
Could not open display (null)
Error: Could not initialise Xv output

Test is done on Fedora on my vmware virtual machine, btw.



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

Re: Playbin works but autovideosink fails

Nicolas Dufresne-5


Le sam. 23 mars 2019 07 h 11, longkas <[hidden email]> a écrit :
Hello,

Using playbin and autovideosink with gst-launch cli both works well, but
when I test it  to run my program,
the playbin works ok, but autovideosink  got error:

Debugging info: gstkmssink.c(1530): gst_kms_sink_show_frame ():
/GstPipeline:mix-player/GstAutoVideoSink:autovideosink0/GstKMSSink:autovideosink0-actual-sink-kms:Error:
GStreamer encountered a general resource error.
drmModeSetPlane failed: Permission denied (-13)


If I switch to xvimagesink, got error as well:
Debugging info: xvimagesink.c(1773): gst_xv_image_sink_open ():
/GstPipeline:mix-player/GstXvImageSink:xvimagesink0:
Could not open display (null)
Error: Could not initialise Xv output

Test is done on Fedora on my vmware virtual machine, btw.

The first is because you have a graphical environment running, kmssink is really low level and would need exclusive HW access.

The second is the lack of HW acceleration in your virtual machine. XV being an Xorg HW acceleration layer. xvimagesink should work though. Would be nice to run gst-inspect-1.0 over each of them and collect their rank. autovideosink works with a mix of rank and minimal error checking. Maybe we a due to some tweaks again in this regard.




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
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: Playbin works but autovideosink fails

Nicolas Dufresne-5


Le sam. 23 mars 2019 09 h 17, Nicolas Dufresne <[hidden email]> a écrit :


Le sam. 23 mars 2019 07 h 11, longkas <[hidden email]> a écrit :
Hello,

Using playbin and autovideosink with gst-launch cli both works well, but
when I test it  to run my program,
the playbin works ok, but autovideosink  got error:

Debugging info: gstkmssink.c(1530): gst_kms_sink_show_frame ():
/GstPipeline:mix-player/GstAutoVideoSink:autovideosink0/GstKMSSink:autovideosink0-actual-sink-kms:Error:
GStreamer encountered a general resource error.
drmModeSetPlane failed: Permission denied (-13)


If I switch to xvimagesink, got error as well:
Debugging info: xvimagesink.c(1773): gst_xv_image_sink_open ():
/GstPipeline:mix-player/GstXvImageSink:xvimagesink0:
Could not open display (null)
Error: Could not initialise Xv output

Test is done on Fedora on my vmware virtual machine, btw.

The first is because you have a graphical environment running, kmssink is really low level and would need exclusive HW access.

The second is the lack of HW acceleration in your virtual machine. XV being an Xorg HW acceleration layer. xvimagesink should work

I meant to write that ximagesink should work.

though. Would be nice to run gst-inspect-1.0 over each of them and collect their rank. autovideosink works with a mix of rank and minimal error checking. Maybe we a due to some tweaks again in this regard.




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
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