Gstreamer 1.16 NVDEC compile, CUDA path

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

Gstreamer 1.16 NVDEC compile, CUDA path

RiccardoCagnasso
How can you compile gstreamer 1.16 with a custom CUDA path to enable
NVDEC/NVENC?

It seems that even the mantainers of archlinux cannot figure out this.
https://bbs.archlinux.org/viewtopic.php?id=246154

https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/gst-plugins-bad&id=b62f9b905804932cd0a1115a289abc6b20a71918



--
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: Gstreamer 1.16 NVDEC compile, CUDA path

RiccardoCagnasso
One way might be to create the pkg-config files for cuda and cudart. I tried
and with the correct files, the compiler detects cuda and cudart but I don't
know how to write pkg-config files so that cuda libraries are actually
included.

Also, this might not be ideal for a distribution mantainer.



--
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: Gstreamer 1.16 NVDEC compile, CUDA path

Nirbheek Chauhan
In reply to this post by RiccardoCagnasso
On Sat, May 4, 2019 at 5:10 PM RiccardoCagnasso <[hidden email]> wrote:
>
> How can you compile gstreamer 1.16 with a custom CUDA path to enable
> NVDEC/NVENC?
>

You have to set CUDA_PATH while building gst-plugins-bad. That should
work. We use that in Cerbero and it works fine:
https://gitlab.freedesktop.org/gstreamer/cerbero/#nvidia-hardware-codecs
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer 1.16 NVDEC compile, CUDA path

Matthew Waters
In reply to this post by RiccardoCagnasso
ubuntu ships with the extra .pc files for cuda/cudart/etc however I have
not seen them available anywhere else.

Cheers
-Matt

On 4/5/19 9:55 pm, RiccardoCagnasso wrote:
> One way might be to create the pkg-config files for cuda and cudart. I tried
> and with the correct files, the compiler detects cuda and cudart but I don't
> know how to write pkg-config files so that cuda libraries are actually
> included.
>
> Also, this might not be ideal for a distribution mantainer.


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

signature.asc (499 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer 1.16 NVDEC compile, CUDA path

RiccardoCagnasso
In reply to this post by Nirbheek Chauhan
export CUDA_PATH=/opt/cuda definitely doesn't work.

This makes sense because the only occurrence of CUDA_PATH in the whole
repository is





--
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: Gstreamer 1.16 NVDEC compile, CUDA path

Nirbheek Chauhan
On Mon, May 6, 2019 at 4:25 PM RiccardoCagnasso <[hidden email]> wrote:
>
> export CUDA_PATH=/opt/cuda definitely doesn't work.
>
> This makes sense because the only occurrence of CUDA_PATH in the whole
> repository is

If that doesn't work, please file a bug.

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

Re: Gstreamer 1.16 NVDEC compile, CUDA path

RiccardoCagnasso
In reply to this post by Matthew Waters
> ubuntu ships with the extra .pc files for cuda/cudart/etc however I have
> not seen them available anywhere else.

I respectfully disagree
https://packages.ubuntu.com/eoan/amd64/nvidia-cuda-dev/filelist





--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel