[gst-devel] Display video in the appointed rect region on QT dialog

Zaheer Merali zaheermerali at gmail.com
Thu Nov 30 07:11:18 CET 2006


On 11/30/06, Vincent Zhou <vincentzhou at solomon-systech.com> wrote:
> Thanks Christian.
> I can display the video on QT dialog now.
> But I found that sometimes the video captured from webcam is very
> obscure and monochrome even I display the video using the following
> command.
> gst-launch -v v4lsrc ! xvimagesink hue=100 saturation=-100
> brightness=100
>
> For the first time when I run the command, the video is very clear
> and colorful. But when run the command again, the video becomes very
> obscure and monochrome.
> After that, I use Ekiga to display the webcam video and close Ekiga.
> Then I can get good video by that command only for the first time.
> I am very confused with it!
> Does Anybody have the same experience?
>

Dear Vincent,

v4lsrc and v4l2src expose interfaces to modify colorbalance on the
camera.  API is here:
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstcolorbalance.html

You are better off using the interface on v4lsrc and v4l2src than on
xvimagesink.

An example using this code is in flumotion.  It is in the
flumotion/component/effects/colorbalance.py

This interface however cannot be used in gst-launch-0.10.

Take Care

Zaheer

> On Wed, 2006-11-29 at 18:27 +0100, Christian F.K. Schaller wrote:
> > Hi Vincent,
> > There is also the KISS Qt based media player:
> > http://ronald.bitfreak.net/kiss.php
> >
> > It uses 0.8 version of GStreamer, but I think the parts you would want
> > to look at for information should be close to identical between 0.8 and
> > 0.10.
> >
> > Christian
> >
> > On Wed, 2006-11-29 at 18:30 +0800, Vincent Zhou wrote:
> > > Hi,
> > >
> > > Now I have implemented displaying webcam video on the QT dialog window
> > > by v4lsrc, xvimagesink, and xoverlay interface.
> > > But the captured video occupy all the QT dialog Window, I am wondering
> > > if I can appoint a region on the QT dialog and display the video on the
> > > appointed rect region?
> > > Can anybody give me some advice?
> > > Thanks.
> > >
> > > Regards,
> > > Vincent
> > >
> > >
> > > -------------------------------------------------------------------------
> > > Take Surveys. Earn Cash. Influence the Future of IT
> > > Join SourceForge.net's Techsay panel and you'll get the chance to share your
> > > opinions on IT & business topics through brief surveys - and earn cash
> > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > _______________________________________________
> > > gstreamer-devel mailing list
> > > gstreamer-devel at lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> >
> --
> Best regards,
> Vincent Zhou
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> 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