Stopping command-line gst-launch, after processing certain no. of frames

Icarus Alive icarus.alive at gmail.com
Wed Oct 26 03:24:27 PDT 2011


On Thu, Oct 20, 2011 at 2:20 AM, Wesley J. Miller <WMiller at sdr.com> wrote:
>
> Many of the src elements have num-buffs properties that you may use to
> limit the number of sourced frames.  Some, however, do not.

Excellent. Thanks for the tips/hints.

> I suppose someone of us <grin> needs to write an element that accepts a
> time to run or a number of buffers before issuing an EOS to the pipeline.
>
> Sink pad - any caps
> Src pad - any caps
> Properties:
>   name         as usual
>   timeout      UINT64 n-secs - readable, writable, default = UINT64_MAX
>   num-buffs    UINT64 - readable writable, default = UINT64_MAX
>
> Sends EOS to the pipeline when time >= timeout OR number_of_buffers >=
> num_buffs

Sounds like a nice idea and approach. Still scratching the surface of
Gstreamer, but eventually might give it a shot.

> Of course this would be pretty useless in a C (or whatever) program since
> they have more sophisticated mechanisms to halt the pipeline, e.g.
> External timers sending the EOS.
>
>
> Wes
>
>
>
> On 10/19/11 3:50 PM, "Icarus Alive" <icarus.alive at gmail.com> wrote:
>
>>Is it possible using gst-launch, to stop a stream processing (&
>>gracefully exit gst-launch), after a certain no. of frames have been
>>processed ?
>>
>>thanks,
>>Icarus
>>_______________________________________________
>>gstreamer-devel mailing list
>>gstreamer-devel at lists.freedesktop.org
>>http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
> CONFIDENTIALITY NOTE:
>
> This e-mail and any attachments are confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited. If you have received this e-mail in error, please notify us immediately by returning it to the sender and delete this copy from your system. Thank you for your cooperation.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>


More information about the gstreamer-devel mailing list