Gstreamer rtspsrc and avenc_mpeg1video

Currently I’m trying to use Gstreamer with nodejs and jsmpeg to perform live streaming with low latency. This pipeline work fine:
gst-launch-1.0 videotestsrc ! clockoverlay ! video/x-raw, width=1270, height=720 ! videoconvert ! videorate max-rate=25 ! avenc_mpeg1video dct_algo=1 ! mpegtsmux ! curlhttpsink location=http://<nodejs server route>

But I cannot make it work with input is rtspsrc:
gst-launch-1.0 rtspsrc location=<rtspsrc> latency=200 drop-on-latency=true ! application/x-rtp, media=video, encoding-name=H264 ! rtph264depay ! decodebin ! videoconvert ! videorate max-rate=25 ! avenc_mpeg1video dct_algo=1 ! mpegtsmux ! curlhttpsink location=http://<nodejs server route>

Can anyone show me what I did wrong? Thank in advance

Hi,
Please try to launch the serve through test-launch. We have steps in

Jetson Nano FAQ
Q: Is there any example of running RTSP streaming?

Use the below pipeline for streaming to jsmpeg from RTSP test-launch.

rtspsrc location=rtsp://127.0.0.1:8554/test latency=0 ! queue ! application/x-rtp, media=video, encoding-name=H264, payload=96 ! rtph264depay ! avdec_h264 ! videoconvert ! videorate max-rate=25 ! avenc_mpeg1video dct_algo=1 ! mpegtsmux ! curlhttpsink location=http://<nodejs server route>

Its works but the problem are getting high cpu.
Any one know to use as lower cpu or in hardware engines?

Hi thohtdelta,

Please help to open a new topic. Thanks