Jetson Nano encoder wont start

Hi
I am trying to run the below pipelines in Jetson Nano which will make a video stream with layout. The streams are 1080p streams captured from 2 usb sources

Below pipeline is working without any errors which produces a Picture In Picture Video with preview

gst-launch-1.0 -e v4l2src device=/dev/video1 ! queue ! video/x-raw, width=1920, height=1080, framerate=30/1 ! queue ! nvvidconv ! queue ! "video/x-raw(memory:NVMM),format=RGBA" ! queue ! comp.sink_0 v4l2src device=/dev/video0 io-mode=2 do-timestamp=true ! queue ! image/jpeg,width=1920,height=1080, framerate=30/1 ! queue ! nvv4l2decoder mjpeg=1 ! nvvidconv ! queue ! video/x-raw ! queue ! nvvidconv ! queue ! "video/x-raw(memory:NVMM),format=RGBA" ! queue ! comp.sink_1 nvcompositor name=comp sink_0::xpos=0 sink_0::ypos=0 sink_1::xpos=1500 sink_1::ypos=800 sink_1::width=320 sink_1::height=240 ! tee name=t1 t1. ! queue ! nvvidconv ! queue ! nvv4l2h264enc maxperf-enable=1 bitrate=4000000 profile=4 ! queue ! h264parse ! queue ! mux. pulsesrc device="alsa_input.usb-VXIS_Inc_ezcap_U3_capture-02.analog-stereo" ! queue ! audio/x-raw,width=16,depth=16,rate=44100,channel=1 ! queue ! audioconvert ! voaacenc ! queue ! aacparse ! queue ! mp4mux name=mux ! filesink location="PIP.mp4" t1. ! queue ! nvvidconv ! queue ! "video/x-raw(memory:NVMM),format=NV12" ! queue ! nvoverlaysink overlay-x=0 overlay-y=0 overlay-w=1280 overlay-h=720 overlay=1

When I run the below pipeline which is supposed to produce a video Side By Side I can see the preview but the encoding is not happening. The encode will start ans stops in seconds

gst-launch-1.0 -e v4l2src device=/dev/video1 ! queue ! video/x-raw, width=1920, height=1080, framerate=30/1 ! queue ! nvvidconv ! queue ! “video/x-raw(memory:NVMM),format=RGBA” ! queue ! comp.sink_0 v4l2src device=/dev/video0 io-mode=2 do-timestamp=true ! queue ! image/jpeg, width=1920, height=1080,framerate=30/1 ! queue ! nvv4l2decoder mjpeg=1 ! nvvidconv ! queue ! video/x-raw ! queue ! nvvidconv ! queue ! “video/x-raw(memory:NVMM),format=RGBA” ! queue ! comp.sink_1 nvcompositor name=comp sink_0::xpos=0 sink_0::ypos=0 sink_0::width=960 sink_0::height=540 sink_1::xpos=960 sink_1::ypos=0 sink_1::width=960 sink_1::height=540 ! tee name=t1 t1. ! queue ! nvvidconv ! queue ! nvv4l2h264enc maxperf-enable=1 bitrate=4000000 profile=4 ! queue ! h264parse ! queue ! mux. pulsesrc device=“alsa_input.usb-VXIS_Inc_ezcap_U3_capture-02.analog-stereo” ! queue ! audio/x-raw,width=16,depth=16,rate=44100,channel=1 ! queue ! audioconvert ! voaacenc ! queue ! aacparse ! queue ! mp4mux name=mux ! filesink location=“SBS.mp4” t1. ! queue ! nvvidconv ! queue ! “video/x-raw(memory:NVMM),format=NV12” ! queue ! nvoverlaysink overlay-x=0 overlay-y=0 overlay-w=1280 overlay-h=720 overlay=1

Hi,
Looks similar to this:

Please apply the prebuilt lib and set background-w, background-h.

Hi @DaneLLL

Thank you very much for the reply. Now the encoding happens without errors