How can I get the error msg after call the gst call?

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

How can I get the error msg after call the gst call?

michael young
Hi all:
    How can I get the error message when I call the gst call. For example , if I called the gst_element_query_duration(),
and it return false, and now how can I get a description for the failure? Is there some function like strerror() ? tks :)

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How can I get the error msg after call the gst call?

Stefan Sauer
On 18.11.2010 10:20, michael young wrote:
> Hi all:
>     How can I get the error message when I call the gst call. For
> example , if I called the gst_element_query_duration(),
> and it return false, and now how can I get a description for the
> failure? Is there some function like strerror() ? tks :)

Nope. You would need to check the gstreamer log - run your app like
GST_DEBUG="*:5" ./my-app 2>debug.log.

Stefan

>
> ------------------------------------------------------------------------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today
> http://p.sf.net/sfu/msIE9-sfdev2dev
>
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>  


------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How can I get the error msg after call the gst call?

michael young
Hi Stefan:
    when I run my app like you said, I got a big log file. I just run my app 16 seconds and I got
a log file with 40M size! Is this all right ?? and  I think It's so difficult to find any useful message from the big file!!

On Thu, Nov 18, 2010 at 10:09 PM, Stefan Kost <[hidden email]> wrote:
On 18.11.2010 10:20, michael young wrote:
> Hi all:
>     How can I get the error message when I call the gst call. For
> example , if I called the gst_element_query_duration(),
> and it return false, and now how can I get a description for the
> failure? Is there some function like strerror() ? tks :)

Nope. You would need to check the gstreamer log - run your app like
GST_DEBUG="*:5" ./my-app 2>debug.log.

Stefan

>
> ------------------------------------------------------------------------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today
> http://p.sf.net/sfu/msIE9-sfdev2dev
>
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>


------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How can I get the error msg after call the gst call?

michael young
Hi Stefan:
    In my app , I always cannot call the gst_element_query_duration() success, so I want get 
the error information by some way. and I generated the debug log as you told me , but I still
cannot find any information about gst_element_query_duration()? Do you know why? tks:)

On Fri, Nov 19, 2010 at 9:27 AM, michael young <[hidden email]> wrote:
Hi Stefan:
    when I run my app like you said, I got a big log file. I just run my app 16 seconds and I got
a log file with 40M size! Is this all right ?? and  I think It's so difficult to find any useful message from the big file!!


On Thu, Nov 18, 2010 at 10:09 PM, Stefan Kost <[hidden email]> wrote:
On 18.11.2010 10:20, michael young wrote:
> Hi all:
>     How can I get the error message when I call the gst call. For
> example , if I called the gst_element_query_duration(),
> and it return false, and now how can I get a description for the
> failure? Is there some function like strerror() ? tks :)

Nope. You would need to check the gstreamer log - run your app like
GST_DEBUG="*:5" ./my-app 2>debug.log.

Stefan

>
> ------------------------------------------------------------------------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today
> http://p.sf.net/sfu/msIE9-sfdev2dev
>
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>


------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How can I get the error msg after call the gst call?

Stefan Sauer
In reply to this post by michael young
On 19.11.2010 03:27, michael young wrote:
> Hi Stefan:
>     when I run my app like you said, I got a big log file. I just run
> my app 16 seconds and I got
> a log file with 40M size! Is this all right ?? and  I think It's so
> difficult to find any useful message from the big file!!

You can put a exit() call after the error and then look for the error
from the bottom of the log file upwards. You can also use "*:4" to have
less info. Once you are knowing what you are looking for you might be
able to restrict it further.

Stefan


>
> On Thu, Nov 18, 2010 at 10:09 PM, Stefan Kost <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>     On 18.11.2010 10:20, michael young wrote:
>     > Hi all:
>     >     How can I get the error message when I call the gst call. For
>     > example , if I called the gst_element_query_duration(),
>     > and it return false, and now how can I get a description for the
>     > failure? Is there some function like strerror() ? tks :)
>
>     Nope. You would need to check the gstreamer log - run your app like
>     GST_DEBUG="*:5" ./my-app 2>debug.log.
>
>     Stefan
>
>     >
>     >
>     ------------------------------------------------------------------------------
>     > Beautiful is writing same markup. Internet Explorer 9 supports
>     > standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
>     > Spend less time writing and  rewriting code and more time
>     creating great
>     > experiences on the web. Be a part of the beta today
>     > http://p.sf.net/sfu/msIE9-sfdev2dev
>     >
>     >
>     > _______________________________________________
>     > gstreamer-devel mailing list
>     > [hidden email]
>     <mailto:[hidden email]>
>     > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>     >
>
>
>     ------------------------------------------------------------------------------
>     Beautiful is writing same markup. Internet Explorer 9 supports
>     standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
>     Spend less time writing and  rewriting code and more time creating
>     great
>     experiences on the web. Be a part of the beta today
>     http://p.sf.net/sfu/msIE9-sfdev2dev
>     _______________________________________________
>     gstreamer-devel mailing list
>     [hidden email]
>     <mailto:[hidden email]>
>     https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
>
> ------------------------------------------------------------------------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today
> http://p.sf.net/sfu/msIE9-sfdev2dev
>
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>  


------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel