I am trying to setup an RTSP stream using gstreamer, except that I can’t get it to work, at all.
To begin with, I tried running the command shown here to start a stream.
gst-launch-1.0 videotestsrc ! omxh265enc ! rtph265pay name=pay0 pt=96
I used VLC player to check the stream on the local address: rtsp://127.0.0.1:8554
I also tried modifying my own command to just capture the footage from the camera. This works fine.
gst-launch-1.0 -v v4l2src device=/dev/video1 ! image/jpeg, width=1280, height=960, framerate=30/1 ! jpegdec ! videoconvert ! omxh264enc ! flvmux ! filesink location=videostream.flv
The command for streaming:
gst-launch-1.0 v4l2src device=/dev/video1 ! image/jpeg, width=1280, height=960, framerate=30/1 ! jpegdec ! videoconvert ! omxh265enc ! rtph265pay name=pay0 pt=96
The part of actually setting the video as a stream just doesn’t work for some reason. Am I missing something?