Streaming H264 file using gst-rtsp-server

amistry mistry_amit at yahoo.com
Thu Apr 21 04:18:37 UTC 2016


GStreamer Extended Family,

Consider me a beginner in GStreamer. I am trying to stream a recorded H264
file using gst-rtsp-server. So I can play/pause/seek the video from VLC
player.

Here is what I have done so far:

Recorded the H264 encoded video from IP camera's RTP H264 stream using
following pipeline:

gst-launch-1.0.exe -e -v rtspsrc location=rtsp://192.168.16.155/live.sdp !
rtph264depay ! h264parse !  mp4mux ! filesink location=record/video.h264

Then, I am streaming the recorded video.h264 using following pipeline:

gst-launch-1.0.exe -v filesrc location=record/video.h264 ! qtdemux !
h264parse ! rtph264pay config-interval=1 pt=96 ! udpsink host=127.0.0.1
port=5000

I am able to view the recorded video in VLC player by setting up a SDP file
as shown below.

v=0
m=video 5000 RTP/AVP 96
c=IN IP4 127.0.0.1
a=rtpmap:96 H264/90000

But, I am not able to pause or seek the video. The above pipeline keeps
playing the video even though the VLC player is not connected to port 5000.

Btw.. I tried using gst-rtsp-server's test-mp4 example to stream video.h264
but the VLC player times out the connection. The test-mp4 console output
only shows single message i.e. "stream ready at rtsp://127.0.0.1:8554/test.

Can someone point me into a right direction to stream a recorded video using
GStreamer and play/pause/seek control from VLC player over RTSP ?

Thanks, 
Arm



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Streaming-H264-file-using-gst-rtsp-server-tp4677032.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list