Tool/software:
How to stream H.264 encoded streams from a RTSP compliant IP camera or via RTSP server running on remote PC using GStreamer?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
How to stream H.264 encoded streams from a RTSP compliant IP camera or via RTSP server running on remote PC using GStreamer?
Hi,
Assuming you have the rtsp source running, replace the rtspsrc location with placeholder and run the pipelines below to stream. If you would like to set up a simple test using VLC media player to stream an .mp4 video file, you can do so by following the steps below.
GStreamer pipeline using hardware decoder:
gst-launch-1.0 rtspsrc location=rtsp://<ip_addr>:<port>/test latency=0 proxy-id=None proxy-pw=None ! rtph264depay wait-for-keyframe=1 ! video/x-h264, stream-format=avc ! h264parse ! v4l2h264dec ! kmssink sync=false
GStreamer pipeline using software decoder:
gst-launch-1.0 rtspsrc location= rtsp://<ip_addr>:<port>/test ! application/x-rtp, media=video, encoding-name=H264, clock-rate=90000 ! rtph264depay ! h264parse ! avdec_h264 ! videorate ! videoconvert ! queue ! autovideosink
RTSP source GStreamer pipeline example:
gst-launch-1.0 \
v4l2src device=/dev/video-imx219-cam0 io-mode=5 ! queue leaky=2 ! \
video/x-bayer, width=1920, height=1080, framerate=30/1, format=rggb ! \
tiovxisp sink_0::device=/dev/v4l-subdev2 sensor-name="SENSOR_SONY_IMX219_RPI" \
dcc-isp-file=/opt/imaging/imx219/linear/dcc_viss_1920x1080.bin \
sink_0::dcc-2a-file=/opt/imaging/imx219/linear/dcc_2a_1920x1080.bin format-msb=7 ! \
video/x-raw, format=NV12, width=1920, height=1080, framerate=30/1 ! \
v4l2h264enc output-io-mode=dmabuf-import extra-controls="controls,h264_i_frame_period=60" ! rtph264pay ! udpsink port=<port> host=<ip_addr>
Thank you,
Fabiana Jaimes