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

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


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.
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.

Is it a bug from gstffmpegmux or a problem in ffmpeg-asfmux-libavcodec ? or
something else ?

( ./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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20081125/1c604d8e/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.cpp
Type: text/x-c++src
Size: 3909 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20081125/1c604d8e/attachment.cpp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: application/octet-stream
Size: 879 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20081125/1c604d8e/attachment.obj>


More information about the gstreamer-devel mailing list