[gst-devel] ffmpeg muxers - index not written in the result file

Julien Isorce julien.isorce at gmail.com
Tue Nov 25 12:41:25 CET 2008


Oh ok :P

The following is ok now:

GstEvent *eos = gst_event_new_eos ();
gst_element_send_event (pipeline , eos);

Thx a lot, you resolved me a thing I am doing wrong for a while

Julien

2008/11/25 Wim Taymans <wim.taymans at gmail.com>

> On Tue, 2008-11-25 at 12:02 +0100, Julien Isorce wrote:
> > Hi
> >
> > I join to this mail a simple test.
> >
> > The test demonstrates that when the pipeline is stopped when sending
> > eos from the client code, then ffmux_asf does not write the index, so
> > it's not possible to seek when playing back the result file.
>
> You are not sending an EOS event but (forcefully) posting an EOS message
> from the pipeline to the application.
>
> > If I set num_buffers=N instead of sending eos, then the muxer write
> > the index.
> >
> > Yes it should be the same result because when GstBaseSrc reachs
> > num_buffers_left = 0 then it return GST_FLOW_UNEXPECTED then an EOS is
> > generated.
> >
> > So something is not flushed when ffmux receive eos in the first way.
>
> ffmux never receives EOS because there is no such event generated.
>
> >
> > Is it a bug from gstffmpegmux or a problem in
> > ffmpeg-asfmux-libavcodec ? or something else ?
>
> It's a bug in the application.
>
> Wim
> >
> > ( ./test 0 rec.asf   -> index not written)  (eos sent from a
> > g_timeout_add callback)
> > ( ./test 1 rec.asf   -> asf correclty generated)  (use num_buffers=N)
> >
> > Sincerely
> >
> > Julien
> > -------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> > Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> > Grand prize is a trip for two to an Open Source event anywhere in the
> world
> > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> > _______________________________________________ gstreamer-devel mailing
> list gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20081125/e2773e94/attachment.htm>


More information about the gstreamer-devel mailing list