Deepstream python app deepstream-test3 Unable to create NvStreamMux

I recently installed deepstream 4.0 and downloaded the python binding, I tried to run the and I copied the sample_1080p_h264.mp4 video to the same folder as .py file

then I run the command “python3 sample_1080p_h264.mp4”
which gives an error: Unable to create NvStreamMux
can anyone tell me how to solve it?

$ python3 file:///home/ubuntu/video1.mp4 file:///home/ubuntu/video2.mp4

i copy the mp4 to home/ubuntu/, and runt he code it still doesnt work

$ python3 file:///home/ubuntu/video.mp4 PyGIDeprecationWarning: Since version 3.11, calling threads_init is no longer needed. See:
Creating Pipeline 
Creating streamux 
 Unable to create NvStreamMux 
Traceback (most recent call last):
  File "", line 346, in <module>
  File "", line 238, in main
TypeError: Argument 1 does not allow None as a value

i tried to run code like this in jupyter notebook, it seems that Gst.ElementFactory.make cannot make ‘nvstreammux’

streammux = Gst.ElementFactory.make("nvstreammux", "Stream-muxer")

Can you detect nvstreammux plugin?
gst-inspect-1.0 nvstreammux

Hi Zhangliao322,

Can you detect nvstreammux plugin? Any result can be shared?

I typed ‘gst-inspect-1.0 nvstreammux’ and it says: No such element or plugin ‘nvstreammux’

Please check your environments, make sure you can find nvstreammux plugin first. you can follow README to setup
the environments.