Hi,

You might want to try the attached patch. It works for me for
webcams with NTSC resolution.

Please let me know if it solves your problem.

Regards,
Claus.

Todd Zimmerman wrote:
> Hey All,
> 
> Not sure if it is a local configuration/driver issue or not, but I am 
> having problems producing 'large' video sizes using my BTTV capture 
> card. It's a WinTV PCI card with a Sony handycam plugged into the 
> s-video input.
> 
> I'm using vic-2.8ucl1.4.0beta
> 
> Here are my settings::
> 
> V4L2 (BT878), SVideo, NTSC, Mpeg4, Large.  When I select 'Transmit', the 
> stream 'info' still only indicates 352x288.   If I change the Signal to 
> Auto (or PAL or SECAM) the picture goes green/pink but the resolution 
> moves to 704x576.
> 
> Is it _actually_ producing a larger video but the indication is wrong, 
> or is it not capable of going above 352x288??
> 
> I'd test V4L, but for some reason vic indicates it cannot open the 
> device when trying to switch to v4l.
> 
> 
> Any thoughts?
> 
> Todd


-- 
--------------------------------------------------------
Claus Endres                | Phone:  +61-3-5998 2310
Endres Consulting Pty. Ltd. | Mobile: +61-418-595 136
10 Facey Road               | Fax:    +61-3-5998 2540
Devon Meadows, VIC 3977     | cl...@endresconsulting.com
--- vic/video/grabber-v4l2.cpp  2007-12-16 16:11:29.000000000 +1100
+++ vic/video/grabber-v4l2.cpp  2008-06-22 22:34:19.000000000 +1000
@@ -1073,8 +1073,10 @@
         }
 
         while ( !format_ok ) {
-                width_  = CIF_WIDTH  *2  / decimate_;
-                height_ = CIF_HEIGHT *2  / decimate_;
+               if (decimate_ > 0) {
+                       width_  = CIF_WIDTH  *2  / decimate_;
+                       height_ = CIF_HEIGHT *2  / decimate_;
+               }
 
                 debug_msg("V4L2: format");
                 switch (cformat_) {
@@ -1139,6 +1141,12 @@
                                                         decimate_ = 4;
                                                         break;
                                                 case 1:
+                                                        debug_msg("V4L2: 
trying full resolution ...\n");
+                                                       decimate_ = 0;
+                                                        width_ = NTSC_WIDTH;
+                                                        height_ = NTSC_HEIGHT;
+                                                        break;
+                                                case 0:
                                                         debug_msg("V4L2: 
trying resolution under ...\n");
                                                         decimate_ = 2;
                                                         break;

Reply via email to