libcvd-members
[Top][All Lists]
Advanced

[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: Mon, 18 Jul 2011 14:01:03 +0100 (BST)
User-agent: Alpine 2.02 (LNX 1266 2009-07-14)

On Thu, 14 Jul 2011, Gerhard Reitmayr wrote:

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.

That's correct. Specifically, most of FFMPEG is LGPL, but the colourspace conversion code is GPL. There is enough code in CVD to be able to avoid the GPL part, but the wrappers have not been implemented.

-Ed



cheers,
  Gerhard

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




_______________________________________________
libcvd-members mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/libcvd-members


--
Edward Rosten                     Machine Intelligence Laboratory
http://mi.eng.cam.ac.uk/~er258          Department of Engineering
+44 1223 7 65960                          University of Cambridge


reply via email to

[Prev in Thread] Current Thread [Next in Thread]