Hello,
I would like to get the stream from a XIMEA camera using gstreamer. There is an example (in the XIMEA Linux Software Package) that use gstreamer to get the stream. This example works fine on Ubuntu 12.04 (with kernel 3.8) and Ubuntu 13.04. But i would like to get the stream with v4l2sink/v4l2src from gstreamer with pdgst (or better, from [pix_video] ??? :). My skills in C++ are bad and if someone can help me to modify the source code (attached, dependencies : GTK+-2 and GStreamer-0.10) to make it work only with v4l2src, it would be very nice. The XIMEA Linux Software Package can be downloaded from : http://www.ximea.com/support/wiki/apis/XIMEA_Linux_Software_Package Thanx. ++
Jack
On 08/22/13 16:13, Jack wrote:
Hello,
I would like to get the stream from a XIMEA camera using gstreamer. There is an example (in the XIMEA Linux Software Package) that use gstreamer to get the stream. This example works fine on Ubuntu 12.04 (with kernel 3.8) and Ubuntu 13.04. But i would like to get the stream with v4l2sink/v4l2src from gstreamer with pdgst (or better, from [pix_video] ??? :). My skills in C++ are bad and if someone can help me to modify the source code (attached, dependencies : GTK+-2 and GStreamer-0.10) to make it work only with v4l2src, it would be very nice.
hmm, i'm sure this is really a problem which should be solved by XIMEA: they ought to provide proper v4l2 drivers, rather than creating their own framework which will only ever be used by their products, and expect each application to support their framework (that is: unless they are willing to pay me so that i can add support for their software)
anyhow, after a quick glance at your sample code it seems that GStreamer is *not* used to grab the video, but only for displaying it. the actual grabbing is done in application space via the SDK. this basically means, that you cannot do it in pdgst.
a rather quick hack would be to change the gstreamer output from "autovideosink" to "v4l2sink device=/dev/video42" and recompile the streamViewer. this should allow [pix_video] to access the video-stream via v4l2.
fgmadrs IOhannes
On 08/22/13 16:51, IOhannes m zmölnig wrote:
hmm, i'm sure this is really a problem which should be solved by XIMEA: they ought to provide proper v4l2 drivers, rather than creating their own framework
just to make sure that this got through: you *really* should write to XIMEA asking them to create proper v4l2 drivers (at least for their USB-based cameras).
those companies often need some user feedback...
fgmasdr IOhannes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Le 22/08/2013 16:56, IOhannes m zmölnig a écrit :
On 08/22/13 16:51, IOhannes m zmölnig wrote:
hmm, i'm sure this is really a problem which should be solved by XIMEA: they ought to provide proper v4l2 drivers, rather than creating their own framework
just to make sure that this got through: you *really* should write to XIMEA asking them to create proper v4l2 drivers (at least for their USB-based cameras).
those companies often need some user feedback...
Yep. I will tonight. ++
Jack
fgmasdr IOhannes
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
Le 22/08/2013 17:10, Jack a écrit :
Le 22/08/2013 16:56, IOhannes m zmölnig a écrit :
On 08/22/13 16:51, IOhannes m zmölnig wrote:
hmm, i'm sure this is really a problem which should be solved by XIMEA: they ought to provide proper v4l2 drivers, rather than creating their own framework
just to make sure that this got through: you *really* should write to XIMEA asking them to create proper v4l2 drivers (at least for their USB-based cameras).
those companies often need some user feedback...
Yep. I will tonight. ++
Jack
Done, I expect their answer soon and keep you informed. ++
Jack
fgmasdr IOhannes
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management ->
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Le 22/08/2013 16:51, IOhannes m zmölnig a écrit :
On 08/22/13 16:13, Jack wrote:
Hello,
I would like to get the stream from a XIMEA camera using gstreamer. There is an example (in the XIMEA Linux Software Package) that use gstreamer to get the stream. This example works fine on Ubuntu 12.04 (with kernel 3.8) and Ubuntu 13.04. But i would like to get the stream with v4l2sink/v4l2src from gstreamer with pdgst (or better, from [pix_video] ??? :). My skills in C++ are bad and if someone can help me to modify the source code (attached, dependencies : GTK+-2 and GStreamer-0.10) to make it work only with v4l2src, it would be very nice.
hmm, i'm sure this is really a problem which should be solved by XIMEA: they ought to provide proper v4l2 drivers, rather than creating their own framework which will only ever be used by their products, and expect each application to support their framework (that is: unless they are willing to pay me so that i can add support for their software)
I will email to XIMEA to suggest to use v4l2. It will be very more simple for everyone in linux world...
anyhow, after a quick glance at your sample code it seems that GStreamer is *not* used to grab the video, but only for displaying it. the actual grabbing is done in application space via the SDK. this basically means, that you cannot do it in pdgst.
a rather quick hack would be to change the gstreamer output from "autovideosink" to "v4l2sink device=/dev/video42" and recompile the streamViewer. this should allow [pix_video] to access the video-stream via v4l2.
It is exactly what i do but it doesn't work. ++
Jack
fgmadrs IOhannes
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
On 08/22/13 17:08, Jack wrote:
a rather quick hack would be to change the gstreamer output from
"autovideosink" to "v4l2sink device=/dev/video42" and recompile the streamViewer. this should allow [pix_video] to access the video-stream via v4l2.
It is exactly what i do but it doesn't work.
maybe you should clean the engines.
dfmadr IOhannes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Le 22/08/2013 17:23, IOhannes m zmölnig a écrit :
On 08/22/13 17:08, Jack wrote:
a rather quick hack would be to change the gstreamer output from
"autovideosink" to "v4l2sink device=/dev/video42" and recompile the streamViewer. this should allow [pix_video] to access the video-stream via v4l2.
It is exactly what i do but it doesn't work.
maybe you should clean the engines.
What does it mean "clean the engines". Thanx for your help. ++
Jack
dfmadr IOhannes
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
On 08/22/13 17:31, Jack wrote:
It is exactly what i do but it doesn't work.
maybe you should clean the engines.
What does it mean "clean the engines". Thanx for your help.
it means that i have absolutely no idea what you mean by "it doesn't work".
if you want help, you need to be more specific about your specific problem, about errors, warnings...
gmasdr IOhannes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Le 22/08/2013 17:47, IOhannes m zmölnig a écrit :
On 08/22/13 17:31, Jack wrote:
It is exactly what i do but it doesn't work.
maybe you should clean the engines.
What does it mean "clean the engines". Thanx for your help.
it means that i have absolutely no idea what you mean by "it doesn't
work".
if you want help, you need to be more specific about your specific problem, about errors, warnings...
gmasdr IOhannes
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list OK. When I compile streamViewer.cpp which contains the gstreamer pipe finishing by : v4l2sink device=/dev/video2, i get no error. And after : $ ./streamViewer the application runs as expected.
In Pd, i open the help patch about [pix_video] and send the message [driver v4l2, device 2( to [pix_video]. I expect to get the stream, but i get (in the pd console) : Cannot open '/dev/video2': 2, Aucun fichier ou dossier de ce type v4l: failed opening device: '/dev/video2'
So, it seems the gstreamer pipe is wrong OR the streamViewer.cpp is wrong after the modification. How can i solve this problem ? ++
Jack