<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 18, 2019 at 6:51 AM venkata.subbarao <<a href="mailto:rao.subba.venkata@gmail.com">rao.subba.venkata@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi All,<br>
<br>
I have two questions which are related. Kindly help me.<br>
<br>
1) openRTSP, a RTSP client from live555 has option to save rtsp stream as<br>
frame by frame using -m option. How can I acheive this using gstreamer ?<br>
<br>
I have created a pipeline in my C program as follows. In the callback of<br>
appsink, I am trying to save frame by frame. But, I have no idea how to do<br>
this.<br>
<br>
rtspsrc location=rtsp://<rtsp url> ! queue ! rtph264depay ! h264parse !<br>
appsink name=test sync=false<br></blockquote><div><br></div><div><br></div><div>gst-launch-1.0 videotestsrc num-buffers=30 ! pngenc ! multifilesink location="frame-%06d.png"<br></div><div><br></div><div>frame-000000.png<br>frame-000001.png<br>frame-000002.png<br>frame-000003.png</div><div>...<br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
2) I tried to save the stream to a file using following command. The<br>
recorded file can be played back. One thing I noticed is that this does not<br>
have a start code 0x0 0x0 0x0 0x1 at the beginning of each frame like in<br>
openRTSP saved file. Any reason why ?<br>
<br>
gst-launch-1.0 rtspsrc location=<rtsp url> ! queue ! rtph264depay !<br>
h264parse ! mpegtsmux ! filesink location=test.h264<br>
<br></blockquote><div><br></div><div>I would start a 2nd thread for your 2nd question. <br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Thanks,<br>
Subbarao<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><span>Carl K<br></span></div></div></div>