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: Gerhard Reitmayr
Subject: Re: [libcvd-members] Open video error
Date: Thu, 14 Jul 2011 09:07:01 +0200

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

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






reply via email to

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