[gst-devel] GStreamer-CRITICAL **: gst_util_uint64_scale_int: assertion `denom > 0' failed
Noe Nieto
tzicatl at gmail.com
Wed Dec 10 06:32:45 CET 2008
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 <bisht.sudarshan at gmail.com>
> 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 <tzicatl at gmail.com> 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 <nicolas.m.zhang at gmail.com>
>>
>> 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
>>>>
>>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> 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
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> 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
>>
>>
>
>
> --
> 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
> 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/20081209/22611ef8/attachment.htm>
More information about the gstreamer-devel
mailing list