Gtreamer play video from X minutes

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Gtreamer play video from X minutes

Fabien ROCHER
Hello,

First of all, I am French and I apologize for my bad English!
I am new on this mailing lists and I hope not deceive me to ask my question.

In fact, I want to read a video or a music from 50 seconds for example with Gstreamer. But I don't find the element in Gstreamer to make that !
Could you say how can I make that ??

Any help is gratefully appreciated,
Thanks

Fab

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Gtreamer play video from X minutes

Benoit Fouet
Hi,

Fabien ROCHER wrote:

> Hello,
>
> First of all, I am French and I apologize for my bad English!
> I am new on this mailing lists and I hope not deceive me to ask my
> question.
>
> In fact, I want to read a video or a music from 50 seconds for example
> with Gstreamer. But I don't find the element in Gstreamer to make that !
> Could you say how can I make that ??
>

you could do it by having a glib callback to check the progress and stop
the pipeline when the progress time meets your requirements.
(see for instance:
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-queryevents.html#section-querying)

--
Benoit Fouet
Purple Labs S.A.
www.purplelabs.com

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Gtreamer play video from X minutes

Fabien ROCHER
In reply to this post by Fabien ROCHER
I forgot to precise, I want to do it using gst-launch: I want to play a file (audio and/or video) skipping the 50 first seconds.

2008/7/18 Fabien ROCHER <[hidden email]>:
Hello,

First of all, I am French and I apologize for my bad English!
I am new on this mailing lists and I hope not deceive me to ask my question.

In fact, I want to read a video or a music from 50 seconds for example with Gstreamer. But I don't find the element in Gstreamer to make that !
Could you say how can I make that ??

Any help is gratefully appreciated,
Thanks

Fab


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Gtreamer play video from X minutes

Stefan Sauer
hi,
Fabien ROCHER schrieb:
> I forgot to precise, I want to do it using gst-launch: I want to play a
> file (audio and/or video) skipping the 50 first seconds.

You can't do that using gst-launch. You need to write a simple application (e.g.
using gst-python). Create a playbin, set uri, set it to paused, send a
seek-event with start=50sec and stop=-1 and go to playing.

Stefan

>
> 2008/7/18 Fabien ROCHER <[hidden email]
> <mailto:[hidden email]>>:
>
>     Hello,
>
>     First of all, I am French and I apologize for my bad English!
>     I am new on this mailing lists and I hope not deceive me to ask my
>     question.
>
>     In fact, I want to read a video or a music from 50 seconds for
>     example with Gstreamer. But I don't find the element in Gstreamer to
>     make that !
>     Could you say how can I make that ??
>
>     Any help is gratefully appreciated,
>     Thanks
>
>     Fab
>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Gtreamer play video from X minutes

Benoit Fouet
In reply to this post by Benoit Fouet
Benoit Fouet wrote:

> Hi,
>
> Fabien ROCHER wrote:
>  
>> Hello,
>>
>> First of all, I am French and I apologize for my bad English!
>> I am new on this mailing lists and I hope not deceive me to ask my
>> question.
>>
>> In fact, I want to read a video or a music from 50 seconds for example
>> with Gstreamer. But I don't find the element in Gstreamer to make that !
>> Could you say how can I make that ??
>>
>>    
>
> you could do it by having a glib callback to check the progress and stop
> the pipeline when the progress time meets your requirements.
> (see for instance:
> http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-queryevents.html#section-querying)
>
>  

it seems I totally misunderstood the first question :-D

--
Benoit Fouet
Purple Labs S.A.
www.purplelabs.com

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel