Hi Russell,
using the current mplayer repository, I have the same problems to build
vo_ivtv.
To get mplayer to build with ivtv support; please try the attached patch.
In addition there is another option to get ivtv output with mplayer
working without X.
I have implemented ivtv support for vidix. The current repository
includes the lates version. Please give vidix a try.
To configure your mplayer please use the following parameter:
--eneable-ivtv
After making and installing, you can use mplayer with the following
videoout parameter:
-vo cvidix:ivtv
I hope it works for you.
Best regards
Lutz
Russell Treleaven schrieb:
Hi All,
With lots of trial and error I have concluded the following
mplayer on screen display does not work with "-vo v4l2"
also lirc remote does not work with "-vo v4l2"
changing to "-vo fbdev2" makes both lirc and on screen display work
however performance is very poor.
if I configure mplayer with the following "--codecsdir=/usr/lib/win32
--enable-largefiles --enable-linux-devfs --enable-menu --disable-inet6
--enable-faad-external --enable-v4l2"
and then "make" I get this error.
------------------------------------------------------------------------
--------
cc -I../libavcodec -I../libavformat -Wdisabled-optimization
-Wno-pointer-sign -W
declaration-after-statement -I. -I.. -I../libavutil -Wall -Wno-switch
-Wpointer-
arith -Wredundant-decls -O4 -march=pentium3 -mtune=pentium3 -pipe
-ffast-math -f
omit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_LA
RGEFILE64_SOURCE -DHAVE_CONFIG_H -I/usr/include/freetype2 -c -o
vo_ivtv.o vo_i
vtv.c
vo_ivtv.c: In function 'ivtv_reset':
vo_ivtv.c:79: error: storage size of 'sd' isn't known
vo_ivtv.c:80: error: storage size of 'sd1' isn't known
vo_ivtv.c:84: error: 'IVTV_STOP_FL_HIDE_FRAME' undeclared (first use in
this fun
ction)
vo_ivtv.c:84: error: (Each undeclared identifier is reported only once
vo_ivtv.c:84: error: for each function it appears in.)
vo_ivtv.c:87: error: 'IVTV_IOC_STOP_DECODE' undeclared (first use in
this functi
on)
vo_ivtv.c:97: error: 'IVTV_IOC_START_DECODE' undeclared (first use in
this funct
ion)
vo_ivtv.c:80: warning: unused variable 'sd1'
vo_ivtv.c:79: warning: unused variable 'sd'
make[1]: *** [vo_ivtv.o] Error 1
make[1]: Leaving directory `/home/tarBalls/mplayer/libvo'
make: *** [libvo/libvo.a] Error 2
------------------------------------------------------------------------
-------
I am using
ivtv-1.0.3.tar.gz
mplayer is straight from subversion trunk on december 31
[ebuild R ] sys-kernel/gentoo-sources-2.6.23-r3 USE="-build
-symlink" 0 kB
[ebuild R ] sys-kernel/linux-headers-2.6.23-r3 0 kB
Mplayer comilation and installation succeeds if I add --disable-ivtv to
the configure string.
This also means that I can't use cvidix for video out.
I guess I can create my own on screen display by echoing text to the
frame buffer.
Also I guess can control mplayer using slave mode and redirecting the
lirc commands to mplayer's stdin.
Can anybody shed some insight into the crash?
How can I fix it?
Does anyone know if OSD support and lirc support for v4l2 are on
anyone's roadmap?
I am a lousy c programmer but I would be glad to test patches etc...
Please advise,
Russell Treleaven
_______________________________________________
ivtv-users mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-users
--- mplayer-svn/libvo/vo_ivtv.c 2007-12-03 00:06:22.036407830 +0100
+++ mplayer-current/libvo/vo_ivtv.c 2008-01-08 23:40:30.744386376 +0100
@@ -38,6 +38,7 @@
#include <linux/videodev2.h>
#include <linux/ivtv.h>
#include <linux/ioctl.h>
+#include <linux/dvb/video.h>
#include "mp_msg.h"
#include "subopt-helper.h"
@@ -76,25 +77,14 @@
static uint32_t
ivtv_reset (int blank_screen)
{
- struct ivtv_cfg_stop_decode sd;
- struct ivtv_cfg_start_decode sd1;
- int flags = 0;
-
- if (blank_screen)
- flags |= IVTV_STOP_FL_HIDE_FRAME;
- sd.flags = flags;
-
- if (ioctl (ivtv_fd, IVTV_IOC_STOP_DECODE, &sd) < 0)
+ if (ioctl (ivtv_fd, VIDEO_STOP, 0) < 0)
{
mp_msg (MSGT_VO, MSGL_ERR,
"IVTV_IOC_STOP_DECODE: %s\n", strerror (errno));
return 1;
}
- sd1.gop_offset = 0;
- sd1.muted_audio_frames = 0;
-
- if (ioctl (ivtv_fd, IVTV_IOC_START_DECODE, &sd1) < 0)
+ if (ioctl (ivtv_fd, VIDEO_PLAY, 0) < 0)
{
mp_msg (MSGT_VO, MSGL_ERR,
"IVTV_IOC_START_DECODE: %s\n", strerror (errno));
_______________________________________________
ivtv-users mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-users