Discussion:
plugin nvenc problem while building gstreamer 1.14.4 from source
black
2018-11-20 06:20:35 UTC
Permalink
Hi, I build gstreamer 1.14.4 plugin bad from source like below:


NVENCODE_CFLAGS="-I/usr/local/cuda/include/" NVENCODE_LIBS="-L/usr/local/cuda/lib64/stubs/" \
./configure --prefix=/usr --enable-orc --enable-webrtc \
--enable-nvenc --with-cuda-prefix=/usr/local/cuda
time make -j$(nproc)
make install
The configure is like below:

configure: *** Plug-ins without external dependencies that will be built:
accurip
adpcmdec
adpcmenc
aiff
asfmux
audiobuffersplit
audiofxbad
audiolatency
audiomixmatrix
audiovisualizers
autoconvert
bayer
camerabin2
coloreffects
compositor
debugutils
dvbsuboverlay
dvdspu
faceoverlay
festival
fieldanalysis
freeverb
frei0r
gaudieffects
gdp
geometrictransform
id3tag
inter
interlace
ivfparse
ivtc
jp2kdecimator
jpegformat
librfb
midi
mpegdemux
mpegpsmux
mpegtsdemux
mpegtsmux
mxf
netsim
onvif
pcapparse
pnm
proxy
rawparse
removesilence
sdp
segmentclip
siren
smooth
speed
stereo
subenc
timecode
videofilters
videoframe_audiolevel
videoparsers
videosignal
vmnc
y4m
yadif


configure: *** Plug-ins without external dependencies that will NOT be built:


configure: *** Plug-ins that have NOT been ported:


configure: *** Plug-ins with dependencies that will be built:
curl
dash
decklink
dtls
dvb
fbdevsink
gl
hls
ipcpipeline
kms
nvdec
nvenc
opus
rtmp
shm
smoothstreaming
srtp
vcdsrc
webrtc
webrtcdsp


configure: *** Plug-ins with dependencies that will NOT be built:
acm
androidmedia
aom
applemedia
assrender
avcsrc
bluez
bs2b
bz2
chromaprint
daala
dc1394
dfbvideosink
direct3dsink
directsoundsrc
dtsdec
faac
faad
fdkaac
flite
fluidsynth
gme
gsmenc gsmdec
iqa
kate
ladspa
lcms2
libde265
libmms
lv2
modplug
mpeg2enc
mplex
msdk
musepack
neonhttpsrc
ofa
openal
opencv
openexr
openh264
openjpeg
openmpt
openni2
opensl
resindvd
rsvg
sbc
sfdec sfenc
soundtouch
spandsp
spc
srt
teletextdec
tinyalsa
ttml
uvch264
vdpau
vo-aacenc
vo-amrwbenc
vulkan
wasapi
wayland
webp
wildmidi
winks
winscreencap
x265
zbar
after install, I run application and find some question:
***@PC:/$ gst-inspect-1.0 nvenc
Plugin Details:
Name nvenc
Description GStreamer NVENC plugin
Filename /usr/lib/gstreamer-1.0/libgstnvenc.so
Version 1.14.4
License LGPL
Source module gst-plugins-bad
Source release date 2018-10-02
Binary package GStreamer Bad Plug-ins source release
Origin URL Unknown package origin




0 features:


***@PC:/$ gst-inspect-1.0 nvh264enc
No such element or plugin 'nvh264enc'


Is there some question while I installing? Some one could help?
Rand Graham
2018-11-20 14:40:15 UTC
Permalink
Hello,

I can give you two suggestions that you will have to adapt to your specific installation.


1) IIRC, Nvidia provides documentation and instructions on how to build their plugins. Please check the Nvidia documentation.

2) On one of my systems I had to specifically set the following environment variable in order for gstreamer to find third party plugins I built from source. Assuming you have compiled the nvidia plugin and gstreamer just needs to find the plugin. Set this appropriately for your system:

export GST_PLUGIN_PATH=/usr/lib/x86_64-linux-gnu/gstreamer-1.0/


From: gstreamer-devel [mailto:gstreamer-devel-***@lists.freedesktop.org] On Behalf Of black
Sent: Tuesday, November 20, 2018 12:21 AM
To: gstreamer-***@lists.freedesktop.org
Subject: plugin nvenc problem while building gstreamer 1.14.4 from source

Hi, I build gstreamer 1.14.4 plugin bad from source like below:

NVENCODE_CFLAGS="-I/usr/local/cuda/include/" NVENCODE_LIBS="-L/usr/local/cuda/lib64/stubs/" \
./configure --prefix=/usr --enable-orc --enable-webrtc \
--enable-nvenc --with-cuda-prefix=/usr/local/cuda
time make -j$(nproc)
make install
The configure is like below:
configure: *** Plug-ins without external dependencies that will be built:
accurip
adpcmdec
adpcmenc
aiff
asfmux
audiobuffersplit
audiofxbad
audiolatency
audiomixmatrix
audiovisualizers
autoconvert
bayer
camerabin2
coloreffects
compositor
debugutils
dvbsuboverlay
dvdspu
faceoverlay
festival
fieldanalysis
freeverb
frei0r
gaudieffects
gdp
geometrictransform
id3tag
inter
interlace
ivfparse
ivtc
jp2kdecimator
jpegformat
librfb
midi
mpegdemux
mpegpsmux
mpegtsdemux
mpegtsmux
mxf
netsim
onvif
pcapparse
pnm
proxy
rawparse
removesilence
sdp
segmentclip
siren
smooth
speed
stereo
subenc
timecode
videofilters
videoframe_audiolevel
videoparsers
videosignal
vmnc
y4m
yadif

configure: *** Plug-ins without external dependencies that will NOT be built:

configure: *** Plug-ins that have NOT been ported:

configure: *** Plug-ins with dependencies that will be built:
curl
dash
decklink
dtls
dvb
fbdevsink
gl
hls
ipcpipeline
kms
nvdec
nvenc
opus
rtmp
shm
smoothstreaming
srtp
vcdsrc
webrtc
webrtcdsp

configure: *** Plug-ins with dependencies that will NOT be built:
acm
androidmedia
aom
applemedia
assrender
avcsrc
bluez
bs2b
bz2
chromaprint
daala
dc1394
dfbvideosink
direct3dsink
directsoundsrc
dtsdec
faac
faad
fdkaac
flite
fluidsynth
gme
gsmenc gsmdec
iqa
kate
ladspa
lcms2
libde265
libmms
lv2
modplug
mpeg2enc
mplex
msdk
musepack
neonhttpsrc
ofa
openal
opencv
openexr
openh264
openjpeg
openmpt
openni2
opensl
resindvd
rsvg
sbc
sfdec sfenc
soundtouch
spandsp
spc
srt
teletextdec
tinyalsa
ttml
uvch264
vdpau
vo-aacenc
vo-amrwbenc
vulkan
wasapi
wayland
webp
wildmidi
winks
winscreencap
x265
zbar
after install, I run application and find some question:
***@PC:/$ gst-inspect-1.0 nvenc
Plugin Details:
Name nvenc
Description GStreamer NVENC plugin
Filename /usr/lib/gstreamer-1.0/libgstnvenc.so
Version 1.14.4
License LGPL
Source module gst-plugins-bad
Source release date 2018-10-02
Binary package GStreamer Bad Plug-ins source release
Origin URL Unknown package origin


0 features:

***@PC:/$ gst-inspect-1.0 nvh264enc
No such element or plugin 'nvh264enc'

Is there some question while I installing? Some one could help?
black
2018-11-21 02:12:37 UTC
Permalink
I find nvidia documentation like: https://developer.nvidia.com/nvidia-video-codec-sdk


and I set
export GST_PLUGIN_PATH=/usr/lib/x86_64-linux-gnu/gstreamer-1.0/


But I got the same error.





At 2018-11-20 22:40:15, "Rand Graham" <***@zenith.com> wrote:


Hello,



I can give you two suggestions that you will have to adapt to your specific installation.



1) IIRC, Nvidia provides documentation and instructions on how to build their plugins. Please check the Nvidia documentation.

2) On one of my systems I had to specifically set the following environment variable in order for gstreamer to find third party plugins I built from source. Assuming you have compiled the nvidia plugin and gstreamer just needs to find the plugin. Set this appropriately for your system:



export GST_PLUGIN_PATH=/usr/lib/x86_64-linux-gnu/gstreamer-1.0/





From: gstreamer-devel [mailto:gstreamer-devel-***@lists.freedesktop.org] On Behalf Of black
Sent: Tuesday, November 20, 2018 12:21 AM
To:gstreamer-***@lists.freedesktop.org
Subject: plugin nvenc problem while building gstreamer 1.14.4 from source



Hi, I build gstreamer 1.14.4 plugin bad from source like below:



NVENCODE_CFLAGS="-I/usr/local/cuda/include/" NVENCODE_LIBS="-L/usr/local/cuda/lib64/stubs/" \

./configure --prefix=/usr --enable-orc --enable-webrtc \

--enable-nvenc --with-cuda-prefix=/usr/local/cuda

time make -j$(nproc)

make install

The configure is like below:

configure: *** Plug-ins without external dependencies that will be built:

accurip

adpcmdec

adpcmenc

aiff

asfmux

audiobuffersplit

audiofxbad

audiolatency

audiomixmatrix

audiovisualizers

autoconvert

bayer

camerabin2

coloreffects

compositor

debugutils

dvbsuboverlay

dvdspu

faceoverlay

festival

fieldanalysis

freeverb

frei0r

gaudieffects

gdp

geometrictransform

id3tag

inter

interlace

ivfparse

ivtc

jp2kdecimator

jpegformat

librfb

midi

mpegdemux

mpegpsmux

mpegtsdemux

mpegtsmux

mxf

netsim

onvif

pcapparse

pnm

proxy

rawparse

removesilence

sdp

segmentclip

siren

smooth

speed

stereo

subenc

timecode

videofilters

videoframe_audiolevel

videoparsers

videosignal

vmnc

y4m

yadif



configure: *** Plug-ins without external dependencies that will NOT be built:



configure: *** Plug-ins that have NOT been ported:



configure: *** Plug-ins with dependencies that will be built:

curl

dash

decklink

dtls

dvb

fbdevsink

gl

hls

ipcpipeline

kms

nvdec

nvenc

opus

rtmp

shm

smoothstreaming

srtp

vcdsrc

webrtc

webrtcdsp



configure: *** Plug-ins with dependencies that will NOT be built:

acm

androidmedia

aom

applemedia

assrender

avcsrc

bluez

bs2b

bz2

chromaprint

daala

dc1394

dfbvideosink

direct3dsink

directsoundsrc

dtsdec

faac

faad

fdkaac

flite

fluidsynth

gme

gsmenc gsmdec

iqa

kate

ladspa

lcms2

libde265

libmms

lv2

modplug

mpeg2enc

mplex

msdk

musepack

neonhttpsrc

ofa

openal

opencv

openexr

openh264

openjpeg

openmpt

openni2

opensl

resindvd

rsvg

sbc

sfdec sfenc

soundtouch

spandsp

spc

srt

teletextdec

tinyalsa

ttml

uvch264

vdpau

vo-aacenc

vo-amrwbenc

vulkan

wasapi

wayland

webp

wildmidi

winks

winscreencap

x265

zbar

after install, I run application and find some question:

***@PC:/$ gst-inspect-1.0 nvenc

Plugin Details:

Name nvenc

Description GStreamer NVENC plugin

Filename /usr/lib/gstreamer-1.0/libgstnvenc.so

Version 1.14.4

License LGPL

Source module gst-plugins-bad

Source release date 2018-10-02

Binary package GStreamer Bad Plug-ins source release

Origin URL Unknown package origin





0 features:



***@PC:/$ gst-inspect-1.0 nvh264enc

No such element or plugin 'nvh264enc'



Is there some question while I installing? Some one could help?
Michael Gruner
2018-11-21 02:34:52 UTC
Permalink
Hi

This is usually that you are missing a dependency. Can you attach your config.log file?

Michael
Post by black
I find nvidia documentation like: https://developer.nvidia.com/nvidia-video-codec-sdk
and I set
export GST_PLUGIN_PATH=/usr/lib/x86_64-linux-gnu/gstreamer-1.0/
But I got the same error.
Hello,
I can give you two suggestions that you will have to adapt to your specific installation.
1) IIRC, Nvidia provides documentation and instructions on how to build their plugins. Please check the Nvidia documentation.
export GST_PLUGIN_PATH=/usr/lib/x86_64-linux-gnu/gstreamer-1.0/
Sent: Tuesday, November 20, 2018 12:21 AM
Subject: plugin nvenc problem while building gstreamer 1.14.4 from source
NVENCODE_CFLAGS="-I/usr/local/cuda/include/" NVENCODE_LIBS="-L/usr/local/cuda/lib64/stubs/" \
./configure --prefix=/usr --enable-orc --enable-webrtc \
--enable-nvenc --with-cuda-prefix=/usr/local/cuda
time make -j$(nproc)
make install
accurip
adpcmdec
adpcmenc
aiff
asfmux
audiobuffersplit
audiofxbad
audiolatency
audiomixmatrix
audiovisualizers
autoconvert
bayer
camerabin2
coloreffects
compositor
debugutils
dvbsuboverlay
dvdspu
faceoverlay
festival
fieldanalysis
freeverb
frei0r
gaudieffects
gdp
geometrictransform
id3tag
inter
interlace
ivfparse
ivtc
jp2kdecimator
jpegformat
librfb
midi
mpegdemux
mpegpsmux
mpegtsdemux
mpegtsmux
mxf
netsim
onvif
pcapparse
pnm
proxy
rawparse
removesilence
sdp
segmentclip
siren
smooth
speed
stereo
subenc
timecode
videofilters
videoframe_audiolevel
videoparsers
videosignal
vmnc
y4m
yadif
curl
dash
decklink
dtls
dvb
fbdevsink
gl
hls
ipcpipeline
kms
nvdec
nvenc
opus
rtmp
shm
smoothstreaming
srtp
vcdsrc
webrtc
webrtcdsp
acm
androidmedia
aom
applemedia
assrender
avcsrc
bluez
bs2b
bz2
chromaprint
daala
dc1394
dfbvideosink
direct3dsink
directsoundsrc
dtsdec
faac
faad
fdkaac
flite
fluidsynth
gme
gsmenc gsmdec
iqa
kate
ladspa
lcms2
libde265
libmms
lv2
modplug
mpeg2enc
mplex
msdk
musepack
neonhttpsrc
ofa
openal
opencv
openexr
openh264
openjpeg
openmpt
openni2
opensl
resindvd
rsvg
sbc
sfdec sfenc
soundtouch
spandsp
spc
srt
teletextdec
tinyalsa
ttml
uvch264
vdpau
vo-aacenc
vo-amrwbenc
vulkan
wasapi
wayland
webp
wildmidi
winks
winscreencap
x265
zbar
Name nvenc
Description GStreamer NVENC plugin
Filename /usr/lib/gstreamer-1.0/libgstnvenc.so
Version 1.14.4
License LGPL
Source module gst-plugins-bad
Source release date 2018-10-02
Binary package GStreamer Bad Plug-ins source release
Origin URL Unknown package origin
No such element or plugin 'nvh264enc'
Is there some question while I installing? Some one could help?
_______________________________________________
gstreamer-devel mailing list
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
black
2018-11-21 04:35:17 UTC
Permalink
Hi Michael, thanks for your advise. But where could I find the config.log file?





At 2018-11-21 10:34:52, "Michael Gruner" <***@ridgerun.com> wrote:
Hi


This is usually that you are missing a dependency. Can you attach your config.log file?


Michael

On Nov 20, 2018, at 20:12, black <***@163.com> wrote:


I find nvidia documentation like: https://developer.nvidia.com/nvidia-video-codec-sdk


and I set
export GST_PLUGIN_PATH=/usr/lib/x86_64-linux-gnu/gstreamer-1.0/


But I got the same error.





At 2018-11-20 22:40:15, "Rand Graham" <***@zenith.com> wrote:


Hello,



I can give you two suggestions that you will have to adapt to your specific installation.



1) IIRC, Nvidia provides documentation and instructions on how to build their plugins. Please check the Nvidia documentation.

2) On one of my systems I had to specifically set the following environment variable in order for gstreamer to find third party plugins I built from source. Assuming you have compiled the nvidia plugin and gstreamer just needs to find the plugin. Set this appropriately for your system:



export GST_PLUGIN_PATH=/usr/lib/x86_64-linux-gnu/gstreamer-1.0/





From: gstreamer-devel [mailto:gstreamer-devel-***@lists.freedesktop.org] On Behalf Of black
Sent: Tuesday, November 20, 2018 12:21 AM
To:gstreamer-***@lists.freedesktop.org
Subject: plugin nvenc problem while building gstreamer 1.14.4 from source



Hi, I build gstreamer 1.14.4 plugin bad from source like below:



NVENCODE_CFLAGS="-I/usr/local/cuda/include/" NVENCODE_LIBS="-L/usr/local/cuda/lib64/stubs/" \

./configure --prefix=/usr --enable-orc --enable-webrtc \

--enable-nvenc --with-cuda-prefix=/usr/local/cuda

time make -j$(nproc)

make install

The configure is like below:

configure: *** Plug-ins without external dependencies that will be built:

accurip

adpcmdec

adpcmenc

aiff

asfmux

audiobuffersplit

audiofxbad

audiolatency

audiomixmatrix

audiovisualizers

autoconvert

bayer

camerabin2

coloreffects

compositor

debugutils

dvbsuboverlay

dvdspu

faceoverlay

festival

fieldanalysis

freeverb

frei0r

gaudieffects

gdp

geometrictransform

id3tag

inter

interlace

ivfparse

ivtc

jp2kdecimator

jpegformat

librfb

midi

mpegdemux

mpegpsmux

mpegtsdemux

mpegtsmux

mxf

netsim

onvif

pcapparse

pnm

proxy

rawparse

removesilence

sdp

segmentclip

siren

smooth

speed

stereo

subenc

timecode

videofilters

videoframe_audiolevel

videoparsers

videosignal

vmnc

y4m

yadif



configure: *** Plug-ins without external dependencies that will NOT be built:



configure: *** Plug-ins that have NOT been ported:



configure: *** Plug-ins with dependencies that will be built:

curl

dash

decklink

dtls

dvb

fbdevsink

gl

hls

ipcpipeline

kms

nvdec

nvenc

opus

rtmp

shm

smoothstreaming

srtp

vcdsrc

webrtc

webrtcdsp



configure: *** Plug-ins with dependencies that will NOT be built:

acm

androidmedia

aom

applemedia

assrender

avcsrc

bluez

bs2b

bz2

chromaprint

daala

dc1394

dfbvideosink

direct3dsink

directsoundsrc

dtsdec

faac

faad

fdkaac

flite

fluidsynth

gme

gsmenc gsmdec

iqa

kate

ladspa

lcms2

libde265

libmms

lv2

modplug

mpeg2enc

mplex

msdk

musepack

neonhttpsrc

ofa

openal

opencv

openexr

openh264

openjpeg

openmpt

openni2

opensl

resindvd

rsvg

sbc

sfdec sfenc

soundtouch

spandsp

spc

srt

teletextdec

tinyalsa

ttml

uvch264

vdpau

vo-aacenc

vo-amrwbenc

vulkan

wasapi

wayland

webp

wildmidi

winks

winscreencap

x265

zbar

after install, I run application and find some question:

***@PC:/$ gst-inspect-1.0 nvenc

Plugin Details:

Name nvenc

Description GStreamer NVENC plugin

Filename /usr/lib/gstreamer-1.0/libgstnvenc.so

Version 1.14.4

License LGPL

Source module gst-plugins-bad

Source release date 2018-10-02

Binary package GStreamer Bad Plug-ins source release

Origin URL Unknown package origin





0 features:



***@PC:/$ gst-inspect-1.0 nvh264enc

No such element or plugin 'nvh264enc'



Is there some question while I installing? Some one could help?

Loading...