<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.24.1.1">
</HEAD>
<BODY>
Hello,<BR>
<BR>
I have the following pipleline:<BR>
<BR>
mistelixvideosrc num-buffers=750 ! video/x-raw-yuv,format=(fourcc)I420,width=720,height=576,framerate=(fraction)25/1 ! ffenc_mpeg2video ! mux. filesrc location=song.mp3 ! mad ! audioconvert ! ffenc_mp2&nbsp; ! ffmux_dvd name=mux preload=500000 maxdelay=699999 !filesink location=welcome.mpeg<BR>
<BR>
This generates a video with an audio track. If the audio is shorter that audio, I'm interested in that the audio starts again, then there is an audio playing for all the video duration. Currently what happens is that when the audio finishes the rest of the video has no audio.<BR>
<BR>
I have set (using gst_pad_set_event_function) the function for the 'sink' pad of the 'mad' element.&nbsp; When I get a GST_EVENT_EOS, I sent a gst_event_new_seek[1] to the filesrc element src pad. However, the event seems to be processed correctly but nothing happens. I looked the GST_DEBUG&nbsp; but I could not figure out what's going wrong.<BR>
<BR>
What is the best of way of achieving this? I'm basically interested in having the audio doing a loop for the duration of the video.<BR>
<BR>
Any answer will be appreciated.<BR>
<BR>
Thanks,<BR>
<BR>
Jordi,<BR>
<BR>
[1]gst_event_new_seek (1.0, GST_FORMAT_BYTES, 0, GST_SEEK_TYPE_SET,&nbsp;&nbsp;&nbsp;&nbsp; 0, GST_SEEK_TYPE_SET, -1);<BR>
<BR>
</BODY>
</HTML>