multifilesrc and looping wav files: success story, sort of

Antonio Ospite ao2 at ao2.it
Thu Sep 11 04:05:32 PDT 2014


On Tue, 26 Aug 2014 19:10:41 +0200
Antonio Ospite <ao2 at ao2.it> wrote:

> Hi,
> 
> I thought I'd share here my experience about the subject, and there are
> also two questions attached at the end.
> 
> I wanted to use multifilesrc to play a wav file in a loop (GStreamer
> 1.4.0) but I was having problems, the audio file was played _twice_ when
> using decodebin (stereo or mono doesn't matter if you wonder) which was
> very strange and the pipeline exited with the message:
> 
> 	Got EOS from element "pipeline0".

[...]
> $ LANG=C gst-launch-1.0 multifilesrc location="test.wav" loop=1 ! wavparse ignore-length=1 ! audioconvert ! autoaudiosink
> Setting pipeline to PAUSED ...
> Pipeline is PREROLLING ...
> Pipeline is PREROLLED ...
> Setting pipeline to PLAYING ...
> New clock: GstPulseSinkClock
> 
> So I achieved my initial goal, this is enough for my prototype, but...
> I feel like I achieved it just by accident, and moreover the audio now
> always loops, the multifilesrc loop property is still being ignored.
> 
> So first question: is there a better way to make an audio sample loop
> with gst-launch-1.0?
>
> Or is handling EOS/about-to-finish from code the only sane way to do
> that?
>

Does anyone know the proper way to loop an audio file in GStreamer
from gst-launch?
 
> Second question, when using multifilesrc and multiple audio files there
> is an unpleasant CLICK between files (this is independent of the loop
> issue); is there a way to remove this CLICK that you know of?
>

Can anyone confirm the issue? Could this CLICK depend on opening/closing
the sound device each time for each audio file?

Thanks,
   Antonio

-- 
Antonio Ospite
http://ao2.it

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?


More information about the gstreamer-devel mailing list