Seeking at pre-roll

Stefan Sauer ensonic at hora-obscura.de
Mon Mar 25 09:11:58 PDT 2013


Am 20.03.2013 21:48, schrieb Simon Berg:
> I have a pipe consisting of audiotestsrc, wavenc and giosink.
> I want to make a file containing an exact number of samples.
> In 0.10 I could do this by setting the state of the pipeline to PAUSED
> and then seek to 0 with a duration of the desired number of samples,
> before going to PLAYING.
> In 1.0 this gives a file padded to a multiple of 1024 samples.
>
> What is the correct way to do this in 1.0?
>
> simon
>
>
FYI. seeking in READY also works for audio. This would avoid first
prerolling and then flushing that out again. Unfortunately you need to
recurse over your pipline and seek on all sources, when in 0.10 you
could just send the event to the pipeline.

Stefan


More information about the gstreamer-devel mailing list