seek after pause not working in gst-auto-launch

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

seek after pause not working in gst-auto-launch

vijayp
Hi,

1)   I tried seek after a pause command in gst-auto-launch for ogg,

gst-auto-launch filesrc location=test.ogg ! oggdemux ! vorbisdec ! audioconvert ! alsasink 0:play 3:pause 1:seek:0 1:play

But after reaching paused stated it didnt play.


2) gst-auto-launch filesrc location=test.ogg ! oggdemux ! vorbisdec ! audioconvert ! alsasink 0:play 5:stop 1:play

in this case after reaching ready state ,plugin stayed in ready it didnt play the file for 'play' command.

Is the problem is with plugin or is the limitation of gst-auto-launch?

Regards,
Vijay P



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: seek after pause not working in gst-auto-launch

Stefan Sauer
On 11/05/2011 02:56 PM, vijay wrote:
Hi,

1)   I tried seek after a pause command in gst-auto-launch for ogg,

gst-auto-launch filesrc location=test.ogg ! oggdemux ! vorbisdec ! audioconvert ! alsasink 0:play 3:pause 1:seek:0 1:play

But after reaching paused stated it didnt play.

This is not a feature of gst launch. It is done in some patch, maybe its broken. Fix it or write an application.

Stefan



2) gst-auto-launch filesrc location=test.ogg ! oggdemux ! vorbisdec ! audioconvert ! alsasink 0:play 5:stop 1:play

in this case after reaching ready state ,plugin stayed in ready it didnt play the file for 'play' command.

Is the problem is with plugin or is the limitation of gst-auto-launch?

Regards,
Vijay P


_______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: seek after pause not working in gst-auto-launch

Luciana Fujii Pontello-2
In reply to this post by vijayp
On Sat, 2011-11-05 at 19:26 +0530, vijay wrote:
> Hi,
>
> 1)   I tried seek after a pause command in gst-auto-launch for ogg,
>
> gst-auto-launch filesrc location=test.ogg ! oggdemux ! vorbisdec !
> audioconvert ! alsasink 0:play 3:pause 1:seek:0 1:play
>
> But after reaching paused stated it didnt play.

The number before ':' defines the time the command will be called.
You're asking it to play at 0, seek at 1, play at 1 and then pause at 3,
so it's expected it won't play after pause.

> 2) gst-auto-launch filesrc location=test.ogg ! oggdemux ! vorbisdec !
> audioconvert ! alsasink 0:play 5:stop 1:play
>
> in this case after reaching ready state ,plugin stayed in ready it
> didnt play the file for 'play' command.

Are you sure it didn't start playing at 1 and then stopped at 5?

Best Regards,

Luciana Fujii

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: seek after pause not working in gst-auto-launch

vijayp
Hi Luciana,
   I tried like as below and it worked,
    gst-auto-launch filesrc location=test.ogg ! oggdemux ! vorbisdec !
  audioconvert ! alsasink 0:play 1:stop 5:play

gst-auto-launch filesrc location=test.ogg ! oggdemux ! vorbisdec !
 audioconvert ! alsasink 0:play 1:pause 2:seek:0 3:play

thanks for the solution.

Regards,
Vijay P

On Tue, Nov 8, 2011 at 1:30 AM, Luciana Fujii <[hidden email]> wrote:
On Sat, 2011-11-05 at 19:26 +0530, vijay wrote:
> Hi,
>
> 1)   I tried seek after a pause command in gst-auto-launch for ogg,
>
> gst-auto-launch filesrc location=test.ogg ! oggdemux ! vorbisdec !
> audioconvert ! alsasink 0:play 3:pause 1:seek:0 1:play
>
> But after reaching paused stated it didnt play.

The number before ':' defines the time the command will be called.
You're asking it to play at 0, seek at 1, play at 1 and then pause at 3,
so it's expected it won't play after pause.

> 2) gst-auto-launch filesrc location=test.ogg ! oggdemux ! vorbisdec !
> audioconvert ! alsasink 0:play 5:stop 1:play
>
> in this case after reaching ready state ,plugin stayed in ready it
> didnt play the file for 'play' command.

Are you sure it didn't start playing at 1 and then stopped at 5?

Best Regards,

Luciana Fujii

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel