How to do Video seek?

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

How to do Video seek?

sm tech

Hi,

 I am writing a gstreamer based media player on Nokia N800 and 770. I am unable to get video seek working for AVI files ( divx + mp3, divx + wav) on the media player using gst_element_seek() API. After gst_element_seek() function call the play continues.

 On N800, I am using dsppcmsink & dspmpeg4sink.

On 770, I am using dsppcmsink & xvimagesink.

 Can anyone please tell, what I am missing?

 Thanks,

sm


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to do Video seek?

sm tech
Hi,
 
There is a small correction i wanted to convey.
 
On N800, I used dsppcmsink & xvimagesink.
On 770, I am using dsppcmsink & dspmpeg4sink. 
 
thanks,
sm
 
 
----------------------------------------------------------------------------
 
 
 
 
 
 
 On 1/7/08, sm tech <[hidden email]> wrote:

Hi,

 I am writing a gstreamer based media player on Nokia N800 and 770. I am unable to get video seek working for AVI files ( divx + mp3, divx + wav) on the media player using gst_element_seek() API. After gst_element_seek() function call the play continues.

 On N800, I am using dsppcmsink & dspmpeg4sink.

On 770, I am using dsppcmsink & xvimagesink.

 Can anyone please tell, what I am missing?

 Thanks,

sm



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to do Video seek?

Stefan Sauer
hi,

please include the full seek command you use.

Stefan

Quoting sm tech <[hidden email]>:

> Hi,
>
> There is a small correction i wanted to convey.
>
> On N800, I used dsppcmsink & *xvimagesink. *
> On 770, I am using dsppcmsink & *dspmpeg4sink. *
>
> thanks,
> sm
>
>
> ----------------------------------------------------------------------------
>
>
>
>
>
>
>  On 1/7/08, sm tech <[hidden email]> wrote:
>
>>  Hi,
>>
>>  I am writing a gstreamer based media player on Nokia N800 and 770. I am
>> unable to get video seek working for AVI files ( divx + mp3, divx + wav) on
>> the media player using gst_element_seek() API. After gst_element_seek()
>> function call the play continues.
>>
>>  On N800, I am using dsppcmsink & dspmpeg4sink.
>>
>> On 770, I am using dsppcmsink & xvimagesink.
>>
>>  Can anyone please tell, what I am missing?
>>
>>  Thanks,
>>
>> sm
>>
>



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to do Video seek?

sm tech
 
I tried,
 
    gst_element_seek (pipeline, 1.0, GST_FORMAT_TIME,
                           seekflag,
                           GST_SEEK_TYPE_SET,
                           (gint64) (seek_seconds * GST_SECONDS),
                           GST_SEEK_TYPE_NONE,
                           GST_CLOCK_TIME_NONE))
 
with seekflag = GST_SEEK_FLAGE_FLUSH   and also for GST_SEEK_FLAGE_NONE.
 
gst_element_seek() returns success. But, gst_element_query_duration( ) gives the same playback time (not seeked time) and playback continues as usual.
 
 
 
 
 
 
 
 


 
On 1/9/08, Stefan Kost <[hidden email]> wrote:
hi,

please include the full seek command you use.

Stefan

Quoting sm tech <[hidden email]>:

> Hi,
>
> There is a small correction i wanted to convey.
>
> On N800, I used dsppcmsink & *xvimagesink. *
> On 770, I am using dsppcmsink & *dspmpeg4sink. *
>
> thanks,
> sm
>
>
> ----------------------------------------------------------------------------
>
>
>
>
>
>
>  On 1/7/08, sm tech <[hidden email]> wrote:
>
>>  Hi,
>>
>>  I am writing a gstreamer based media player on Nokia N800 and 770. I am
>> unable to get video seek working for AVI files ( divx + mp3, divx + wav) on
>> the media player using gst_element_seek() API. After gst_element_seek()
>> function call the play continues.
>>
>>  On N800, I am using dsppcmsink & dspmpeg4sink.
>>
>> On 770, I am using dsppcmsink & xvimagesink.
>>
>>  Can anyone please tell, what I am missing?
>>
>>  Thanks,
>>
>> sm
>>
>



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

[Errata] Re: How to do Video seek?

sm tech
Sorry,
 
I used gst_element_query_position() for current time after seeking.

 
On 1/9/08, sm tech <[hidden email]> wrote:
 
I tried,
 
    gst_element_seek (pipeline, 1.0, GST_FORMAT_TIME,
                           seekflag,
                           GST_SEEK_TYPE_SET,
                           (gint64) (seek_seconds * GST_SECONDS),
                           GST_SEEK_TYPE_NONE,
                           GST_CLOCK_TIME_NONE))
 
with seekflag = GST_SEEK_FLAGE_FLUSH   and also for GST_SEEK_FLAGE_NONE.
 
gst_element_seek() returns success. But, gst_element_query_duration( ) gives the same playback time (not seeked time) and playback continues as usual.
 
 
 
 
 
 
 
 


 
On 1/9/08, Stefan Kost <[hidden email]> wrote:
hi,

please include the full seek command you use.

Stefan

Quoting sm tech <[hidden email]>:

> Hi,
>
> There is a small correction i wanted to convey.
>
> On N800, I used dsppcmsink & *xvimagesink. *
> On 770, I am using dsppcmsink & *dspmpeg4sink. *
>
> thanks,
> sm
>
>
> ----------------------------------------------------------------------------
>
>
>
>
>
>
>  On 1/7/08, sm tech <[hidden email]> wrote:
>
>>  Hi,
>>
>>  I am writing a gstreamer based media player on Nokia N800 and 770. I am
>> unable to get video seek working for AVI files ( divx + mp3, divx + wav) on
>> the media player using gst_element_seek() API. After gst_element_seek()
>> function call the play continues.
>>
>>  On N800, I am using dsppcmsink & dspmpeg4sink.
>>
>> On 770, I am using dsppcmsink & xvimagesink.
>>
>>  Can anyone please tell, what I am missing?
>>
>>  Thanks,
>>
>> sm
>>
>



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace" target="_blank"> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
gstreamer-devel mailing list
[hidden email]
<a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Errata] Re: How to do Video seek?

Stefan Sauer
hi,

sm tech schrieb:

> Sorry,
>  
> I used gst_element_query_position() for current time after seeking.
>
>  
> On 1/9/08, *sm tech* <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>      
>     I tried,
>      
>         gst_element_seek (pipeline, 1.0, GST_FORMAT_TIME,
>                                seekflag,
>                                GST_SEEK_TYPE_SET,
>                                (gint64) (seek_seconds * GST_SECONDS),
>                                GST_SEEK_TYPE_NONE,
>                                GST_CLOCK_TIME_NONE))
>      
>     with seekflag = GST_SEEK_FLAGE_FLUSH   and also for GST_SEEK_FLAGE_NONE.
>      
>     gst_element_seek() returns success. But, gst_element_query_duration(
>     ) gives the same playback time (not seeked time) and playback
>     continues as usual.

hmm, that looks correct. You could try to send that to the demuxer (avidemux)
instead.

Alternatively you could also join one of the zillion media-player projects we
already have for the tablets, which have mastered seeking alredy.

Stefan


>      
>      
>      
>      
>      
>      
>      
>      
>
>
>      
>     On 1/9/08, *Stefan Kost* <[hidden email]
>     <mailto:[hidden email]>> wrote:
>
>         hi,
>
>         please include the full seek command you use.
>
>         Stefan
>
>         Quoting sm tech < [hidden email]
>         <mailto:[hidden email]>>:
>
>         > Hi,
>         >
>         > There is a small correction i wanted to convey.
>         >
>         > On N800, I used dsppcmsink & *xvimagesink. *
>         > On 770, I am using dsppcmsink & *dspmpeg4sink. *
>         >
>         > thanks,
>         > sm
>         >
>         >
>         > ----------------------------------------------------------------------------
>         >
>         >
>         >
>         >
>         >
>         >
>         >  On 1/7/08, sm tech < [hidden email]
>         <mailto:[hidden email]>> wrote:
>         >
>         >>  Hi,
>         >>
>         >>  I am writing a gstreamer based media player on Nokia N800 and
>         770. I am
>         >> unable to get video seek working for AVI files ( divx + mp3,
>         divx + wav) on
>         >> the media player using gst_element_seek() API. After
>         gst_element_seek()
>         >> function call the play continues.
>         >>
>         >>  On N800, I am using dsppcmsink & dspmpeg4sink.
>         >>
>         >> On 770, I am using dsppcmsink & xvimagesink.
>         >>
>         >>  Can anyone please tell, what I am missing?
>         >>
>         >>  Thanks,
>         >>
>         >> sm
>         >>
>         >
>
>
>
>         -------------------------------------------------------------------------
>         Check out the new SourceForge.net Marketplace.
>         It's the best place to buy or sell services for
>         just about anything Open Source.
>         http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
>         _______________________________________________
>         gstreamer-devel mailing list
>         [hidden email]
>         <mailto:[hidden email]>
>         https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>         <https://lists.sourceforge.net/lists/listinfo/gstreamer-devel>
>
>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel