Nvstreammux with nvvidconv

i use the pipeline:
gst-launch-1.0 filesrc location = …/Data/test-1.h264 ! h264parse ! omxh264dec ! nvvideoconvert ! m.sink_0 nvstreammux name=m width=1920 height=1080 batch-size=1 ! fakesink
it doesn’t work, and report the error:
ERROR: from element /GstPipeline:pipeline0/GstNvStreamMux:m: Input buffer number of surfaces (0) must be equal to mux->num_surfaces_per_frame (1)
Set nvstreammux property num-surfaces-per-frame appropriately

Additional debug info:
/dvs/git/dirty/git-master_linux/deepstream/sdk/src/gst-plugins/gst-nvmultistream/gstnvstreammux.c(308): gst_nvstreammux_chain (): /GstPipeline:pipeline0/GstNvStreamMux:m
ERROR: pipeline doesn’t want to preroll.

when i use the pipeline:
gst-launch-1.0 filesrc location = …/Data/test-1.h264 ! h264parse ! nvv4l2decoder ! nvvideoconvert ! m.sink_0 nvstreammux name=m width=1920 height=1080 batch-size=1 ! fakesink

it worked

i have noticed that “nvv4l2decoder” has the property “bufapi-version=1”, what does it means.
and now i have too use “omxdecoder” in pipeline, how can i rectify the pipeline

Hi,
We are deprecating omx plugins. Only v4l2 plugins are supported in DeepStream SDK. Please use nvv4l2decoder.