Hi,<br>I have try some test, it seems if you dont put the pipevideo to pause, and you put pieAudio to play it works.<br>I dont know why, moreover if I put your main pipeline to play it crashes, in my code it dont crashes.<br>
<br>For your notify caps, I have never be able to retrieves info, I use have type callback.<br><br>For your have data function, I would have make a hand off callback instead.<br><br>This code works fine with me.<br>Try it,
<br>Erwan<br><br><div><span class="gmail_quote">2007/5/14, fabien &lt;<a href="mailto:fabien.castan@free.fr">fabien.castan@free.fr</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thank you for your fast answer.<br>But I did remove the capsfilter but it still doesn&#39;t work... :(<br> From time to time, the sound begins to play and stop after 2 seconds or<br>so and I get no video.<br>Fabien<br><br>
Erwan Masson a écrit :<br>&gt; Hello,<br>&gt;&nbsp;&nbsp;Remove the capsfilter and it will works:) .<br>&gt; I used capsfilter linked with fakesink to grab each frame in a<br>&gt; specific format(with a hand off signal).<br>&gt;&nbsp;&nbsp;Erwan
<br>&gt;<br>&gt;<br>&gt; 2007/5/14, Michael Smith &lt; <a href="mailto:msmith@fluendo.com">msmith@fluendo.com</a><br>&gt; &lt;mailto:<a href="mailto:msmith@fluendo.com">msmith@fluendo.com</a>&gt;&gt;:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; On Mon, 2007-05-14 at 14:14 +0200, fabien wrote:
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Hello,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; I tested your code, but it still doesn&#39;t work. If I comment the<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; video<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; part, the audio is playing (from avi file but not from mpeg..).<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; So it
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; must be an error on the video pipeline. I made a sketch of the<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; pipeline...<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; If anyone could find the error, it would be of great help for me.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Thank you<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;
<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; You&#39;re using a capsfilter to force a particular pixel format,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; size, and<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; framerate.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; You use ffmpegcolorspace (which can convert to the required pixel<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; format), but you don&#39;t have anything to convert to the size and<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; framerate you&#39;re asking for.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; One specific problem you&#39;re likely to run into is that many files have<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; non-square pixels, but ximagesink requires square pixels. You can use
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; the &#39;videoscale&#39; element to resize appropriately.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; You can also try using videorate to change video framerate.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; There may be other problems with your code, I didn&#39;t read it
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; closely or<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; try it myself.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Mike<br>&gt;<br>&gt;<br><br><br></blockquote></div><br>