<div dir="ltr">Thank you Tim for reply,<div><br></div><div style>I tried oggz-dump on my files and the output is a bit different from that on radio.ogg you suggest where gpos start from xxxxx and continue to grow:</div><div style>
<div><i>#oggz-dump video01.ogg |grep pos|head</i></div><div><div><i>00:00:00.000: serialno 0713580012, granulepos 0|0, packetno 0 *** bos: 42 bytes<br></i></div><div><i>00:00:00.000: serialno 0713580012, calc. gpos 0|0, packetno 1: 58 bytes</i></div>
<div><i>00:00:00.000: serialno 0713580012, granulepos 0|0, packetno 2: 2.552 kB</i></div><div><i>00:00:00.000: serialno 0713580012, granulepos 1|0, packetno 3: 26.219 kB</i></div><div><i>00:00:00.200: serialno 0713580012, granulepos 1|1, packetno 4: 3.496 kB</i></div>
<div><i>00:00:00.400: serialno 0713580012, granulepos 1|2, packetno 5: 2.944 kB</i></div><div><i>00:00:00.600: serialno 0713580012, granulepos 1|3, packetno 6: 2.529 kB</i></div><div><i>00:00:00.800: serialno 0713580012, granulepos 1|4, packetno 7: 2.785 kB</i></div>
<div><i>00:00:01.000: serialno 0713580012, granulepos 1|5, packetno 8: 2.549 kB</i></div></div><div><i><br></i></div><div><i>#oggz-dump video02.ogg |grep gpos|head pos</i></div><div><div><i>00:00:00.000: serialno 0584889258, calc. gpos 0|0, packetno 1: 58 bytes</i></div>
<div><i>00:00:00.000: serialno 0584889258, granulepos 0|0, packetno 2: 2.552 kB</i></div><div><i>00:00:15.000: serialno 0584889258, granulepos 76|0, packetno 3: 26.238 kB</i></div><div><i>00:00:15.200: serialno 0584889258, granulepos 76|1, packetno 4: 3.472 kB</i></div>
<div><i>00:00:15.400: serialno 0584889258, granulepos 76|2, packetno 5: 2.591 kB</i></div><div><i>00:00:15.600: serialno 0584889258, granulepos 76|3, packetno 6: 2.597 kB</i></div><div><i>00:00:15.800: serialno 0584889258, granulepos 76|4, packetno 7: 2.404 kB</i></div>
<div><i>00:00:16.000: serialno 0584889258, granulepos 76|5, packetno 8: 2.912 kB</i></div><div><i>00:00:16.200: serialno 0584889258, granulepos 76|6, packetno 9: 2.416 kB</i></div></div><div><i><br></i></div><div><div><i>#oggz-dump video03.ogg |grep gpos|head pos<br>
</i></div><div><i>00:00:00.000: serialno 1850673644, granulepos 0|0, packetno 0 *** bos: 42 bytes</i></div><div><i>00:00:00.000: serialno 1850673644, calc. gpos 0|0, packetno 1: 58 bytes</i></div><div><i>00:00:00.000: serialno 1850673644, granulepos 0|0, packetno 2: 2.552 kB</i></div>
<div><i>00:00:31.600: serialno 1850673644, granulepos 159|0, packetno 3: 26.148 kB</i></div><div><i>00:00:31.800: serialno 1850673644, granulepos 159|1, packetno 4: 3.206 kB</i></div></div><div><br></div><div style>So I have only one gpos for each file and a lot of granulepos with timing start at 0 and jumping to 15 sec on second file and so on. I'm not so much confident with ogg but why first packets on video02 and video03 start from 00:00:00.000 and jump to 00:00:15.000 and 00:00:31.600?</div>
<div style><br></div><div style>Actually my pipeline have 2 bins:</div><div style>-in first bin I have <span style="font-family:arial,helvetica,sans-serif;white-space:pre-wrap">souphttpsrc ! jpegdec ! videorate ! video/x-raw-yuv,framerate=5/1 ! timeoverlay ! queue</span></div>
<div style><span style="font-family:arial,helvetica,sans-serif;white-space:pre-wrap">-in second bin </span><span style="font-family:arial,helvetica,sans-serif;white-space:pre-wrap">theoraenc ! oggmux ! filesink</span></div>
<div style><span style="font-family:arial,helvetica,sans-serif;white-space:pre-wrap"><br></span></div><div style><span style="font-family:arial,helvetica,sans-serif;white-space:pre-wrap">When I need to close a file an make a new one I block the queue src pad -> unlink second bin (old) from first bin -> send eos to theoraenc -> set second bin to null and make a third(new) bin linked to first bin -> set new bin to playing -> unblock src pad.</span></div>
<div style><span style="font-family:arial,helvetica,sans-serif;white-space:pre-wrap"><br></span></div><div style><span style="font-family:arial,helvetica,sans-serif;white-space:pre-wrap">Thank you</span></div><div style><font face="arial, helvetica, sans-serif"><span style="white-space:pre-wrap"> </span></font></div>
<div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 23, 2013 at 8:28 PM, Tim-Philipp Müller <span dir="ltr"><<a href="mailto:t.i.m@zen.co.uk" target="_blank">t.i.m@zen.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Thu, 2013-05-23 at 17:37 +0200, lestoilfante wrote:<br>
<br>
> gst-launch souphttpsrc ! jpegdec ! videorate ! video/x-raw-yuv,framerate=5/1 ! timeoverlay ! theoraenc keyframe-force=5 keyframe-freq=5 ! oggmux ! filesink location=test.ogg<br>
><br>
> I can currently change filesink location dinamically each xx seconds or<br>
> minutes and all resulting files are fine with playbin, however the<br>
> timestamps in the second and later files seems to don't start from zero<br>
> because on some players, like vlc or by embedding the video in html5<br>
> style on chrome , the playing will stall until so many seconds have<br>
> elapsed from previous files. So I'm looking to figuring out how to<br>
> avoid this, please help me if you have any hints or solution.<br>
<br>
</div></div>This sounds like a bug in those other players (vlc and whatever is used<br>
to play this in chrome).<br>
<br>
It is perfectly normal that "timestamps" (they are not really<br>
timestamps) in ogg don't start at 0. In any ogg streaming context they<br>
will not start at 0, and the player needs to handle that properly.<br>
<br>
e.g. try this:<br>
<br>
$ wget -O radio.ogg '<a href="http://stream-uk1.radioparadise.com:80/rp_96.ogg" target="_blank">http://stream-uk1.radioparadise.com:80/rp_96.ogg</a>'<br>
<br>
control-C after a few seconds, then:<br>
<br>
$ oggz-dump radio.ogg | grep gpos<br>
<br>
There isn't really an easy way to make oggmux start at 0 every X seconds<br>
or minutes.<br>
<br>
Cheers<br>
-Tim<br>
<br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br></div>