Seeking at pre-roll

Tim-Philipp Müller t.i.m at zen.co.uk
Wed Mar 20 14:14:04 PDT 2013


On Wed, 2013-03-20 at 21:48 +0100, Simon Berg wrote:

> 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?

It should work just like in 0.10.

Sounds like the decoder doesn't clip correctly for some reason.

Could you make a small test case and file a bug please? Shouldn't be
hard to fix hopefully.

Cheers
 -Tim



More information about the gstreamer-devel mailing list