[MPlayer-users] Re: Newer versions of mencoder don't believe I have v4l, older versions get it right

Carl Weidling cphilw at gmail.com
Fri Oct 27 20:35:17 CEST 2006


On 10/26/06, Paul Arthur <flowerysong00 at yahoo.com> wrote:
>
> On 2006-10-26, Carl Weidling <cphilw at gmail.com> wrote:
> > On 10/25/06, Paul Arthur <flowerysong00 at yahoo.com> wrote:
> >>
> >> On 2006-10-25, Carl Weidling <cphilw at gmail.com> wrote:
> >> > Hi,
> >> > Thanks for showing an interest in my problem.
> >> >
> >> > I tried creating a symbolic link in /usr/include to
> >> > /usr/src/linux-2.6.18/include/linux/videodev2.h
> >> > and
> >> > recompiled with configure make make install.  Then
> >>
> >> Did you do a 'make distclean' first?
> >
> > Uhh, no, I didn't.  I tried that just now though,   No difference.  I
> have
> > noticed
> > that there is a videodev.h file in /usr/include/linux that's different
> from
> > the
> > one in linux-2.6.18/include/linux, but no videodev2.h.  Somehow I can't
> > think
> > that's important though.  After all, version 1.0pre7 doesn't seem to
> have a
> > problem.
>
> Remember, MPlayer used to include this file, so saying that 1.0pre7
> doesn't have a problem shows nothing.
>
> Hmm.  When you run ./configure, does it show that v4l2 is enabled?  If
> not, check and make sure that the directory that you have the symlink in
> is in your search path.  Also, it's possible that it needs to be a hard
> link or copy rather than a symlink.
>
> To find out more about why MPlayer isn't enabling v4l2, check for a
> section similar to the following in configure.log
>
>
> ============ Checking for Video 4 Linux 2 TV interface ============
>
> #include <stdlib.h>
> #include <linux/types.h>
> #include <linux/videodev2.h>
> int main(void) { return 0; }
>
> cc -O4 -march=k8 -mtune=k8 -pipe -ffast-math -fomit-frame-pointer
> -I/usr/X11R6/include   -I/usr/include/freetype
> 2   -o /tmp/mplayer-conf-1977-15824.o /tmp/mplayer-conf-3402-15824.c
>
> ldd /tmp/mplayer-conf-1977-15824.o
>         libc.so.6 => /lib/libc.so.6 (0x00002b6704133000)
>         /lib64/ld-linux-x86-64.so.2 (0x00002b6704017000)
>
> Result is: yes
> ##########################################
>
>
> --
> If I had to live my life again, I'd make the same mistakes, only sooner.
>                 -- Tallulah Bankhead
>
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> http://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
>
That did it.  I copied videodev.h and videodev2.h to /usr/include/linux and
did a
build and got mencoder working with my script.  Thanks a lot!

It brings up  a more general question.  When I download a new kernel source,
linux-x.xx.x
should I just replace /usr/include/linux with linux-2.xx.xx/include/linux?

Regards,
Carl



More information about the MPlayer-users mailing list