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 <<a href="mailto:fabien.castan@free.fr">fabien.castan@free.fr</a>>:</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'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>> Hello,<br>> Remove the capsfilter and it will works:) .<br>> I used capsfilter linked with fakesink to grab each frame in a<br>> specific format(with a hand off signal).<br>> Erwan
<br>><br>><br>> 2007/5/14, Michael Smith < <a href="mailto:msmith@fluendo.com">msmith@fluendo.com</a><br>> <mailto:<a href="mailto:msmith@fluendo.com">msmith@fluendo.com</a>>>:<br>><br>> On Mon, 2007-05-14 at 14:14 +0200, fabien wrote:
<br>> > Hello,<br>> > I tested your code, but it still doesn't work. If I comment the<br>> video<br>> > part, the audio is playing (from avi file but not from mpeg..).<br>> So it
<br>> > must be an error on the video pipeline. I made a sketch of the<br>> pipeline...<br>> > If anyone could find the error, it would be of great help for me.<br>> > Thank you<br>> >
<br>><br>> You're using a capsfilter to force a particular pixel format,<br>> size, and<br>> framerate.<br>><br>> You use ffmpegcolorspace (which can convert to the required pixel<br>
> format), but you don't have anything to convert to the size and<br>> framerate you're asking for.<br>><br>> One specific problem you're likely to run into is that many files have<br>> non-square pixels, but ximagesink requires square pixels. You can use
<br>> the 'videoscale' element to resize appropriately.<br>><br>> You can also try using videorate to change video framerate.<br>><br>> There may be other problems with your code, I didn't read it
<br>> closely or<br>> try it myself.<br>><br>> Mike<br>><br>><br><br><br></blockquote></div><br>