[Bug 781537] NVDEC - Nvidia Decoder plugin

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu May 25 09:38:41 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=781537

--- Comment #27 from Sebastian Dröge (slomo) <slomo at coaxion.net> ---
(In reply to Snir from comment #26)

> -Sometimes it shows only the first frame and freezes, so i have to start it
> again (i'm using gst-launch-1.0 filesrc location=/tmp/file.h264 ! nvh264dec
> ! glimagesink (or ! videoconvert ! xvimagesink))

You should use h264parse after the filesrc

> -I tried to play two movies one had 1365*1024 resolution and the other one
> 2560*1450, both were encoded same way using Nvidia encoder, but the first
> one gives:
> gstnvh264dec.c:763:gst_nvh264dec_send_decoded_frame:<nvh264dec0> Cuda buffer
> size: 2359296, not equal gstreamer buffer size: 2101248

This needs some changes: either use the GstVideoMeta to configure the correct
plane offsets and strides, or copy internally to a newly allocated GStreamer
buffer.

> -And one thing that i had to change is 
> --- a/sys/nvdec/gstnvh264plugin.c
> +++ b/sys/nvdec/gstnvh264plugin.c
> @@ -35,7 +35,7 @@ plugin_init (GstPlugin * plugin)
>  
>  GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
>      GST_VERSION_MINOR,
> -    nvh264dec,
> +    nvdec,
>      "Nvidia cuda decoder plugin",
> otherwise the .so file is blacklisted

That's newly required since 1.13.0 and correct.

> (btw I'm building on fedora, the cuda pkgs were called differently so i had
> to change this too:
> -    PKG_CHECK_MODULES([CUDA], [cuda-8.0 cudart-8.0],, [
> +    PKG_CHECK_MODULES([CUDA], [cuda cudart],, [
> )

Maybe we should check for all the different versions that are supported here
and use whatever is available?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list