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