amr-wb seek problem

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

amr-wb seek problem

jorney
Hi
I am writing amr-wb player with gstreamer on Marvell pxa310.
When I seek to a position by time format, there is a long time blocking
(10 sec or even to 1 min), and there is no voice during the block, then
an EOS message was emitted,
but the position I seeked is far away to the end of the file.

Bytes format has the same problem! here is my seek code:

breslt = gst_element_seek(pipeline,
1.0,
GST_FORMAT_BYTES,
GST_SEEK_FLAG_FLUSH,//|GST_SEEK_FLAG_KEY_UNIT|GST_SEEK_FLAG_SEGMENT,
GST_SEEK_TYPE_SET,
bytePos,//GST_SECOND*nForw*count,
GST_SEEK_TYPE_NONE,
GST_CLOCK_TIME_NONE
);

I use gstreamer-0.10.29 and gst-plugins-ugly-0.10.15's amrwbdec,
gst-plugins-bad-0.10.13's amrparse. like this:

gst-launch filesrc location=abc.amr ! amrparse ! amrwbdec ! alsasink


And the codec is opencore-amr-0.1.2
Could any body help?
Reply | Threaded
Open this post in threaded view
|

Re: amr-wb seek problem

Sudarshan Bisht

 It seems amrwbdec does not handle src pad event (seek ) and thats why there is a blocking.  There is a lack of implementation of src event handling thats why kept in gst-plugins-ugly.
 

On Mon, Jan 10, 2011 at 11:39 AM, jorney <[hidden email]> wrote:

Hi
I am writing amr-wb player with gstreamer on Marvell pxa310.
When I seek to a position by time format, there is a long time blocking
(10 sec or even to 1 min), and there is no voice during the block, then
an EOS message was emitted,
but the position I seeked is far away to the end of the file.

Bytes format has the same problem! here is my seek code:

breslt = gst_element_seek(pipeline,
1.0,
GST_FORMAT_BYTES,
GST_SEEK_FLAG_FLUSH,//|GST_SEEK_FLAG_KEY_UNIT|GST_SEEK_FLAG_SEGMENT,
GST_SEEK_TYPE_SET,
bytePos,//GST_SECOND*nForw*count,
GST_SEEK_TYPE_NONE,
GST_CLOCK_TIME_NONE
);

I use gstreamer-0.10.29 and gst-plugins-ugly-0.10.15's amrwbdec,
gst-plugins-bad-0.10.13's amrparse. like this:

gst-launch filesrc location=abc.amr ! amrparse ! amrwbdec ! alsasink


And the codec is opencore-amr-0.1.2
Could any body help?

--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/amr-wb-seek-problem-tp3206831p3206831.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to
best implement a security strategy that keeps consumers' information secure
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



--
Regards,

Sudarshan Bisht

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to
best implement a security strategy that keeps consumers' information secure
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: amr-wb seek problem

Sudarshan Bisht
check the return value of gst_element_seek too .

On Mon, Jan 10, 2011 at 3:00 PM, sudarshan bisht <[hidden email]> wrote:

 It seems amrwbdec does not handle src pad event (seek ) and thats why there is a blocking.  There is a lack of implementation of src event handling thats why kept in gst-plugins-ugly.

 

On Mon, Jan 10, 2011 at 11:39 AM, jorney <[hidden email]> wrote:

Hi
I am writing amr-wb player with gstreamer on Marvell pxa310.
When I seek to a position by time format, there is a long time blocking
(10 sec or even to 1 min), and there is no voice during the block, then
an EOS message was emitted,
but the position I seeked is far away to the end of the file.

Bytes format has the same problem! here is my seek code:

breslt = gst_element_seek(pipeline,
1.0,
GST_FORMAT_BYTES,
GST_SEEK_FLAG_FLUSH,//|GST_SEEK_FLAG_KEY_UNIT|GST_SEEK_FLAG_SEGMENT,
GST_SEEK_TYPE_SET,
bytePos,//GST_SECOND*nForw*count,
GST_SEEK_TYPE_NONE,
GST_CLOCK_TIME_NONE
);

I use gstreamer-0.10.29 and gst-plugins-ugly-0.10.15's amrwbdec,
gst-plugins-bad-0.10.13's amrparse. like this:

gst-launch filesrc location=abc.amr ! amrparse ! amrwbdec ! alsasink


And the codec is opencore-amr-0.1.2
Could any body help?

--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/amr-wb-seek-problem-tp3206831p3206831.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to
best implement a security strategy that keeps consumers' information secure
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



--
Regards,

Sudarshan Bisht



--
Regards,

Sudarshan Bisht

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to
best implement a security strategy that keeps consumers' information secure
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

答复: amr-wb seek problem

jorney
´ð¸´: [gst-devel] amr-wb seek problem

Thanks for your reply!

There is not a blocking in every seek event.
And the gst_element_seek's return value is TRUE when there is a blocking.

I didn't find a src pad event handler in amrwbdec in ugly(15 or 16). but I's not sure how to handle src pad event in AMRWBDEC,
could you give me a sample? Thanks!

-----Original Message-----
From: sudarshan bisht [[hidden email]]
Sent: 2011-1-10 (星期一) 21:09
To: Discussion of the development of GStreamer
Subject: Re: [gst-devel] amr-wb seek problem

check the return value of gst_element_seek too .

On Mon, Jan 10, 2011 at 3:00 PM, sudarshan bisht
<[hidden email]>wrote:

>
>  It seems amrwbdec does not handle src pad event (seek ) and thats why
> there is a blocking.  There is a lack of implementation of src event
> handling thats why kept in gst-plugins-ugly.
>
>
>
> On Mon, Jan 10, 2011 at 11:39 AM, jorney <[hidden email]> wrote:
>
>>
>> Hi
>> I am writing amr-wb player with gstreamer on Marvell pxa310.
>> When I seek to a position by time format, there is a long time blocking
>> (10 sec or even to 1 min), and there is no voice during the block, then
>> an EOS message was emitted,
>> but the position I seeked is far away to the end of the file.
>>
>> Bytes format has the same problem! here is my seek code:
>>
>> breslt = gst_element_seek(pipeline,
>> 1.0,
>> GST_FORMAT_BYTES,
>> GST_SEEK_FLAG_FLUSH,//|GST_SEEK_FLAG_KEY_UNIT|GST_SEEK_FLAG_SEGMENT,
>> GST_SEEK_TYPE_SET,
>> bytePos,//GST_SECOND*nForw*count,
>> GST_SEEK_TYPE_NONE,
>> GST_CLOCK_TIME_NONE
>> );
>>
>> I use gstreamer-0.10.29 and gst-plugins-ugly-0.10.15's amrwbdec,
>> gst-plugins-bad-0.10.13's amrparse. like this:
>>
>> gst-launch filesrc location=abc.amr ! amrparse ! amrwbdec ! alsasink
>>
>>
>> And the codec is opencore-amr-0.1.2
>> Could any body help?
>>
>> --
>> View this message in context:
>> http://gstreamer-devel.966125.n4.nabble.com/amr-wb-seek-problem-tp3206831p3206831.html
>> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>>
>>
>> ------------------------------------------------------------------------------
>> Gaining the trust of online customers is vital for the success of any
>> company
>> that requires sensitive data to be transmitted over the Web.   Learn how
>> to
>> best implement a security strategy that keeps consumers' information
>> secure
>> and instills the confidence they need to proceed with transactions.
>> http://p.sf.net/sfu/oracle-sfdevnl
>> _______________________________________________
>> gstreamer-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>
>
>
>
> --
> Regards,
>
> Sudarshan Bisht
>



--
Regards,

Sudarshan Bisht

=====================================================================================================================================
This email and any attachments to it contain confidential information and are intended solely for the use of the individual to whom it 
is addressed.If you are not the intended recipient or receive it accidentally, please immediately notify the sender by e-mail and delete 
the message and any attachments from your computer system, and destroy all hard copies. If any, please be advised that any unauthorized 
disclosure, copying, distribution or any action taken or omitted in reliance on this, is illegal and prohibited. Furthermore, any views 
or opinions expressed are solely those of the author and do not represent those of ASUSTeK. Thank you for your cooperation.
=====================================================================================================================================

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

amr-wb seek problem

jorney
[gst-devel] amr-wb seek problem

I use --gst-debug=amrwbdec:5 to debug ,
 the normal seeking with a
"mode 8,  block 61" output log.

but the block seeking with:
"mode 13,  block  0"
or
"mode 11,  block  0"

-----Original Message-----
From: Jorney Dong(董士��_�A�T�K州)
Sent: 2011-1-14 (星期五) 9:26
To: Discussion of the development of GStreamer; Discussion of the development of GStreamer
Subject: 答复: [gst-devel] amr-wb seek problem

Thanks for your reply!

There is not a blocking in every seek event.
And the gst_element_seek's return value is TRUE when there is a blocking.

I didn't find a src pad event handler in amrwbdec in ugly(15 or 16). but I's not sure how to handle src pad event in AMRWBDEC,
could you give me a sample? Thanks!

-----Original Message-----
From: sudarshan bisht [[hidden email]]
Sent: 2011-1-10 (星期一) 21:09
To: Discussion of the development of GStreamer
Subject: Re: [gst-devel] amr-wb seek problem

check the return value of gst_element_seek too .

On Mon, Jan 10, 2011 at 3:00 PM, sudarshan bisht
<[hidden email]>wrote:

>
>  It seems amrwbdec does not handle src pad event (seek ) and thats why
> there is a blocking.  There is a lack of implementation of src event
> handling thats why kept in gst-plugins-ugly.
>
>
>
> On Mon, Jan 10, 2011 at 11:39 AM, jorney <[hidden email]> wrote:
>
>>
>> Hi
>> I am writing amr-wb player with gstreamer on Marvell pxa310.
>> When I seek to a position by time format, there is a long time blocking
>> (10 sec or even to 1 min), and there is no voice during the block, then
>> an EOS message was emitted,
>> but the position I seeked is far away to the end of the file.
>>
>> Bytes format has the same problem! here is my seek code:
>>
>> breslt = gst_element_seek(pipeline,
>> 1.0,
>> GST_FORMAT_BYTES,
>> GST_SEEK_FLAG_FLUSH,//|GST_SEEK_FLAG_KEY_UNIT|GST_SEEK_FLAG_SEGMENT,
>> GST_SEEK_TYPE_SET,
>> bytePos,//GST_SECOND*nForw*count,
>> GST_SEEK_TYPE_NONE,
>> GST_CLOCK_TIME_NONE
>> );
>>
>> I use gstreamer-0.10.29 and gst-plugins-ugly-0.10.15's amrwbdec,
>> gst-plugins-bad-0.10.13's amrparse. like this:
>>
>> gst-launch filesrc location=abc.amr ! amrparse ! amrwbdec ! alsasink
>>
>>
>> And the codec is opencore-amr-0.1.2
>> Could any body help?
>>
>> --
>> View this message in context:
>> http://gstreamer-devel.966125.n4.nabble.com/amr-wb-seek-problem-tp3206831p3206831.html
>> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>>
>>
>> ------------------------------------------------------------------------------
>> Gaining the trust of online customers is vital for the success of any
>> company
>> that requires sensitive data to be transmitted over the Web.   Learn how
>> to
>> best implement a security strategy that keeps consumers' information
>> secure
>> and instills the confidence they need to proceed with transactions.
>> http://p.sf.net/sfu/oracle-sfdevnl
>> _______________________________________________
>> gstreamer-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>
>
>
>
> --
> Regards,
>
> Sudarshan Bisht
>



--
Regards,

Sudarshan Bisht




=====================================================================================================================================
This email and any attachments to it contain confidential information and are intended solely for the use of the individual to whom it
is addressed.If you are not the intended recipient or receive it accidentally, please immediately notify the sender by e-mail and delete
the message and any attachments from your computer system, and destroy all hard copies. If any, please be advised that any unauthorized
disclosure, copying, distribution or any action taken or omitted in reliance on this, is illegal and prohibited. Furthermore, any views
or opinions expressed are solely those of the author and do not represent those of ASUSTeK. Thank you for your cooperation.
=====================================================================================================================================

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: amr-wb seek problem

jorney
In reply to this post by Sudarshan Bisht
Thanks for everyone's help!
I have got the issue fixed, it's the amrwbdec:
just add one line in the amrwbdec.c of
gst-plugins-ugly-0.10.16.

288: if (!block || gst_adapter_available (amrwbdec->adapter) < block)
     + {
     +  gst_adapter_clear (amrwbdec->adapter);
      break;
     + }
Because when there are incorrect data, if you don't clear it, the next checking
is still incorrect.



On 2011年01月10日 21:00, sudarshan bisht wrote:

 It seems amrwbdec does not handle src pad event (seek ) and thats why there is a blocking.  There is a lack of implementation of src event handling thats why kept in gst-plugins-ugly.
 

On Mon, Jan 10, 2011 at 11:39 AM, jorney <[hidden email]> wrote:

Hi
I am writing amr-wb player with gstreamer on Marvell pxa310.
When I seek to a position by time format, there is a long time blocking
(10 sec or even to 1 min), and there is no voice during the block, then
an EOS message was emitted,
but the position I seeked is far away to the end of the file.

Bytes format has the same problem! here is my seek code:

breslt = gst_element_seek(pipeline,
1.0,
GST_FORMAT_BYTES,
GST_SEEK_FLAG_FLUSH,//|GST_SEEK_FLAG_KEY_UNIT|GST_SEEK_FLAG_SEGMENT,
GST_SEEK_TYPE_SET,
bytePos,//GST_SECOND*nForw*count,
GST_SEEK_TYPE_NONE,
GST_CLOCK_TIME_NONE
);

I use gstreamer-0.10.29 and gst-plugins-ugly-0.10.15's amrwbdec,
gst-plugins-bad-0.10.13's amrparse. like this:

gst-launch filesrc location=abc.amr ! amrparse ! amrwbdec ! alsasink


And the codec is opencore-amr-0.1.2
Could any body help?

--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/amr-wb-seek-problem-tp3206831p3206831.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to
best implement a security strategy that keeps consumers' information secure
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



--
Regards,

Sudarshan Bisht
------------------------------------------------------------------------------ Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

=====================================================================================================================================
This email and any attachments to it contain confidential information and are intended solely for the use of the individual to whom it 
is addressed.If you are not the intended recipient or receive it accidentally, please immediately notify the sender by e-mail and delete 
the message and any attachments from your computer system, and destroy all hard copies. If any, please be advised that any unauthorized 
disclosure, copying, distribution or any action taken or omitted in reliance on this, is illegal and prohibited. Furthermore, any views 
or opinions expressed are solely those of the author and do not represent those of ASUSTeK. Thank you for your cooperation.
=====================================================================================================================================

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel