About playbin

3 views
Skip to first unread message

elmarco

unread,
Sep 26, 2008, 9:09:17 AM9/26/08
to epris
Hi!

Rene suggest using playbin in audio-player. I thought about that but
then decided to be more low-level since epris only need audio playing.

Does that make sense?
How to set it up properly?
Would that help to do gap-less playing?

Thanks guys for sharing your gstreamer expertise :)

cheers,

Felipe Contreras

unread,
Sep 26, 2008, 10:46:41 AM9/26/08
to ep...@googlegroups.com
On Fri, Sep 26, 2008 at 4:09 PM, elmarco <marcandr...@gmail.com> wrote:
>
> Hi!
>
> Rene suggest using playbin in audio-player. I thought about that but
> then decided to be more low-level since epris only need audio playing.
>
> Does that make sense?

Yeap.

> How to set it up properly?

There's nothing special, you just set the url, as the location.

> Would that help to do gap-less playing?

Nope, you need to tear it down for each clip. So it would work exactly
as the current code. If I understand you correctly.

--
Felipe Contreras

René Stadler

unread,
Sep 26, 2008, 7:33:04 PM9/26/08
to ep...@googlegroups.com
Felipe Contreras wrote:
> On Fri, Sep 26, 2008 at 4:09 PM, elmarco <marcandr...@gmail.com> wrote:
>> Hi!
>>
>> Rene suggest using playbin in audio-player. I thought about that but
>> then decided to be more low-level since epris only need audio playing.
>>
>> Does that make sense?
>
> Yeap.
>
>> How to set it up properly?
>
> There's nothing special, you just set the url, as the location.
>

You will want to set the video-sink property to an instance of fakesink,
otherwise it uses autovideosink which means epris would become a video player :)

>> Would that help to do gap-less playing?
>
> Nope, you need to tear it down for each clip. So it would work exactly
> as the current code. If I understand you correctly.
>

playbin2 is supposed to get support for that at some point (this has been
planned since quite some time).

Note that it doesn't really matter for mp3 files anyway (these almost always
have a trailing almost-gap).

You might want to do cross-fading instead. Rhythmbox can do that quite nicely
these days, so there is some example code with good documentation IIRC.

--
Regards,
René Stadler

Marc-André Lureau

unread,
Sep 26, 2008, 8:54:01 PM9/26/08
to ep...@googlegroups.com
On Sat, Sep 27, 2008 at 2:33 AM, René Stadler <ma...@renestadler.de> wrote:
>
> Felipe Contreras wrote:
>> On Fri, Sep 26, 2008 at 4:09 PM, elmarco <marcandr...@gmail.com> wrote:
>>> Rene suggest using playbin in audio-player. I thought about that but
>>> then decided to be more low-level since epris only need audio playing.
>>>
>>> Does that make sense?
>>
>> Yeap.
[...]

> playbin2 is supposed to get support for that at some point (this has been
> planned since quite some time).
>
> Note that it doesn't really matter for mp3 files anyway (these almost always
> have a trailing almost-gap).
>
> You might want to do cross-fading instead. Rhythmbox can do that quite nicely
> these days, so there is some example code with good documentation IIRC.


Thanks for your reply,

it's now planned, but has low-priority atm :)
(man, I am really lazy :)

I'll try to work on some of the TODO items, in order to do a 0.2
release in the coming days.

regards,

--
Marc-André Lureau

Reply all
Reply to author
Forward
0 new messages