Hi,<br><br><div class="gmail_quote">On Mon, Oct 25, 2010 at 12:01 PM, Laurence <span dir="ltr">&lt;<a href="mailto:laurenceinc@gmail.com">laurenceinc@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Hi all,<br>
I create two applications for &quot;record files from ipcam&quot;, and &quot;play the<br>
files&quot;. The two application are worked.<br>
The pipelines are as follows:<br>
record: rtspsrc ! identity ! rtph264depay ! filesink<br></blockquote><div><br>I&#39;d suggest you to try with a muxer between the depayloader and the sink (e.g. mp4mux).<br><br>Regards<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

play:    filesrc ! typefind ! rtph264pay ! identity ! fakesink<br>
<br>
In the &quot;record&quot; application, I use<br>
&quot;GST_BUFFER_TIMESTAMP()&quot;,&quot;GST_BUFFER_DURATION&quot;,<br>
&quot;GST_BUFFER_TIMESTAMP_IS_VALID&quot;,&quot;GST_BUFFER_GST_BUFFER_DURATION_IS_VALID&quot; in<br>
identity, and print messages as follows:<br>
...<br>
timestamp:3218 valid:1 duration:4294967295 valid:0<br>
timestamp:3218 valid:1 duration:4294967295 valid:0<br>
timestamp:3333 valid:1 duration:4294967295 valid:0<br>
timestamp:3333 valid:1 duration:4294967295 valid:0<br>
timestamp:3333 valid:1 duration:4294967295 valid:0<br>
...<br>
(print format: timestamp,duration=&gt; unsigned int, valid=&gt;int)<br>
<br>
It looks like the value of timestamp is vaild,but the value of duration is<br>
invaild.<br>
<br>
Then,I use the &quot;play&quot; application to play the file, and print messages in<br>
identity. The messages are as follows:<br>
...<br>
timestamp:4294967295 valid:0 duration:4294967295 valid:0<br>
timestamp:4294967295 valid:0 duration:4294967295 valid:0<br>
timestamp:4294967295 valid:0 duration:4294967295 valid:0<br>
timestamp:4294967295 valid:0 duration:4294967295 valid:0<br>
timestamp:4294967295 valid:0 duration:4294967295 valid:0<br>
timestamp:4294967295 valid:0 duration:4294967295 valid:0<br>
...<br>
<br>
In the recorded file,timestamp and duration are invalid.<br>
<br>
I have two questions:<br>
1. In the &quot;record&quot; application,timestamp is existed, but I can&#39;t read it in<br>
&quot;play&quot; application. I guess that &quot;rtph264depay&quot; don&#39;t keep timestamp, so<br>
there is no timestamp in the recorded file. What do you think of this?<br>
2. I would like to write a &quot;timestamp control function&quot; for recorded files<br>
playing. So I have to get timestamp in the recorded file. Is there any way<br>
to keep timestamp in the recorded file?<br>
<br>
Thanks in advance!<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/How-to-keep-timestamp-in-the-file-recorded-from-RTSP-source-tp3009950p3009950.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/How-to-keep-timestamp-in-the-file-recorded-from-RTSP-source-tp3009950p3009950.html</a><br>

Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
<br>
------------------------------------------------------------------------------<br>
Nokia and AT&amp;T present the 2010 Calling All Innovators-North America contest<br>
Create new apps &amp; games for the Nokia N8 for consumers in  U.S. and Canada<br>
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing<br>
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store<br>
<a href="http://p.sf.net/sfu/nokia-dev2dev" target="_blank">http://p.sf.net/sfu/nokia-dev2dev</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</blockquote></div><br>