Hi,

please try the attached patches. They fix some scaling problems and allow to set the tuner as input source.

Now mplayer -vo cvidix -ao alsa -tv input=0 pvr://E8 -cache 4096 works.

Best Regards
Lutz


Lutz Koschorreck schrieb:
Hi,

I have no experience with using pvr input with mplayer.
Using fbxine with pvr:// input still works.

Also mplayer has a pvr:// stream input. I tried it with the current repository and it seems to be broken.
I have to take a look at to fix it.

So long
Lutz


Russell Treleaven schrieb:
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Tuesday, January 08, 2008 6:08 PM
To: User discussion about IVTV
Subject: Re: [ivtv-users] ivtv and mplayer


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

Hi Lutz,

Thanks to you I have cvidix working.
I would like to play live video from input 1.

I tried this
----------------------
pvr ~ # mplayer -vo cvidix -ao alsa -quiet -tv normid=10 tv:///1
MPlayer dev-SVN-r25563-4.1.1 (C) 2000-2007 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6,
Model: 8, St
epping: 3)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE

Playing tv:///1.
TV file format detected.
Selected driver: v4l2
 name: Video 4 Linux 2 input
 author: Martin Olschewski <[EMAIL PROTECTED]>
 comment: first try, more to come ;-)
Selected device: Hauppauge WinTV PVR-350
 Tuner cap: STEREO LANG1 LANG2
 Tuner rxs: STEREO
 Capabilites:  video capture  video output  VBI capture device  VBI
output  tune
r  audio  read/write
 supported norms: 0 = PAL-BGH; 1 = PAL-DK; 2 = PAL-I; 3 = PAL-M; 4 =
PAL-N; 5 =
PAL-Nc; 6 = SECAM-BGH; 7 = SECAM-DK; 8 = SECAM-L; 9 = SECAM-L'; 10 =
NTSC-M; 11
= NTSC-J; 12 = NTSC-K;
 inputs: 0 = Tuner 1; 1 = S-Video 1; 2 = Composite 1; 3 = S-Video 2; 4 =
Composi
te 2; 5 = Composite 3;
 Current input: 1
 Current format: unknown (0x4745504d)
v4l2: current audio mode is : STEREO
v4l2: ioctl request buffers failed: Invalid argument
v4l2: 0 frames successfully processed, 0 frames dropped.
----------------------------------------
Any ideas?
I won't make a habit out of bugging you.
Just thought you might know.

Sincerely,

Russell Treleaven


_______________________________________________
ivtv-users mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-users



_______________________________________________
ivtv-users mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-users


--- mplayer-svn/stream/stream_pvr.c	2007-12-03 00:06:16.776181492 +0100
+++ mplayer-current/stream/stream_pvr.c	2008-01-13 01:42:11.635454154 +0100
@@ -1324,12 +1324,12 @@
   }
   
   /* -tv width=x:height=y */
-  if (pvr->width && pvr->height)
+  if ((32 <= pvr->width) && (32 <= pvr->height))
   {
     struct v4l2_format vfmt;
     vfmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
-    vfmt.fmt.pix.width = pvr->width;
-    vfmt.fmt.pix.height = pvr->height;
+    vfmt.fmt.pix.width = pvr->width & ~15;
+    vfmt.fmt.pix.height = pvr->height & ~15;
 
     if (ioctl (pvr->dev_fd, VIDIOC_S_FMT, &vfmt) < 0)
     {
--- mplayer-svn/stream/stream_pvr.c	2007-12-03 00:06:16.776181492 +0100
+++ mplayer-current/stream/stream_pvr.c	2008-01-13 02:04:32.253139789 +0100
@@ -1205,7 +1205,7 @@
   }
 
   /* -tv input=x */
-  if (pvr->input != 0)
+  if (pvr->input != -1)
   {
     if (ioctl (pvr->dev_fd, VIDIOC_S_INPUT, &pvr->input) < 0)
     {
_______________________________________________
ivtv-users mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-users

Reply via email to