1
votes

I have to use gstreamer 0.10 and try to stream a mp4 file.

For that I tried

gst-launch-0.10 filesrc location=./test.mp4 ! qtdemux ! queue ! h264parse ! video/x-h264,mapping=/stream ! udpsink rtsp://192.168.192.100:12345/test

and received a warning: WARNING: erroneous pipeline: no element "h264parse"

How can I stream the file as rtsp stream?

1
h264parse is part of gst-plugins-bad1.0 make sure you have installed it. To stream an mp4 file refer this link github.com/GStreamer/gst-rtsp-server/blob/master/examples/…Prabhakar Lad

1 Answers

1
votes

To get h264parse plugin, run "sudo apt install gstreamer1.0-plugins-bad"

Pipelines

Sender

gst-launch-1.0 filesrc location= ~/file.mp4 ! qtdemux ! queue ! h264parse ! rtph264pay config-interval=10 ! udpsink host=ip_address_to_stream_to port=9999 -v

Receiver

gst-launch-1.0 udpsrc port=9999 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, payload=(int)96, encoding-name=(string)H264" ! rtph264depay ! identity silent=0 ! avdec_h264 ! videoconvert ! ximagesink