[prev in list] [next in list] [prev in thread] [next in thread]
List: gstreamer-devel
Subject: Re: [gst-devel] ffmpeg muxers - index not written in the result file
From: "Julien Isorce" <julien.isorce () gmail ! com>
Date: 2008-11-25 11:41:25
Message-ID: 180a127d0811250341j44249be5ta5d81dd7142521cd () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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@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@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@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
[Attachment #5 (text/html)]
Oh ok :P<br><br>The following is ok now:<br><br>GstEvent *eos = gst_event_new_eos \
();<br>gst_element_send_event (pipeline , eos);<br><br>Thx a lot, you resolved me a \
thing I am doing wrong for a while<br><br>Julien<br><br> <div \
class="gmail_quote">2008/11/25 Wim Taymans <span dir="ltr"><<a \
href="mailto:wim.taymans@gmail.com">wim.taymans@gmail.com</a>></span><br><blockquote \
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt \
0pt 0.8ex; padding-left: 1ex;"> <div class="Ih2E3d">On Tue, 2008-11-25 at 12:02 \
+0100, Julien Isorce wrote:<br> > Hi<br>
><br>
> I join to this mail a simple test.<br>
><br>
> The test demonstrates that when the pipeline is stopped when sending<br>
> eos from the client code, then ffmux_asf does not write the index, so<br>
> it's not possible to seek when playing back the result file.<br>
<br>
</div>You are not sending an EOS event but (forcefully) posting an EOS message<br>
from the pipeline to the application.<br>
<div class="Ih2E3d"><br>
> If I set num_buffers=N instead of sending eos, then the muxer write<br>
> the index.<br>
><br>
> Yes it should be the same result because when GstBaseSrc reachs<br>
> num_buffers_left = 0 then it return GST_FLOW_UNEXPECTED then an EOS is<br>
> generated.<br>
><br>
> So something is not flushed when ffmux receive eos in the first way.<br>
<br>
</div>ffmux never receives EOS because there is no such event generated.<br>
<div class="Ih2E3d"><br>
><br>
> Is it a bug from gstffmpegmux or a problem in<br>
> ffmpeg-asfmux-libavcodec ? or something else ?<br>
<br>
</div>It's a bug in the application.<br>
<font color="#888888"><br>
Wim<br>
</font><div class="Ih2E3d">><br>
> ( ./test 0 rec.asf -> index not written) (eos sent from a<br>
> g_timeout_add callback)<br>
> ( ./test 1 rec.asf -> asf correclty generated) (use \
num_buffers=N)<br> ><br>
> Sincerely<br>
><br>
> Julien<br>
</div><div><div></div><div class="Wj3C7c">> \
-------------------------------------------------------------------------<br> > \
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br> \
> Build the coolest Linux based applications with Moblin SDK & win great \
prizes<br> > Grand prize is a trip for two to an Open Source event anywhere in the \
world<br> > <a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" \
target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>
> _______________________________________________ gstreamer-devel mailing list <a \
href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a> \
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br>
<br>
-------------------------------------------------------------------------<br>
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>
Build the coolest Linux based applications with Moblin SDK & win great prizes<br>
Grand prize is a trip for two to an Open Source event anywhere in the world<br>
<a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" \
target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br> \
</div></div></blockquote></div><br>
-------------------------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic