[MPlayer-users] [PATCH] v4l2 interface

Wiesław Kierbedź sprawki at wp.pl
Mon Feb 24 03:04:14 CET 2003


Użytkownik Martin Olschewski napisał:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> 
> 
> ------------------------------------------------------------------------
> 
> Hello,
> 
> I am using a TV-card with a Philips saa7134 chip.  Gerd Knorr's
> v4l2 driver is afaik the only available driver for this card.
> Since mplayer has a v4l interface only, I had to add a new
> interface.  The very first try was based on the 0.1.x version
> of the v4l2 driver but many changes have been necessary to
> make it work with the 0.2.x version.
Hi,
I can see you (Martin) know much more about v4l and MPlayer than me.
I have another more problem.
All compilations (including mplayer) using v4l interface (appart xawtv) 
crashes with last (2.4.20) v4l headers with theese messages:

In file included from /usr/include/linux/videodev2.h:16,
                  from /usr/include/linux/videodev.h:14,
                  from tvi_v4l2.c:32:
/usr/include/linux/time.h:9: redefinition of `struct timespec'
/usr/include/linux/time.h:88: redefinition of `struct timeval'
/usr/include/linux/time.h:93: redefinition of `struct timezone'
/usr/include/linux/time.h:119: redefinition of `struct itimerspec'
/usr/include/linux/time.h:124: redefinition of `struct itimerval'
tvi_v4l2.c: In function `start':
tvi_v4l2.c:919: warning: comparison between signed and unsigned
make[1]: *** [tvi_v4l2.o] Error 1
make: *** [libmpdemux/libmpdemux.a] Error 2
I do not know why - time.h is just a part of same kernel source as 
(patched) videdev.h and videdev2.h.
Of course I tried your patch too.

MPlayer was one app which was able to capture video with my card (xawtv 
has limitation to 2 GB and does not support divx compression).
New v4l2 with xawtv works better than old, I would like take this profit.

I use FlyVideo3000 with saa7134 chip.
v4l2-20030207 snapshot and saa7134-0.2.5 driver.
Glibc-2.3.1 and gcc-3.2.2 (same results with regular bytesex v4l2 patch 
and gcc-3.2.1+glibc-2.3.1 and gcc-2.95+glibc-2.2).
Watching video4linux-list at redhat.com I met a few raports but no solution.



More information about the MPlayer-users mailing list