I don&#39;t know how your pipeline is, but when I did crossfading I achieved this by the caps properties. Even it fits for 2 video files I think the principle is the same.<br>Here&#39;s the thread:<br><br><a href="http://gstreamer-devel.966125.n4.nabble.com/crossfading-audio-error-gst-mad-chain-mad-header-decode-had-an-error-lost-synchronization-td4037851.html#a4037881">http://gstreamer-devel.966125.n4.nabble.com/crossfading-audio-error-gst-mad-chain-mad-header-decode-had-an-error-lost-synchronization-td4037851.html#a4037881</a><br>
<br>Basically I did 2 gnlcomposition, one for audio and another for video. Sorry I don&#39;t have the pipeline in this computer.<br>But it was something like this.<br><br><a href="http://gstreamer-devel.966125.n4.nabble.com/No-sound-in-my-pipeline-td3854506.html">http://gstreamer-devel.966125.n4.nabble.com/No-sound-in-my-pipeline-td3854506.html</a><br>
<br>Hope it helps.<br>Rossana<br><br><div class="gmail_quote">2012/1/17 Ralph <span dir="ltr">&lt;<a href="mailto:ralph.gucwa@racelogic.co.uk">ralph.gucwa@racelogic.co.uk</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I&#39;m using gnonlin to play a sequence of video file fragments. I constructed a<br>
pipeline containing two gnlcomposition objects - one for video and the other<br>
for audio, they are playing the same video files. In order to be able to<br>
have gaps between the files, I created videotestsrc and audiotestsrc and<br>
added them through gnlsources (priority: uint.MaxValue) to gnlcomposition<br>
objects.<br>
<br>
My &quot;timeline&quot; looks like this:<br>
659.24s file, start position 2s (2s gap before the file)<br>
881.04s file, start position 661.24s (4s gap before the file)<br>
<br>
When I disable the audio part, the video works nicely - the file fragments<br>
are played exactly when scheduled and the gaps between them are precisely<br>
the required length.  Perfect!  The problems occur when I enable the audio<br>
section - the gaps become much shorter, strange things start to happen.<br>
<br>
When I try to play both video and audio, the first file begins after just<br>
0.4s, and when it ends, the video skips the second gap and jumps many<br>
seconds into the second file and the video remains frozen, it waits for the<br>
audio (which is playing nicely except for the 1.6 second shorter gap) to<br>
that position and then continues.<br>
What&#39;s interesting the length of the initial gap is always 1.6 seconds<br>
shorter than it should be - when the gap should be 20s, it is played within<br>
18.4 seconds.  The second gap is always completely wrong.<br>
It&#39;s not the problem with the video, if I disable the video section, the<br>
audio is wrong, the gaps are shorter than scheduled.<br>
What&#39;s wrong with my pipeline?<br>
<br>
My video files are:<br>
video: Xvid ISO MPEG-4 720x576 25fps<br>
audio: MPEG-1 Layer 2 48kHz 192kb/s stereo<br>
<br>
The audio gnlcomposition runs at 48kHz, the audio is then converted using<br>
audioconvert.<br>
The audiotestsrc runs at 44.1kHz.<br>
The autoaudiosink runs at 44.1kHz.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Synchronising-audio-and-video-in-gnonlin-tp4303968p4303968.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/Synchronising-audio-and-video-in-gnonlin-tp4303968p4303968.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>
</font></span></blockquote></div><br>