NVidia components

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

NVidia components

Brian Dilley
I'm using GStreamer on a Linux EC2 instance with a GPU on Amazon AWS.  I've verified that a /dev/nvidia0 device exists (it's the p2.xlarge instance) and is operational.  I've followed the instructions in the NVidia PDF linked below for setting up the hardware accelerated stuff for GStreamer - but when i use gst-inspect I do not see any of the OMX plugins, nor any of the other plugins that support hardware accelerated "stuff" with GStreamer.  Might there be something I'm missing?  As I write this I see that the PDF says that it's for the nvidia Jetson hardware - are there any ways to get it working on an amazon instance?

Here's the PDF:

Thanks in advance!


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

Re: NVidia components

Tim Müller
On Wed, 2020-01-08 at 19:55 -0800, Brian Dilley wrote:

Hi Brian,

> I'm using GStreamer on a Linux EC2 instance with a GPU on Amazon
> AWS.  I've verified that a /dev/nvidia0 device exists (it's the
> p2.xlarge instance) and is operational.  I've followed the
> instructions in the NVidia PDF linked below for setting up the
> hardware accelerated stuff for GStreamer - but when i use gst-inspect
> I do not see any of the OMX plugins, nor any of the other plugins
> that support hardware accelerated "stuff" with GStreamer.  Might
> there be something I'm missing?  As I write this I see that the PDF
> says that it's for the nvidia Jetson hardware - are there any ways to
> get it working on an amazon instance?
>
> Here's the PDF:
> https://developer.download.nvidia.com/embedded/L4T/r31_Release_v1.0/Docs/Accelerated_GStreamer_User_Guide.pdf
>
> Thanks in advance!

As you noticed, the PDF is for NVIDIA's embedded devices, things work
different with desktop hardware.

To make things work there you need to grab the NVIDIA Codec SDK

 https://developer.nvidia.com/nvidia-video-codec-sdk

and then build the nvcodec plugin in gst-plugins-bad.

If it's an option for you I would try and build GStreamer master first
(with gst-build), since the NVIDIA stuff is a bit easier to build
there, and also more featureful.

In 1.16 there are separate nvdec/nvenc plugins instead and you will
have to pass the SDK locations etc to the build system (iirc).

Cheers
 Tim

--
Tim Müller, Centricular Ltd - http://www.centricular.com

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

Re: NVidia components

Brian Dilley-2
Should I build the entirety of gstreamer from scratch?  Should I not install the gstreamer packages that come with ubuntu and instead build them with gst-build?  I noticed ubuntu 18.04 (LTS) has gstreamer 1.14 while ubuntu 19.x (beta) has 1.16... should I just build 1.16 from GStreamer master (I assume that GStreamer master is 1.16) on Ubuntu 18.04 ?

Sorry for all of the questions :)

Thanks for all of the answers :)


On Thu, Jan 9, 2020 at 2:21 AM Tim Müller <[hidden email]> wrote:
On Wed, 2020-01-08 at 19:55 -0800, Brian Dilley wrote:

Hi Brian,

> I'm using GStreamer on a Linux EC2 instance with a GPU on Amazon
> AWS.  I've verified that a /dev/nvidia0 device exists (it's the
> p2.xlarge instance) and is operational.  I've followed the
> instructions in the NVidia PDF linked below for setting up the
> hardware accelerated stuff for GStreamer - but when i use gst-inspect
> I do not see any of the OMX plugins, nor any of the other plugins
> that support hardware accelerated "stuff" with GStreamer.  Might
> there be something I'm missing?  As I write this I see that the PDF
> says that it's for the nvidia Jetson hardware - are there any ways to
> get it working on an amazon instance?
>
> Here's the PDF:
> https://developer.download.nvidia.com/embedded/L4T/r31_Release_v1.0/Docs/Accelerated_GStreamer_User_Guide.pdf
>
> Thanks in advance!

As you noticed, the PDF is for NVIDIA's embedded devices, things work
different with desktop hardware.

To make things work there you need to grab the NVIDIA Codec SDK

 https://developer.nvidia.com/nvidia-video-codec-sdk

and then build the nvcodec plugin in gst-plugins-bad.

If it's an option for you I would try and build GStreamer master first
(with gst-build), since the NVIDIA stuff is a bit easier to build
there, and also more featureful.

In 1.16 there are separate nvdec/nvenc plugins instead and you will
have to pass the SDK locations etc to the build system (iirc).

Cheers
 Tim

--
Tim Müller, Centricular Ltd - http://www.centricular.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: NVidia components

Tim Müller
On Thu, 2020-01-09 at 02:27 -0800, Brian Dilley wrote:

Hi Brian,

Should I build the entirety of gstreamer from scratch?  Should I not install the gstreamer packages that come with ubuntu and instead build them with gst-build?  I noticed ubuntu 18.04 (LTS) has gstreamer 1.14 while ubuntu 19.x (beta) has 1.16... should I just build 1.16 from GStreamer master (I assume that GStreamer master is 1.16) on Ubuntu 18.04 ?

master is master branch (1.17.x, to be 1.18 one day), 1.16 is 1.16 branch :)

I don't think the ubuntu packages include the nvidia plugin, so you will likely have to build them yourself in any case.

You can try to just build the 1.16 plugin of course and use package versions otherwise, but my recommendation would still be to not install the gstreamer packages at all and go for gst-build git master branch instead (perhaps with a sudo apt build-dep gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-plugins-bad gstreamer1.0-libav beforehand).

Cheers
Tim

--
Tim Müller, Centricular Ltd - http://www.centricular.com

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

Re: NVidia components

Brian Dilley-2
thanks!

On Thu, Jan 9, 2020 at 4:34 AM Tim Müller <[hidden email]> wrote:
On Thu, 2020-01-09 at 02:27 -0800, Brian Dilley wrote:

Hi Brian,

Should I build the entirety of gstreamer from scratch?  Should I not install the gstreamer packages that come with ubuntu and instead build them with gst-build?  I noticed ubuntu 18.04 (LTS) has gstreamer 1.14 while ubuntu 19.x (beta) has 1.16... should I just build 1.16 from GStreamer master (I assume that GStreamer master is 1.16) on Ubuntu 18.04 ?

master is master branch (1.17.x, to be 1.18 one day), 1.16 is 1.16 branch :)

I don't think the ubuntu packages include the nvidia plugin, so you will likely have to build them yourself in any case.

You can try to just build the 1.16 plugin of course and use package versions otherwise, but my recommendation would still be to not install the gstreamer packages at all and go for gst-build git master branch instead (perhaps with a sudo apt build-dep gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-plugins-bad gstreamer1.0-libav beforehand).

Cheers
Tim

--
Tim Müller, Centricular Ltd - http://www.centricular.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: NVidia components

Brian Dilley-2
In reply to this post by Tim Müller
I noticed in ubuntu 19 there were "headless" versions of the nvidia drivers, but they do not exist for 18.  I need to use the GPU headless on a server, might there be anything special that i need to do for that?

On Thu, Jan 9, 2020 at 4:34 AM Tim Müller <[hidden email]> wrote:
On Thu, 2020-01-09 at 02:27 -0800, Brian Dilley wrote:

Hi Brian,

Should I build the entirety of gstreamer from scratch?  Should I not install the gstreamer packages that come with ubuntu and instead build them with gst-build?  I noticed ubuntu 18.04 (LTS) has gstreamer 1.14 while ubuntu 19.x (beta) has 1.16... should I just build 1.16 from GStreamer master (I assume that GStreamer master is 1.16) on Ubuntu 18.04 ?

master is master branch (1.17.x, to be 1.18 one day), 1.16 is 1.16 branch :)

I don't think the ubuntu packages include the nvidia plugin, so you will likely have to build them yourself in any case.

You can try to just build the 1.16 plugin of course and use package versions otherwise, but my recommendation would still be to not install the gstreamer packages at all and go for gst-build git master branch instead (perhaps with a sudo apt build-dep gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-plugins-bad gstreamer1.0-libav beforehand).

Cheers
Tim

--
Tim Müller, Centricular Ltd - http://www.centricular.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: NVidia components

Brian Dilley-2
nevermind, i found the headless package for 18.

On Thu, Jan 9, 2020 at 12:53 PM Brian Dilley <[hidden email]> wrote:
I noticed in ubuntu 19 there were "headless" versions of the nvidia drivers, but they do not exist for 18.  I need to use the GPU headless on a server, might there be anything special that i need to do for that?

On Thu, Jan 9, 2020 at 4:34 AM Tim Müller <[hidden email]> wrote:
On Thu, 2020-01-09 at 02:27 -0800, Brian Dilley wrote:

Hi Brian,

Should I build the entirety of gstreamer from scratch?  Should I not install the gstreamer packages that come with ubuntu and instead build them with gst-build?  I noticed ubuntu 18.04 (LTS) has gstreamer 1.14 while ubuntu 19.x (beta) has 1.16... should I just build 1.16 from GStreamer master (I assume that GStreamer master is 1.16) on Ubuntu 18.04 ?

master is master branch (1.17.x, to be 1.18 one day), 1.16 is 1.16 branch :)

I don't think the ubuntu packages include the nvidia plugin, so you will likely have to build them yourself in any case.

You can try to just build the 1.16 plugin of course and use package versions otherwise, but my recommendation would still be to not install the gstreamer packages at all and go for gst-build git master branch instead (perhaps with a sudo apt build-dep gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-plugins-bad gstreamer1.0-libav beforehand).

Cheers
Tim

--
Tim Müller, Centricular Ltd - http://www.centricular.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