Stopping command-line gst-launch, after processing certain no. of frames
Wesley J. Miller
WMiller at sdr.com
Wed Oct 19 13:50:49 PDT 2011
Many of the src elements have num-buffs properties that you may use to
limit the number of sourced frames. Some, however, do not.
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
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 >=
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.
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
>gstreamer-devel mailing list
>gstreamer-devel at lists.freedesktop.org
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.
More information about the gstreamer-devel