Gstreamer nvidia

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

Gstreamer nvidia

Gofrane
Hello,
I have GeForce GT 610 nvidia  GPU and I need to encode video with gstreamer-vaapi
but vaapiencde did not install and I got only these plug-in

gst-inspect-1.0 | grep vaapi vaapi:
vaapidecode: VA-API decoder
vaapi: vaapipostproc: VA-API video postprocessing
vaapi: vaapisink: VA-API sink


is there any other plug-in that supports nvidia GPU hardware encoding??
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer nvidia

Jek_point
vaapi a very fast transcoding video on Intel processors. First if you are using UBUNTU need to see if your processor supports inmtrktsii needed for encoding / decoding. This can be done vainfo command. But it does not work with intergirovanno video card, so you can uviditet something like
 
videowall @ videowall-All-Series: ~ $ vainfo
libva info: VA-API version 0.38.0
libva info: va_getDriverName () returns -1
libva error: va_getDriverName () failed with unknown libva error, driver_name = (null)
vaInitialize failed with error code -1 (unknown libva error), exit

this is due to the fact that the current video driver is not Intel. Try as

videowall @ videowall-All-Series: ~ $ DISPLAY =: 0.0 vainfo
libva info: VA-API version 0.38.0
libva info: va_getDriverName () returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_0_32
libva info: va_openDriver () returns 0
vainfo: VA-API version: 0.38 (libva 1.6.1)
vainfo: Driver version: Splitted-Desktop Systems VDPAU backend for VA-API - 0.7.3
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple: VAEntrypointVLD
      VAProfileMPEG2Main: VAEntrypointVLD
      VAProfileMPEG4Simple: VAEntrypointVLD
      VAProfileMPEG4AdvancedSimple: VAEntrypointVLD
      VAProfileH264Main: VAEntrypointVLD
      VAProfileH264High: VAEntrypointVLD
      VAProfileVC1Simple: VAEntrypointVLD
      VAProfileVC1Main: VAEntrypointVLD
      VAProfileVC1Advanced: VAEntrypointVLD
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer nvidia

Gofrane
thank you

I got this
gti@gti-122:~$  DISPLAY=:0.0 vainfo
libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_0_32
[VS] Software VDPAU backend library initialized
libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_0_32


is there any other Gstreamer library can support nvidia GPU?
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer nvidia

Nicolas Dufresne-4
Le samedi 07 mai 2016 à 03:35 -0700, Gofrane a écrit :

> thank you
>
> I got this
> *gti@gti-122:~$  DISPLAY=:0.0 vainfo 
> libva info: VA-API version 0.35.0
> libva info: va_getDriverName() returns 0
> libva info: Trying to open /usr/lib/x86_64-linux-
> gnu/dri/nvidia_drv_video.so
> libva info: Found init function __vaDriverInit_0_32
> [VS] Software VDPAU backend library initialized
> libva info: VA-API version 0.35.0
> libva info: va_getDriverName() returns 0
> libva info: Trying to open /usr/lib/x86_64-linux-
> gnu/dri/nvidia_drv_video.so
> libva info: Found init function __vaDriverInit_0_32
> *
>
> is there any other Gstreamer library can support nvidia GPU?
If you have a VAAPI backend for NVIDIA (like I believe is what you are
trying to show use) you can use gstreamer-vaapi to gain acceleration.
Direct VDPAU support is still a work in progress, and not built by
default.

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

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

Re: Gstreamer nvidia

Tim Müller
In reply to this post by Gofrane
On Fri, 2016-05-06 at 08:26 -0700, Gofrane wrote:

Hi,

> I have GeForce GT 610 nvidia  GPU and I need to encode video with
> gstreamer-vaapi  but ...
> ...
>
> is there any other plug-in that supports nvidia GPU hardware
> encoding??

Recent versions of GStreamer also ship with a plugin for Nvidia's NVENC
API, but you will need to get the Nvidia video codec SDK yourself and
then compile it against the SDK. I think your card might support nvenc.

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: Gstreamer nvidia

Victor Jaquez
In reply to this post by Jek_point
On 05/06/16 at 09:53am, Jek_point wrote:

> vaapi a very fast transcoding video on Intel processors. First if you are
> using UBUNTU need to see if your processor supports inmtrktsii needed for
> encoding / decoding. This can be done vainfo command. But it does not work
> with intergirovanno video card, so you can uviditet something like
>  
> videowall @ videowall-All-Series: ~ $ vainfo
> libva info: VA-API version 0.38.0
> libva info: va_getDriverName () returns -1
> libva error: va_getDriverName () failed with unknown libva error,
> driver_name = (null)
> vaInitialize failed with error code -1 (unknown libva error), exit
>
> this is due to the fact that the current video driver is not Intel. Try as
>
> videowall @ videowall-All-Series: ~ $ DISPLAY =: 0.0 vainfo
> libva info: VA-API version 0.38.0
> libva info: va_getDriverName () returns 0
> libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so

Sadly, this vaapi backend is kind of abandon-ware nowadays. Many thinks are
broken right now, such as the GL texture upload and so.

Another option is to use a very recent version of Mesa (or a development one)
where the bridge vdpau-mesa-vaapi is a work in progress.

But, yes, as Tim mentioned, for encoding there's already NVENC if your card
supports it.

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

Re: Gstreamer nvidia

Nicolas Dufresne-4
In reply to this post by Gofrane
Le vendredi 06 mai 2016 à 08:26 -0700, Gofrane a écrit :

> Hello,
> I have GeForce GT 610 nvidia  GPU and I need to encode video with
> gstreamer-vaapi 
> but vaapiencde did not install and I got only these plug-in
>
> *gst-inspect-1.0 | grep vaapi vaapi:
> vaapidecode: VA-API decoder 
> vaapi: vaapipostproc: VA-API video postprocessing 
> vaapi: vaapisink: VA-API sink*
>
> is there any other plug-in that supports nvidia GPU hardware
> encoding??
>

Encoding is only on recent NVidia is done through NVENC, for which we
have plugins in gst-plugins-bad.

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

Re: Gstreamer nvidia

Gofrane
thank you everyone
I installed nvenc but when I tried it with ffmpeg

 ffmpeg -y -i input.mp4  -vcodec  nvenc -b:v 5M  -acodec copy OUTPUT.mp4

 I got this error
ffmpeg version N-79887-gca5ec2b Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.1)
  configuration: --enable-nonfree --enable-nvenc --enable-nvresize --extra-cflags=-I../cudautils --extra-ldflags=-L../cudautils --enable-gpl --enable-libx264
  libavutil      55. 24.100 / 55. 24.100
  libavcodec     57. 40.100 / 57. 40.100
  libavformat    57. 36.100 / 57. 36.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 45.100 /  6. 45.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
[h264 @ 0x26705a0] Increasing reorder buffer to 1
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'outputfile.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 2008-05-27 18:32:32
    encoder         : Lavf54.20.4
  Duration: 00:09:56.48, start: 0.000000, bitrate: 3343 kb/s
    Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 854x480, 2899 kb/s, 24 fps, 24 tbr, 2400 tbn (default)
    Metadata:
      creation_time   : 2008-05-27 18:32:32
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 437 kb/s (default)
    Metadata:
      creation_time   : 2008-05-27 18:32:32
      handler_name    : SoundHandler
[nvenc @ 0x2721540] No NVENC capable devices found
Output #0, mp4, to 'OUTPUT.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf54.20.4
    Stream #0:0(eng): Unknown: none (default)
    Metadata:
      creation_time   : 2008-05-27 18:32:32
      handler_name    : VideoHandler
      encoder         : Lavc57.40.100 nvenc
    Stream #0:1(eng): Unknown: none (default)
    Metadata:
      creation_time   : 2008-05-27 18:32:32
      handler_name    : SoundHandler
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (nvenc))
  Stream #0:1 -> #0:1 (copy)
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer nvidia

Nicolas Dufresne-4
This mailing list is about GStreamer, while this message only relates
to FFMPEG software. Please use the appropriate mailing list.

cheers,
Nicolas

Le mercredi 11 mai 2016 à 02:04 -0700, Gofrane a écrit :

> thank you everyone
> I installed nvenc but when I tried it with ffmpeg 
>
>  *ffmpeg -y -i input.mp4  -vcodec  nvenc -b:v 5M  -acodec copy
> OUTPUT.mp4*
>
>  I got this error
> *ffmpeg version N-79887-gca5ec2b Copyright (c) 2000-2016 the FFmpeg
> developers
>   built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.1)
>   configuration: --enable-nonfree --enable-nvenc --enable-nvresize
> --extra-cflags=-I../cudautils --extra-ldflags=-L../cudautils --
> enable-gpl
> --enable-libx264
>   libavutil      55. 24.100 / 55. 24.100
>   libavcodec     57. 40.100 / 57. 40.100
>   libavformat    57. 36.100 / 57. 36.100
>   libavdevice    57.  0.101 / 57.  0.101
>   libavfilter     6. 45.100 /  6. 45.100
>   libswscale      4.  1.100 /  4.  1.100
>   libswresample   2.  0.101 /  2.  0.101
>   libpostproc    54.  0.100 / 54.  0.100
> [h264 @ 0x26705a0] Increasing reorder buffer to 1
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'outputfile.mp4':
>   Metadata:
>     major_brand     : isom
>     minor_version   : 512
>     compatible_brands: isomiso2avc1mp41
>     creation_time   : 2008-05-27 18:32:32
>     encoder         : Lavf54.20.4
>   Duration: 00:09:56.48, start: 0.000000, bitrate: 3343 kb/s
>     Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661),
> yuv420p(tv,
> bt709), 854x480, 2899 kb/s, 24 fps, 24 tbr, 2400 tbn (default)
>     Metadata:
>       creation_time   : 2008-05-27 18:32:32
>       handler_name    : VideoHandler
>     Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz,
> 5.1,
> fltp, 437 kb/s (default)
>     Metadata:
>       creation_time   : 2008-05-27 18:32:32
>       handler_name    : SoundHandler
> [nvenc @ 0x2721540] No NVENC capable devices found
> Output #0, mp4, to 'OUTPUT.mp4':
>   Metadata:
>     major_brand     : isom
>     minor_version   : 512
>     compatible_brands: isomiso2avc1mp41
>     encoder         : Lavf54.20.4
>     Stream #0:0(eng): Unknown: none (default)
>     Metadata:
>       creation_time   : 2008-05-27 18:32:32
>       handler_name    : VideoHandler
>       encoder         : Lavc57.40.100 nvenc
>     Stream #0:1(eng): Unknown: none (default)
>     Metadata:
>       creation_time   : 2008-05-27 18:32:32
>       handler_name    : SoundHandler
> Stream mapping:
>   Stream #0:0 -> #0:0 (h264 (native) -> h264 (nvenc))
>   Stream #0:1 -> #0:1 (copy)
> Error while opening encoder for output stream #0:0 - maybe incorrect
> parameters such as bit_rate, rate, width or height*
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble
> .com/Gstreamer-nvidia-tp4677386p4677470.html
> Sent from the GStreamer-devel mailing list archive at Nabble.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