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.

[FAQ] SK-AM69: How to run GStreamer pipeline with RTSP source

Part Number: SK-AM69

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.

    1. Open VLC media player
    2. Media
    3. Stream
    4. Add .mp4 file
    5. Stream > Next
    6. Select RTSP in Destination Setup > Add
    7. The default is 8554 for port and you can put anything for path (example: "/test")
    8. Next > Next > Stream

    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

    Thank you,

    Fabiana Jaimes