<br><br><div class="gmail_quote">On Thu, Sep 6, 2012 at 11:24 AM, Ralph <span dir="ltr"><<a href="mailto:ralph.gucwa@racelogic.co.uk" target="_blank">ralph.gucwa@racelogic.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm using gnonlin for playback of video files. In my pipeline I have two<br>
gnlcomposition objects: one for video and the other for audio.  When I<br>
played standard resolution XVID files the synchronization between audio and<br>
video was satisfactory, but now when I started playing high resolution H264<br>
files the video lags behind the audio noticably.  How can I synchronize<br>
audio and video without using gnltimeline object?  My application is WPF C#<br>
and I'm using C# Bindings and OSSBuild (GStreamer WinBuilds v0.10.7, Beta<br>
04), unfortunately those libraries are very old and gnonlin doesn't contain<br>
gnltimeline.<br></blockquote><div><br>AFAIK, gnltimeline is an element that hasn't existed in gnonlin for quite some time (googling suggests it hasn't been present since GStreamer 0.8). So you're already using the correct, modern element with gnlcomposition.<br>
<br>In my experience, the sync is okay doing playback with gnonlin, but depending on how far you are from a keyframe, the playback will hang as you switch from one segment of video to the next, and sometimes it will never catch up with the audio.<br>
<br>To fix this, gnonlin would need to preroll the next video segment while playing the current one, which should give smooth, uninterrupted playback on multi-core systems fairly easily.<br><br>Based on how gnonlin works, it shouldn't really be able to introduce sync problems itself, unless you build your compositions incorrectly. But there could be sync issues with the particular codecs and containers you're working with.<br>
<br>If you can, try the same test on a faster computer, see if that improves things.<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Synchronize-gnlcompositions-without-gnltimeline-tp4656185.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/Synchronize-gnlcompositions-without-gnltimeline-tp4656185.html</a><br>

Sent from the GStreamer-devel mailing list archive at Nabble.com.<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>