I tried the queue and it didn&#39;t help.<br>I&#39;m wondering if my timestamping is correct, this is the part of the code that does the timestamping:<br><br>_____________________________________________________________________________________<br>
>From the source&#39;s create function<br><br>// the newBuffer.timestamp is a 64bit integer that comes from a non-GST datasource that encodes the video<br>timestamp = newBuffer.timestamp;<br><br>// the timestampoffset is the difference between the clocks of the non-GST datasource and the GST element<br>
// so this adjust the external timestamp to match with the GST element time<br>timestamp = timestamp + src-&gt;timestampOffset;&nbsp; <br>&nbsp;<br>GST_BUFFER_TIMESTAMP(outbuf) = timestamp;<br><br>// duration is set as 1000000000 / fps (15)<br>
GST_BUFFER_DURATION(outbuf) = src-&gt;duration;<br>&nbsp; <br>// n_frames contains the amount of frames sent so far<br>GST_BUFFER_OFFSET(outbuf) = src-&gt;n_frames;<br>src-&gt;n_frames = src-&gt;n_frames++;<br>GST_BUFFER_OFFSET_END(outbuf) = src-&gt;n_frames;<br>
__________________________________________________________________<br><br><br>So, any more ideas on what might be wrong?<br><br><br><br><br>- Jonne<br><br><br><br><div class="gmail_quote">On Thu, Oct 16, 2008 at 4:12 PM, sudarshan bisht <span dir="ltr">&lt;<a href="mailto:bisht.sudarshan@gmail.com">bisht.sudarshan@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr"><div>Hi </div>
<div>&nbsp;&nbsp;&nbsp; </div>
<div>&nbsp;&nbsp;&nbsp; Insert a queue in between src and avimux and try . <br><br></div>
<div class="gmail_quote"><div><div></div><div class="Wj3C7c">On Thu, Oct 16, 2008 at 6:10 PM, Jonne Mäkinen <span dir="ltr">&lt;<a href="mailto:jonnemakin@gmail.com" target="_blank">jonnemakin@gmail.com</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">
<div dir="ltr">Hello<br>I&#39;m having a problem when using my own videosource with the avimux and filesink. For some reason the avi that gets created is broken.<br>My videosource inputs MPEG4 video, one frame per buffer. And I&#39;m not using any audio in the pipeline.<br>

If I do videotestsrc -&gt; avimux -&gt; filesink everything works like it should work<br>But if I do this MPEG4src -&gt; avimux -&gt; filesink , two things can happen:<br>If I abort the pipeline without letting it finish correctly, then an AVI file gets created and I can play the video with e.g. VLC player. However the fps of the video<br>

isn&#39;t correct (it should be 15 frames per second but the playback speed is almost double of that). <br>If I don&#39;t abort the pipeline and let the file get finished (setting num-buffers of the source element to something like 100 or 300), then the avi file that gets created cannot be opened with any video player.<br>

So I&#39;m wondering if anyone has any ideas what might be causing the corruption of the AVI file. What kind of requirements are expected from the video source for it to be able to work with avimux?<br><br>Any help is greatly appreciated<br>

<br><br>- Jonne Mäkinen<br></div><br></div></div>-------------------------------------------------------------------------<br>This SF.Net email is sponsored by the Moblin Your Move Developer&#39;s challenge<br>Build the coolest Linux based applications with Moblin SDK &amp; win great prizes<br>

Grand prize is a trip for two to an Open Source event anywhere in the world<br><a href="http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/</a><br>

_______________________________________________<br>gstreamer-devel mailing list<br><a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">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>

<br></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br><br>Sudarshan Bisht<br></div>
<br>-------------------------------------------------------------------------<br>
This SF.Net email is sponsored by the Moblin Your Move Developer&#39;s challenge<br>
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes<br>
Grand prize is a trip for two to an Open Source event anywhere in the world<br>
<a href="http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/</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>
<br></blockquote></div><br>