Hello.
Can You give me some tips how to create gst-streamer to receive rtsp stream ?
How can I change gstcamera.cpp to get correct receiving of stream ?
Please give some tips for my source of stream.
import jetson.utils
import argparse
# parse the command line
#parser = argparse.ArgumentParser()
#parser.add_argument("--width", type=int, default=1280, help="desired width of camera stream (default is 1280 pixels)")
#parser.add_argument("--height", type=int, default=720, help="desired height of camera stream (default is 720 pixels)")
#parser.add_argument("--camera", type=str, default="0", help="index of the MIPI CSI camera to use (NULL for CSI camera 0), or for VL42 cameras the /dev/video node to use (e.g. /dev/video0). By default, MIPI CSI camera 0 will be used.")
#opt = parser.parse_args()
#print(opt)
# create display window
display = jetson.utils.glDisplay()
# create camera device
camera = jetson.utils.gstCamera(640,480,"rtspsrc location=rtsp://192.168.0.12:8080/video/h264 latency=0 ! queue ! rtph264depay ! queue ! h264parse ! omxh264dec ! nvvidconv ! video/x-raw,format=BGRx ! videoconvert ! video/x-raw,format=BGR ! appsink")
# open the camera for streaming
camera.Open()
# capture frames until user exits
while display.IsOpen():
image, width, height = camera.CaptureRGBA()
display.RenderOnce(image, width, height)
display.SetTitle("{:s} | {:d}x{:d} | {:.0f} FPS".format("Camera Viewer", width, height, display.GetFPS()))
# close the camera
camera.Close()