hi there,
i'm trying to use videoIO objects in Gem under Ubuntu 10.04 i've got compilation errors and here is a log :
for pix_device_read.cpp : g++ -DHAVE_BASE_CONFIG_H_ -c -Wall -O2 -fPIC -ffast-math -mmmx -I/usr/include -I../../../Gem/src -I. -I../core -o "pix_device_read.o" -c "pix_device_read.cpp" pix_device_read.cpp: In member function ‘virtual void pix_device_read::render(GemState*)’: pix_device_read.cpp:68: error: invalid use of incomplete type ‘struct GemState’ ../../../Gem/src/Base/GemBase.h:24: error: forward declaration of ‘struct GemState’ pix_device_read.cpp: In member function ‘virtual void pix_device_read::postrender(GemState*)’: pix_device_read.cpp:114: error: invalid use of incomplete type ‘struct GemState’ ../../../Gem/src/Base/GemBase.h:24: error: forward declaration of ‘struct GemState’ pix_device_read.cpp:115: error: invalid use of incomplete type ‘struct GemState’ ../../../Gem/src/Base/GemBase.h:24: error: forward declaration of ‘struct GemState’ make[1]: *** [pix_device_read.o] Erreur 1
for pix_file_read.cpp : g++ -DHAVE_BASE_CONFIG_H_ -c -Wall -O2 -fPIC -ffast-math -mmmx -I/usr/include -I../../../Gem/src -I. -I../core -o "pix_file_read.o" -c "pix_file_read.cpp" pix_file_read.cpp: In member function ‘virtual void pix_file_read::openFile(t_symbol*)’: pix_file_read.cpp:86: error: invalid conversion from ‘const _glist*’ to ‘_glist*’ pix_file_read.cpp:86: error: initializing argument 1 of ‘void canvas_makefilename(_glist*, char*, char*, int)’ pix_file_read.cpp: In member function ‘virtual void pix_file_read::render(GemState*)’: pix_file_read.cpp:204: error: invalid use of incomplete type ‘struct GemState’ ../../../Gem/src/Base/GemBase.h:24: error: forward declaration of ‘struct GemState’ pix_file_read.cpp: In member function ‘virtual void pix_file_read::postrender(GemState*)’: pix_file_read.cpp:213: error: invalid use of incomplete type ‘struct GemState’ ../../../Gem/src/Base/GemBase.h:24: error: forward declaration of ‘struct GemState’ pix_file_read.cpp:214: error: invalid use of incomplete type ‘struct GemState’ ../../../Gem/src/Base/GemBase.h:24: error: forward declaration of ‘struct GemState’ make[1]: *** [pix_file_read.o] Erreur 1
for pix_file_write.cpp : g++ -DHAVE_BASE_CONFIG_H_ -c -Wall -O2 -fPIC -ffast-math -mmmx -I/usr/include -I../../../Gem/src -I. -I../core -o "pix_file_write.o" -c "pix_file_write.cpp" pix_file_write.cpp: In member function ‘virtual void pix_file_write::openFile(t_symbol*)’: pix_file_write.cpp:56: error: invalid conversion from ‘const _glist*’ to ‘_glist*’ pix_file_write.cpp:56: error: initializing argument 1 of ‘void canvas_makefilename(_glist*, char*, char*, int)’ pix_file_write.cpp:57: error: ‘fopen’ was not declared in this scope pix_file_write.cpp:57: error: ‘fclose’ was not declared in this scope pix_file_write.cpp: In member function ‘virtual void pix_file_write::render(GemState*)’: pix_file_write.cpp:84: error: invalid use of incomplete type ‘struct GemState’ ../../../Gem/src/Base/GemBase.h:24: error: forward declaration of ‘struct GemState’ pix_file_write.cpp:86: error: invalid use of incomplete type ‘struct GemState’ ../../../Gem/src/Base/GemBase.h:24: error: forward declaration of ‘struct GemState’ pix_file_write.cpp: In static member function ‘static void pix_file_write::startCallback(void*, t_floatarg)’: pix_file_write.cpp:165: error: ‘printf’ was not declared in this scope pix_file_write.cpp: In static member function ‘static void pix_file_write::stopCallback(void*, t_floatarg)’: pix_file_write.cpp:172: error: ‘printf’ was not declared in this scope make[1]: *** [pix_file_write.o] Erreur 1
is it broken ? or is it because i'm still a Gem compilation newbie ??
cheers
a.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 05/27/2011 01:45 PM, Antoine Villeret wrote:
hi there,
i'm trying to use videoIO objects in Gem under Ubuntu 10.04
the short answer is: why do you want to compile videoIO? you don't need to.
videoIO has not been updated for almost 4 years. it is totally unused by all, and instead has been replaced by a similar (though more Gem-centric) plugin-framework in current Gem. so i consider videoIO to be dead.
fgmasdr IOhannes
hi,
humhum ok... I need to read and write video stream from Gem, videoIO appeared to be a good solution when it was alive... is there a Gem plugins with which I can read/write HTTP and RTSP streams ?
i also saw your pdgst which seems to be buggy... so is there a solution (on Ubuntu 10.4) ?
thanks
antoine
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
]On 2011-05-30 11:37, Antoine Villeret wrote:
hi,
humhum ok... I need to read and write video stream from Gem, videoIO appeared to be a good solution when it was alive...
well, yes and no. i don't think videoIO was ever in a state that could accomplish this.
is there a Gem plugins with which I can read/write HTTP and RTSP streams ?
afaic, you should be able to _read_ rtsp/http streams using the gmerlin-avdec backend of [pix_film] (yes, that's [pix_film] rather than [pix_video]; gmerlin-avdec is a generic video decoding framework targeted mostly at video-file playback but which can also do some networking)
however, there is currently no direct way to _write_ these streams.
i also saw your pdgst which seems to be buggy...
"buggy" is a bit generic.
so is there a solution (on Ubuntu 10.4) ?
dunno about the inclusion state of gmerlin-avdecoder in ubuntu-10.4; it's definitely in current debian/wheezy, so it should hit ubuntu at some point.
anyhow, this is what i would do: - - read the streams using [pix_film]
- - write the streams to a pipe using [pix_record] and a v4l2loopback device; you will need the v4l2loopback kernel modules, which are available in ubuntu starting with natty, or directly get them from http://github.com/umlaeute/v4l2loopback/) you will also need a recent enough version of Gem (that is: current SVN) that has support for writing to v4l2-loopbacks in [pix_record] - - send the stream using GStreamer (grabbing the v4l2 loopback source and using whatever technology gstreamer offers to broadcast the stream)
(you could also do v4l1 loopback using the "vloopback" driver and [pix_record]'s v4l1 writing capabilities; however v4l1 is considered dead, so i'd use v4l2)
fgamsdr IOhannes
thanks IOhannes !
concerning pdgst, could it work ? and should i send you some bug report or is it also almost dead ?
regarding filmGMERLIN plugin, i'll try it
and thanks for all, you're the man !
cheers
antoine
Le lundi 30 mai 2011 à 16:10 +0200, Antoine Villeret a écrit :
thanks IOhannes !
concerning pdgst, could it work ? and should i send you some bug report or is it also almost dead ?
No, i think it is not dead. It is not perfect but it works fine in most cases. For example, one of the problem i have, i can't load an other video from a stream with the message [location(. ++
Jack
regarding filmGMERLIN plugin, i'll try it
and thanks for all, you're the man !
cheers
antoine
-- do it yourself http://antoine.villeret.free.fr http://drii.ensad.fr -- Google lit ce mail... si vous refusez cela, utilisez l'adresse antoine.villeret [at] free.fr pour me contacter
2011/5/30 IOhannes m zmoelnig zmoelnig@iem.at -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
]On 2011-05-30 11:37, Antoine Villeret wrote: > hi, > > humhum ok... > I need to read and write video stream from Gem, videoIO appeared to be a > good solution when it was alive... well, yes and no. i don't think videoIO was ever in a state that could accomplish this. > is there a Gem plugins with which I can read/write HTTP and RTSP streams ? afaic, you should be able to _read_ rtsp/http streams using the gmerlin-avdec backend of [pix_film] (yes, that's [pix_film] rather than [pix_video]; gmerlin-avdec is a generic video decoding framework targeted mostly at video-file playback but which can also do some networking) however, there is currently no direct way to _write_ these streams. > i also saw your pdgst which seems to be buggy... "buggy" is a bit generic. > so is there a solution (on Ubuntu 10.4) ? > dunno about the inclusion state of gmerlin-avdecoder in ubuntu-10.4; it's definitely in current debian/wheezy, so it should hit ubuntu at some point. anyhow, this is what i would do: - - read the streams using [pix_film] - - write the streams to a pipe using [pix_record] and a v4l2loopback device; you will need the v4l2loopback kernel modules, which are available in ubuntu starting with natty, or directly get them from http://github.com/umlaeute/v4l2loopback/) you will also need a recent enough version of Gem (that is: current SVN) that has support for writing to v4l2-loopbacks in [pix_record] - - send the stream using GStreamer (grabbing the v4l2 loopback source and using whatever technology gstreamer offers to broadcast the stream) (you could also do v4l1 loopback using the "vloopback" driver and [pix_record]'s v4l1 writing capabilities; however v4l1 is considered dead, so i'd use v4l2) fgamsdr IOhannes -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk3jatMACgkQkX2Xpv6ydvQu+gCcCu31jvM +jrWU/bH77uLRd7az fAwAn0+y5QdkOWR/YUg6GCPSOWwIP67T =4NUG -----END PGP SIGNATURE----- _______________________________________________ GEM-dev mailing list GEM-dev@iem.at http://lists.puredata.info/listinfo/gem-dev
GEM-dev mailing list GEM-dev@iem.at http://lists.puredata.info/listinfo/gem-dev
well,
i had some troubles with gmerlin (./confgure can't find gmerlin_avdec, and i can't compile it due to a ./configure error (on gmerlin side)) but i can get my HTTP stream with pdgst, after that i would like to send them to Gem for now, the gst2pix.pd example doesn't work yet, i'll try it more deeper tomorrow, but any advice is welcome :-)
cheers
antoine