! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Video output fails with missing xv driver
Status:
RESOLVED: FIXED
Severity:
enhancement

Comments

Description Morten Bo Johansen 2011-10-28 16:00:23 CEST
I was using the 0.2.0.6-1+b1 version from Debian. When trying to watch a video file, I was presented with the error message: "Could not initialise Xv output".
This is because I do not have a driver for it. xvinfo reports: "no adaptors present". Googling a little seems to suggest that I need the proprietary driver for my Nvidia card instead of the nouveau driver that I am currently using. That is not a feasible option for me. Instead I fetched the sources from git and changed parole to use autovideosink as shown in this diff, and now it works. May I suggest that parole be changed so that autovideosink is provided as a fallback for those who do not have the xv driver?

Or is there a better option?

Thanks,

Morten

--- gst/parole-gst.c.org        2011-10-28 14:44:37.000000000 +0200
+++ gst/parole-gst.c    2011-10-28 14:45:19.000000000 +0200
@@ -1720,7 +1720,7 @@
     
     if (enable_xv)
     {
-       gst->priv->video_sink = gst_element_factory_make ("xvimagesink", "video");
+       gst->priv->video_sink = gst_element_factory_make ("autovideosink", "video");
        gst->priv->xvimage_sink = TRUE;
     }
     
@@ -1728,7 +1728,7 @@
     {
        gst->priv->xvimage_sink = FALSE;
        g_debug ("%s trying to load ximagesink", enable_xv ? "xvimagesink not found " : "xv disabled "); 
-       gst->priv->video_sink = gst_element_factory_make ("ximagesink", "video");
+       gst->priv->video_sink = gst_element_factory_make ("autovideosink", "video");
        
        if ( G_UNLIKELY (gst->priv->video_sink == NULL) )
Comment 1 Morten Bo Johansen 2011-10-29 16:12:40 CEST
Well, I suppose that autovideosink just uses ximagesink, although the source suggests that ximagesink was already the fallback. However it did not work.
Another annoying thing is that I cannot seem to have the video output window embedded in the application so that I can use the controls. Video output is spawned in a new window.
Comment 2 Simon Steinbeiss editbugs 2012-07-23 03:11:16 CEST
Could you please try this again with git master? We're now using playbin2 in gstreamer, not sure, but hopefully it fixes your issue.
Comment 3 Morten Bo Johansen 2012-08-12 19:51:02 CEST
Hi,

I am not using Nvidia anymore. I have shifted to ATI/Radeon. So if nobody else steps in, I guess you can close this bug. Glad to see that development has resumed. Look forward to trying the new versions.

Best,

Morten
Comment 4 Sean Davis editbugs 2012-08-14 21:39:35 CEST
I just tested on Fedora 17 using the nouveau driver and it works.  Marking as fixed.

Bug #8078

Reported by:
Morten Bo Johansen
Reported on: 2011-10-28
Last modified on: 2012-08-14

People

Assignee:
Simon Steinbeiss
CC List:
2 users

Version

Version:
0.2.0.6

Attachments

Additional information