gstreamer vaapi and multiple video cards

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

gstreamer vaapi and multiple video cards

Alexsandrov Stanislav
Hi.

I'm trying to use two video cards for decoding h264: intel gpu and
nvidia with proprietary driver + vdpau-vaapi. I have tried to launch two
X servers with different displays, one for intel and second one for
nvidia. So if i set environment variable DISPLAY everything works like a
charm and at same time.

#intel
DISPLAY=:1 gst-launch .... ! vaapidecode !  vaapih264enc ! ....
#nvidia
DISPLAY=:2 gst-launch .... ! vaapidecode !  nvh264enc ! ....

But i'm planning to use gstreamer-vaapi with multiple gpu inside single
application with appsink/appsrc. So how to tell vaapidecode (and other
vaapi elements) which video card(or display) to use without environment
variables?

I've looked at vaapisink element: it has "display-name" property. If i
set this property then vaapidecode will reuse context created by
vaapisink and will use same video card, but this property is specific to
vaapisink only... so maybe there is some similar way to tell other vaapi
elements which video card to use?
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: gstreamer vaapi and multiple video cards

sreerenj
HI,

On Mon, Aug 15, 2016 at 9:37 PM, Alexsandrov Stanislav <[hidden email]> wrote:
Hi.

I'm trying to use two video cards for decoding h264: intel gpu and
nvidia with proprietary driver + vdpau-vaapi. I have tried to launch two
X servers with different displays, one for intel and second one for
nvidia. So if i set environment variable DISPLAY everything works like a
charm and at same time.

#intel
DISPLAY=:1 gst-launch .... ! vaapidecode !  vaapih264enc ! ....
#nvidia
DISPLAY=:2 gst-launch .... ! vaapidecode !  nvh264enc ! ....

But i'm planning to use gstreamer-vaapi with multiple gpu inside single
application with appsink/appsrc. So how to tell vaapidecode (and other
vaapi elements) which video card(or display) to use without environment
variables?

I've looked at vaapisink element: it has "display-name" property. If i
set this property then vaapidecode will reuse context created by
vaapisink and will use same video card, but this property is specific to
vaapisink only... so maybe there is some similar way to tell other vaapi
elements which video card to use?

Unfortunately we are missing this feature, please see this:

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



--
Regards,

Sreerenj Balachandran
Intel Open Source Technology Center

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