indication of finishing writing into file

Sebastian Dröge sebastian at centricular.com
Wed Mar 12 13:16:54 PDT 2014


On Mi, 2014-03-12 at 02:49 -0700, leon wrote:
> Greetings!
> 
> Im trying to write a program in C.
> 
> Im also writing into an .avi file
> 
> gst-launch-0.10 videotesrsrc  !..... ! filesink location=output.avi
> 
> I need to know programly when it finishes to write the .avi file and then
> load new pipeline instead of the first one.
> 
> is there any indication of finishing writing to file?

You can send an EOS event to the pipeline and then wait for the EOS
message. When you get the EOS message the writing to the file will be
finished and you can shutdown the pipeline.

-- 
Sebastian Dröge, Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140312/bd1f6f0e/attachment-0001.pgp>


More information about the gstreamer-devel mailing list