$ sudo apt-get install gtk-doc-tools
$ git clone -b 1.14.5 https://github.com/GStreamer/gst-plugins-bad.git
download NVIDIA Video Codec SDK
$ unzip Video_Codec_SDK_11.1.5.zip
$ cp Video_Codec_SDK_11.1.5/Interface/nvEncodeAPI.h gst-plugins-bad/sys/nvenc/
$ cp Video_Codec_SDK_11.1.5/Interface/cuviddec.h gst-plugins-bad/sys/nvdec/
$ cp Video_Codec_SDK_11.1.5/Interface/nvcuvid.h gst-plugins-bad/sys/nvdec/
$ cd gst-plugins-bad/
$ ./autogen.sh --with-cuda-prefix="/usr/local/cuda"
$ cd sys/nvenc/
$ make
$ sudo cp .libs/libgstnvenc.so /usr/lib/x86_64-linux-gnu/gstreamer-1.0/
$ cd ../nvdec
$ make
$ sudo cp .libs/libgstnvdec.so /usr/lib/x86_64-linux-gnu/gstreamer-1.0/
$ gst-inspect-1.0 nvh264enc
$ gst-inspect-1.0 nvdec
沒有留言:
張貼留言