Hi,<br><br><div class="gmail_quote">On Mon, Oct 25, 2010 at 12:01 PM, Laurence <span dir="ltr"><<a href="mailto:laurenceinc@gmail.com">laurenceinc@gmail.com</a>></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 "record files from ipcam", and "play the<br>
files". The two application are worked.<br>
The pipelines are as follows:<br>
record: rtspsrc ! identity ! rtph264depay ! filesink<br></blockquote><div><br>I'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 "record" application, I use<br>
"GST_BUFFER_TIMESTAMP()","GST_BUFFER_DURATION",<br>
"GST_BUFFER_TIMESTAMP_IS_VALID","GST_BUFFER_GST_BUFFER_DURATION_IS_VALID" 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=> unsigned int, valid=>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 "play" 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 "record" application,timestamp is existed, but I can't read it in<br>
"play" application. I guess that "rtph264depay" don'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 "timestamp control function" 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&T present the 2010 Calling All Innovators-North America contest<br>
Create new apps & 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>