[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [libcvd-members] Open video error
From: |
Edward Rosten |
Subject: |
Re: [libcvd-members] Open video error |
Date: |
Wed, 3 Aug 2011 10:41:26 +0100 (BST) |
User-agent: |
Alpine 2.00 (LSU 1167 2008-08-23) |
On Tue, 2 Aug 2011, Gabriel wrote:
2011/7/14 Gerhard Reitmayr <address@hidden>
Hi Gabriel,
you need to configure libcvd with --enable-gpl so that the
VideoFileBuffer is included. VideoFileBuffer uses ffmpeg libraries which
are GPL (I guess) and not enabled by default, because it would propagate
the GPL terms to the user's code.
cheers,
Gerhard
Thank for your help... but i cant solve the trouble.
I run ./configure -with_ffmpeg -with_v4l2 -enable_gpl (for example)
In the process print:
checking for v4l2... no
checking for strange v4l2... no
checking linux/videodev.h usability... yes
checking linux/videodev.h presence... yes
Which version of libCVD are you running? If you're not using the latest
CVS version can you try it? The FFMPEG people have made the headers rather
hard to use with C++. The most recent versions of libCVD have fixes in for
this, but I haven't made a release of CVD for a while now.
If that doesn't work, can you send the config.log file?
-Ed
more...
checking ffmpeg/avcodec.h usability... no
checking ffmpeg/avcodec.h presence... no
checking for ffmpeg/avcodec.h... no
checking ffmpeg/avformat.h usability... no
checking ffmpeg/avformat.h presence... no
checking for ffmpeg/avformat.h... no
checking ffmpeg/swscale.h usability... no
checking ffmpeg/swscale.h presence... no
checking for ffmpeg/swscale.h... no
checking libavcodec/avcodec.h usability... no
checking libavcodec/avcodec.h presence... yes
configure: WARNING: libavcodec/avcodec.h: present but cannot be compiled
configure: WARNING: libavcodec/avcodec.h: check for missing prerequisite
headers?
configure: WARNING: libavcodec/avcodec.h: see the Autoconf documentation
configure: WARNING: libavcodec/avcodec.h: section "Present But Cannot Be
Compiled"
configure: WARNING: libavcodec/avcodec.h: proceeding with the compiler's result
checking for libavcodec/avcodec.h... no
checking libavformat/avformat.h usability... no
checking libavformat/avformat.h presence... yes
configure: WARNING: libavformat/avformat.h: present but cannot be compiled
configure: WARNING: libavformat/avformat.h: check for missing prerequisite
headers?
configure: WARNING: libavformat/avformat.h: see the Autoconf documentation
configure: WARNING: libavformat/avformat.h: section "Present But Cannot Be
Compiled"
configure: WARNING: libavformat/avformat.h: proceeding with the compiler's
result
checking for libavformat/avformat.h... no
checking libswscale/swscale.h usability... no
checking libswscale/swscale.h presence... yes
configure: WARNING: libswscale/swscale.h: present but cannot be compiled
configure: WARNING: libswscale/swscale.h: check for missing prerequisite
headers?
configure: WARNING: libswscale/swscale.h: see the Autoconf documentation
configure: WARNING: libswscale/swscale.h: section "Present But Cannot Be
Compiled"
configure: WARNING: libswscale/swscale.h: proceeding with the compiler's result
more...
Missing options for linux-gnu:
dc1394v1 dc1394v2 ffmpeg v4l2buffer
I cant understand why dont work...
On 14 Jul 2011, at 00:53, Gabriel wrote:
> I compile this code:
>
> #include <cvd/videosource.h>
> #include <cvd/videodisplay.h>
> #include <cvd/gl_helpers.h>
>
> using namespace CVD;
>
> int main()
> {
> try
> {
> VideoBuffer<Rgb<byte> > * video_buffer =
> open_video_source<Rgb<byte> >("file://test_jt.avi");
> VideoDisplay disp(video_buffer->size());
> while(1)
> {
> VideoFrame<Rgb<byte> > *frame = video_buffer->get_frame();
> glDrawPixels(*frame);
> video_buffer->put_frame(frame);
> }
> }
> catch(Exceptions::All error)
> {
> std::cerr << "Error: " << error.what << std::endl;
> }
>
> }
>
> I run the program and get this error: Error: VideoFileBuffer is not
> compiled in to libcvd.
> I try many solutions without find the trouble.
> I appreciate any help
>
> --
> Gabriel
>
> Antes de imprimir, pensá en tu responsabilidad y compromiso con el
> MEDIO AMBIENTE.
>
> _______________________________________________
> libcvd-members mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/libcvd-members
--
Gerhard Reitmayr
Institute for Computer Graphics and Vision
http://www.icg.tugraz.at/Members/gerhard
tel: ++43 316 873 5082
--
Gabriel
Antes de imprimir, pensá en tu responsabilidad y compromiso con el MEDIO
AMBIENTE.
--
Edward Rosten Machine Intelligence Laboratory
http://mi.eng.cam.ac.uk/~er258 Department of Engineering
+44 1223 7 65960 University of Cambridge