[gst-devel] GStreamer-CRITICAL **: gst_util_uint64_scale_int: assertion `denom > 0' failed

Eric Zhang nicolas.m.zhang at gmail.com
Wed Dec 10 02:59:32 CET 2008

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 <tzicatl at gmail.com>

> 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
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20081210/bf163594/attachment.htm>

More information about the gstreamer-devel mailing list