GStreamer-CRITICAL **: gst_util_uint64_scale_int: assertion `denom > 0' failed

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

GStreamer-CRITICAL **: gst_util_uint64_scale_int: assertion `denom > 0' failed

Noe Nieto [http://percepcionunitaria.org]]
I am working with this pipeline:
gnomevfssrc name="camsrc" do-timestamp=true location="%s" ! multipartdemux ! jpegdec ! \
timeoverlay valign="bottom" text="Frame Time" shaded-background=true ! \
clockoverlay text="clock time:" shaded-background=true ! ffmpegcolorspace ! \
ximagesink force-aspect-ratio="true"

When I run it there is a lot of messages printed in the console and they look like this:

GStreamer-CRITICAL **: gst_util_uint64_scale_int: assertion `denom > 0' failed

This happens when I run the pipeline either with gst-launch or a specifically designed python app. The question is: Why do I keep getting this messages on the console?


I hope someone can give some advice.
Noe.

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: GStreamer-CRITICAL **: gst_util_uint64_scale_int: assertion `denom > 0' failed

Eric Zhang-6
Hi, gstreamer-devel:

    gst_util_uint64_scale_int has 3 parameters: val, num, denom and this function perform val*num/denom and return the result. The last parameter denom can't be negative, that's why you got these warning messages.

    So your mission is to find out where these messages come from. After that, you can tell why these messages occur. I also got these warnings several times and finally I find out the denom which I passed to gst_util_uint64_scale_int will be -1 when the playing is reaching EOS. So I add a "if" logic in the code and solved this problem.

Eric Zhang

2008/12/10 Noe Nieto <[hidden email]>
I am working with this pipeline:
gnomevfssrc name="camsrc" do-timestamp=true location="%s" ! multipartdemux ! jpegdec ! \
timeoverlay valign="bottom" text="Frame Time" shaded-background=true ! \
clockoverlay text="clock time:" shaded-background=true ! ffmpegcolorspace ! \
ximagesink force-aspect-ratio="true"

When I run it there is a lot of messages printed in the console and they look like this:

GStreamer-CRITICAL **: gst_util_uint64_scale_int: assertion `denom > 0' failed

This happens when I run the pipeline either with gst-launch or a specifically designed python app. The question is: Why do I keep getting this messages on the console?


I hope someone can give some advice.
Noe.

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: GStreamer-CRITICAL **: gst_util_uint64_scale_int: assertion `denom > 0' failed

Noe Nieto [http://percepcionunitaria.org]]
Nice mission.. I don't use that function nowhere in my code. I think is somewhere inside the elements I use for this pipeline.

Got to learn how to debug gstreamer pipelines.


2008/12/9 Eric Zhang <[hidden email]>
Hi, gstreamer-devel:

    gst_util_uint64_scale_int has 3 parameters: val, num, denom and this function perform val*num/denom and return the result. The last parameter denom can't be negative, that's why you got these warning messages.

    So your mission is to find out where these messages come from. After that, you can tell why these messages occur. I also got these warnings several times and finally I find out the denom which I passed to gst_util_uint64_scale_int will be -1 when the playing is reaching EOS. So I add a "if" logic in the code and solved this problem.

Eric Zhang

2008/12/10 Noe Nieto <[hidden email]>
I am working with this pipeline:
gnomevfssrc name="camsrc" do-timestamp=true location="%s" ! multipartdemux ! jpegdec ! \
timeoverlay valign="bottom" text="Frame Time" shaded-background=true ! \
clockoverlay text="clock time:" shaded-background=true ! ffmpegcolorspace ! \
ximagesink force-aspect-ratio="true"

When I run it there is a lot of messages printed in the console and they look like this:

GStreamer-CRITICAL **: gst_util_uint64_scale_int: assertion `denom > 0' failed

This happens when I run the pipeline either with gst-launch or a specifically designed python app. The question is: Why do I keep getting this messages on the console?


I hope someone can give some advice.
Noe.

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: GStreamer-CRITICAL **: gst_util_uint64_scale_int: assertion `denom > 0' failed

Sudarshan Bisht
Hi ,
     You are doing something wrong while setting properties of elements , check them again and see what is the correct format of setting them (check for int, float, boolean etc).  

On Wed, Dec 10, 2008 at 8:44 AM, Noe Nieto <[hidden email]> wrote:
Nice mission.. I don't use that function nowhere in my code. I think is somewhere inside the elements I use for this pipeline.

Got to learn how to debug gstreamer pipelines.


2008/12/9 Eric Zhang <[hidden email]>

Hi, gstreamer-devel:

    gst_util_uint64_scale_int has 3 parameters: val, num, denom and this function perform val*num/denom and return the result. The last parameter denom can't be negative, that's why you got these warning messages.

    So your mission is to find out where these messages come from. After that, you can tell why these messages occur. I also got these warnings several times and finally I find out the denom which I passed to gst_util_uint64_scale_int will be -1 when the playing is reaching EOS. So I add a "if" logic in the code and solved this problem.

Eric Zhang

2008/12/10 Noe Nieto <[hidden email]>
I am working with this pipeline:
gnomevfssrc name="camsrc" do-timestamp=true location="%s" ! multipartdemux ! jpegdec ! \
timeoverlay valign="bottom" text="Frame Time" shaded-background=true ! \
clockoverlay text="clock time:" shaded-background=true ! ffmpegcolorspace ! \
ximagesink force-aspect-ratio="true"

When I run it there is a lot of messages printed in the console and they look like this:

GStreamer-CRITICAL **: gst_util_uint64_scale_int: assertion `denom > 0' failed

This happens when I run the pipeline either with gst-launch or a specifically designed python app. The question is: Why do I keep getting this messages on the console?


I hope someone can give some advice.
Noe.

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: GStreamer-CRITICAL **: gst_util_uint64_scale_int: assertion `denom > 0' failed

Noe Nieto [http://percepcionunitaria.org]]
Sorry If I don't understand but:

This error appears constantly if I launch the pipeline with gst-launch on this way:
gst-launch gnomevfssrc name="camsrc" do-timestamp=true location="http://server/" ! multipartdemux ! jpegdec ! \
timeoverlay valign="bottom" text="Frame Time" shaded-background=true ! \
clockoverlay text="clock time:" shaded-background=true ! ffmpegcolorspace ! \
ximagesink force-aspect-ratio=true

The error also appears with the python app that uses the same pipeline. I use  gst.parse_launch() to construct the pipeline. I also re-read the manpage for gst-launch and gst_parse_launch() and I did not notice any special way to give string parameters to elements other than the one it's being used. Besides that I am not passing any kind of number parameter to the elements of the pipeline, I am just passing string parameters.

That's why I am confused. The app runs very well, but the messages can be annoying.

Any clues?



2008/12/9 sudarshan bisht <[hidden email]>
Hi ,
     You are doing something wrong while setting properties of elements , check them again and see what is the correct format of setting them (check for int, float, boolean etc).  

On Wed, Dec 10, 2008 at 8:44 AM, Noe Nieto <[hidden email]> wrote:
Nice mission.. I don't use that function nowhere in my code. I think is somewhere inside the elements I use for this pipeline.

Got to learn how to debug gstreamer pipelines.


2008/12/9 Eric Zhang <[hidden email]>

Hi, gstreamer-devel:

    gst_util_uint64_scale_int has 3 parameters: val, num, denom and this function perform val*num/denom and return the result. The last parameter denom can't be negative, that's why you got these warning messages.

    So your mission is to find out where these messages come from. After that, you can tell why these messages occur. I also got these warnings several times and finally I find out the denom which I passed to gst_util_uint64_scale_int will be -1 when the playing is reaching EOS. So I add a "if" logic in the code and solved this problem.

Eric Zhang

2008/12/10 Noe Nieto <[hidden email]>
I am working with this pipeline:
gnomevfssrc name="camsrc" do-timestamp=true location="%s" ! multipartdemux ! jpegdec ! \
timeoverlay valign="bottom" text="Frame Time" shaded-background=true ! \
clockoverlay text="clock time:" shaded-background=true ! ffmpegcolorspace ! \
ximagesink force-aspect-ratio="true"

When I run it there is a lot of messages printed in the console and they look like this:

GStreamer-CRITICAL **: gst_util_uint64_scale_int: assertion `denom > 0' failed

This happens when I run the pipeline either with gst-launch or a specifically designed python app. The question is: Why do I keep getting this messages on the console?


I hope someone can give some advice.
Noe.

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: GStreamer-CRITICAL **: gst_util_uint64_scale_int: assertion `denom > 0' failed

Sudarshan Bisht
Hi ,
      As far as my understand about your aim is that you want to print time on a jpeg image and want to display the same  .
I tried the same thing by just replacing gnomevfssrc  with filesrc , and i also got the same problem .
     This is happening because of  "received non-Time new segment event on video input" in both timeoverlay and clockoverlay elements.  And i guess why  this is happening because of the data processing  is very fast compare to event propagation since only one frame of data is there .   
    If you try same thing for a video file , you will not get this problem.
    
 
    

On Wed, Dec 10, 2008 at 11:02 AM, Noe Nieto <[hidden email]> wrote:
Sorry If I don't understand but:

This error appears constantly if I launch the pipeline with gst-launch on this way:
gst-launch gnomevfssrc name="camsrc" do-timestamp=true location="http://server/" ! multipartdemux ! jpegdec ! \

timeoverlay valign="bottom" text="Frame Time" shaded-background=true ! \
clockoverlay text="clock time:" shaded-background=true ! ffmpegcolorspace ! \
ximagesink force-aspect-ratio=true

The error also appears with the python app that uses the same pipeline. I use  gst.parse_launch() to construct the pipeline. I also re-read the manpage for gst-launch and gst_parse_launch() and I did not notice any special way to give string parameters to elements other than the one it's being used. Besides that I am not passing any kind of number parameter to the elements of the pipeline, I am just passing string parameters.

That's why I am confused. The app runs very well, but the messages can be annoying.

Any clues?



2008/12/9 sudarshan bisht <[hidden email]>

Hi ,
     You are doing something wrong while setting properties of elements , check them again and see what is the correct format of setting them (check for int, float, boolean etc).  

On Wed, Dec 10, 2008 at 8:44 AM, Noe Nieto <[hidden email]> wrote:
Nice mission.. I don't use that function nowhere in my code. I think is somewhere inside the elements I use for this pipeline.

Got to learn how to debug gstreamer pipelines.


2008/12/9 Eric Zhang <[hidden email]>

Hi, gstreamer-devel:

    gst_util_uint64_scale_int has 3 parameters: val, num, denom and this function perform val*num/denom and return the result. The last parameter denom can't be negative, that's why you got these warning messages.

    So your mission is to find out where these messages come from. After that, you can tell why these messages occur. I also got these warnings several times and finally I find out the denom which I passed to gst_util_uint64_scale_int will be -1 when the playing is reaching EOS. So I add a "if" logic in the code and solved this problem.

Eric Zhang

2008/12/10 Noe Nieto <[hidden email]>
I am working with this pipeline:
gnomevfssrc name="camsrc" do-timestamp=true location="%s" ! multipartdemux ! jpegdec ! \
timeoverlay valign="bottom" text="Frame Time" shaded-background=true ! \
clockoverlay text="clock time:" shaded-background=true ! ffmpegcolorspace ! \
ximagesink force-aspect-ratio="true"

When I run it there is a lot of messages printed in the console and they look like this:

GStreamer-CRITICAL **: gst_util_uint64_scale_int: assertion `denom > 0' failed

This happens when I run the pipeline either with gst-launch or a specifically designed python app. The question is: Why do I keep getting this messages on the console?


I hope someone can give some advice.
Noe.

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel