PDA

View Full Version : how to use gstreamer with Qt



qwakaw
26th August 2008, 08:29
Hi,,

I would like to use gstreamer with Qt.. and I know that gstreamer uses it's own loop.. and Qt uses it's loop.. so how would i integrate gstreamer in Qt..

any sample code would be very helpful..

Thank u

jpn
26th August 2008, 08:52
How about using Phonon (http://doc.trolltech.com/4.4/phonon-overview.html) which uses a gstreamer backend on X11, but other backends on other platforms? This way you're not tied to any specific platform.

qwakaw
26th August 2008, 09:35
but j p, i want to use gstreamer in Qt, I have made use of phonon(for media application)...


still waiting...

wysota
26th August 2008, 10:26
So what's the problem? Are we talking about the same gstreamer? Why can't you use gstreamer through Phonon?

qwakaw
26th August 2008, 11:59
now can i create a chat application with phonon ?

wysota
26th August 2008, 12:47
A chat application? You mean a videophone? If you provide a media source to operate upon then why not...

qwakaw
26th August 2008, 13:46
wysota,

could u be more elaborate on what u said before, if i could stream videos it would be perfect.. please provide some good pointers this time and don't just wrap up in a line.. it's really not helping me....:0)

wysota
26th August 2008, 14:23
If you try to describe what you are having problems with, maybe the answer to the question will be a bit longer as well. Read about Phonon in Qt Assistant and when you have specific questions about it, come back and ask them.

qwakaw
26th August 2008, 15:45
ok .. this is what i have in mind, i am trying to integrate a SIP based client on to Qt and that client makes use of gstreamer.. so that was why i asked about the gstreamer onto Qt support.. I knew that phonon provides a gst, ds, xine .. support .. but what if i want to go with gstreamer and Qt alone with no phonon(i am not against phonon :))...
just a simple gstreamer + Qt usage.. that's it..

now since u asked me to go thru assistant. for phonon.. i would also like to put forth another question..
I am unable to play mp3 and .... http://mail.kde.org/pipermail/phonon-backends/2008-August/000231.html on Nokia N810 device and it's because of dspmp3sink and dsppcmsink.. any idea how to get that working...

thanks for responding..

netuno
27th August 2008, 14:41
Take a look at this lib: http://gitorious.org/projects/dlib

It has a media component that uses GStreamer. It should at least give you an idea of how to integrate Qt and GStreamer in you app.