[gst-devel] v4l2src & glupload at only 12 FPS?

Alexandre Quessy alexandre at quessy.net
Wed Mar 10 15:26:10 CET 2010


Hello everyone,
Sorry for the delay: I lost this thread somewhere in my mailbox. I won't
 put my answer interleaved in the text, 'cause there is so much to catch
up !

Here the output of my glxinfo: http://pastebin.com/hej8nwQr
It seems like I have all the necessary extensions and hardware
acceleration. (I am a big GLSL enthusiast)

Here is the output of the following gst-launch command :
http://pastebin.com/UK5pJxx7

The command:
GST_DEBUG=gldisplay:3 gst-launch -v v4l2src ! video/x-raw-yuv,
format=\(fourcc\)I420, framerate=\(fraction\)25/1, width=640, height=480
! ffmpegcolorspace ! glupload ! glimagesink

I did not put the glfilterglass, as I don't need it anyways in my final
app. (and it might slow down the rendering)

Let's add a videorate element, and more debug infos...
http://pastebin.com/VzU6f8yC

The command:
GST_DEBUG=gldisplay:3 GST_GL_SHADER_DEBUG=1 GST_GL_WINDOW_DEBUG=1
gst-launch -v v4l2src ! videorate ! video/x-raw-yuv,
format=\(fourcc\)I420, framerate=\(fraction\)25/1, width=640, height=480
! ffmpegcolorspace ! glupload ! glimagesink

Visually, it seems like I still get drop frames. My CPU has a load of
4%, so it is probably not the culprit. Maybe my WinTV video capture card
is simply bad ? It gives a bad image quality anyways, compared the the
Osprey 110.

I guess I should buy an other capture card or stick with web cams.
(which are even worse, but at least, constant) I might try Daniel's
padprobe patch too.

a


Julien Isorce wrote:
> 2010/3/5 Tristan Matthews <tristan at sat.qc.ca>
> 
>> 2010/3/5 Julien Isorce <julien.isorce at gmail.com>
>>
>>> What does "is-live" mean exactly ?
>>>
>> It's a property inherited from GstBaseSrc. From the documentation:
>>
>> A live source will not produce data in the PAUSED state and will therefore
>>> not be able to participate in the PREROLL phase of a pipeline. To signal
>>> this fact to the application and the pipeline, the state change return value
>>> of the live source will be GST_STATE_CHANGE_NO_PREROLL.
>>>
>> see
>> http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-libs/html/GstBaseSrc.html#gst-base-src-set-live
>>
>> It's useful here because it makes the videotestsrc behave like a live
>> source (like v4l2src and dc1394src), and thus i can recreate the same bug
>> with it (the black window when used with glfilterglass). It's worth noting
>> that the glfiltersobel plugin does work fine with live sources, so I don't
>> think the problem with glfilterglass is specifically because it uses
>> shaders.
>>
>> ok
> 
> I can't reproduce it so (-> it works for me with is-live set to false or
> true). (I'm using gst 0.10.25)
> I'll try next week (I have an other configuration)
> 
> Julien
> 
> 
>> -t
>>
>>
>>>> -tristan
>>>>
>>>>
>>>>
>>>>> Julien
>>>>>
>>>>>
>>>>>>
>>>>>>
>>>>>>>
>>>>>>>>  Here is the command I have issued. The first time, it was without
>>>>>>>>> the
>>>>>>>>> glfilterglass element.
>>>>>>>>>
>>>>>>>>> $ gst-launch -v v4l2src ! video/x-raw-yuv, format=\(fourcc\)I420,
>>>>>>>>> framerate=\(fraction\)25/1, width=640, height=480 ! ffmpegcolorspace
>>>>>>>>> !
>>>>>>>>> glupload  ! glfilterglass ! glimagesink
>>>>>>>>>
>>>>>>>>> I am not sure about how to read the actual frame rate, though. Any
>>>>>>>>> hint?
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>> Alex
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> Julien
>>>>>>>>>>
>>>>>>>>>> 2010/3/3 Alexandre Quessy <alexandre at quessy.net>
>>>>>>>>>>
>>>>>>>>>>> Hello everyone,
>>>>>>>>>>> I have worked on a prototype of a pipeline that uploads a live
>>>>>>>>> video
>>>>>>>>>>> feed to an OpenGL texture and shares it with a context in SDL,
>>>>>>>>>>> starting from the tests/examples/sdlshare.c file in
>>>>>>>>> gst-plugins-gl.
>>>>>>>>>>> The source code can be found at
>>>>>>>>>>> http://bitbucket.org/aalex/toonloop1/src/tip/src/sdlshare.cppand can
>>>>>>>>>>> be compiled with the autotools.
>>>>>>>>>>> (./autogen.sh && ./configure && make)
>>>>>>>>>>>
>>>>>>>>>>> It seems like the mesured framerate is consistently pretty slow.
>>>>>>>>> I get
>>>>>>>>>>> an average of 12 FPS on a Dual 2.2 GHz with the latest Ubuntu and
>>>>>>>>> a
>>>>>>>>>>> decent Nvidia graphic card. I obtained 30 FPS on a faster machine
>>>>>>>>> with
>>>>>>>>>>> a better V4L2-supported video capture card.
>>>>>>>>>>>
>>>>>>>>>>> Does someone have suggestions on how I could overcome this ? I
>>>>>>>>> would
>>>>>>>>>>> also prefer to have a framerate that's faster than the capture
>>>>>>>>> card's.
>>>>>>>>>>> 29.97 FPS is what NTSC gives me, whereas most projectors and
>>>>>>>>> monitors
>>>>>>>>>>> can do up to 60 FPS. I have tried to set the "sync" property of
>>>>>>>>> the
>>>>>>>>>>> fakesink element to FALSE, or TRUE, without success. Any other
>>>>>>>>> hint ?
>>>>>>>>>>> --
>>>>>>>>>>> Alexandre Quessy
>>>>>>>>>>> http://alexandre.quessy.net/
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>> Download Intel&#174; Parallel Studio Eval
>>>>>>>>>>> Try the new software tools for yourself. Speed compiling, find
>>>>>>>>> bugs
>>>>>>>>>>> proactively, and fine-tune applications for parallel performance.
>>>>>>>>>>> See why Intel Parallel Studio got high marks during beta.
>>>>>>>>>>> http://p.sf.net/sfu/intel-sw-dev
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> gstreamer-devel mailing list
>>>>>>>>>>> gstreamer-devel at lists.sourceforge.net
>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>>>
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>> Download Intel&#174; Parallel Studio Eval
>>>>>>>>>> Try the new software tools for yourself. Speed compiling, find
>>>>>>>>> bugs
>>>>>>>>>> proactively, and fine-tune applications for parallel performance.
>>>>>>>>>> See why Intel Parallel Studio got high marks during beta.
>>>>>>>>>> http://p.sf.net/sfu/intel-sw-dev
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>>> _______________________________________________
>>>>>>>>>> gstreamer-devel mailing list
>>>>>>>>>> gstreamer-devel at lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>>>>>>>>
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>> Download Intel&#174; Parallel Studio Eval
>>>>>>>>> Try the new software tools for yourself. Speed compiling, find bugs
>>>>>>>>> proactively, and fine-tune applications for parallel performance.
>>>>>>>>> See why Intel Parallel Studio got high marks during beta.
>>>>>>>>> http://p.sf.net/sfu/intel-sw-dev
>>>>>>>>> _______________________________________________
>>>>>>>>> gstreamer-devel mailing list
>>>>>>>>> gstreamer-devel at lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> Download Intel&#174; Parallel Studio Eval
>>>>>>>> Try the new software tools for yourself. Speed compiling, find bugs
>>>>>>>> proactively, and fine-tune applications for parallel performance.
>>>>>>>> See why Intel Parallel Studio got high marks during beta.
>>>>>>>> http://p.sf.net/sfu/intel-sw-dev
>>>>>>>> _______________________________________________
>>>>>>>> gstreamer-devel mailing list
>>>>>>>> gstreamer-devel at lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Tristan Matthews
>>>>>>> email: tristan at sat.qc.ca
>>>>>>> web: http://tristanswork.blogspot.com
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Tristan Matthews
>>>>>> email: tristan at sat.qc.ca
>>>>>> web: http://tristanswork.blogspot.com
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> Download Intel&#174; Parallel Studio Eval
>>>>>> Try the new software tools for yourself. Speed compiling, find bugs
>>>>>> proactively, and fine-tune applications for parallel performance.
>>>>>> See why Intel Parallel Studio got high marks during beta.
>>>>>> http://p.sf.net/sfu/intel-sw-dev
>>>>>> _______________________________________________
>>>>>> gstreamer-devel mailing list
>>>>>> gstreamer-devel at lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>>>>>
>>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Download Intel&#174; Parallel Studio Eval
>>>>> Try the new software tools for yourself. Speed compiling, find bugs
>>>>> proactively, and fine-tune applications for parallel performance.
>>>>> See why Intel Parallel Studio got high marks during beta.
>>>>> http://p.sf.net/sfu/intel-sw-dev
>>>>> _______________________________________________
>>>>> gstreamer-devel mailing list
>>>>> gstreamer-devel at lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>>>>
>>>>>
>>>>
>>>> --
>>>> Tristan Matthews
>>>> email: tristan at sat.qc.ca
>>>> web: http://tristanswork.blogspot.com
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Download Intel&#174; Parallel Studio Eval
>>>> Try the new software tools for yourself. Speed compiling, find bugs
>>>> proactively, and fine-tune applications for parallel performance.
>>>> See why Intel Parallel Studio got high marks during beta.
>>>> http://p.sf.net/sfu/intel-sw-dev
>>>> _______________________________________________
>>>> gstreamer-devel mailing list
>>>> gstreamer-devel at lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>>>
>>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Download Intel&#174; Parallel Studio Eval
>>> Try the new software tools for yourself. Speed compiling, find bugs
>>> proactively, and fine-tune applications for parallel performance.
>>> See why Intel Parallel Studio got high marks during beta.
>>> http://p.sf.net/sfu/intel-sw-dev
>>> _______________________________________________
>>> gstreamer-devel mailing list
>>> gstreamer-devel at lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>>
>>>
>>
>> --
>> Tristan Matthews
>> email: tristan at sat.qc.ca
>> web: http://tristanswork.blogspot.com
>>
>>
>> ------------------------------------------------------------------------------
>> Download Intel&#174; Parallel Studio Eval
>> Try the new software tools for yourself. Speed compiling, find bugs
>> proactively, and fine-tune applications for parallel performance.
>> See why Intel Parallel Studio got high marks during beta.
>> http://p.sf.net/sfu/intel-sw-dev
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>
>>
> 
> 
> ------------------------------------------------------------------------
> 
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel




More information about the gstreamer-devel mailing list