xv port not available

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

xv port not available

Tatiana Sula
Hello, 
I was wondering if I installed all the gstreamer plugins I need and I found this site:


There is a particular command that checks if video output gets displayed. 
With ximagesink I get the output  I expect while xvimagesink displays this message :
gst-launch-1.0 videotestsrc ! videoconvert ! xvimagesink
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0: 
Could not initialise Xv output
Additional debug info:
xvimagesink.c(1760): gst_xv_image_sink_open (): 
/GstPipeline:pipeline0/GstXvImageSink:xvimagesink0:
No Xv Port available
Setting pipeline to NULL ...
Freeing pipeline ...

I'm using Ubuntu 16.04 inside a virtual machine. How should I solve this problem?

Thank you

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

Re: xv port not available

Vivia Nikolaidou
Hi,

Do you have Xorg running in your virtual machine or is it console
only? If it's console only, it will not work. Try running the "xvinfo"
command to make sure that your X / drivers are installed correctly.

Question, what do you need to implement? If you don't need to display
video on the screen and just need to write into a file or stream it
somewhere, it might not be worth installing X just for this test. If
you want to check whether video can be displayed but don't want to
have X running, you can try with aasink or cacasink - they'll use
ASCII art on your console.

Best regards,

Vivia

On 25 August 2017 at 16:52, Tatiana Sula <[hidden email]> wrote:

> Hello,
> I was wondering if I installed all the gstreamer plugins I need and I found
> this site:
>
> https://gstreamer.freedesktop.org/documentation/frequently-asked-questions/using.html
>
> There is a particular command that checks if video output gets displayed.
> With ximagesink I get the output  I expect while xvimagesink displays this
> message :
>
> gst-launch-1.0 videotestsrc ! videoconvert ! xvimagesink
> Setting pipeline to PAUSED ...
> ERROR: Pipeline doesn't want to pause.
> ERROR: from element /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0:
> Could not initialise Xv output
> Additional debug info:
> xvimagesink.c(1760): gst_xv_image_sink_open ():
> /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0:
> No Xv Port available
> Setting pipeline to NULL ...
> Freeing pipeline ...
>
>
> I'm using Ubuntu 16.04 inside a virtual machine. How should I solve this
> problem?
>
> Thank you
>
> _______________________________________________
> 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: xv port not available

Tatiana Sula
In reply to this post by Tatiana Sula
Hello Vivia, 
Thank you for replying.

>Do you have Xorg running in your virtual machine or is it console only?

I don't think I have them installed, unless they were installed automatically.

>Try running the "xvinfo"command to make sure that your X / drivers are installed correctly.

This is the output.

X-Video Extension version 2.2
screen #0
no adaptors present

I guess it's not installed properly.

>Question, what do you need to implement?

Actually, I'm working on a media player project . I need to display video on screen. I was checking if gstreamer plugins were installed correctly because I got an error in my project. 

> If you want to check whether video can be displayed but don't want to
>have X running, you can try with aasink or cacasink - they'll use
>ASCII art on your console.

I can't do that ( I think ). Gstreamer is a backend for the library I'm using for my project. I looked through the source files and I saw that for video output it checks for: gconfvideosink,  autovideosink, xvimagesink and ximagesink in that order. I would need to edit the source files.

What would you suggest to install? Could you provide me a link ? I know I'm asking for a lot but I don't want to break something without knowing.

Thank you !

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

Re: xv port not available

Vivia Nikolaidou
Hi Tatiana,

Refer to the Ubuntu documentation about how to install the default
desktop environment (do they still use Unity nowadays? I don't know
what the package name should be in any case?). Start the desktop
environment, log in graphically, open a console in there, and then it
should work out of the box.

I *think* that the package you want to install is simply called
ubuntu-desktop , but I might be wrong.

Best regards,

Vivia

On 30 August 2017 at 13:05, Tatiana Sula <[hidden email]> wrote:

> Hello Vivia,
> Thank you for replying.
>
>>Do you have Xorg running in your virtual machine or is it console only?
>
> I don't think I have them installed, unless they were installed
> automatically.
>
>>Try running the "xvinfo"command to make sure that your X / drivers are
>> installed correctly.
>
> This is the output.
>
> X-Video Extension version 2.2
> screen #0
> no adaptors present
>
> I guess it's not installed properly.
>
>>Question, what do you need to implement?
>
> Actually, I'm working on a media player project . I need to display video on
> screen. I was checking if gstreamer plugins were installed correctly because
> I got an error in my project.
>
>> If you want to check whether video can be displayed but don't want to
>>have X running, you can try with aasink or cacasink - they'll use
>>ASCII art on your console.
>
> I can't do that ( I think ). Gstreamer is a backend for the library I'm
> using for my project. I looked through the source files and I saw that for
> video output it checks for: gconfvideosink,  autovideosink, xvimagesink and
> ximagesink in that order. I would need to edit the source files.
>
> What would you suggest to install? Could you provide me a link ? I know I'm
> asking for a lot but I don't want to break something without knowing.
>
> Thank you !
>
> _______________________________________________
> 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