Cannot open h264 stream

Hi everyone,

I use the oclea board as an h264 video encoder and streaming via my lan.
The oclea streaming the video by gstreamer with this command:

gst-launch-1.0 olcamerasrc ! video/x-h264,width=1920,height=1080,stream-format=byte-stream,bitrate=160000 ! queue ! mpegtsmux ! rndbuffersize min=940 max=940 ! udpsink host= port=9000

I can decode and playing this encoded video by ffplay and everything is fine.

But, when I tried to decode this video by jetson nano at 02_video_dec_example, I got this error:

Video Resolution: 1920x1080
[INFO] (NvEglRenderer.cpp:110) Setting Screen width 1920 height 1200
libv4l2_nvvidconv (0):(802) (INFO) : Allocating (14) OUTPUT PLANE BUFFERS Layout=1
libv4l2_nvvidconv (0):(818) (INFO) : Allocating (14) CAPTURE PLANE BUFFERS Layout=0
Query and set capture successful
libv4l2_nvvidconv (0):(1688) (ERROR) : NvDdkVicConfigure Failed
libv4l2_nvvidconv (0):(1710) (ERROR) : NVVIDCONV ERROR 2

What is the problem ?

Best regards.

Input to 02_video_dec_cuda has to be h264 stream. Your gstreamer pipeline generates transport stream. For using 02_video_dec_cuda, you have to implement demuxing code like what tsdemux plugin does.

Running gstreamer pipeline as a client is easy to use. Please refer to

Hi DaneLLL,

Thank you very much for your answer.
Before the packet go to jetson, they pass through my ffmpeg module code.
This module, open the network stream by avformat_open_input method and later demux by av_read_frame method.
After that we get h264 encoded packet - and they are who get into jetson.

So, they problem still exists …


Please set ‘–input-nalu’ or ‘–input-chunks’ and try again. Also can try 00_video_decode.