[gst-devel] How to stop encoding

Thomas Vander Stichele thomas at apestaart.org
Tue Feb 10 10:43:03 CET 2004


On Tue, 2004-02-10 at 18:59, Mathew Spencer wrote:
> Hi,
> I am looking at generating a keystamp server using gstreamer, something like
>   filesrc location="file.xyz" ! spider ! ffcolorspace ! videoscale ! 
> pngenc ! filesink location="keystamp.png"
> 
> This pipeline works fine, but things do not stop after the first frame 
> of encoding.
> Is there a way a can create a pipeline that I can stop after the first 
> png frame has been encoded and written by the filesink element?

IIRC pngenc will send an eos signal after encoding a complete png
frame.  So you can connect to the have_eos signal on pngenc, or check if
it's forwarded to filesink and connect to its eos instead so you're sure
the file is written.

Thomas


Dave/Dina : future TV today ! - http://www.davedina.org/
<-*- thomas (dot) apestaart (dot) org -*->
When you can't trust yourself
trust someone else
<-*- thomas (at) apestaart (dot) org -*->
URGent, best radio on the net - 24/7 ! - http://urgent.fm/






More information about the gstreamer-devel mailing list